const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/Index-CIpmJCYm.js","assets/js/ui-vendor-4PEuZeLa.js","assets/js/react-vendor-SJkaNtXX.js","assets/js/Header-D8zlnBoZ.js","assets/js/logo-oficial-BW9aD_Pb.js","assets/js/icons-DwRt140y.js","assets/js/Footer-BOQFKY9v.js","assets/js/useScrollAnimation-DS-1cHrJ.js","assets/js/SEOHead-CxKqg0fu.js","assets/js/LazySection-D6HiguYC.js","assets/js/supabase-vendor-CdxEYpYJ.js","assets/js/NotFound-aEQX0BRf.js","assets/js/card-BLVJ33Ks.js","assets/js/WhatsAppFormDialog-Kp9-FNvr.js","assets/js/dialog-DsQTzpb8.js","assets/js/input-DXVZRo5z.js","assets/js/label-DTrNk9Ep.js","assets/js/validators-B6ObMgjW.js","assets/js/useMutation-Cjkh0Sul.js","assets/js/Empresas-C5MuMusy.js","assets/js/SEOBreadcrumb-Y9k_z4wZ.js","assets/js/Assistencia24h-DdzPN_QK.js","assets/js/Testimonials-B8Kq5nBo.js","assets/js/useQuery-Cd6jtjHI.js","assets/js/badge-cYyZz1pZ.js","assets/js/BlogFloatingCTA-DUCHC4so.js","assets/js/accordion-CS2v4oOb.js","assets/js/Rastreamento-CPexBG4S.js","assets/js/FrotasROICTA-CYzt9bnI.js","assets/js/Seguros-BviyWfyl.js","assets/js/HubComplianceFooter-D_KUj5wJ.js","assets/js/GestaoFrotas-BBZFaTV0.js","assets/js/ContactFormDialog-DJMBuHhR.js","assets/js/CalculadoraRoiFrota-BdnYh7GV.js","assets/js/FloatingWhatsAppButton-DMY3C7jw.js","assets/js/Suporte-Ce3WqqpZ.js","assets/js/FacaParte-BHdnu2w9.js","assets/js/select-_N01Yyig.js","assets/js/carousel-BbY016MD.js","assets/js/Blog-DEsZoBxv.js","assets/js/BlogPost-qnrIa3e8.js","assets/js/AppDownload-d6Mv3rfK.js","assets/js/blur-C4W21N4H.js","assets/css/blur-DOfe2hmq.css","assets/js/app-screenshot-new-BdNMJL0p.js","assets/js/Glossario-DPchS-EN.js","assets/js/Afiliados-CYkuW0ZI.js","assets/js/textarea-BO9TJBb2.js","assets/js/Auth-B-Z-s-xd.js","assets/js/tabs-DpH1HbXu.js","assets/js/form-vendor-CGqxB3wQ.js","assets/js/Install-Cb1XrnqH.js","assets/js/Franquia-U2WZtZJr.js","assets/js/FranquiaObrigado-BbcJQgO1.js","assets/js/GuinchoCity-CEdXmEP0.js","assets/js/cityTldrVariants-KEPRnAyw.js","assets/js/alert-C1pX6zPN.js","assets/js/TowRequestForm-CS3yncM_.js","assets/js/ChaveiroCity-DuSt-eij.js","assets/js/Chaveiro-BcK0FFYP.js","assets/js/Guincho-Bbe_zFrP.js","assets/js/Reboque-mPvu6W4J.js","assets/js/ReboqueCity-BZO-B_UB.js","assets/js/Insta-ClXR228W.js","assets/js/ExternalRedirect-DmLgeH3m.js","assets/js/LandingPageApp-BB9zKINm.js","assets/js/AppHub-BgQkeBzB.js","assets/js/AdminLayout-Dtk5u8cW.js","assets/js/separator-CMVPlunA.js","assets/js/Dashboard-WsuWaFXu.js","assets/js/Articles-DaKKw9OJ.js","assets/js/table-Dm9s1cS8.js","assets/js/pt-BR-BAHmWZhJ.js","assets/js/Images-DS5lrK4t.js","assets/js/progress-_C9pr45V.js","assets/js/Settings-w7kC2qcq.js","assets/js/TowRequests-BQeY78t4.js","assets/js/CityImagesGenerator-Di80oEhx.js","assets/js/CityBatchGenerator-CQlOWBbx.js","assets/js/Users-C0b2TBad.js","assets/js/ScriptGenerator-CXOO1aVF.js","assets/js/ImageGenerator-CxswhTUn.js","assets/js/LocksmithRequests-BrOjQjfR.js","assets/js/Reviews-v-hb8qcA.js","assets/js/BatchArticleGenerator-Cv5sI2cQ.js","assets/js/CityPagesStats-ClyWTvw8.js","assets/js/Avaliar-IDfKgFgi.js","assets/js/PortalFuncionario-f0nk4Wx1.js","assets/js/PoliticaPrivacidade-LWKtVBDQ.js","assets/js/PoliticaCancelamentoDevolucao-D-ampr2C.js","assets/js/Status-vKTLYEmj.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=Object.defineProperty,V=e=>{throw TypeError(e)},W=(e,t,n)=>((e,t,n)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),G=(e,t,n)=>t.has(e)||V("Cannot "+n),K=(e,t,n)=>(G(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>t.has(e)?V("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Q=(e,t,n,r)=>(G(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),J=(e,t,n)=>(G(e,t,"access private method"),n),X=(e,t,n,r)=>({set _(r){Q(e,t,r,n)},get _(){return K(e,t,r)}});import{j as Z,P as ee,c as te,b as ne,u as re,B as oe,d as se,e as ae,f as ie,g as ce,R as le,h as ue,i as de,k as pe,l as he,D as fe,C as me,m as ge,A as ye,n as ve,o as be,p as xe,S as _e}from"./ui-vendor-4PEuZeLa.js";import{a as we,r as Ee,R as je,b as Se,d as ke,u as Te,N as Ce,B as Oe,e as Pe,f as Ae,h as Re}from"./react-vendor-SJkaNtXX.js";import{X as De,L as Ie,R as Ne,T as Me}from"./icons-DwRt140y.js";import{c as $e}from"./supabase-vendor-CdxEYpYJ.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 Le=we;B=Le.createRoot,Le.hydrateRoot;const qe={},Fe=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 qe)return;qe[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 Ue=0;const ze=new Map,Be=e=>{if(ze.has(e))return;const t=setTimeout(()=>{ze.delete(e),Ge({type:"REMOVE_TOAST",toastId:e})},1e6);ze.set(e,t)},He=(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?Be(n):e.toasts.forEach(e=>{Be(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)}}},Ve=[];let We={toasts:[]};function Ge(e){We=He(We,e),Ve.forEach(e=>{e(We)})}function Ke({...e}){const t=(Ue=(Ue+1)%Number.MAX_SAFE_INTEGER,Ue.toString()),n=()=>Ge({type:"DISMISS_TOAST",toastId:t});return Ge({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||n()}}}),{id:t,dismiss:n,update:e=>Ge({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function Ye(){const[e,t]=Ee.useState(We);return Ee.useEffect(()=>(Ve.push(t),()=>{const e=Ve.indexOf(t);e>-1&&Ve.splice(e,1)}),[e]),{...e,toast:Ke,dismiss:e=>Ge({type:"DISMISS_TOAST",toastId:e})}}var Qe=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"}),Je=Ee.forwardRef((e,t)=>Z.jsx(ee.span,{...e,ref:t,style:{...Qe,...e.style}}));Je.displayName="VisuallyHidden";var Xe=Je,Ze="ToastProvider",[et,tt,nt]=ne("Toast"),[rt]=te("Toast",[nt]),[ot,st]=rt(Ze),at=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:a}=e,[i,c]=Ee.useState(null),[l,u]=Ee.useState(0),d=Ee.useRef(!1),p=Ee.useRef(!1);return n.trim(),Z.jsx(et.Provider,{scope:t,children:Z.jsx(ot,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:l,viewport:i,onViewportChange:c,onToastAdd:Ee.useCallback(()=>u(e=>e+1),[]),onToastRemove:Ee.useCallback(()=>u(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:a})})};at.displayName=Ze;var it="ToastViewport",ct=["F8"],lt="toast.viewportPause",ut="toast.viewportResume",dt=Ee.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=ct,label:o="Notifications ({hotkey})",...s}=e,a=st(it,n),i=tt(n),c=Ee.useRef(null),l=Ee.useRef(null),u=Ee.useRef(null),d=Ee.useRef(null),p=re(t,d,a.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),f=a.toastCount>0;Ee.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]),Ee.useEffect(()=>{const e=c.current,t=d.current;if(f&&e&&t){const n=()=>{if(!a.isClosePausedRef.current){const e=new CustomEvent(lt);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){const e=new CustomEvent(ut);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=Ee.useCallback(({tabbingDirection:e})=>{const t=i().map(t=>{const n=t.ref.current,r=[n,...Ot(n)];return"forwards"===e?r:r.reverse()});return("forwards"===e?t.reverse():t).flat()},[i]);return Ee.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);Pt(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]),Z.jsxs(oe,{ref:c,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:f?void 0:"none"},children:[f&&Z.jsx(ht,{ref:l,onFocusFromOutsideViewport:()=>{Pt(m({tabbingDirection:"forwards"}))}}),Z.jsx(et.Slot,{scope:n,children:Z.jsx(ee.ol,{tabIndex:-1,...s,ref:p})}),f&&Z.jsx(ht,{ref:u,onFocusFromOutsideViewport:()=>{Pt(m({tabbingDirection:"backwards"}))}})]})});dt.displayName=it;var pt="ToastFocusProxy",ht=Ee.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=st(pt,n);return Z.jsx(Je,{"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()}})});ht.displayName=pt;var ft="Toast",mt=Ee.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...a}=e,[i,c]=se({prop:r,defaultProp:o??!0,onChange:s,caller:ft});return Z.jsx(ae,{present:n||i,children:Z.jsx(vt,{open:i,...a,ref:t,onClose:()=>c(!1),onPause:ce(e.onPause),onResume:ce(e.onResume),onSwipeStart:ie(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ie(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:ie(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:ie(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)})})})});mt.displayName=ft;var[gt,yt]=rt(ft,{onClose(){}}),vt=Ee.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=st(ft,n),[g,y]=Ee.useState(null),v=re(t,e=>y(e)),b=Ee.useRef(null),x=Ee.useRef(null),_=o||m.duration,w=Ee.useRef(0),E=Ee.useRef(_),j=Ee.useRef(0),{onToastAdd:S,onToastRemove:k}=m,T=ce(()=>{var e;(null==g?void 0:g.contains(document.activeElement))&&(null==(e=m.viewport)||e.focus()),a()}),C=Ee.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(j.current),w.current=(new Date).getTime(),j.current=window.setTimeout(T,e))},[T]);Ee.useEffect(()=>{const e=m.viewport;if(e){const t=()=>{C(E.current),null==l||l()},n=()=>{const e=(new Date).getTime()-w.current;E.current=E.current-e,window.clearTimeout(j.current),null==c||c()};return e.addEventListener(lt,n),e.addEventListener(ut,t),()=>{e.removeEventListener(lt,n),e.removeEventListener(ut,t)}}},[m.viewport,_,c,l,C]),Ee.useEffect(()=>{s&&!m.isClosePausedRef.current&&C(_)},[s,_,m.isClosePausedRef,C]),Ee.useEffect(()=>(S(),()=>k()),[S,k]);const O=Ee.useMemo(()=>g?kt(g):null,[g]);return m.viewport?Z.jsxs(Z.Fragment,{children:[O&&Z.jsx(bt,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0,children:O}),Z.jsx(gt,{scope:n,onClose:T,children:we.createPortal(Z.jsx(et.ItemSlot,{scope:n,children:Z.jsx(le,{asChild:!0,onEscapeKeyDown:ie(i,()=>{m.isFocusedToastEscapeKeyDownRef.current||T(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:Z.jsx(ee.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:ie(e.onKeyDown,e=>{"Escape"===e.key&&(null==i||i(e.nativeEvent),e.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,T()))}),onPointerDown:ie(e.onPointerDown,e=>{0===e.button&&(b.current={x:e.clientX,y:e.clientY})}),onPointerMove:ie(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,Tt("toast.swipeMove",d,p,{discrete:!1})):Ct(l,m.swipeDirection,c)?(x.current=l,Tt("toast.swipeStart",u,p,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(b.current=null)}),onPointerUp:ie(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};Ct(t,m.swipeDirection,m.swipeThreshold)?Tt("toast.swipeEnd",h,r,{discrete:!0}):Tt("toast.swipeCancel",p,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),bt=e=>{const{__scopeToast:t,children:n,...r}=e,o=st(ft,t),[s,a]=Ee.useState(!1),[i,c]=Ee.useState(!1);return function(e=()=>{}){const t=ce(e);de(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>a(!0)),Ee.useEffect(()=>{const e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),i?null:Z.jsx(ue,{asChild:!0,children:Z.jsx(Je,{...r,children:s&&Z.jsxs(Z.Fragment,{children:[o.label," ",n]})})})},xt=Ee.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return Z.jsx(ee.div,{...r,ref:t})});xt.displayName="ToastTitle";var _t=Ee.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return Z.jsx(ee.div,{...r,ref:t})});_t.displayName="ToastDescription";var wt=Ee.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?Z.jsx(St,{altText:n,asChild:!0,children:Z.jsx(jt,{...r,ref:t})}):null});wt.displayName="ToastAction";var Et="ToastClose",jt=Ee.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=yt(Et,n);return Z.jsx(St,{asChild:!0,children:Z.jsx(ee.button,{type:"button",...r,ref:t,onClick:ie(e.onClick,o.onClose)})})});jt.displayName=Et;var St=Ee.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return Z.jsx(ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function kt(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(...kt(e))}}),t}function Tt(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?pe(o,s):o.dispatchEvent(s)}var Ct=(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 Ot(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 Pt(e){const t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var At=at,Rt=dt,Dt=mt,It=xt,Nt=_t,Mt=wt,$t=jt;function Lt(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=Lt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Lt(e))&&(r&&(r+=" "),r+=t);return r}const Ft=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Ut=qt,zt=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return Ut(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=Ft(t)||Ft(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 Ut(e,a,c,null==n?void 0:n.class,null==n?void 0:n.className)},Bt=e=>{const t=Gt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Ht(n,t)||Wt(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Ht=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),s=o?Ht(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},Vt=/^\[(.+)\]$/,Wt=e=>{if(Vt.test(e)){const t=Vt.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Gt=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Jt(Object.entries(e.classGroups),n).forEach(([e,n])=>{Kt(n,r,e,t)}),r},Kt=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Yt(t,e)).classGroupId=n)}if("function"==typeof e)return Qt(e)?void Kt(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Kt(o,Yt(t,e),n,r)})})},Yt=(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},Qt=e=>e.isThemeGetter,Jt=(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,Xt=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)}}},Zt=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},en=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},tn=/\s+/;function nn(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=rn(e))&&(r&&(r+=" "),r+=t);return r}const rn=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=rn(e[r]))&&(n&&(n+=" "),n+=t);return n};function on(e,...t){let n,r,o,s=function(i){const c=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Xt(e.cacheSize),parseClassName:Zt(e),...Bt(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(tn);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=en(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(nn.apply(null,arguments))}}const sn=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},an=/^\[(?:([a-z-]+):)?(.+)\]$/i,cn=/^\d+\/\d+$/,ln=new Set(["px","full","screen"]),un=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dn=/\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$/,pn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mn=e=>yn(e)||ln.has(e)||cn.test(e),gn=e=>Pn(e,"length",An),yn=e=>Boolean(e)&&!Number.isNaN(Number(e)),vn=e=>Pn(e,"number",yn),bn=e=>Boolean(e)&&Number.isInteger(Number(e)),xn=e=>e.endsWith("%")&&yn(e.slice(0,-1)),_n=e=>an.test(e),wn=e=>un.test(e),En=new Set(["length","size","percentage"]),jn=e=>Pn(e,En,Rn),Sn=e=>Pn(e,"position",Rn),kn=new Set(["image","url"]),Tn=e=>Pn(e,kn,In),Cn=e=>Pn(e,"",Dn),On=()=>!0,Pn=(e,t,n)=>{const r=an.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},An=e=>dn.test(e)&&!pn.test(e),Rn=()=>!1,Dn=e=>hn.test(e),In=e=>fn.test(e),Nn=on(()=>{const e=sn("colors"),t=sn("spacing"),n=sn("blur"),r=sn("brightness"),o=sn("borderColor"),s=sn("borderRadius"),a=sn("borderSpacing"),i=sn("borderWidth"),c=sn("contrast"),l=sn("grayscale"),u=sn("hueRotate"),d=sn("invert"),p=sn("gap"),h=sn("gradientColorStops"),f=sn("gradientColorStopPositions"),m=sn("inset"),g=sn("margin"),y=sn("opacity"),v=sn("padding"),b=sn("saturate"),x=sn("scale"),_=sn("sepia"),w=sn("skew"),E=sn("space"),j=sn("translate"),S=()=>["auto",_n,t],k=()=>[_n,t],T=()=>["",mn,gn],C=()=>["auto",yn,_n],O=()=>["","0",_n],P=()=>[yn,_n];return{cacheSize:500,separator:":",theme:{colors:[On],spacing:[mn,gn],blur:["none","",wn,_n],brightness:P(),borderColor:[e],borderRadius:["none","","full",wn,_n],borderSpacing:k(),borderWidth:T(),contrast:P(),grayscale:O(),hueRotate:P(),invert:O(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[xn,gn],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:[wn]}],"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",bn,_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",bn,_n]}],"grid-cols":[{"grid-cols":[On]}],"col-start-end":[{col:["auto",{span:["full",bn,_n]},_n]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[On]}],"row-start-end":[{row:["auto",{span:[bn,_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:[wn]},wn]}],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",wn,gn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vn]}],"font-family":[{font:[On]}],"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",yn,vn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mn,_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",mn,gn]}],"underline-offset":[{"underline-offset":["auto",mn,_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",Sn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Tn]}],"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":[mn,_n]}],"outline-w":[{outline:[mn,gn]}],"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":[mn,gn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wn,Cn]}],"shadow-color":[{shadow:[On]}],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",wn,_n]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[_]}],"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":[_]}],"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:[bn,_n]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"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:[mn,gn,vn]}],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 Mn(...e){return Nn(qt(e))}const $n=At,Ln=Ee.forwardRef(({className:e,...t},n)=>Z.jsx(Rt,{ref:n,className:Mn("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}));Ln.displayName=Rt.displayName;const qn=zt("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"}}),Fn=Ee.forwardRef(({className:e,variant:t,...n},r)=>Z.jsx(Dt,{ref:r,className:Mn(qn({variant:t}),e),...n}));Fn.displayName=Dt.displayName;Ee.forwardRef(({className:e,...t},n)=>Z.jsx(Mt,{ref:n,className:Mn("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=Mt.displayName;const Un=Ee.forwardRef(({className:e,...t},n)=>Z.jsx($t,{ref:n,className:Mn("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:Z.jsx(De,{className:"h-4 w-4"})}));Un.displayName=$t.displayName;const zn=Ee.forwardRef(({className:e,...t},n)=>Z.jsx(It,{ref:n,className:Mn("text-sm font-semibold",e),...t}));zn.displayName=It.displayName;const Bn=Ee.forwardRef(({className:e,...t},n)=>Z.jsx(Nt,{ref:n,className:Mn("text-sm opacity-90",e),...t}));function Hn(){const{toasts:e}=Ye();return Z.jsxs($n,{children:[e.map(function({id:e,title:t,description:n,action:r,...o}){return Z.jsxs(Fn,{...o,children:[Z.jsxs("div",{className:"grid gap-1",children:[t&&Z.jsx(zn,{children:t}),n&&Z.jsx(Bn,{children:n})]}),r,Z.jsx(Un,{})]},e)}),Z.jsx(Ln,{})]})}Bn.displayName=Nt.displayName;var Vn=["light","dark"],Wn=Ee.createContext(void 0),Gn={setTheme:e=>{},themes:[]};Ee.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?Vn.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&&Vn.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 Ee.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:h}})});var Kn=Array(12).fill(0),Yn=({visible:e,className:t})=>je.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},je.createElement("div",{className:"sonner-spinner"},Kn.map((e,t)=>je.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),Qn=je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},je.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"})),Jn=je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},je.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"})),Xn=je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},je.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"})),Zn=je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},je.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"})),er=je.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"},je.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),je.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),tr=1,nr=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:tr++,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],je.isValidElement(e))s=!1,this.create({id:n,type:"default",message:e});else if(rr(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)||tr++;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}},rr=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,or=(e,t)=>{let n=(null==t?void 0:t.id)||tr++;return nr.addToast({title:e,...t,id:n}),n},sr=Object.assign(or,{success:nr.success,info:nr.info,warning:nr.warning,error:nr.error,custom:nr.custom,message:nr.message,promise:nr.promise,dismiss:nr.dismiss,loading:nr.loading},{getHistory:()=>nr.toasts,getToasts:()=>nr.getActiveToasts()});function ar(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 ir=3,cr=14;function lr(...e){return e.filter(Boolean).join(" ")}var ur=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:_,removeToast:w,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]=je.useState(null),[U,z]=je.useState(null),[B,H]=je.useState(!1),[V,W]=je.useState(!1),[G,K]=je.useState(!1),[Y,Q]=je.useState(!1),[J,X]=je.useState(!1),[Z,ee]=je.useState(0),[te,ne]=je.useState(0),re=je.useRef(h.duration||P||4e3),oe=je.useRef(null),se=je.useRef(null),ae=0===b,ie=b+1<=y,ce=h.type,le=!1!==h.dismissible,ue=h.className||"",de=h.descriptionClassName||"",pe=je.useMemo(()=>v.findIndex(e=>e.toastId===h.id)||0,[v,h.id]),he=je.useMemo(()=>{var e;return null!=(e=h.closeButton)?e:j},[h.closeButton,j]),fe=je.useMemo(()=>h.duration||P||4e3,[h.duration,P]),me=je.useRef(0),ge=je.useRef(0),ye=je.useRef(0),ve=je.useRef(null),[be,xe]=A.split("-"),_e=je.useMemo(()=>v.reduce((e,t,n)=>n>=pe?e:e+t.height,0),[v,pe]),we=(()=>{let[e,t]=je.useState(document.hidden);return je.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),Se=h.invert||p,ke="loading"===ce;ge.current=je.useMemo(()=>pe*R+_e,[pe,_e]),je.useEffect(()=>{re.current=fe},[fe]),je.useEffect(()=>{H(!0)},[]),je.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]),je.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=je.useCallback(()=>{W(!0),ee(ge.current),g(e=>e.filter(e=>e.toastId!==h.id)),setTimeout(()=>{w(h)},200)},[h,w,g,ge]);return je.useEffect(()=>{if(h.promise&&"loading"===ce||h.duration===1/0||"loading"===h.type)return;let e;return _||m||L&&we?(()=>{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)},[_,m,h,ce,L,we,Te]),je.useEffect(()=>{h.delete&&Te()},[Te,h.delete]),je.createElement("li",{tabIndex:0,ref:se,className:lr(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":Se,"data-swipe-out":Y,"data-swipe-direction":U,"data-expanded":!!(_||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?je.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:lr(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:er):null,h.jsx||Ee.isValidElement(h.title)?h.jsx?h.jsx:"function"==typeof h.title?h.title():h.title:je.createElement(je.Fragment,null,ce||h.icon||h.promise?je.createElement("div",{"data-icon":"",className:lr(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?je.createElement("div",{className:lr(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?je.createElement("div",{className:lr(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):je.createElement(Yn,{className:lr(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 Qn;case"info":return Xn;case"warning":return Jn;case"error":return Zn;default:return null}})(ce):null):null,je.createElement("div",{"data-content":"",className:lr(null==N?void 0:N.content,null==(i=null==h?void 0:h.classNames)?void 0:i.content)},je.createElement("div",{"data-title":"",className:lr(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?je.createElement("div",{"data-description":"",className:lr(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),Ee.isValidElement(h.cancel)?h.cancel:h.cancel&&ar(h.cancel)?je.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||k,onClick:e=>{var t,n;ar(h.cancel)&&le&&(null==(n=(t=h.cancel).onClick)||n.call(t,e),Te())},className:lr(null==N?void 0:N.cancelButton,null==(u=null==h?void 0:h.classNames)?void 0:u.cancelButton)},h.cancel.label):null,Ee.isValidElement(h.action)?h.action:h.action&&ar(h.action)?je.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||T,onClick:e=>{var t,n;ar(h.action)&&(null==(n=(t=h.action).onClick)||n.call(t,e),!e.defaultPrevented&&Te())},className:lr(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 dr(){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 pr(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 hr=Ee.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=ir,toastOptions:m,dir:g=dr(),gap:y=cr,loadingIcon:v,icons:b,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:_}=e,[w,E]=je.useState([]),j=je.useMemo(()=>Array.from(new Set([r].concat(w.filter(e=>e.position).map(e=>e.position)))),[w,r]),[S,k]=je.useState([]),[T,C]=je.useState(!1),[O,P]=je.useState(!1),[A,R]=je.useState("system"!==u?u:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=je.useRef(null),I=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=je.useRef(null),M=je.useRef(!1),$=je.useCallback(e=>{E(t=>{var n;return null!=(n=t.find(t=>t.id===e.id))&&n.delete||nr.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return je.useEffect(()=>nr.subscribe(e=>{e.dismiss?E(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t)):setTimeout(()=>{Se.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]})})})}),[]),je.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]),je.useEffect(()=>{w.length<=1&&C(!1)},[w]),je.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]),je.useEffect(()=>{if(D.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,M.current=!1)}},[D.current]),je.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 w.length?je.createElement("ol",{key:t,dir:"auto"===g?dr():g,tabIndex:-1,ref:D,className:i,"data-sonner-toaster":!0,"data-theme":A,"data-y-position":u,"data-lifted":T&&w.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,...pr(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)},w.filter(e=>!e.position&&0===r||e.position===t).map((r,o)=>{var i,c;return je.createElement(ur,{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:w.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:_,swipeDirections:e.swipeDirections})})):null}))});const fr=({...e})=>{const{theme:t="system"}=null!=(n=Ee.useContext(Wn))?n:Gn;var n;return Z.jsx(hr,{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[mr]=te("Tooltip",[he]),gr=he(),yr="TooltipProvider",vr=700,br="tooltip.open",[xr,_r]=mr(yr),wr=e=>{const{__scopeTooltip:t,delayDuration:n=vr,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=Ee.useRef(!0),i=Ee.useRef(!1),c=Ee.useRef(0);return Ee.useEffect(()=>{const e=c.current;return()=>window.clearTimeout(e)},[]),Z.jsx(xr,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:Ee.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:Ee.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:Ee.useCallback(e=>{i.current=e},[]),disableHoverableContent:o,children:s})};wr.displayName=yr;var Er="Tooltip",[jr,Sr]=mr(Er),kr=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,c=_r(Er,e.__scopeTooltip),l=gr(t),[u,d]=Ee.useState(null),p=be(),h=Ee.useRef(0),f=a??c.disableHoverableContent,m=i??c.delayDuration,g=Ee.useRef(!1),[y,v]=se({prop:r,defaultProp:o??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(br))):c.onClose(),null==s||s(e)},caller:Er}),b=Ee.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),x=Ee.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,v(!0)},[v]),_=Ee.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v(!1)},[v]),w=Ee.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,v(!0),h.current=0},m)},[m,v]);return Ee.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),Z.jsx(xe,{...l,children:Z.jsx(jr,{scope:t,contentId:p,open:y,stateAttribute:b,trigger:u,onTriggerChange:d,onTriggerEnter:Ee.useCallback(()=>{c.isOpenDelayedRef.current?w():x()},[c.isOpenDelayedRef,w,x]),onTriggerLeave:Ee.useCallback(()=>{f?_():(window.clearTimeout(h.current),h.current=0)},[_,f]),onOpen:x,onClose:_,disableHoverableContent:f,children:n})})};kr.displayName=Er;var Tr="TooltipTrigger",Cr=Ee.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Sr(Tr,n),s=_r(Tr,n),a=gr(n),i=Ee.useRef(null),c=re(t,i,o.onTriggerChange),l=Ee.useRef(!1),u=Ee.useRef(!1),d=Ee.useCallback(()=>l.current=!1,[]);return Ee.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),Z.jsx(ye,{asChild:!0,...a,children:Z.jsx(ee.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ie(e.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||s.isPointerInTransitRef.current||(o.onTriggerEnter(),u.current=!0))}),onPointerLeave:ie(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:ie(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ie(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:ie(e.onBlur,o.onClose),onClick:ie(e.onClick,o.onClose)})})});Cr.displayName=Tr;var[Or,Pr]=mr("TooltipPortal",{forceMount:void 0}),Ar="TooltipContent",Rr=Ee.forwardRef((e,t)=>{const n=Pr(Ar,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Sr(Ar,e.__scopeTooltip);return Z.jsx(ae,{present:r||a.open,children:a.disableHoverableContent?Z.jsx($r,{side:o,...s,ref:t}):Z.jsx(Dr,{side:o,...s,ref:t})})}),Dr=Ee.forwardRef((e,t)=>{const n=Sr(Ar,e.__scopeTooltip),r=_r(Ar,e.__scopeTooltip),o=Ee.useRef(null),s=re(t,o),[a,i]=Ee.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:d}=r,p=Ee.useCallback(()=>{i(null),d(!1)},[d]),h=Ee.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 Ee.useEffect(()=>()=>p(),[p]),Ee.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]),Ee.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]),Z.jsx($r,{...e,ref:s})}),[Ir,Nr]=mr(Er,{isInside:!1}),Mr=ge("TooltipContent"),$r=Ee.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=Sr(Ar,n),l=gr(n),{onClose:u}=c;return Ee.useEffect(()=>(document.addEventListener(br,u),()=>document.removeEventListener(br,u)),[u]),Ee.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]),Z.jsx(fe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:Z.jsxs(me,{"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:[Z.jsx(Mr,{children:r}),Z.jsx(Ir,{scope:n,isInside:!0,children:Z.jsx(Xe,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Rr.displayName=Ar;var Lr="TooltipArrow";Ee.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gr(n);return Nr(Lr,n).isInside?null:Z.jsx(ve,{...o,...r,ref:t})}).displayName=Lr;var qr=Rr;const Fr=wr,Ur=kr,zr=Cr,Br=Ee.forwardRef(({className:e,sideOffset:t=4,...n},r)=>Z.jsx(qr,{ref:r,sideOffset:t,className:Mn("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}));Br.displayName=qr.displayName;var Hr=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(){}},Vr="undefined"==typeof window||"Deno"in globalThis;function Wr(){}function Gr(e){return"number"==typeof e&&e>=0&&e!==1/0}function Kr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yr(e,t){return"function"==typeof e?e(t):e}function Qr(e,t){return"function"==typeof e?e(t):e}function Jr(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:a,stale:i}=e;if(a)if(r){if(t.queryHash!==Zr(a,t.options))return!1}else if(!to(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 Xr(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(eo(t.options.mutationKey)!==eo(s))return!1}else if(!to(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function Zr(e,t){return((null==t?void 0:t.queryKeyHashFn)||eo)(e)}function eo(e){return JSON.stringify(e,(e,t)=>so(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function to(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>to(e[n],t[n])))}function no(e,t){if(e===t)return e;const n=oo(e)&&oo(t);if(n||so(e)&&so(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]=no(e[r],t[r]),i[r]===e[r]&&void 0!==e[r]&&l++)}return o===a&&l===o?e:i}return t}function ro(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 oo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function so(e){if(!ao(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!ao(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function ao(e){return"[object Object]"===Object.prototype.toString.call(e)}function io(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?no(e,t):t}function co(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function lo(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var uo=Symbol();function po(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==uo?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function ho(e,t){return"function"==typeof e?e(...t):!!e}var fo=new(r=class extends Hr{constructor(){super(),Y(this,e),Y(this,t),Y(this,n),Q(this,n,e=>{if(!Vr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){K(this,t)||this.setEventListener(K(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=K(this,t))||e.call(this),Q(this,t,void 0))}setEventListener(e){var r;Q(this,n,e),null==(r=K(this,t))||r.call(this),Q(this,t,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(t){K(this,e)!==t&&(Q(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var t;return"boolean"==typeof K(this,e)?K(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),mo=new(i=class extends Hr{constructor(){super(),Y(this,o,!0),Y(this,s),Y(this,a),Q(this,a,e=>{if(!Vr&&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(){K(this,s)||this.setEventListener(K(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=K(this,s))||e.call(this),Q(this,s,void 0))}setEventListener(e){var t;Q(this,a,e),null==(t=K(this,s))||t.call(this),Q(this,s,e(this.setOnline.bind(this)))}setOnline(e){K(this,o)!==e&&(Q(this,o,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return K(this,o)}},o=new WeakMap,s=new WeakMap,a=new WeakMap,i);function go(){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 yo(e){return Math.min(1e3*2**e,3e4)}function vo(e){return"online"!==(e??"online")||mo.isOnline()}var bo=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function xo(e){return e instanceof bo}function _o(e){let t,n=!1,r=0,o=!1;const s=go(),a=()=>fo.isFocused()&&("always"===e.networkMode||mo.isOnline())&&e.canRun(),i=()=>vo(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??(Vr?0:3),c=e.retryDelay??yo,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 bo(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 wo=e=>setTimeout(e,0);var Eo=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=wo;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}}}(),jo=(l=class{constructor(){Y(this,c)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gr(this.gcTime)&&Q(this,c,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vr?1/0:3e5))}clearGcTimeout(){K(this,c)&&(clearTimeout(K(this,c)),Q(this,c,void 0))}},c=new WeakMap,l),So=(b=class extends jo{constructor(e){super(),Y(this,y),Y(this,u),Y(this,d),Y(this,p),Y(this,h),Y(this,f),Y(this,m),Y(this,g),Q(this,g,!1),Q(this,m,e.defaultOptions),this.setOptions(e.options),this.observers=[],Q(this,h,e.client),Q(this,p,K(this,h).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Q(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??K(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=K(this,f))?void 0:e.promise}setOptions(e){this.options={...K(this,m),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||K(this,p).remove(this)}setData(e,t){const n=io(this.state.data,e,this.options);return J(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){J(this,y,v).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=K(this,f))?void 0:t.promise;return null==(n=K(this,f))||n.cancel(e),r?r.then(Wr).catch(Wr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(K(this,u))}isActive(){return this.observers.some(e=>!1!==Qr(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Yr(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||!Kr(this.state.dataUpdatedAt,e))}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null==t||t.refetch({cancelRefetch:!1}),null==(e=K(this,f))||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null==t||t.refetch({cancelRefetch:!1}),null==(e=K(this,f))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),K(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||(K(this,f)&&(K(this,g)?K(this,f).cancel({revert:!0}):K(this,f).cancelRetry()),this.scheduleGc()),K(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(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(K(this,f))return K(this,f).continueRetry(),K(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:()=>(Q(this,g,!0),s.signal)})},i=()=>{const e=po(this.options,t),n=(()=>{const e={client:K(this,h),queryKey:this.queryKey,meta:this.meta};return a(e),e})();return Q(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:K(this,h),state:this.state,fetchFn:i};return a(e),e})();null==(n=this.options.behavior)||n.onFetch(c,this),Q(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=c.fetchOptions)?void 0:r.meta)||J(this,y,v).call(this,{type:"fetch",meta:null==(o=c.fetchOptions)?void 0:o.meta});const l=e=>{var t,n,r,o;xo(e)&&e.silent||J(this,y,v).call(this,{type:"error",error:e}),xo(e)||(null==(n=(t=K(this,p).config).onError)||n.call(t,e,this),null==(o=(r=K(this,p).config).onSettled)||o.call(r,this.state.data,e,this)),this.scheduleGc()};return Q(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=K(this,p).config).onSuccess)||n.call(t,e,this),null==(o=(r=K(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)=>{J(this,y,v).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{J(this,y,v).call(this,{type:"pause"})},onContinue:()=>{J(this,y,v).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),K(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,...ko(t.data,this.options),fetchMeta:e.meta??null};case"success":return Q(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 xo(n)&&n.revert&&K(this,d)?{...K(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),Eo.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),K(this,p).notify({query:this,type:"updated",action:e})})},b);function ko(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vo(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var To=(_=class extends Hr{constructor(e={}){super(),Y(this,x),this.config=e,Q(this,x,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??Zr(r,t);let s=this.get(o);return s||(s=new So({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){K(this,x).has(e.queryHash)||(K(this,x).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=K(this,x).get(e.queryHash);t&&(e.destroy(),t===e&&K(this,x).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Eo.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return K(this,x).get(e)}getAll(){return[...K(this,x).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Jr(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Jr(e,t)):t}notify(e){Eo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Eo.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Eo.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},x=new WeakMap,_),Co=(T=class extends jo{constructor(e){super(),Y(this,S),Y(this,w),Y(this,E),Y(this,j),this.mutationId=e.mutationId,Q(this,E,e.mutationCache),Q(this,w,[]),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){K(this,w).includes(e)||(K(this,w).push(e),this.clearGcTimeout(),K(this,E).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Q(this,w,K(this,w).filter(t=>t!==e)),this.scheduleGc(),K(this,E).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){K(this,w).length||("pending"===this.state.status?this.scheduleGc():K(this,E).remove(this))}continue(){var e;return(null==(e=K(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 _=()=>{J(this,S,k).call(this,{type:"continue"})};Q(this,j,_o({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{J(this,S,k).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{J(this,S,k).call(this,{type:"pause"})},onContinue:_,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>K(this,E).canRun(this)}));const w="pending"===this.state.status,T=!K(this,j).canStart();try{if(w)_();else{J(this,S,k).call(this,{type:"pending",variables:e,isPaused:T}),await(null==(n=(t=K(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&&J(this,S,k).call(this,{type:"pending",context:s,variables:e,isPaused:T})}const h=await K(this,j).start();return await(null==(a=(s=K(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=K(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)),J(this,S,k).call(this,{type:"success",data:h}),h}catch(C){try{throw await(null==(f=(h=K(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=K(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{J(this,S,k).call(this,{type:"error",error:C})}}finally{K(this,E).runNext(this)}}},w=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),Eo.batch(()=>{K(this,w).forEach(t=>{t.onMutationUpdate(e)}),K(this,E).notify({mutation:this,type:"updated",action:e})})},T);function Oo(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Po=(A=class extends Hr{constructor(e={}){super(),Y(this,C),Y(this,O),Y(this,P),this.config=e,Q(this,C,new Set),Q(this,O,new Map),Q(this,P,0)}build(e,t,n){const r=new Co({mutationCache:this,mutationId:++X(this,P)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){K(this,C).add(e);const t=Ao(e);if("string"==typeof t){const n=K(this,O).get(t);n?n.push(e):K(this,O).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(K(this,C).delete(e)){const t=Ao(e);if("string"==typeof t){const n=K(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&&K(this,O).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ao(e);if("string"==typeof t){const n=K(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=Ao(e);if("string"==typeof n){const r=null==(t=K(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(){Eo.batch(()=>{K(this,C).forEach(e=>{this.notify({type:"removed",mutation:e})}),K(this,C).clear(),K(this,O).clear()})}getAll(){return Array.from(K(this,C))}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Xr(t,e))}findAll(e={}){return this.getAll().filter(t=>Xr(e,t))}notify(e){Eo.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Eo.batch(()=>Promise.all(e.map(e=>e.continue().catch(Wr))))}},C=new WeakMap,O=new WeakMap,P=new WeakMap,A);function Ao(e){var t;return null==(t=e.options.scope)?void 0:t.id}function Ro(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=po(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?lo:co;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?Io:Do)(c,t);p=await o(t,n,e)}else{const t=e??u.length;do{const e=0===h?d[0]??c.initialPageParam:Do(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 Do(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 Io(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 No=(F=class{constructor(e={}){Y(this,R),Y(this,D),Y(this,I),Y(this,N),Y(this,M),Y(this,$),Y(this,L),Y(this,q),Q(this,R,e.queryCache||new To),Q(this,D,e.mutationCache||new Po),Q(this,I,e.defaultOptions||{}),Q(this,N,new Map),Q(this,M,new Map),Q(this,$,0)}mount(){X(this,$)._++,1===K(this,$)&&(Q(this,L,fo.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,R).onFocus())})),Q(this,q,mo.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,R).onOnline())})))}unmount(){var e,t;X(this,$)._--,0===K(this,$)&&(null==(e=K(this,L))||e.call(this),Q(this,L,void 0),null==(t=K(this,q))||t.call(this),Q(this,q,void 0))}isFetching(e){return K(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return K(this,D).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=K(this,R).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=K(this,R).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Yr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return K(this,R).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=K(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 K(this,R).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Eo.batch(()=>K(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=K(this,R).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=K(this,R);Eo.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=K(this,R);return Eo.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Eo.batch(()=>K(this,R).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Wr).catch(Wr)}invalidateQueries(e,t={}){return Eo.batch(()=>(K(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=Eo.batch(()=>K(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(Wr)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(Wr)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=K(this,R).build(this,t);return n.isStaleByTime(Yr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Wr).catch(Wr)}fetchInfiniteQuery(e){return e.behavior=Ro(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Wr).catch(Wr)}ensureInfiniteQueryData(e){return e.behavior=Ro(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return mo.isOnline()?K(this,D).resumePausedMutations():Promise.resolve()}getQueryCache(){return K(this,R)}getMutationCache(){return K(this,D)}getDefaultOptions(){return K(this,I)}setDefaultOptions(e){Q(this,I,e)}setQueryDefaults(e,t){K(this,N).set(eo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...K(this,N).values()],n={};return t.forEach(t=>{to(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){K(this,M).set(eo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...K(this,M).values()],n={};return t.forEach(t=>{to(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...K(this,I).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zr(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===uo&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...K(this,I).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){K(this,R).clear(),K(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),Mo=Ee.createContext(void 0),$o=e=>{const t=Ee.useContext(Mo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Lo=({client:e,children:t})=>(Ee.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Z.jsx(Mo.Provider,{value:e,children:t})),qo="undefined"!=typeof Element,Fo="function"==typeof Map,Uo="function"==typeof Set,zo="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Bo(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(!Bo(e[r],t[r]))return!1;return!0}if(Fo&&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(!Bo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Uo&&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(zo&&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(qo&&e instanceof Element)return!1;for(r=n;0!==r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Bo(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}const Ho=ke(function(e,t){try{return Bo(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return!1;throw n}});const Vo=ke(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 Wo=ke(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 Go=(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))(Go||{}),Ko={rel:["amphtml","canonical","alternate"]},Yo={type:["application/ld+json"]},Qo={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"]},Jo=Object.values(Go),Xo={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Zo=Object.entries(Xo).reduce((e,[t,n])=>(e[n]=t,e),{}),es="data-rh",ts="defaultTitle",ns="defer",rs="encodeSpecialCharacters",os="onChangeClientState",ss="titleTemplate",as="prioritizeSeoTags",is=(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},cs=e=>{let t=is(e,"title");const n=is(e,ss);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=is(e,ts);return t||r||void 0},ls=e=>is(e,os)||(()=>{}),us=(e,t)=>t.filter(t=>void 0!==t[e]).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),ds=(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},[]),ps=(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()},hs=(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},fs=e=>Array.isArray(e)?e.join(""):e,ms=(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:[]},gs=(e,t)=>({...e,[t]:void 0}),ys=["noscript","script","style"],vs=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),bs=e=>Object.keys(e).reduce((t,n)=>{const r=void 0!==e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),xs=(e,t={})=>Object.keys(e).reduce((t,n)=>(t[Xo[n]||n]=e[n],t),t),_s=(e,t)=>t.map((t,n)=>{const r={key:n,[es]:!0};return Object.keys(t).forEach(e=>{const n=Xo[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:e}}else r[n]=t[e]}),je.createElement(e,r)}),ws=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,n)=>{const r=xs(n,{key:t,[es]:!0});return[je.createElement("title",r,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const o=bs(n),s=fs(t);return o?`<${e} ${es}="true" ${o}>${vs(s,r)}</${e}>`:`<${e} ${es}="true">${vs(s,r)}</${e}>`})(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>xs(t),toString:()=>bs(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}="${vs(o[t],n)}"`;return e?`${e} ${r}`:r},""),a=o.innerHTML||o.cssText||"",i=-1===ys.indexOf(e);return`${t}<${e} ${es}="true" ${s}${i?"/>":`>${a}</${e}>`}`},""))(e,t,n)}}},Es=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=ms(e,Qo),s=ms(t,Ko),a=ms(n,Yo);return{priorityMethods:{toComponent:()=>[..._s("meta",o.priority),..._s("link",s.priority),..._s("script",a.priority)],toString:()=>`${ws("meta",o.priority,r)} ${ws("link",s.priority,r)} ${ws("script",a.priority,r)}`},metaTags:o.default,linkTags:s.default,scriptTags:a.default}})(e)),{priority:h,base:ws("base",t,r),bodyAttributes:ws("bodyAttributes",n,r),htmlAttributes:ws("htmlAttributes",o,r),link:ws("link",u,r),meta:ws("meta",d,r),noscript:ws("noscript",s,r),script:ws("script",p,r),style:ws("style",a,r),title:ws("title",{title:i,titleAttributes:c},r)}},js=[],Ss=!("undefined"==typeof window||!window.document||!window.document.createElement),ks=class{constructor(e,t){W(this,"instances",[]),W(this,"canUseDOM",Ss),W(this,"context"),W(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?js:this.instances,add:e=>{(this.canUseDOM?js:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?js:this.instances).indexOf(e);(this.canUseDOM?js:this.instances).splice(t,1)}}}),this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Es({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Ts=parseInt(je.version.split(".")[0],10)>=19,Cs=je.createContext({}),Os=(U=class extends Ee.Component{constructor(e){super(e),W(this,"helmetData"),this.helmetData=Ts?null:new ks(this.props.context||{},U.canUseDOM)}render(){return Ts?je.createElement(je.Fragment,null,this.props.children):je.createElement(Cs.Provider,{value:this.helmetData.value},this.props.children)}},W(U,"canUseDOM",Ss),U),Ps=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${es}]`),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(es,"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}},As=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(es),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(es):n.getAttribute(es)!==a.join(",")&&n.setAttribute(es,a.join(","))},Rs=(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;As("body",r),As("html",o),((e,t)=>{void 0!==e&&document.title!==e&&(document.title=fs(e)),As("title",t)})(d,p);const h={baseTag:Ps("base",n),linkTags:Ps("link",s),metaTags:Ps("meta",a),noscriptTags:Ps("noscript",i),scriptTags:Ps("script",l),styleTags:Ps("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)},Ds=null,Is=e=>{Ds&&cancelAnimationFrame(Ds),e.defer?Ds=requestAnimationFrame(()=>{Rs(e,()=>{Ds=null})}):(Rs(e),Ds=null)},Ns=class extends Ee.Component{constructor(){super(...arguments),W(this,"rendered",!1)}shouldComponentUpdate(e){return!Wo(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:ds(["href"],o),bodyAttributes:us("bodyAttributes",o),defer:is(o,ns),encode:is(o,rs),htmlAttributes:us("htmlAttributes",o),linkTags:ps("link",["rel","href"],o),metaTags:ps("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:ps("noscript",["innerHTML"],o),onChangeClientState:ls(o),scriptTags:ps("script",["src","innerHTML"],o),styleTags:ps("style",["cssText"],o),title:cs(o),titleAttributes:us("titleAttributes",o),prioritizeSeoTags:hs(o,as)});var o;Os.canUseDOM?Is(r):Es&&(n=Es(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}},Ms=[],$s=e=>{const t={};for(const n of Object.keys(e))t[Zo[n]||n]=e[n];return t},Ls=e=>{const t={};for(const n of Object.keys(e)){t[Xo[n]||n]=e[n]}return t},qs=(e,t)=>{if(!Ss)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)},Fs=()=>{const e={},t={};for(const n of Ms){const{htmlAttributes:r,bodyAttributes:o}=n.props;r&&Object.assign(e,$s(r)),o&&Object.assign(t,$s(o))}qs("html",e),qs("body",t)},Us=class extends Ee.Component{componentDidMount(){Ms.push(this),Fs()}componentDidUpdate(){Fs()}componentWillUnmount(){const e=Ms.indexOf(this);-1!==e&&Ms.splice(e,1),Fs()}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 je.createElement("title",Ls(t),e)}renderBase(){const{base:e}=this.props;return e?je.createElement("base",Ls(e)):null}renderMeta(){const{meta:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>je.createElement("meta",{key:t,...Ls(e)})):null}renderLink(){const{link:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>je.createElement("link",{key:t,...Ls(e)})):null}renderScript(){const{script:e}=this.props;return e&&Array.isArray(e)?e.map((e,t)=>{const{innerHTML:n,...r}=e,o=Ls(r);return n&&(o.dangerouslySetInnerHTML={__html:n}),je.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=Ls(r);return n&&(o.dangerouslySetInnerHTML={__html:n}),je.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=Ls(r);return n&&(o.dangerouslySetInnerHTML={__html:n}),je.createElement("noscript",{key:t,...o})}):null}render(){return je.createElement(je.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},zs=(z=class extends Ee.Component{shouldComponentUpdate(e){return!Ho(gs(this.props,"helmetData"),gs(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 Vo(Jo.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 ${Jo.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Vo(!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 je.Children.forEach(e,e=>{if(!e||!e.props)return;const{children:r,...o}=e.props,s=Object.keys(o).reduce((e,t)=>(e[Zo[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 ks)){r=new ks(r.context,!0),delete n.helmetData}return Ts?je.createElement(Us,{...n}):r?je.createElement(Ns,{...n,context:r.value}):je.createElement(Cs.Consumer,null,e=>je.createElement(Ns,{...n,context:e}))}},W(z,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),z);const Bs=$e("https://qvpcywkodgmweqaqnjuw.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InF2cGN5d2tvZGdtd2VxYXFuanV3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjM0NjIzMjUsImV4cCI6MjA3OTAzODMyNX0.-pi5rBCEZAgQOAfQ4Q_ymmxE0jJkL5y7kAFJKf4rpBM",{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),Hs=Object.freeze(Object.defineProperty({__proto__:null,supabase:Bs},Symbol.toStringTag,{value:"Module"})),Vs=Ee.createContext(void 0),Ws=({children:e})=>{const[t,n]=Ee.useState(null),[r,o]=Ee.useState(null),[s,a]=Ee.useState(!1),[i,c]=Ee.useState(!0),[l,u]=Ee.useState(!1);Ee.useEffect(()=>{const{data:{subscription:e}}=Bs.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 Bs.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()},[]);const d=async e=>{try{const{data:t,error:n}=await Bs.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 Z.jsx(Vs.Provider,{value:{user:t,session:r,isAdmin:s,isLoading:i,isCheckingAdmin:l,signIn:async(e,t)=>{const{error:n}=await Bs.auth.signInWithPassword({email:e,password:t});return{error:n}},signUp:async(e,t,n)=>{const r=`${window.location.origin}/`,{error:o}=await Bs.auth.signUp({email:e,password:t,options:{emailRedirectTo:r,data:{full_name:n}}});return{error:o}},signOut:async()=>{await Bs.auth.signOut(),a(!1),u(!1)}},children:e})},Gs=()=>{const e=Ee.useContext(Vs);if(void 0===e)throw new Error("useAuth must be used within an AuthProvider");return e},Ks=({children:e,requireAdmin:t=!1})=>{const{user:n,isAdmin:r,isLoading:o,isCheckingAdmin:s}=Gs(),a=Te();return o||t&&s?Z.jsx("div",{className:"flex items-center justify-center min-h-screen",children:Z.jsx(Ie,{className:"h-8 w-8 animate-spin text-primary"})}):n?t&&!r?Z.jsx(Ce,{to:"/",replace:!0}):Z.jsx(Z.Fragment,{children:e}):Z.jsx(Ce,{to:"/auth",state:{from:a.pathname},replace:!0})};function Ys({className:e,...t}){return Z.jsx("div",{className:Mn("animate-pulse rounded-md bg-muted",e),...t})}const Qs=zt("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"}}),Js=Ee.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?_e:"button";return Z.jsx(a,{className:Mn(Qs({variant:t,size:n,className:e})),ref:s,...o})});Js.displayName="Button";let Xs=class extends Ee.Component{constructor(){super(...arguments),W(this,"state",{hasError:!1}),W(this,"handleReload",()=>{window.location.reload()}),W(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:Z.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:Z.jsxs("div",{className:"text-center max-w-md",children:[Z.jsxs("div",{className:"mb-6",children:[Z.jsx("div",{className:"w-16 h-16 mx-auto bg-primary/10 rounded-full flex items-center justify-center mb-4",children:Z.jsx(Ne,{className:"w-8 h-8 text-primary"})}),Z.jsx("h1",{className:"text-2xl font-bold text-foreground mb-2",children:"Atualização Disponível"}),Z.jsx("p",{className:"text-muted-foreground",children:"Uma nova versão do site foi publicada. Por favor, recarregue a página para continuar."})]}),Z.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[Z.jsxs(Js,{onClick:this.handleReload,className:"gap-2",children:[Z.jsx(Ne,{className:"w-4 h-4"}),"Recarregar Página"]}),Z.jsxs(Js,{variant:"outline",onClick:this.handleClearCacheAndReload,className:"gap-2",children:[Z.jsx(Me,{className:"w-4 h-4"}),"Limpar Cache"]})]}),this.state.error&&Z.jsxs("details",{className:"mt-6 text-left",children:[Z.jsx("summary",{className:"text-sm text-muted-foreground cursor-pointer",children:"Detalhes técnicos"}),Z.jsx("pre",{className:"mt-2 p-3 bg-muted rounded text-xs overflow-auto",children:this.state.error.message})]})]})}):this.props.children}};async function Zs(e,t=2){try{return await e()}catch(r){if(t>0)return await(n=1e3,new Promise(e=>setTimeout(e,n))),Zs(e,t-1);if(r instanceof Error&&(r.message.includes("Failed to fetch dynamically imported module")||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 ea(e){return Ee.lazy(()=>Zs(e))}const ta=()=>{const e=Te();return Ee.useEffect(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"virtualPageview",pagePath:e.pathname+e.search,pageTitle:document.title})},[e]),null},na=ea(()=>Fe(()=>import("./Index-CIpmJCYm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),ra=ea(()=>Fe(()=>import("./NotFound-aEQX0BRf.js"),__vite__mapDeps([11,1,2,8,3,4,5,6,12,13,14,15,16,17,18,10]))),oa=ea(()=>Fe(()=>import("./Empresas-C5MuMusy.js"),__vite__mapDeps([19,1,2,8,20,5,12,14,3,4,13,15,16,17,18,7,10]))),sa=ea(()=>Fe(()=>import("./Assistencia24h-DdzPN_QK.js"),__vite__mapDeps([21,1,2,3,4,5,6,12,22,23,24,14,25,10,8,26]))),aa=ea(()=>Fe(()=>import("./Rastreamento-CPexBG4S.js"),__vite__mapDeps([27,1,2,3,4,5,6,12,22,23,24,14,25,10,28,8,26]))),ia=ea(()=>Fe(()=>import("./Seguros-BviyWfyl.js"),__vite__mapDeps([29,1,2,3,4,5,6,8,25,12,10,13,14,15,16,17,18,30,26]))),ca=ea(()=>Fe(()=>import("./GestaoFrotas-BBZFaTV0.js"),__vite__mapDeps([31,1,2,3,4,5,20,6,12,32,14,15,16,17,8,26,10]))),la=ea(()=>Fe(()=>import("./CalculadoraRoiFrota-BdnYh7GV.js"),__vite__mapDeps([33,1,2,3,4,5,6,20,8,12,15,16,32,14,17,13,18,10]))),ua=ea(()=>Fe(()=>import("./FloatingWhatsAppButton-DMY3C7jw.js"),__vite__mapDeps([34,1,2,13,14,5,15,16,17,18,10]))),da=ea(()=>Fe(()=>import("./Suporte-Ce3WqqpZ.js"),__vite__mapDeps([35,1,2,20,5,13,14,15,16,17,18,8,26,12,10]))),pa=ea(()=>Fe(()=>import("./FacaParte-BHdnu2w9.js"),__vite__mapDeps([36,1,2,3,4,5,20,6,15,16,37,17,38,8,10]))),ha=ea(()=>Fe(()=>import("./Blog-DEsZoBxv.js"),__vite__mapDeps([39,1,2,3,4,5,6,20,15,24,23,8,9,10]))),fa=ea(()=>Fe(()=>import("./BlogPost-qnrIa3e8.js"),__vite__mapDeps([40,1,2,3,4,5,6,41,42,43,44,10,13,14,15,16,17,18,20,23,8,12,26]))),ma=ea(()=>Fe(()=>import("./Glossario-DPchS-EN.js"),__vite__mapDeps([45,1,2,3,4,5,6,8,20,12,10]))),ga=ea(()=>Fe(()=>import("./Afiliados-CYkuW0ZI.js"),__vite__mapDeps([46,1,2,3,4,5,20,6,15,16,47,13,14,17,18,8,10]))),ya=ea(()=>Fe(()=>import("./Auth-B-Z-s-xd.js"),__vite__mapDeps([48,1,2,8,15,16,12,49,50,5,10]))),va=ea(()=>Fe(()=>import("./Install-Cb1XrnqH.js"),__vite__mapDeps([51,1,2,8,12,5,10]))),ba=ea(()=>Fe(()=>import("./Franquia-U2WZtZJr.js"),__vite__mapDeps([52,1,2,8,15,47,37,5,12,16,3,4,6,17,10]))),xa=ea(()=>Fe(()=>import("./FranquiaObrigado-BbcJQgO1.js"),__vite__mapDeps([53,1,2,12,8,3,4,5,6,10]))),_a=ea(()=>Fe(()=>import("./GuinchoCity-CEdXmEP0.js"),__vite__mapDeps([54,1,2,23,3,4,5,6,8,55,15,56,57,16,47,17,38,26,10]))),wa=ea(()=>Fe(()=>import("./ChaveiroCity-DuSt-eij.js"),__vite__mapDeps([58,1,2,23,3,4,5,6,8,55,15,56,16,47,17,26,10]))),Ea=ea(()=>Fe(()=>import("./Chaveiro-BcK0FFYP.js"),__vite__mapDeps([59,1,2,3,4,5,6,8,25,12,10,30,13,14,15,16,17,18,26]))),ja=ea(()=>Fe(()=>import("./Guincho-Bbe_zFrP.js"),__vite__mapDeps([60,1,2,3,4,5,6,8,25,12,10,30,13,14,15,16,17,18,26]))),Sa=ea(()=>Fe(()=>import("./Reboque-mPvu6W4J.js"),__vite__mapDeps([61,1,2,3,4,5,6,8,25,12,10,30,13,14,15,16,17,18,26]))),ka=ea(()=>Fe(()=>import("./ReboqueCity-BZO-B_UB.js"),__vite__mapDeps([62,1,2,23,3,4,5,6,8,55,15,56,57,16,47,17,26,10]))),Ta=ea(()=>Fe(()=>import("./Insta-ClXR228W.js"),__vite__mapDeps([63,1,2,8,13,14,5,15,16,17,18,10]))),Ca=ea(()=>Fe(()=>import("./ExternalRedirect-DmLgeH3m.js"),__vite__mapDeps([64,2]))),Oa=ea(()=>Fe(()=>import("./LandingPageApp-BB9zKINm.js"),__vite__mapDeps([65,1,2,3,4,5,6,8,41,42,43,44,10]))),Pa=ea(()=>Fe(()=>import("./AppHub-BgQkeBzB.js"),__vite__mapDeps([66,1,2,3,4,5,6,8,12,26,44,10]))),Aa=ea(()=>Fe(()=>import("./AdminLayout-Dtk5u8cW.js"),__vite__mapDeps([67,1,2,15,68,5,8,10]))),Ra=ea(()=>Fe(()=>import("./Dashboard-WsuWaFXu.js"),__vite__mapDeps([69,1,2,12,5,10]))),Da=ea(()=>Fe(()=>import("./Articles-DaKKw9OJ.js"),__vite__mapDeps([70,1,2,15,24,47,16,71,12,14,5,49,37,72,10]))),Ia=ea(()=>Fe(()=>import("./Images-DS5lrK4t.js"),__vite__mapDeps([73,1,2,15,12,37,5,14,16,74,56,10]))),Na=ea(()=>Fe(()=>import("./Settings-w7kC2qcq.js"),__vite__mapDeps([75,1,2,12,15,16,68,5,10]))),Ma=ea(()=>Fe(()=>import("./TowRequests-BQeY78t4.js"),__vite__mapDeps([76,1,2,23,18,15,71,37,5,14,24,72,10]))),$a=ea(()=>Fe(()=>import("./CityImagesGenerator-Di80oEhx.js"),__vite__mapDeps([77,1,2,15,16,47,12,5,10]))),La=ea(()=>Fe(()=>import("./CityBatchGenerator-CQlOWBbx.js"),__vite__mapDeps([78,1,2,12,74,24,37,5,49,10]))),qa=ea(()=>Fe(()=>import("./Users-C0b2TBad.js"),__vite__mapDeps([79,1,2,12,24,15,71,5,10]))),Fa=ea(()=>Fe(()=>import("./ScriptGenerator-CXOO1aVF.js"),__vite__mapDeps([80,1,2,23,18,12,37,5,24,10]))),Ua=ea(()=>Fe(()=>import("./ImageGenerator-CxswhTUn.js"),__vite__mapDeps([81,1,2,23,18,12,15,16,37,5,47,10]))),za=ea(()=>Fe(()=>import("./LocksmithRequests-BrOjQjfR.js"),__vite__mapDeps([82,1,2,23,18,15,71,37,5,14,24,72,10]))),Ba=ea(()=>Fe(()=>import("./Reviews-v-hb8qcA.js"),__vite__mapDeps([83,1,2,23,18,15,12,24,37,5,71,72,10]))),Ha=ea(()=>Fe(()=>import("./BatchArticleGenerator-Cv5sI2cQ.js"),__vite__mapDeps([84,1,2,12,74,24,5,10]))),Va=ea(()=>Fe(()=>import("./CityPagesStats-ClyWTvw8.js"),__vite__mapDeps([85,1,2,23,12,71,24,49,5,10]))),Wa=ea(()=>Fe(()=>import("./Avaliar-IDfKgFgi.js"),__vite__mapDeps([86,1,2,3,4,5,6,15,47,16,37,17,12,10]))),Ga=ea(()=>Fe(()=>import("./PortalFuncionario-f0nk4Wx1.js"),__vite__mapDeps([87,1,2,15,16,47,12,37,5,8,4,10]))),Ka=ea(()=>Fe(()=>import("./PoliticaPrivacidade-LWKtVBDQ.js"),__vite__mapDeps([88,1,2,3,4,5,6,8,10]))),Ya=ea(()=>Fe(()=>import("./PoliticaCancelamentoDevolucao-D-ampr2C.js"),__vite__mapDeps([89,1,2,3,4,5,6,8,10]))),Qa=ea(()=>Fe(()=>import("./Status-vKTLYEmj.js"),__vite__mapDeps([90,1,2,3,4,5,6,8,12,24,10]))),Ja=()=>{const{slug:e}=Re();return Z.jsx(Ce,{to:`/guincho/${(null==e?void 0:e.replace(/\/$/,""))||""}`,replace:!0})},Xa=()=>{const{slug:e}=Re();return Z.jsx(Ce,{to:`/reboque/${(null==e?void 0:e.replace(/\/$/,""))||""}`,replace:!0})},Za=()=>{const{slug:e}=Re();return Z.jsx(Ce,{to:`/chaveiro/${(null==e?void 0:e.replace(/\/$/,""))||""}`,replace:!0})},ei=()=>Z.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background animate-fade-in",children:Z.jsxs("div",{className:"w-full max-w-md space-y-4 p-4",children:[Z.jsx(Ys,{className:"h-12 w-3/4 mx-auto"}),Z.jsx(Ys,{className:"h-64 w-full"}),Z.jsx(Ys,{className:"h-8 w-1/2 mx-auto"})]})}),ti=new No,ni=()=>Z.jsx(Os,{children:Z.jsx(Lo,{client:ti,children:Z.jsxs(Fr,{children:[Z.jsx(Hn,{}),Z.jsx(fr,{}),Z.jsx(Xs,{children:Z.jsx(Ws,{children:Z.jsxs(Oe,{children:[Z.jsx(ta,{}),Z.jsx(Ee.Suspense,{fallback:Z.jsx(ei,{}),children:Z.jsxs(Pe,{children:[Z.jsx(Ae,{path:"/",element:Z.jsx(na,{})}),Z.jsx(Ae,{path:"/empresas",element:Z.jsx(oa,{})}),Z.jsx(Ae,{path:"/assistencia-24h",element:Z.jsx(sa,{})}),Z.jsx(Ae,{path:"/rastreamento",element:Z.jsx(aa,{})}),Z.jsx(Ae,{path:"/seguros",element:Z.jsx(ia,{})}),Z.jsx(Ae,{path:"/gestao-frotas",element:Z.jsx(ca,{})}),Z.jsx(Ae,{path:"/gestao-frotas/calculadora-roi",element:Z.jsx(la,{})}),Z.jsx(Ae,{path:"/suporte",element:Z.jsx(da,{})}),Z.jsx(Ae,{path:"/faca-parte",element:Z.jsx(pa,{})}),Z.jsx(Ae,{path:"/blog",element:Z.jsx(ha,{})}),Z.jsx(Ae,{path:"/blog/:slug",element:Z.jsx(fa,{})}),Z.jsx(Ae,{path:"/glossario",element:Z.jsx(ma,{})}),Z.jsx(Ae,{path:"/afiliados",element:Z.jsx(ga,{})}),Z.jsx(Ae,{path:"/franquia",element:Z.jsx(ba,{})}),Z.jsx(Ae,{path:"/franquia/obrigado",element:Z.jsx(xa,{})}),Z.jsx(Ae,{path:"/guincho-24-horas-:slug/*",element:Z.jsx(Ja,{})}),Z.jsx(Ae,{path:"/reboque-24-horas-:slug/*",element:Z.jsx(Xa,{})}),Z.jsx(Ae,{path:"/chaveiro-24-horas-:slug/*",element:Z.jsx(Za,{})}),Z.jsx(Ae,{path:"/carnaval-com-seguranca",element:Z.jsx(Ce,{to:"/blog",replace:!0})}),Z.jsx(Ae,{path:"/o-que-voce-nao-sabe-sobre-seguro-de-vida",element:Z.jsx(Ce,{to:"/blog",replace:!0})}),Z.jsx(Ae,{path:"/praticas-seguradoras-pmes-2025",element:Z.jsx(Ce,{to:"/blog",replace:!0})}),Z.jsx(Ae,{path:"/microfranquias-digitais-gestao-financeira-suporte",element:Z.jsx(Ce,{to:"/blog",replace:!0})}),Z.jsx(Ae,{path:"/tecnologia-suporte-humano-seguranca-2025/*",element:Z.jsx(Ce,{to:"/blog",replace:!0})}),Z.jsx(Ae,{path:"/gestao-riscos-pequenas-empresas-protecao-veicular/*",element:Z.jsx(Ce,{to:"/blog",replace:!0})}),Z.jsx(Ae,{path:"/guincho",element:Z.jsx(ja,{})}),Z.jsx(Ae,{path:"/guincho/:citySlug",element:Z.jsx(_a,{})}),Z.jsx(Ae,{path:"/chaveiro",element:Z.jsx(Ea,{})}),Z.jsx(Ae,{path:"/chaveiro/:citySlug",element:Z.jsx(wa,{})}),Z.jsx(Ae,{path:"/reboque",element:Z.jsx(Sa,{})}),Z.jsx(Ae,{path:"/reboque/:citySlug",element:Z.jsx(ka,{})}),Z.jsx(Ae,{path:"/insta",element:Z.jsx(Ca,{to:"https://www.instagram.com/semprecomigobr_oficial/"})}),Z.jsx(Ae,{path:"/bio",element:Z.jsx(Ta,{})}),Z.jsx(Ae,{path:"/install",element:Z.jsx(va,{})}),Z.jsx(Ae,{path:"/avaliar",element:Z.jsx(Wa,{})}),Z.jsx(Ae,{path:"/portal-funcionario",element:Z.jsx(Ga,{})}),Z.jsx(Ae,{path:"/auth",element:Z.jsx(ya,{})}),Z.jsx(Ae,{path:"/politica-de-privacidade",element:Z.jsx(Ka,{})}),Z.jsx(Ae,{path:"/politica-de-cancelamento-e-devolucao",element:Z.jsx(Ya,{})}),Z.jsx(Ae,{path:"/status",element:Z.jsx(Qa,{})}),Z.jsx(Ae,{path:"/landing-page-app",element:Z.jsx(Oa,{})}),Z.jsx(Ae,{path:"/app",element:Z.jsx(Pa,{})}),Z.jsx(Ae,{path:"/entenda-a-diferenca-de-um-pneu-com-camara-e-um-sem-camara/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-e-sem-camara-qual-a-diferenca/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/seu-pneu-furou/*",element:Z.jsx(Ce,{to:"/assistencia-24h",replace:!0})}),Z.jsx(Ae,{path:"/guincho-joao-pessoa/*",element:Z.jsx(Ce,{to:"/guincho/joao-pessoa-pb",replace:!0})}),Z.jsx(Ae,{path:"/reboque-joao-pessoa/*",element:Z.jsx(Ce,{to:"/guincho/joao-pessoa-pb",replace:!0})}),Z.jsx(Ae,{path:"/chaveiro-joao-pessoa/*",element:Z.jsx(Ce,{to:"/chaveiro/joao-pessoa-pb",replace:!0})}),Z.jsx(Ae,{path:"/chaveiros-joao-pessoa/*",element:Z.jsx(Ce,{to:"/chaveiro/joao-pessoa-pb",replace:!0})}),Z.jsx(Ae,{path:"/chaveiro-natal/*",element:Z.jsx(Ce,{to:"/chaveiro/natal-rn",replace:!0})}),Z.jsx(Ae,{path:"/chaveiros-natal/*",element:Z.jsx(Ce,{to:"/chaveiro/natal-rn",replace:!0})}),Z.jsx(Ae,{path:"/elementor-19904",element:Z.jsx(Ce,{to:"/",replace:!0})}),Z.jsx(Ae,{path:"/elementor-19904/*",element:Z.jsx(Ce,{to:"/",replace:!0})}),Z.jsx(Ae,{path:"/serido",element:Z.jsx(Ce,{to:"/",replace:!0})}),Z.jsx(Ae,{path:"/blog/telemetria-veicular-o-que-e/*",element:Z.jsx(Ce,{to:"/blog/telemetria-veicular-como-funciona",replace:!0})}),Z.jsx(Ae,{path:"/blog/amortecedor-como-saber-se-precisa-trocar/*",element:Z.jsx(Ce,{to:"/blog/amortecedor-ruim-como-saber",replace:!0})}),Z.jsx(Ae,{path:"/blog/seguro-auto-guia-completo-para-proteger-seu-veiculo-em-2025/*",element:Z.jsx(Ce,{to:"/blog/guia-completo-entenda-e-escolha-o-melhor-seguro-auto",replace:!0})}),Z.jsx(Ae,{path:"/blog/rastreamento-veicular-blog/*",element:Z.jsx(Ce,{to:"/blog",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-ou-sem-camara-a-diferenca-comigo/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-e-sem-camara-qual-a-diferenca-comigo/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-ou-sem-camara-qual-a-diferenca-comigo/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-ou-sem-camara-entenda-a-diferenca-comigo/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-ou-sem-camara-entenda-as-diferencas-comigo/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneus-com-ou-sem-camara-entenda-as-diferencas-comigo/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-ou-sem-camara-saiba-a-diferenca-comigo/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-camara-qual-a-diferenca/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-camara-ou-sem-camara-qual-a-diferenca/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsx(Ae,{path:"/blog/pneu-com-ou-sem-camara-qual-a-diferenca/*",element:Z.jsx(Ce,{to:"/blog/qual-a-diferenca-entre-pneu-com-e-sem-camara",replace:!0})}),Z.jsxs(Ae,{path:"/admin",element:Z.jsx(Ks,{requireAdmin:!0,children:Z.jsx(Aa,{})}),children:[Z.jsx(Ae,{index:!0,element:Z.jsx(Ra,{})}),Z.jsx(Ae,{path:"articles",element:Z.jsx(Da,{})}),Z.jsx(Ae,{path:"images",element:Z.jsx(Ia,{})}),Z.jsx(Ae,{path:"city-images-generator",element:Z.jsx($a,{})}),Z.jsx(Ae,{path:"city-batch-generator",element:Z.jsx(La,{})}),Z.jsx(Ae,{path:"settings",element:Z.jsx(Na,{})}),Z.jsx(Ae,{path:"tow-requests",element:Z.jsx(Ma,{})}),Z.jsx(Ae,{path:"locksmith-requests",element:Z.jsx(za,{})}),Z.jsx(Ae,{path:"users",element:Z.jsx(qa,{})}),Z.jsx(Ae,{path:"script-generator",element:Z.jsx(Fa,{})}),Z.jsx(Ae,{path:"image-generator",element:Z.jsx(Ua,{})}),Z.jsx(Ae,{path:"reviews",element:Z.jsx(Ba,{})}),Z.jsx(Ae,{path:"batch-articles",element:Z.jsx(Ha,{})}),Z.jsx(Ae,{path:"city-stats",element:Z.jsx(Va,{})})]}),Z.jsx(Ae,{path:"*",element:Z.jsx(ra,{})})]})}),Z.jsx(Ee.Suspense,{fallback:null,children:Z.jsx(ua,{})})]})})})]})})}),ri="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,oi="8.55.2",si=globalThis;function ai(e,t,n){const r=n||si,o=r.__SENTRY__=r.__SENTRY__||{},s=o[oi]=o[oi]||{};return s[e]||(s[e]=t())}const ii="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ci=["debug","info","warn","error","log","assert","trace"],li={};function ui(e){if(!("console"in si))return e();const t=si.console,n={},r=Object.keys(li);r.forEach(e=>{const r=li[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const di=ai("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ii?ci.forEach(n=>{t[n]=(...t)=>{e&&ui(()=>{si.console[n](`Sentry Logger [${n}]:`,...t)})}}):ci.forEach(e=>{t[e]=()=>{}}),t}),pi="?",hi=/\(error: (.*)\)/,fi=/captureMessage|captureException/;function mi(...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=hi.test(e)?e.replace(hi,"$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(gi(t).function||"")&&t.pop();t.reverse(),fi.test(gi(t).function||"")&&(t.pop(),fi.test(gi(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||gi(t).filename,function:e.function||pi}))}(o.slice(r))}}function gi(e){return e[e.length-1]||{}}const yi="<anonymous>";function vi(e){try{return e&&"function"==typeof e&&e.name||yi}catch(t){return yi}}function bi(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 xi={},_i={};function wi(e,t){xi[e]=xi[e]||[],xi[e].push(t)}function Ei(e,t){if(!_i[e]){_i[e]=!0;try{t()}catch(n){ii&&di.error(`Error while instrumenting ${e}`,n)}}}function ji(e,t){const n=e&&xi[e];if(n)for(const o of n)try{o(t)}catch(r){ii&&di.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${vi(o)}\nError:`,r)}}let Si=null;function ki(){Si=si.onerror,si.onerror=function(e,t,n,r,o){return ji("error",{column:r,error:o,line:n,msg:e,url:t}),!!Si&&Si.apply(this,arguments)},si.onerror.__SENTRY_INSTRUMENTED__=!0}let Ti=null;function Ci(){Ti=si.onunhandledrejection,si.onunhandledrejection=function(e){return ji("unhandledrejection",e),!Ti||Ti.apply(this,arguments)},si.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Oi(){return Pi(si),si}function Pi(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||oi,t[oi]=t[oi]||{}}const Ai=Object.prototype.toString;function Ri(e){switch(Ai.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return zi(e,Error)}}function Di(e,t){return Ai.call(e)===`[object ${t}]`}function Ii(e){return Di(e,"ErrorEvent")}function Ni(e){return Di(e,"DOMError")}function Mi(e){return Di(e,"String")}function $i(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Li(e){return null===e||$i(e)||"object"!=typeof e&&"function"!=typeof e}function qi(e){return Di(e,"Object")}function Fi(e){return"undefined"!=typeof Event&&zi(e,Event)}function Ui(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function zi(e,t){try{return e instanceof t}catch(n){return!1}}function Bi(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const Hi=si;function Vi(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=Wi(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 Wi(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Hi.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&&Mi(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 Gi(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Ki(e,t){if(!Array.isArray(e))return"";const n=[];for(let o=0;o<e.length;o++){const t=e[o];try{Bi(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(r){n.push("[value cannot be serialized]")}}return n.join(t)}function Yi(e,t,n=!1){return!!Mi(e)&&(Di(t,"RegExp")?t.test(e):!!Mi(t)&&(n?e===t:e.includes(t)))}function Qi(e,t=[],n=!1){return t.some(t=>Yi(e,t,n))}function Ji(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&Zi(o,r);try{e[t]=o}catch(s){ii&&di.log(`Failed to replace method "${t}" in object`,e)}}function Xi(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){ii&&di.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Zi(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Xi(e,"__sentry_original__",t)}catch(n){}}function ec(e){return e.__sentry_original__}function tc(e){if(Ri(e))return{message:e.message,name:e.name,stack:e.stack,...rc(e)};if(Fi(e)){const t={type:e.type,target:nc(e.target),currentTarget:nc(e.currentTarget),...rc(e)};return"undefined"!=typeof CustomEvent&&zi(e,CustomEvent)&&(t.detail=e.detail),t}return e}function nc(e){try{return t=e,"undefined"!=typeof Element&&zi(t,Element)?Vi(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function rc(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 oc(e){return sc(e,new Map)}function sc(e,t){if(function(e){if(!qi(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]=sc(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(sc(e,t))}),r}return e}function ac(){return Date.now()/1e3}const ic=function(){const{performance:e}=si;if(!e||!e.now)return ac;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();function cc(){const e=si,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 lc(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function uc(e){const{message:t,event_id:n}=e;if(t)return t;const r=lc(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function dc(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 pc(e,t){const n=lc(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 hc(e){if(function(e){try{return e.__sentry_captured__}catch(t){}}(e))return!0;try{Xi(e,"__sentry_captured__",!0)}catch(t){}return!1}var fc;function mc(e){return new yc(t=>{t(e)})}function gc(e){return new yc((t,n)=>{n(e)})}(()=>{const{performance:e}=si;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"}(fc||(fc={}));class yc{constructor(e){yc.prototype.__init.call(this),yc.prototype.__init2.call(this),yc.prototype.__init3.call(this),yc.prototype.__init4.call(this),this._state=fc.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new yc((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 yc((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(fc.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(fc.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===fc.PENDING&&(Ui(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===fc.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===fc.RESOLVED&&e[1](this._value),this._state===fc.REJECTED&&e[2](this._value),e[0]=!0)})}}}function vc(e){const t=ic(),n={sid:cc(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return oc({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&&bc(n,e),n}function bc(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||ic(),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:cc()),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 xc(){return cc()}function _c(){return cc().substring(16)}function wc(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]=wc(r[o],t[o],n-1));return r}const Ec="_sentrySpan";function jc(e,t){t?Xi(e,Ec,t):delete e[Ec]}function Sc(e){return e[Ec]}class kc{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:xc(),spanId:_c()}}clone(){const e=new kc;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,jc(e,Sc(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&&bc(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 Tc?[t.getScopeData(),t.getRequestSession()]:qi(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,jc(this,void 0),this._attachments=[],this.setPropagationContext({traceId:xc()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:ac(),...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:Sc(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=wc(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:_c(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:cc();if(!this._client)return di.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:cc();if(!this._client)return di.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:cc();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(di.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 Tc=kc;class Cc{constructor(e,t){let n,r;n=e||new Tc,r=t||new Tc,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 Ui(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 Oc(){const e=Pi(Oi());return e.stack=e.stack||new Cc(ai("defaultCurrentScope",()=>new Tc),ai("defaultIsolationScope",()=>new Tc))}function Pc(e){return Oc().withScope(e)}function Ac(e,t){const n=Oc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Rc(e){return Oc().withScope(()=>e(Oc().getIsolationScope()))}function Dc(e){const t=Pi(e);return t.acs?t.acs:{withIsolationScope:Rc,withScope:Pc,withSetScope:Ac,withSetIsolationScope:(e,t)=>Rc(t),getCurrentScope:()=>Oc().getScope(),getIsolationScope:()=>Oc().getIsolationScope()}}function Ic(){return Dc(Oi()).getCurrentScope()}function Nc(){return Dc(Oi()).getIsolationScope()}function Mc(...e){const t=Dc(Oi());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function $c(){return Ic().getClient()}function Lc(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:o}=t;return oc({trace_id:n,span_id:r,parent_span_id:o})}function qc(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[r,o]]of t){(n[r]||(n[r]=[])).push(oc(o))}return n}const Fc=/^sentry-/;function Uc(e){const t=function(e){if(!e||!Mi(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce((e,t)=>{const n=zc(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{});return zc(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Fc)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function zc(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}let Bc=!1;function Hc(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return oc({parent_span_id:r?t:Gc(e).parent_span_id,span_id:r?_c():t,trace_id:n})}function Vc(e){return"number"==typeof e?Wc(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Wc(e.getTime()):ic()}function Wc(e){return e>9999999999?e/1e3:e}function Gc(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 oc({span_id:t,trace_id:n,data:r,description:s,parent_span_id:i,start_timestamp:Vc(o),timestamp:Vc(a)||void 0,status:Kc(c),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:qc(e)})}return{span_id:t,trace_id:n}}catch(t){return{}}}function Kc(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function Yc(e){return e._sentryRootSpan||e}function Qc(){Bc||(ui(()=>{}),Bc=!0)}const Jc="production";function Xc(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=oc({environment:n.environment||Jc,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Zc(e){const t=$c();if(!t)return{};const n=Yc(e),r=n._frozenDsc;if(r)return r;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&Uc(s);if(a)return a;const i=Xc(e.spanContext().traceId,t),c=Gc(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=$c(),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 el=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tl(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 nl(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function rl(e){const t="string"==typeof e?function(e){const t=el.exec(e);if(!t)return void ui(()=>{});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 nl({host:s,pass:o,path:c,projectId:l,port:a,protocol:n,publicKey:r})}(e):nl(e);if(t&&function(e){if(!ii)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(di.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(di.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(di.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(di.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function ol(e,t=100,n=1/0){try{return al("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function sl(e,t=3,n=102400){const r=ol(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?sl(e,t-1,n):r;var o}function al(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(Bi(t))return"[VueViewModel]";if(qi(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: ${vi(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 al("",l.toJSON(),c-1,r,o)}catch(h){}const u=Array.isArray(t)?[]:{};let d=0;const p=tc(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]=al(f,e,c-1,r,o),d++}return a(t),u}function il(e,t=[]){return[e,t]}function cl(e,t){const[n,r]=e;return[n,[...r,t]]}function ll(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function ul(e){return si.__SENTRY__&&si.__SENTRY__.encodePolyfill?si.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function dl(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[ul(r),e]:r.push("string"==typeof e?ul(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(ol(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 pl(e){const t="string"==typeof e.data?ul(e.data):e.data;return[oc({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const hl={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 fl(e){return hl[e]}function ml(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function gl(e,t,n,r){const o=ml(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:tl(r)},...o&&{trace:oc({...o})}}}(e,o,r,t);delete e.sdkProcessingMetadata;return il(a,[[{type:s},e]])}function yl(e,t,n,r=0){return new yc((o,s)=>{const a=e[r];if(null===t||"function"!=typeof a)o(t);else{const i=a({...t},n);ri&&a.id&&null===i&&di.log(`Event processor "${a.id}" dropped event`),Ui(i)?i.then(t=>yl(e,t,n,r+1).then(o)).then(null,s):yl(e,i,n,r+1).then(o).then(null,s)}})}let vl,bl,xl;function _l(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=oc(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=oc(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=oc(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=oc(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:Hc(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Zc(t),...e.sdkProcessingMetadata};const n=Yc(t),r=Gc(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 wl(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;El(e,"extra",n),El(e,"tags",r),El(e,"user",o),El(e,"contexts",s),e.sdkProcessingMetadata=wc(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 El(e,t,n){e[t]=wc(e[t],n,1)}function jl(e,t,n,r,o,s){const{normalizeDepth:a=3,normalizeMaxBreadth:i=1e3}=e,c={...t,event_id:t.event_id||n.event_id||cc(),timestamp:t.timestamp||ac()},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||Jc,!e.release&&r&&(e.release=r);!e.dist&&o&&(e.dist=o);e.message&&(e.message=Gi(e.message,s));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Gi(a.value,s));const i=e.request;i&&i.url&&(i.url=Gi(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=si._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return xl&&n.length===bl||(bl=n.length,xl=n.reduce((n,r)=>{vl||(vl={});const o=vl[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,vl[r]=[a,i];break}}}return n},{})),xl}(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 Tc;return n.update(t),n}(r,n.captureContext);n.mechanism&&pc(c,n.mechanism);const d=o?o.getEventProcessors():[],p=ai("globalScope",()=>new Tc).getScopeData();if(s){wl(p,s.getScopeData())}if(u){wl(p,u.getScopeData())}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),_l(c,p);return yl([...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:ol(e.data,t,n)}}))},...e.user&&{user:ol(e.user,t,n)},...e.contexts&&{contexts:ol(e.contexts,t,n)},...e.extra&&{extra:ol(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=ol(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:ol(e.data,t,n)}})));e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=ol(e.contexts.flags,3,n));return r}(e,a,i):e))}function Sl(e){if(e)return function(e){return e instanceof Tc||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>kl.includes(e))}(e)?{captureContext:e}:e}const kl=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Tl(e,t){return Ic().captureException(e,Sl(t))}function Cl(e,t){return Ic().captureEvent(e,t)}function Ol(e){const t=$c(),n=Nc(),r=Ic(),{release:o,environment:s=Jc}=t&&t.getOptions()||{},{userAgent:a}=si.navigator||{},i=vc({release:o,environment:s,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),c=n.getSession();return c&&"ok"===c.status&&bc(c,{status:"exited"}),Pl(),n.setSession(i),r.setSession(i),i}function Pl(){const e=Nc(),t=Ic(),n=t.getSession()||e.getSession();n&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),bc(e,t)}(n),Al(),e.setSession(),t.setSession()}function Al(){const e=Nc(),t=Ic(),n=$c(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Rl(e=!1){e?Pl():Al()}function Dl(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Il(e,t,n){return t||`${function(e){return`${Dl(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 Nl=[];function Ml(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 $l(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Ll(e,t,n){if(n[t.name])ri&&di.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Nl.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Nl.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){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)}ri&&di.log(`Integration installed: ${t.name}`)}}class ql extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}const Fl="Not capturing exception because it's already been captured.";class Ul{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=rl(e.dsn):ri&&di.warn("No DSN provided, client will not send events."),this._dsn){const t=Il(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])&&ui(()=>{})}captureException(e,t,n){const r=cc();if(hc(e))return ri&&di.log(Fl),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:cc(),...n},s=$i(e)?e:String(e),a=Li(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=cc();if(t&&t.originalException&&hc(t.originalException))return ri&&di.log(Fl),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?ri&&di.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),bc(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))):mc(!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];Ll(this,e,this._integrations),t||$l(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=gl(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of t.attachments||[])n=cl(n,pl(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=ml(n);return il({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:tl(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}`;ri&&di.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=>(ri&&di.error("Error while sending envelope:",e),e)):(ri&&di.error("Transport disabled"),mc({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&Ll(e,t,n)}),n}(this,e),$l(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)&&(bc(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new yc(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=Ic(),r=Nc()){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),jl(o,e,t,n,this,r).then(e=>{if(null===e)return e;e.contexts={trace:Lc(n),...e.contexts};const t=function(e,t){const n=t.getPropagationContext();return n.dsc||Xc(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=>{ri&&(e instanceof ql&&"log"===e.logLevel?di.log(e.message):di.warn(e))})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,s=Bl(e),a=zl(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;ri&&di.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),gc(new ql(`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 ql("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(zl(n)&&o)return o(n,r);if(Bl(n)){if(n.spans&&a){const t=[];for(const r of n.spans){const n=a(r);n?t.push(n):(Qc(),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(Ui(e))return e.then(e=>{if(!qi(e)&&null!==e)throw new ql(n);return e},e=>{throw new ql(`${t} rejected with ${e}`)});if(!qi(e)&&null!==e)throw new ql(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 ql(`${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 ql)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new ql(`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(){ri&&di.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(ri&&di.log("No outcomes to send"));if(!this._dsn)return void(ri&&di.log("No dsn provided, will not send outcomes"));ri&&di.log("Sending outcomes:",e);const t=(n=e,il((r=this._options.tunnel&&tl(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:ac(),discarded_events:n}]]));var n,r;this.sendEnvelope(t)}}function zl(e){return void 0===e.type}function Bl(e){return"transaction"===e.type}function Hl(e,t){!0===t.debug&&(ri?di.enable():ui(()=>{}));Ic().update(t.initialScope);const n=new e(t);return function(e){Ic().setClient(e)}(n),n.init(),n}function Vl(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 gc(new ql("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 yc((n,r)=>{let o=t.length;if(!o)return n(!0);const s=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{mc(e).then(()=>{--o||(clearTimeout(s),n(!0))},r)})})}}}function Wl(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 Gl(e,t,n=Vl(e.bufferSize||64)){let r={};return{send:function(o){const s=[];if(ll(o,(t,n)=>{const o=fl(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=Kl(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(t)}),0===s.length)return mc({});const a=il(o[0],s),i=t=>{ll(a,(n,r)=>{const o=Kl(n,r);e.recordDroppedEvent(t,fl(r),o)})};return n.add(()=>t({body:dl(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&ri&&di.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Wl(r,e),e),e=>{throw i("network_error"),e})).then(e=>e,e=>{if(e instanceof ql)return ri&&di.error("Skipped sending event because buffer is full."),i("queue_overflow"),mc({});throw e})},flush:e=>n.drain(e)}}function Kl(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Yl(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:oi})),version:oi}),e._metadata=o}const Ql=100;function Jl(e,t){const n=$c(),r=Nc();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Ql}=n.getOptions();if(s<=0)return;const a={timestamp:ac(),...e},i=o?ui(()=>o(a,t)):a;null!==i&&(n.emit&&n.emit("beforeAddBreadcrumb",i,t),r.addBreadcrumb(i,s))}let Xl;const Zl=new WeakMap,eu=()=>({name:"FunctionToString",setupOnce(){Xl=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=ec(this),n=Zl.has($c())&&void 0!==t?t:this;return Xl.apply(n,e)}}catch(e){}},setup(e){Zl.set(e,!0)}}),tu=[/^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$/],nu=(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?[]:tu],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 ri&&di.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${uc(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=>Qi(e,t))}(e,t.ignoreErrors))return ri&&di.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${uc(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 ri&&di.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${uc(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Qi(n,t)}(e,t.ignoreTransactions))return ri&&di.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${uc(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=ru(e);return!!n&&Qi(n,t)}(e,t.denyUrls))return ri&&di.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${uc(e)}.\nUrl: ${ru(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=ru(e);return!n||Qi(n,t)}(e,t.allowUrls))return ri&&di.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${uc(e)}.\nUrl: ${ru(e)}`),!0;return!1}(t,s)?null:t}});function ru(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 ri&&di.error(`Cannot extract url for event ${uc(e)}`),null}}function ou(e,t,n=250,r,o,s,a){if(!(s.exception&&s.exception.values&&a&&zi(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=su(e,t,o,a.originalException,r,s.exception.values,i,0),l=n,c.map(e=>(e.value&&(e.value=Gi(e.value,l)),e))))}function su(e,t,n,r,o,s,a,i){if(s.length>=n+1)return s;let c=[...s];if(zi(r[o],Error)){au(a,i);const s=e(t,r[o]),l=c.length;iu(s,o,l,i),c=su(e,t,n,r[o],o,[s,...c],s,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,s)=>{if(zi(r,Error)){au(a,i);const l=e(t,r),u=c.length;iu(l,`errors[${s}]`,u,i),c=su(e,t,n,r,o,[l,...c],l,u)}}),c}function au(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 iu(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 cu(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 lu(){"console"in si&&ci.forEach(function(e){e in si.console&&Ji(si.console,e,function(t){return li[e]=t,function(...t){ji("console",{args:t,level:e});const n=li[e];n&&n.apply(si.console,t)}})})}function uu(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const du=()=>{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(!hu(e,t))return!1;if(!pu(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=fu(t),r=fu(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!hu(e,t))return!1;if(!pu(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return ri&&di.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};function pu(e,t){let n=bi(e),r=bi(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 hu(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 fu(e){return e.exception&&e.exception.values&&e.exception.values[0]}function mu(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const gu=si;function yu(){if(!("fetch"in gu))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function vu(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function bu(e,t){const n="fetch";wi(n,e),Ei(n,()=>function(e,t=!1){if(t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!yu())return!1;if(vu(gu.fetch))return!0;let e=!1;const t=gu.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=vu(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){ii&&di.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}())return;Ji(si,"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:_u(t),method:xu(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:_u(t),method:xu(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:r,url:o},startTimestamp:1e3*ic(),virtualError:n};return ji("fetch",{...s}),e.apply(si,t).then(async e=>(ji("fetch",{...s,endTimestamp:1e3*ic(),response:e}),e),e=>{throw ji("fetch",{...s,endTimestamp:1e3*ic(),error:e}),Ri(e)&&void 0===e.stack&&(e.stack=n.stack,Xi(e,"framesToPop",1)),e})}})}(0,t))}function xu(e,t){return!!e&&"object"==typeof e&&!!e[t]}function _u(e){return"string"==typeof e?e:e?xu(e,"url")?e.url:e.toString?e.toString():"":""}const wu=si;const Eu=si;let ju=0;function Su(){return ju>0}function ku(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(ec(e))return e}catch(r){return e}const n=function(...n){try{const r=n.map(e=>ku(e,t));return e.apply(this,r)}catch(r){throw ju++,setTimeout(()=>{ju--}),Mc(e=>{e.addEventProcessor(e=>(t.mechanism&&(dc(e,void 0),pc(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Tl(r)}),r}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(r){}Zi(n,e),Xi(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(o){}return n}const Tu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Cu(e,t){const n=Au(e,t),r={type:Iu(t),value:Nu(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ou(e,t,n,r){const o=$c(),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__:sl(t,s)};if(a)return{exception:{values:[Cu(e,a)]},extra:i};const c={exception:{values:[{type:Fi(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Lu(t,{isUnhandledRejection:r})}]},extra:i};if(n){const t=Au(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Pu(e,t){return{exception:{values:[Cu(e,t)]}}}function Au(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&Ru.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 Ru=/Minified React error #\d+;/i;function Du(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function Iu(e){const t=e&&e.name;if(!t&&Du(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function Nu(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:Du(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function Mu(e,t,n,r,o){let s;if(Ii(t)&&t.error){return Pu(e,t.error)}if(Ni(t)||Di(t,"DOMException")){const o=t;if("stack"in t)s=Pu(e,t);else{const t=o.name||(Ni(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;s=$u(e,a,n,r),dc(s,a)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}if(Ri(t))return Pu(e,t);if(qi(t)||Fi(t)){return s=Ou(e,t,n,o),pc(s,{synthetic:!0}),s}return s=$u(e,t,n,r),dc(s,`${t}`),pc(s,{synthetic:!0}),s}function $u(e,t,n,r){const o={};if(r&&n){const r=Au(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),pc(o,{synthetic:!0})}if($i(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 Lu(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(tc(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Gi(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:Gi(e,t)}return""}(e),r=t?"promise rejection":"exception";if(Ii(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(Fi(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 qu extends Ul{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};Yl(t,"browser",["browser"],Eu.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Eu.document&&Eu.document.addEventListener("visibilitychange",()=>{"hidden"===Eu.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const o=Mu(e,t,n&&n.syntheticException||void 0,r);return pc(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),mc(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const s=$u(e,t,r&&r.syntheticException||void 0,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),mc(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Tu&&di.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:tl(r)}},s=function(e){return[{type:"user_report"},e]}(e);return il(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 Fu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Uu=si;let zu,Bu,Hu,Vu;function Wu(){if(!Uu.document)return;const e=ji.bind(null,"dom"),t=Gu(e,!0);Uu.document.addEventListener("click",t,!1),Uu.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=Uu[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(Ji(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=Gu(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch(s){}return t.call(this,n,r,o)}}),Ji(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 Gu(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;Xi(n,"_sentryCaptured",!0),r&&!r._sentryId&&Xi(r,"_sentryId",cc());const o="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Bu)return!1;try{if(!e.target||e.target._sentryId!==Hu)return!1}catch(t){}return!0}(n)){e({event:n,name:o,global:t}),Bu=n.type,Hu=r?r._sentryId:void 0}clearTimeout(zu),zu=Uu.setTimeout(()=>{Hu=void 0,Bu=void 0},1e3)}}function Ku(e){const t="history";wi(t,e),Ei(t,Yu)}function Yu(){if(!function(){const e=wu.chrome,t=e&&e.app&&e.app.runtime,n="history"in wu&&!!wu.history.pushState&&!!wu.history.replaceState;return!t&&n}())return;const e=Uu.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Vu,t=String(n);Vu=t;ji("history",{from:e,to:t})}return e.apply(this,t)}}Uu.onpopstate=function(...t){const n=Uu.location.href,r=Vu;Vu=n;if(ji("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(o){}},Ji(Uu.history,"pushState",t),Ji(Uu.history,"replaceState",t)}const Qu={};function Ju(e){Qu[e]=void 0}const Xu="__sentry_xhr_v3__";function Zu(){if(!Uu.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*ic(),s=Mi(n[0])?n[0].toUpperCase():void 0,a=function(e){if(Mi(e))return e;try{return e.toString()}catch(t){}return}(n[1]);if(!s||!a)return e.apply(t,n);t[Xu]={method:s,url:a,request_headers:{}},"POST"===s&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const i=()=>{const e=t[Xu];if(e&&4===t.readyState){try{e.status_code=t.status}catch(n){}ji("xhr",{endTimestamp:1e3*ic(),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[Xu];return s&&Mi(r)&&Mi(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[Xu];if(!r)return e.apply(t,n);void 0!==n[0]&&(r.body=n[0]);return ji("xhr",{startTimestamp:1e3*ic(),xhr:t}),e.apply(t,n)}})}function ed(e,t=function(e){const t=Qu[e];if(t)return t;let n=Uu[e];if(vu(n))return Qu[e]=n.bind(Uu);const r=Uu.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){Fu&&di.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n?Qu[e]=n.bind(Uu):n}("fetch")){let n=0,r=0;return Gl(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 Ju("fetch"),gc("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 Ju("fetch"),n-=s,r--,gc(i)}})}function td(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?pi:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const nd=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rd=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,od=/\((\S*)(?::(\d+))(?::(\d+))\)/,sd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ad=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,id=mi(...[[30,e=>{const t=nd.exec(e);if(t){const[,e,n,r]=t;return td(e,pi,+n,+r)}const n=rd.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=od.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=cd(n[1]||pi,n[2]);return td(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=sd.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=ad.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]||pi;return[n,e]=cd(n,e),td(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),cd=(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]:pi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ld=1024,ud=(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";wi(t,e),Ei(t,lu)}(function(e){return function(t){if($c()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:uu(t.level),message:Ki(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${Ki(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Jl(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if($c()!==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>ld&&(Tu&&di.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=ld),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=Vi(t,{keyAttrs:s,maxStringLength:a}),o=function(e){if(!Hi.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}),Jl(i,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),wi("dom",n),Ei("dom",Wu)),t.xhr&&function(e){wi("xhr",e),Ei("xhr",Zu)}(function(e){return function(t){if($c()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[Xu];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};Jl({category:"xhr",data:l,type:"http",level:mu(i)},u)}}(e)),t.fetch&&bu(function(e){return function(t){if($c()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){Jl({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};Jl({category:"fetch",data:o,type:"http",level:mu(o.status_code)},s)}}}(e)),t.history&&Ku(function(e){return function(t){if($c()!==e)return;let n=t.from,r=t.to;const o=cu(Eu.location.href);let s=n?cu(n):void 0;const a=cu(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),Jl({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){$c()===e&&Jl({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:uc(t)},{event:t})}}(e))}}};const dd=["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"],pd=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&Ji(Eu,"setTimeout",hd),t.setInterval&&Ji(Eu,"setInterval",hd),t.requestAnimationFrame&&Ji(Eu,"requestAnimationFrame",fd),t.XMLHttpRequest&&"XMLHttpRequest"in Eu&&Ji(XMLHttpRequest.prototype,"send",md);const e=t.eventTarget;if(e){(Array.isArray(e)?e:dd).forEach(gd)}}}};function hd(e){return function(...t){const n=t[0];return t[0]=ku(n,{mechanism:{data:{function:vi(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function fd(e){return function(t){return e.apply(this,[ku(t,{mechanism:{data:{function:"requestAnimationFrame",handler:vi(e)},handled:!1,type:"instrument"}})])}}function md(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&Ji(n,e,function(t){const n={mechanism:{data:{function:e,handler:vi(t)},handled:!1,type:"instrument"}},r=ec(t);return r&&(n.mechanism.data.handler=vi(r)),ku(t,n)})}),e.apply(this,t)}}function gd(e){const t=Eu[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Ji(n,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=ku(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:vi(r),target:e},handled:!1,type:"instrument"}}))}catch(s){}return t.apply(this,[n,ku(r,{mechanism:{data:{function:"addEventListener",handler:vi(r),target:e},handled:!1,type:"instrument"}}),o])}}),Ji(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 yd=()=>({name:"BrowserSession",setupOnce(){void 0!==Eu.document?(Ol({ignoreDuration:!0}),Rl(),Ku(({from:e,to:t})=>{void 0!==e&&e!==t&&(Ol({ignoreDuration:!0}),Rl())})):Tu&&di.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),vd=(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";wi(t,e),Ei(t,ki)}(t=>{const{stackParser:n,attachStacktrace:r}=xd();if($c()!==e||Su())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=Mi(t)&&t.length>0?t:function(){try{return Hi.document.location.href}catch(e){return""}}();0===c.length&&c.push({colno:l,filename:d,function:pi,in_app:!0,lineno:u});return e}(Mu(n,c||o,void 0,r,!1),s,a,i);l.level="error",Cl(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(e),bd("onerror")),t.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";wi(t,e),Ei(t,Ci)}(t=>{const{stackParser:n,attachStacktrace:r}=xd();if($c()!==e||Su())return;const o=function(e){if(Li(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=Li(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Mu(n,o,void 0,r,!0);s.level="error",Cl(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),bd("onunhandledrejection"))}}};function bd(e){Tu&&di.log(`Global Handler attached: ${e}`)}function xd(){const e=$c();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const _d=()=>({name:"HttpContext",preprocessEvent(e){if(!Eu.navigator&&!Eu.location&&!Eu.document)return;const t=e.request&&e.request.url||Eu.location&&Eu.location.href,{referrer:n}=Eu.document||{},{userAgent:r}=Eu.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}}),wd=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const s=o.getOptions();ou(Cu,s.stackParser,s.maxValueLength,n,t,e,r)}}};function Ed(e){const t=[nu(),eu(),pd(),ud(),vd(),wd(),du(),_d()];return!1!==e.autoSessionTracking&&t.push(yd()),t}function jd(e={}){const t=function(e={}){const t={defaultIntegrations:Ed(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Eu.SENTRY_RELEASE&&Eu.SENTRY_RELEASE.id?Eu.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!==Eu.window&&Eu;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=Eu.location&&Eu.location.href||"",o=!!n&&Eu===Eu.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 ui(()=>{});Tu&&(yu()||di.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||id,Array.isArray(r)?mi(...r):r),integrations:Ml(t),transport:t.transport||ed};var r;return Hl(qu,n)}function Sd(e={}){if(!Eu.document)return void(Tu&&di.error("Global document not defined in showReportDialog call"));const t=Ic(),n=t.getClient(),r=n&&n.getDsn();if(!r)return void(Tu&&di.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=Nc().lastEventId();t&&(e.eventId=t)}const o=Eu.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(e,t){const n=rl(e);if(!n)return"";const r=`${Dl(n)}embed/error-page/`;let o=`dsn=${tl(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{Eu.removeEventListener("message",e)}};Eu.addEventListener("message",e)}const a=Eu.document.head||Eu.document.body;a?a.appendChild(o):Tu&&di.error("Not injecting report dialog. No injection point found in HTML")}function kd(e){const t={...e};var n,r;return Yl(t,"react"),n="react",r={version:Ee.version},Nc().setContext(n,r),jd(t)}function Td(e,{componentStack:t},n){if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(Ee.version)&&Ri(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 Tl(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Cd={exports:{}},Od={},Pd="function"==typeof Symbol&&Symbol.for,Ad=Pd?Symbol.for("react.element"):60103,Rd=Pd?Symbol.for("react.portal"):60106,Dd=Pd?Symbol.for("react.fragment"):60107,Id=Pd?Symbol.for("react.strict_mode"):60108,Nd=Pd?Symbol.for("react.profiler"):60114,Md=Pd?Symbol.for("react.provider"):60109,$d=Pd?Symbol.for("react.context"):60110,Ld=Pd?Symbol.for("react.async_mode"):60111,qd=Pd?Symbol.for("react.concurrent_mode"):60111,Fd=Pd?Symbol.for("react.forward_ref"):60112,Ud=Pd?Symbol.for("react.suspense"):60113,zd=Pd?Symbol.for("react.suspense_list"):60120,Bd=Pd?Symbol.for("react.memo"):60115,Hd=Pd?Symbol.for("react.lazy"):60116,Vd=Pd?Symbol.for("react.block"):60121,Wd=Pd?Symbol.for("react.fundamental"):60117,Gd=Pd?Symbol.for("react.responder"):60118,Kd=Pd?Symbol.for("react.scope"):60119;function Yd(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ad:switch(e=e.type){case Ld:case qd:case Dd:case Nd:case Id:case Ud:return e;default:switch(e=e&&e.$$typeof){case $d:case Fd:case Hd:case Bd:case Md:return e;default:return t}}case Rd:return t}}}function Qd(e){return Yd(e)===qd}Od.AsyncMode=Ld,Od.ConcurrentMode=qd,Od.ContextConsumer=$d,Od.ContextProvider=Md,Od.Element=Ad,Od.ForwardRef=Fd,Od.Fragment=Dd,Od.Lazy=Hd,Od.Memo=Bd,Od.Portal=Rd,Od.Profiler=Nd,Od.StrictMode=Id,Od.Suspense=Ud,Od.isAsyncMode=function(e){return Qd(e)||Yd(e)===Ld},Od.isConcurrentMode=Qd,Od.isContextConsumer=function(e){return Yd(e)===$d},Od.isContextProvider=function(e){return Yd(e)===Md},Od.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ad},Od.isForwardRef=function(e){return Yd(e)===Fd},Od.isFragment=function(e){return Yd(e)===Dd},Od.isLazy=function(e){return Yd(e)===Hd},Od.isMemo=function(e){return Yd(e)===Bd},Od.isPortal=function(e){return Yd(e)===Rd},Od.isProfiler=function(e){return Yd(e)===Nd},Od.isStrictMode=function(e){return Yd(e)===Id},Od.isSuspense=function(e){return Yd(e)===Ud},Od.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Dd||e===qd||e===Nd||e===Id||e===Ud||e===zd||"object"==typeof e&&null!==e&&(e.$$typeof===Hd||e.$$typeof===Bd||e.$$typeof===Md||e.$$typeof===$d||e.$$typeof===Fd||e.$$typeof===Wd||e.$$typeof===Gd||e.$$typeof===Kd||e.$$typeof===Vd)},Od.typeOf=Yd,Cd.exports=Od;var Jd=Cd.exports,Xd={};Xd[Jd.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xd[Jd.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};const Zd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ep={componentStack:null,error:null,eventId:null};class tp extends Ee.Component{constructor(e){super(e),tp.prototype.__init.call(this),this.state=ep,this._openFallbackReportDialog=!0;const t=$c();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&Sd({...e.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;Mc(c=>{o&&o(c,e,r);const l=null!=this.props.handled?this.props.handled:!!this.props.fallback,u=Td(e,t,{mechanism:{handled:l}});s&&s(e,r,u),a&&(this._lastEventId=u,this._openFallbackReportDialog&&Sd({...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(ep)}}render(){const{fallback:e,children:t}=this.props,n=this.state;if(n.error){let t;return t="function"==typeof e?Ee.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):e,Ee.isValidElement(t)?t:(e&&Zd&&di.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}const np=["password","senha","token","authorization","cookie","secret","cpf","cnpj","cartao","card","cvv","cvc","numerocartao","creditcard","card_number","pan"];function rp(e){if(Array.isArray(e))return e.map(rp);if(e&&"object"==typeof e){const t={};for(const[n,r]of Object.entries(e))t[n]=np.some(e=>n.toLowerCase().includes(e))?"[Filtered]":rp(r);return t}return e}kd({dsn:"https://4856e8e76b524f4eb99ca66a26d024db@erros.rnrastreamento.com/12",environment:"production",release:void 0,tracesSampleRate:0,sendDefaultPii:!1,beforeSend(e){var t;return(null==(t=e.request)?void 0:t.data)&&(e.request.data=rp(e.request.data)),e.extra&&(e.extra=rp(e.extra)),e}});"undefined"!=typeof navigator&&(/HeadlessChrome|prerender/i.test(navigator.userAgent)||!0===navigator.webdriver)||function(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:s,onRegisterError:a}=e;let i,c;c=async function(){if("serviceWorker"in navigator){if(i=await Fe(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==a||a(e)}),!i)return;i.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),i.addEventListener("installed",e=>{e.isUpdate||null==r||r()}),i.register({immediate:t}).then(e=>{s?s("/sw.js",e):null==o||o(e)}).catch(e=>{null==a||a(e)})}}()}({immediate:!0});B(document.getElementById("root")).render(Z.jsx(tp,{fallback:Z.jsxs("div",{style:{padding:24,textAlign:"center",fontFamily:"sans-serif"},children:[Z.jsx("h2",{children:"Ops, algo deu errado nesta tela."}),Z.jsx("p",{children:"Já fomos avisados e estamos verificando. Tente recarregar a página."})]}),children:Z.jsx(ni,{})})),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.dispatchEvent(new Event("render-event"))})});export{io as A,Js as B,sr as C,Qs as D,qt as E,Hs as F,zs as H,Ys as S,Fr as T,Qe as V,Fe as _,Ur as a,zr as b,Br as c,Gs as d,Mn as e,zt as f,Hr as g,ro as h,eo as i,Oo as j,$o as k,ea as l,Wr as m,Eo as n,ho as o,go as p,Yr as q,Qr as r,Bs as s,Ke as t,Ye as u,Vr as v,Gr as w,Kr as x,fo as y,ko as z};