var gp=l=>{throw TypeError(l)};var cf=(l,i,s)=>i.has(l)||gp("Cannot "+s);var E=(l,i,s)=>(cf(l,i,"read from private field"),s?s.call(l):i.get(l)),oe=(l,i,s)=>i.has(l)?gp("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(l):i.set(l,s),te=(l,i,s,u)=>(cf(l,i,"write to private field"),u?u.call(l,s):i.set(l,s),s),we=(l,i,s)=>(cf(l,i,"access private method"),s);var Nu=(l,i,s,u)=>({set _(o){te(l,i,o,s)},get _(){return E(l,i,u)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function s(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(o){if(o.ep)return;o.ep=!0;const d=s(o);fetch(o.href,d)}})();function zv(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var of={exports:{}},ks={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var xp;function ub(){if(xp)return ks;xp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(u,o,d){var m=null;if(d!==void 0&&(m=""+d),o.key!==void 0&&(m=""+o.key),"key"in o){d={};for(var p in o)p!=="key"&&(d[p]=o[p])}else d=o;return o=d.ref,{$$typeof:l,type:u,key:m,ref:o!==void 0?o:null,props:d}}return ks.Fragment=i,ks.jsx=s,ks.jsxs=s,ks}var bp;function cb(){return bp||(bp=1,of.exports=ub()),of.exports}var f=cb();const Ol=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ha=globalThis,Vs="10.46.0";function Bu(){return Kf(Ha),Ha}function Kf(l){const i=l.__SENTRY__=l.__SENTRY__||{};return i.version=i.version||Vs,i[Vs]=i[Vs]||{}}function Zf(l,i,s=Ha){const u=s.__SENTRY__=s.__SENTRY__||{},o=u[Vs]=u[Vs]||{};return o[l]||(o[l]=i())}const ob="Sentry Logger ",Sp={};function Uv(l){if(!("console"in Ha))return l();const i=Ha.console,s={},u=Object.keys(Sp);u.forEach(o=>{const d=Sp[o];s[o]=i[o],i[o]=d});try{return l()}finally{u.forEach(o=>{i[o]=s[o]})}}function fb(){Jf().enabled=!0}function db(){Jf().enabled=!1}function kv(){return Jf().enabled}function hb(...l){Ff("log",...l)}function mb(...l){Ff("warn",...l)}function yb(...l){Ff("error",...l)}function Ff(l,...i){Ol&&kv()&&Uv(()=>{Ha.console[l](`${ob}[${l}]:`,...i)})}function Jf(){return Ol?Zf("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Na={enable:fb,disable:db,isEnabled:kv,log:hb,warn:mb,error:yb},Lv=Object.prototype.toString;function pb(l){switch(Lv.call(l)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return bb(l,Error)}}function vb(l,i){return Lv.call(l)===`[object ${i}]`}function gb(l){return vb(l,"Object")}function xb(l){return!!(l!=null&&l.then&&typeof l.then=="function")}function bb(l,i){try{return l instanceof i}catch{return!1}}function Sb(l,i,s){try{Object.defineProperty(l,i,{value:s,writable:!0,configurable:!0})}catch{Ol&&Na.log(`Failed to add non-enumerable property "${i}" to object`,l)}}let bi;function Qu(l){if(bi!==void 0)return bi?bi(l):l();const i=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),s=Ha;return i in s&&typeof s[i]=="function"?(bi=s[i],bi(l)):(bi=null,l())}function _f(){return Qu(()=>Math.random())}function Eb(){return Qu(()=>Date.now())}function _b(l,i=0){return typeof l!="string"||i===0||l.length<=i?l:`${l.slice(0,i)}...`}function Nb(){const l=Ha;return l.crypto||l.msCrypto}let ff;function jb(){return _f()*16}function Ys(l=Nb()){try{if(l!=null&&l.randomUUID)return Qu(()=>l.randomUUID()).replace(/-/g,"")}catch{}return ff||(ff="10000000100040008000"+1e11),ff.replace(/[018]/g,i=>(i^(jb()&15)>>i/4).toString(16))}const Hv=1e3;function qv(){return Eb()/Hv}function wb(){const{performance:l}=Ha;if(!(l!=null&&l.now)||!l.timeOrigin)return qv;const i=l.timeOrigin;return()=>(i+Qu(()=>l.now()))/Hv}let Ep;function Tb(){return(Ep??(Ep=wb()))()}function Ab(l,i={}){if(i.user&&(!l.ipAddress&&i.user.ip_address&&(l.ipAddress=i.user.ip_address),!l.did&&!i.did&&(l.did=i.user.id||i.user.email||i.user.username)),l.timestamp=i.timestamp||Tb(),i.abnormal_mechanism&&(l.abnormal_mechanism=i.abnormal_mechanism),i.ignoreDuration&&(l.ignoreDuration=i.ignoreDuration),i.sid&&(l.sid=i.sid.length===32?i.sid:Ys()),i.init!==void 0&&(l.init=i.init),!l.did&&i.did&&(l.did=`${i.did}`),typeof i.started=="number"&&(l.started=i.started),l.ignoreDuration)l.duration=void 0;else if(typeof i.duration=="number")l.duration=i.duration;else{const s=l.timestamp-l.started;l.duration=s>=0?s:0}i.release&&(l.release=i.release),i.environment&&(l.environment=i.environment),!l.ipAddress&&i.ipAddress&&(l.ipAddress=i.ipAddress),!l.userAgent&&i.userAgent&&(l.userAgent=i.userAgent),typeof i.errors=="number"&&(l.errors=i.errors),i.status&&(l.status=i.status)}function Bv(l,i,s=2){if(!i||typeof i!="object"||s<=0)return i;if(l&&Object.keys(i).length===0)return l;const u={...l};for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&(u[o]=Bv(u[o],i[o],s-1));return u}function _p(){return Ys()}const Nf="_sentrySpan";function Np(l,i){i?Sb(l,Nf,i):delete l[Nf]}function jp(l){return l[Nf]}const Rb=100;class $n{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:_p(),sampleRand:_f()}}clone(){const i=new $n;return i._breadcrumbs=[...this._breadcrumbs],i._tags={...this._tags},i._attributes={...this._attributes},i._extra={...this._extra},i._contexts={...this._contexts},this._contexts.flags&&(i._contexts.flags={values:[...this._contexts.flags.values]}),i._user=this._user,i._level=this._level,i._session=this._session,i._transactionName=this._transactionName,i._fingerprint=this._fingerprint,i._eventProcessors=[...this._eventProcessors],i._attachments=[...this._attachments],i._sdkProcessingMetadata={...this._sdkProcessingMetadata},i._propagationContext={...this._propagationContext},i._client=this._client,i._lastEventId=this._lastEventId,i._conversationId=this._conversationId,Np(i,jp(this)),i}setClient(i){this._client=i}setLastEventId(i){this._lastEventId=i}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(i){this._scopeListeners.push(i)}addEventProcessor(i){return this._eventProcessors.push(i),this}setUser(i){return this._user=i||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ab(this._session,{user:i}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(i){return this._conversationId=i||void 0,this._notifyScopeListeners(),this}setTags(i){return this._tags={...this._tags,...i},this._notifyScopeListeners(),this}setTag(i,s){return this.setTags({[i]:s})}setAttributes(i){return this._attributes={...this._attributes,...i},this._notifyScopeListeners(),this}setAttribute(i,s){return this.setAttributes({[i]:s})}removeAttribute(i){return i in this._attributes&&(delete this._attributes[i],this._notifyScopeListeners()),this}setExtras(i){return this._extra={...this._extra,...i},this._notifyScopeListeners(),this}setExtra(i,s){return this._extra={...this._extra,[i]:s},this._notifyScopeListeners(),this}setFingerprint(i){return this._fingerprint=i,this._notifyScopeListeners(),this}setLevel(i){return this._level=i,this._notifyScopeListeners(),this}setTransactionName(i){return this._transactionName=i,this._notifyScopeListeners(),this}setContext(i,s){return s===null?delete this._contexts[i]:this._contexts[i]=s,this._notifyScopeListeners(),this}setSession(i){return i?this._session=i:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(i){if(!i)return this;const s=typeof i=="function"?i(this):i,u=s instanceof $n?s.getScopeData():gb(s)?i:void 0,{tags:o,attributes:d,extra:m,user:p,contexts:x,level:v,fingerprint:b=[],propagationContext:g,conversationId:N}=u||{};return this._tags={...this._tags,...o},this._attributes={...this._attributes,...d},this._extra={...this._extra,...m},this._contexts={...this._contexts,...x},p&&Object.keys(p).length&&(this._user=p),v&&(this._level=v),b.length&&(this._fingerprint=b),g&&(this._propagationContext=g),N&&(this._conversationId=N),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Np(this,void 0),this._attachments=[],this.setPropagationContext({traceId:_p(),sampleRand:_f()}),this._notifyScopeListeners(),this}addBreadcrumb(i,s){var d;const u=typeof s=="number"?s:Rb;if(u<=0)return this;const o={timestamp:qv(),...i,message:i.message?_b(i.message,2048):i.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>u&&(this._breadcrumbs=this._breadcrumbs.slice(-u),(d=this._client)==null||d.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(i){return this._attachments.push(i),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:jp(this),conversationId:this._conversationId}}setSDKProcessingMetadata(i){return this._sdkProcessingMetadata=Bv(this._sdkProcessingMetadata,i,2),this}setPropagationContext(i){return this._propagationContext=i,this}getPropagationContext(){return this._propagationContext}captureException(i,s){const u=(s==null?void 0:s.event_id)||Ys();if(!this._client)return Ol&&Na.warn("No client configured on scope - will not capture exception!"),u;const o=new Error("Sentry syntheticException");return this._client.captureException(i,{originalException:i,syntheticException:o,...s,event_id:u},this),u}captureMessage(i,s,u){const o=(u==null?void 0:u.event_id)||Ys();if(!this._client)return Ol&&Na.warn("No client configured on scope - will not capture message!"),o;const d=(u==null?void 0:u.syntheticException)??new Error(i);return this._client.captureMessage(i,s,{originalException:i,syntheticException:d,...u,event_id:o},this),o}captureEvent(i,s){const u=i.event_id||(s==null?void 0:s.event_id)||Ys();return this._client?(this._client.captureEvent(i,{...s,event_id:u},this),u):(Ol&&Na.warn("No client configured on scope - will not capture event!"),u)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(i=>{i(this)}),this._notifyingListeners=!1)}}function Cb(){return Zf("defaultCurrentScope",()=>new $n)}function Ob(){return Zf("defaultIsolationScope",()=>new $n)}const wp=l=>l instanceof Promise&&!l[Qv],Qv=Symbol("chained PromiseLike"),Mb=(l,i,s)=>{const u=l.then(o=>(i(o),o),o=>{throw s(o),o});return wp(u)&&wp(l)?u:Db(l,u)},Db=(l,i)=>{let s=!1;for(const u in l){if(u in i)continue;s=!0;const o=l[u];typeof o=="function"?Object.defineProperty(i,u,{value:(...d)=>o.apply(l,d),enumerable:!0,configurable:!0,writable:!0}):i[u]=o}return s&&Object.assign(i,{[Qv]:!0}),i};class zb{constructor(i,s){let u;i?u=i:u=new $n;let o;s?o=s:o=new $n,this._stack=[{scope:u}],this._isolationScope=o}withScope(i){const s=this._pushScope();let u;try{u=i(s)}catch(o){throw this._popScope(),o}return xb(u)?Mb(u,()=>this._popScope(),()=>this._popScope()):(this._popScope(),u)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const i=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:i}),i}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Li(){const l=Bu(),i=Kf(l);return i.stack=i.stack||new zb(Cb(),Ob())}function Ub(l){return Li().withScope(l)}function kb(l,i){const s=Li();return s.withScope(()=>(s.getStackTop().scope=l,i(l)))}function Tp(l){return Li().withScope(()=>l(Li().getIsolationScope()))}function Lb(){return{withIsolationScope:Tp,withScope:Ub,withSetScope:kb,withSetIsolationScope:(l,i)=>Tp(i),getCurrentScope:()=>Li().getScope(),getIsolationScope:()=>Li().getIsolationScope()}}function $f(l){const i=Kf(l);return i.acs?i.acs:Lb()}function Wf(){const l=Bu();return $f(l).getCurrentScope()}function Hb(){const l=Bu();return $f(l).getIsolationScope()}function Vv(...l){const i=Bu(),s=$f(i);if(l.length===2){const[u,o]=l;return u?s.withSetScope(u,o):s.withScope(o)}return s.withScope(l[0])}function Yv(){return Wf().getClient()}const qb=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Bb(l){return l==="http"||l==="https"}function Qb(l,i=!1){const{host:s,path:u,pass:o,port:d,projectId:m,protocol:p,publicKey:x}=l;return`${p}://${x}${i&&o?`:${o}`:""}@${s}${d?`:${d}`:""}/${u&&`${u}/`}${m}`}function Vb(l){const i=qb.exec(l);if(!i){Uv(()=>{console.error(`Invalid Sentry Dsn: ${l}`)});return}const[s,u,o="",d="",m="",p=""]=i.slice(1);let x="",v=p;const b=v.split("/");if(b.length>1&&(x=b.slice(0,-1).join("/"),v=b.pop()),v){const g=v.match(/^\d+/);g&&(v=g[0])}return Gv({host:d,pass:o,path:x,projectId:v,port:m,protocol:s,publicKey:u})}function Gv(l){return{protocol:l.protocol,publicKey:l.publicKey||"",pass:l.pass||"",host:l.host,port:l.port||"",path:l.path||"",projectId:l.projectId}}function Yb(l){if(!Ol)return!0;const{port:i,projectId:s,protocol:u}=l;return["protocol","publicKey","host","projectId"].find(m=>l[m]?!1:(Na.error(`Invalid Sentry Dsn: ${m} missing`),!0))?!1:s.match(/^\d+$/)?Bb(u)?i&&isNaN(parseInt(i,10))?(Na.error(`Invalid Sentry Dsn: Invalid port ${i}`),!1):!0:(Na.error(`Invalid Sentry Dsn: Invalid protocol ${u}`),!1):(Na.error(`Invalid Sentry Dsn: Invalid projectId ${s}`),!1)}function Gb(l){const i=typeof l=="string"?Vb(l):Gv(l);if(!(!i||!Yb(i)))return i}function Xb(l){if(l)return Kb(l)?{captureContext:l}:Fb(l)?{captureContext:l}:l}function Kb(l){return l instanceof $n||typeof l=="function"}const Zb=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Fb(l){return Object.keys(l).some(i=>Zb.includes(i))}function Jb(l,i){return Wf().captureException(l,Xb(i))}function $b(){return Hb().lastEventId()}function Wb(l){const i=l.protocol?`${l.protocol}:`:"",s=l.port?`:${l.port}`:"";return`${i}//${l.host}${s}${l.path?`/${l.path}`:""}/api/`}function Ib(l,i){const s=Gb(l);if(!s)return"";const u=`${Wb(s)}embed/error-page/`;let o=`dsn=${Qb(s)}`;for(const d in i)if(d!=="dsn"&&d!=="onClose")if(d==="user"){const m=i.user;if(!m)continue;m.name&&(o+=`&name=${encodeURIComponent(m.name)}`),m.email&&(o+=`&email=${encodeURIComponent(m.email)}`)}else o+=`&${encodeURIComponent(d)}=${encodeURIComponent(i[d])}`;return`${u}?${o}`}const ju=Ha,Ap=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Rp(l={}){const i=ju.document,s=(i==null?void 0:i.head)||(i==null?void 0:i.body);if(!s){Ap&&Na.error("[showReportDialog] Global document not defined");return}const u=Wf(),o=Yv(),d=o==null?void 0:o.getDsn();if(!d){Ap&&Na.error("[showReportDialog] DSN not configured");return}const m={...l,user:{...u.getUser(),...l.user},eventId:l.eventId||$b()},p=ju.document.createElement("script");p.async=!0,p.crossOrigin="anonymous",p.src=Ib(d,m);const{onLoad:x,onClose:v}=m;if(x&&(p.onload=x),v){const b=g=>{if(g.data==="__sentry_reportdialog_closed__")try{v()}finally{ju.removeEventListener("message",b)}};ju.addEventListener("message",b)}s.appendChild(p)}var df={exports:{}},be={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Cp;function Pb(){if(Cp)return be;Cp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),N=Symbol.iterator;function T(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,H={};function G(w,Y,I){this.props=w,this.context=Y,this.refs=H,this.updater=I||B}G.prototype.isReactComponent={},G.prototype.setState=function(w,Y){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,Y,"setState")},G.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function Q(){}Q.prototype=G.prototype;function K(w,Y,I){this.props=w,this.context=Y,this.refs=H,this.updater=I||B}var Z=K.prototype=new Q;Z.constructor=K,U(Z,G.prototype),Z.isPureReactComponent=!0;var ee=Array.isArray;function ve(){}var re={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function xe(w,Y,I){var W=I.ref;return{$$typeof:l,type:w,key:Y,ref:W!==void 0?W:null,props:I}}function Ae(w,Y){return xe(w.type,Y,w.props)}function ze(w){return typeof w=="object"&&w!==null&&w.$$typeof===l}function fe(w){var Y={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(I){return Y[I]})}var he=/\/+/g;function Ne(w,Y){return typeof w=="object"&&w!==null&&w.key!=null?fe(""+w.key):Y.toString(36)}function pe(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ve,ve):(w.status="pending",w.then(function(Y){w.status==="pending"&&(w.status="fulfilled",w.value=Y)},function(Y){w.status==="pending"&&(w.status="rejected",w.reason=Y)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function L(w,Y,I,W,ae){var ge=typeof w;(ge==="undefined"||ge==="boolean")&&(w=null);var Re=!1;if(w===null)Re=!0;else switch(ge){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(w.$$typeof){case l:case i:Re=!0;break;case b:return Re=w._init,L(Re(w._payload),Y,I,W,ae)}}if(Re)return ae=ae(w),Re=W===""?"."+Ne(w,0):W,ee(ae)?(I="",Re!=null&&(I=Re.replace(he,"$&/")+"/"),L(ae,Y,I,"",function(dn){return dn})):ae!=null&&(ze(ae)&&(ae=Ae(ae,I+(ae.key==null||w&&w.key===ae.key?"":(""+ae.key).replace(he,"$&/")+"/")+Re)),Y.push(ae)),1;Re=0;var tt=W===""?".":W+":";if(ee(w))for(var Je=0;Je=17}function t1(l,i){const s=new WeakSet;function u(o,d){if(!s.has(o)){if(o.cause)return s.add(o),u(o.cause,d);o.cause=d}}u(l,i)}function a1(l,{componentStack:i},s){if(e1(A.version)&&pb(l)&&i){const u=new Error(l.message);u.name=`React ErrorBoundary ${l.name}`,u.stack=i,t1(l,u)}return Vv(u=>(u.setContext("react",{componentStack:i}),Jb(l,s)))}const n1=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,hf={componentStack:null,error:null,eventId:null};class l1 extends A.Component{constructor(i){super(i),this.state=hf,this._openFallbackReportDialog=!0;const s=Yv();s&&i.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=s.on("afterSendEvent",u=>{!u.type&&this._lastEventId&&u.event_id===this._lastEventId&&Rp({...i.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(i,s){const{componentStack:u}=s,{beforeCapture:o,onError:d,showDialog:m,dialogOptions:p}=this.props;Vv(x=>{o&&o(x,i,u);const v=this.props.handled!=null?this.props.handled:!!this.props.fallback,b=a1(i,s,{mechanism:{handled:v,type:"auto.function.react.error_boundary"}});d&&d(i,u,b),m&&(this._lastEventId=b,this._openFallbackReportDialog&&Rp({...p,eventId:b})),this.setState({error:i,componentStack:u,eventId:b})})}componentDidMount(){const{onMount:i}=this.props;i&&i()}componentWillUnmount(){const{error:i,componentStack:s,eventId:u}=this.state,{onUnmount:o}=this.props;o&&(this.state===hf?o(null,null,null):o(i,s,u)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:i}=this.props,{error:s,componentStack:u,eventId:o}=this.state;i&&i(s,u,o),this.setState(hf)}render(){const{fallback:i,children:s}=this.props,u=this.state;if(u.componentStack===null)return typeof s=="function"?s():s;const o=typeof i=="function"?A.createElement(i,{error:u.error,componentStack:u.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:u.eventId}):i;return A.isValidElement(o)?o:(i&&n1&&Na.warn("fallback did not produce a valid ReactElement"),null)}}var mf={exports:{}},Ls={},yf={exports:{}},pf={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mp;function i1(){return Mp||(Mp=1,(function(l){function i(L,F){var ie=L.length;L.push(F);e:for(;0>>1,me=L[Se];if(0>>1;Seo(I,ie))Wo(ae,I)?(L[Se]=ae,L[W]=ie,Se=W):(L[Se]=I,L[Y]=ie,Se=Y);else if(Wo(ae,ie))L[Se]=ae,L[W]=ie,Se=W;else break e}}return F}function o(L,F){var ie=L.sortIndex-F.sortIndex;return ie!==0?ie:L.id-F.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();l.unstable_now=function(){return m.now()-p}}var x=[],v=[],b=1,g=null,N=3,T=!1,B=!1,U=!1,H=!1,G=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function Z(L){for(var F=s(v);F!==null;){if(F.callback===null)u(v);else if(F.startTime<=L)u(v),F.sortIndex=F.expirationTime,i(x,F);else break;F=s(v)}}function ee(L){if(U=!1,Z(L),!B)if(s(x)!==null)B=!0,ve||(ve=!0,fe());else{var F=s(v);F!==null&&pe(ee,F.startTime-L)}}var ve=!1,re=-1,ce=5,xe=-1;function Ae(){return H?!0:!(l.unstable_now()-xeL&&Ae());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,N=g.priorityLevel;var me=Se(g.expirationTime<=L);if(L=l.unstable_now(),typeof me=="function"){g.callback=me,Z(L),F=!0;break t}g===s(x)&&u(x),Z(L)}else u(x);g=s(x)}if(g!==null)F=!0;else{var w=s(v);w!==null&&pe(ee,w.startTime-L),F=!1}}break e}finally{g=null,N=ie,T=!1}F=void 0}}finally{F?fe():ve=!1}}}var fe;if(typeof K=="function")fe=function(){K(ze)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Ne=he.port2;he.port1.onmessage=ze,fe=function(){Ne.postMessage(null)}}else fe=function(){G(ze,0)};function pe(L,F){re=G(function(){L(l.unstable_now())},F)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(L){L.callback=null},l.unstable_forceFrameRate=function(L){0>L||125Se?(L.sortIndex=ie,i(v,L),s(x)===null&&L===s(v)&&(U?(Q(re),re=-1):U=!0,pe(ee,ie-Se))):(L.sortIndex=me,i(x,L),B||T||(B=!0,ve||(ve=!0,fe()))),L},l.unstable_shouldYield=Ae,l.unstable_wrapCallback=function(L){var F=N;return function(){var ie=N;N=F;try{return L.apply(this,arguments)}finally{N=ie}}}})(pf)),pf}var Dp;function s1(){return Dp||(Dp=1,yf.exports=i1()),yf.exports}var vf={exports:{}},Tt={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zp;function r1(){if(zp)return Tt;zp=1;var l=If();function i(x){var v="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),vf.exports=r1(),vf.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var kp;function c1(){if(kp)return Ls;kp=1;var l=s1(),i=If(),s=u1();function u(e){var t="https://react.dev/errors/"+e;if(1me||(e.current=Se[me],Se[me]=null,me--)}function I(e,t){me++,Se[me]=e.current,e.current=t}var W=w(null),ae=w(null),ge=w(null),Re=w(null);function tt(e,t){switch(I(ge,t),I(ae,e),I(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qy(t),e=Vy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(W),I(W,e)}function Je(){Y(W),Y(ae),Y(ge)}function dn(e){e.memoizedState!==null&&I(Re,e);var t=W.current,a=Vy(t,e.type);t!==a&&(I(ae,e),I(W,a))}function hn(e){ae.current===e&&(Y(W),Y(ae)),Re.current===e&&(Y(Re),Ms._currentValue=ie)}var Pn,lr;function Ta(e){if(Pn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Pn=t&&t[1]||"",lr=-1)":-1r||S[n]!==M[r]){var q=` `+S[n].replace(" at new "," at ");return e.displayName&&q.includes("")&&(q=q.replace("",e.displayName)),q}while(1<=n&&0<=r);break}}}finally{Yi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ta(a):""}function ir(e,t){switch(e.tag){case 26:case 27:case 5:return Ta(e.type);case 16:return Ta("Lazy");case 13:return e.child!==t&&t!==null?Ta("Suspense Fallback"):Ta("Suspense");case 19:return Ta("SuspenseList");case 0:case 15:return zl(e.type,!1);case 11:return zl(e.type.render,!1);case 1:return zl(e.type,!0);case 31:return Ta("Activity");default:return""}}function sr(e){try{var t="",a=null;do t+=ir(e,a),a=e,e=e.return;while(e);return t}catch(n){return` Error generating stack: `+n.message+` `+n.stack}}var Gi=Object.prototype.hasOwnProperty,rr=l.unstable_scheduleCallback,Ul=l.unstable_cancelCallback,_=l.unstable_shouldYield,C=l.unstable_requestPaint,D=l.unstable_now,P=l.unstable_getCurrentPriorityLevel,J=l.unstable_ImmediatePriority,$=l.unstable_UserBlockingPriority,le=l.unstable_NormalPriority,Ee=l.unstable_LowPriority,He=l.unstable_IdlePriority,Rt=l.log,aa=l.unstable_setDisableYieldValue,ct=null,Ct=null;function na(e){if(typeof Rt=="function"&&aa(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(ct,e)}catch{}}var St=Math.clz32?Math.clz32:Fu,Zu=Math.log,ur=Math.LN2;function Fu(e){return e>>>=0,e===0?32:31-(Zu(e)/ur|0)|0}var el=256,cr=262144,or=4194304;function tl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function fr(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=n&134217727;return y!==0?(n=y&~c,n!==0?r=tl(n):(h&=y,h!==0?r=tl(h):a||(a=y&~e,a!==0&&(r=tl(a))))):(y=n&~c,y!==0?r=tl(y):h!==0?r=tl(h):a||(a=n&~e,a!==0&&(r=tl(a)))),r===0?0:t!==0&&t!==r&&(t&c)===0&&(c=r&-r,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:r}function Xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Jg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ed(){var e=or;return or<<=1,(or&62914560)===0&&(or=4194304),e}function Ju(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ki(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $g(e,t,a,n,r,c){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,M=e.hiddenUpdates;for(a=h&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var a0=/[\n"\\]/g;function ia(e){return e.replace(a0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tc(e,t,a,n,r,c,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+la(t)):e.value!==""+la(t)&&(e.value=""+la(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ac(e,h,la(t)):a!=null?ac(e,h,la(a)):n!=null&&e.removeAttribute("value"),r==null&&c!=null&&(e.defaultChecked=!!c),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+la(y):e.removeAttribute("name")}function Ud(e,t,a,n,r,c,h,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ec(e);return}a=a!=null?""+la(a):"",t=t!=null?""+la(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=y?e.checked:!!n,e.defaultChecked=!!n,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ec(e)}function ac(e,t,a){t==="number"&&mr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ql(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rc=!1;if(Va)try{var $i={};Object.defineProperty($i,"passive",{get:function(){rc=!0}}),window.addEventListener("test",$i,$i),window.removeEventListener("test",$i,$i)}catch{rc=!1}var yn=null,uc=null,pr=null;function Vd(){if(pr)return pr;var e,t=uc,a=t.length,n,r="value"in yn?yn.value:yn.textContent,c=r.length;for(e=0;e=Pi),Fd=" ",Jd=!1;function $d(e,t){switch(e){case"keyup":return C0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xl=!1;function M0(e,t){switch(e){case"compositionend":return Wd(t);case"keypress":return t.which!==32?null:(Jd=!0,Fd);case"textInput":return e=t.data,e===Fd&&Jd?null:e;default:return null}}function D0(e,t){if(Xl)return e==="compositionend"||!hc&&$d(e,t)?(e=Vd(),pr=uc=yn=null,Xl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ih(a)}}function rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=mr(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=mr(e.document)}return t}function pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Q0=Va&&"documentMode"in document&&11>=document.documentMode,Kl=null,vc=null,ns=null,gc=!1;function ch(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;gc||Kl==null||Kl!==mr(n)||(n=Kl,"selectionStart"in n&&pc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ns&&as(ns,n)||(ns=n,n=cu(vc,"onSelect"),0>=h,r-=h,Aa=1<<32-St(t)+r|a<je?(De=ue,ue=null):De=ue.sibling;var Be=z(R,ue,O[je],V);if(Be===null){ue===null&&(ue=De);break}e&&ue&&Be.alternate===null&&t(R,ue),j=c(Be,j,je),qe===null?de=Be:qe.sibling=Be,qe=Be,ue=De}if(je===O.length)return a(R,ue),Ue&&Ga(R,je),de;if(ue===null){for(;jeje?(De=ue,ue=null):De=ue.sibling;var Ln=z(R,ue,Be.value,V);if(Ln===null){ue===null&&(ue=De);break}e&&ue&&Ln.alternate===null&&t(R,ue),j=c(Ln,j,je),qe===null?de=Ln:qe.sibling=Ln,qe=Ln,ue=De}if(Be.done)return a(R,ue),Ue&&Ga(R,je),de;if(ue===null){for(;!Be.done;je++,Be=O.next())Be=X(R,Be.value,V),Be!==null&&(j=c(Be,j,je),qe===null?de=Be:qe.sibling=Be,qe=Be);return Ue&&Ga(R,je),de}for(ue=n(ue);!Be.done;je++,Be=O.next())Be=k(ue,R,je,Be.value,V),Be!==null&&(e&&Be.alternate!==null&&ue.delete(Be.key===null?je:Be.key),j=c(Be,j,je),qe===null?de=Be:qe.sibling=Be,qe=Be);return e&&ue.forEach(function(rb){return t(R,rb)}),Ue&&Ga(R,je),de}function Ze(R,j,O,V){if(typeof O=="object"&&O!==null&&O.type===U&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case T:e:{for(var de=O.key;j!==null;){if(j.key===de){if(de=O.type,de===U){if(j.tag===7){a(R,j.sibling),V=r(j,O.props.children),V.return=R,R=V;break e}}else if(j.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ce&&dl(de)===j.type){a(R,j.sibling),V=r(j,O.props),cs(V,O),V.return=R,R=V;break e}a(R,j);break}else t(R,j);j=j.sibling}O.type===U?(V=rl(O.props.children,R.mode,V,O.key),V.return=R,R=V):(V=wr(O.type,O.key,O.props,null,R.mode,V),cs(V,O),V.return=R,R=V)}return h(R);case B:e:{for(de=O.key;j!==null;){if(j.key===de)if(j.tag===4&&j.stateNode.containerInfo===O.containerInfo&&j.stateNode.implementation===O.implementation){a(R,j.sibling),V=r(j,O.children||[]),V.return=R,R=V;break e}else{a(R,j);break}else t(R,j);j=j.sibling}V=jc(O,R.mode,V),V.return=R,R=V}return h(R);case ce:return O=dl(O),Ze(R,j,O,V)}if(pe(O))return ne(R,j,O,V);if(fe(O)){if(de=fe(O),typeof de!="function")throw Error(u(150));return O=de.call(O),ye(R,j,O,V)}if(typeof O.then=="function")return Ze(R,j,Dr(O),V);if(O.$$typeof===K)return Ze(R,j,Rr(R,O),V);zr(R,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,j!==null&&j.tag===6?(a(R,j.sibling),V=r(j,O),V.return=R,R=V):(a(R,j),V=Nc(O,R.mode,V),V.return=R,R=V),h(R)):a(R,j)}return function(R,j,O,V){try{us=0;var de=Ze(R,j,O,V);return ni=null,de}catch(ue){if(ue===ai||ue===Or)throw ue;var qe=Ft(29,ue,null,R.mode);return qe.lanes=V,qe.return=R,qe}finally{}}}var ml=Mh(!0),Dh=Mh(!1),bn=!1;function Lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function En(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Qe&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=jr(e),ph(e,null,a),t}return Nr(e,n,t,a),jr(e)}function os(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Nd(e,a)}}function qc(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?r=c=h:c=c.next=h,a=a.next}while(a!==null);c===null?r=c=t:c=c.next=t}else r=c=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Bc=!1;function fs(){if(Bc){var e=ti;if(e!==null)throw e}}function ds(e,t,a,n){Bc=!1;var r=e.updateQueue;bn=!1;var c=r.firstBaseUpdate,h=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var S=y,M=S.next;S.next=null,h===null?c=M:h.next=M,h=S;var q=e.alternate;q!==null&&(q=q.updateQueue,y=q.lastBaseUpdate,y!==h&&(y===null?q.firstBaseUpdate=M:y.next=M,q.lastBaseUpdate=S))}if(c!==null){var X=r.baseState;h=0,q=M=S=null,y=c;do{var z=y.lane&-536870913,k=z!==y.lane;if(k?(Me&z)===z:(n&z)===z){z!==0&&z===ei&&(Bc=!0),q!==null&&(q=q.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ne=e,ye=y;z=t;var Ze=a;switch(ye.tag){case 1:if(ne=ye.payload,typeof ne=="function"){X=ne.call(Ze,X,z);break e}X=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ye.payload,z=typeof ne=="function"?ne.call(Ze,X,z):ne,z==null)break e;X=g({},X,z);break e;case 2:bn=!0}}z=y.callback,z!==null&&(e.flags|=64,k&&(e.flags|=8192),k=r.callbacks,k===null?r.callbacks=[z]:k.push(z))}else k={lane:z,tag:y.tag,payload:y.payload,callback:y.callback,next:null},q===null?(M=q=k,S=X):q=q.next=k,h|=z;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;k=y,y=k.next,k.next=null,r.lastBaseUpdate=k,r.shared.pending=null}}while(!0);q===null&&(S=X),r.baseState=S,r.firstBaseUpdate=M,r.lastBaseUpdate=q,c===null&&(r.shared.lanes=0),Tn|=h,e.lanes=h,e.memoizedState=X}}function zh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Uh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ec?c:8;var h=L.T,y={};L.T=y,io(e,!1,t,a);try{var S=r(),M=L.S;if(M!==null&&M(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var q=$0(S,n);ys(e,t,q,Pt(e))}else ys(e,t,n,Pt(e))}catch(X){ys(e,t,{then:function(){},status:"rejected",reason:X},Pt())}finally{F.p=c,h!==null&&y.types!==null&&(h.types=y.types),L.T=h}}function ax(){}function no(e,t,a,n){if(e.tag!==5)throw Error(u(476));var r=hm(e).queue;dm(e,r,t,ie,a===null?ax:function(){return mm(e),a(n)})}function hm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:ie},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mm(e){var t=hm(e);t.next===null&&(t=e.alternate.memoizedState),ys(e,t.next.queue,{},Pt())}function lo(){return Nt(Ms)}function ym(){return rt().memoizedState}function pm(){return rt().memoizedState}function nx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Pt();e=Sn(a);var n=En(t,e,a);n!==null&&(Vt(n,t,a),os(n,t,a)),t={cache:Dc()},e.payload=t;return}t=t.return}}function lx(e,t,a){var n=Pt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Gr(e)?gm(t,a):(a=Ec(e,t,a,n),a!==null&&(Vt(a,e,n),xm(a,t,n)))}function vm(e,t,a){var n=Pt();ys(e,t,a,n)}function ys(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Gr(e))gm(t,r);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,y=c(h,a);if(r.hasEagerState=!0,r.eagerState=y,Zt(y,h))return Nr(e,t,r,0),Fe===null&&_r(),!1}catch{}finally{}if(a=Ec(e,t,r,n),a!==null)return Vt(a,e,n),xm(a,t,n),!0}return!1}function io(e,t,a,n){if(n={lane:2,revertLane:Ho(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gr(e)){if(t)throw Error(u(479))}else t=Ec(e,a,n,2),t!==null&&Vt(t,e,2)}function Gr(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function gm(e,t){ii=Lr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function xm(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Nd(e,a)}}var ps={readContext:Nt,use:Br,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};ps.useEffectEvent=nt;var bm={readContext:Nt,use:Br,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:nm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Vr(4194308,4,rm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Vr(4194308,4,e,t)},useInsertionEffect:function(e,t){Vr(4,2,e,t)},useMemo:function(e,t){var a=Ot();t=t===void 0?null:t;var n=e();if(yl){na(!0);try{e()}finally{na(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=Ot();if(a!==void 0){var r=a(t);if(yl){na(!0);try{a(t)}finally{na(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=lx.bind(null,_e,e),[n.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:function(e){e=Ic(e);var t=e.queue,a=vm.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:to,useDeferredValue:function(e,t){var a=Ot();return ao(a,e,t)},useTransition:function(){var e=Ic(!1);return e=dm.bind(null,_e,e.queue,!0,!1),Ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=_e,r=Ot();if(Ue){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Fe===null)throw Error(u(349));(Me&127)!==0||Qh(n,t,a)}r.memoizedState=a;var c={value:a,getSnapshot:t};return r.queue=c,nm(Yh.bind(null,n,c,e),[e]),n.flags|=2048,ri(9,{destroy:void 0},Vh.bind(null,n,c,a,t),null),a},useId:function(){var e=Ot(),t=Fe.identifierPrefix;if(Ue){var a=Ra,n=Aa;a=(n&~(1<<32-St(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Hr++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof n.is=="string"?h.createElement("select",{is:n.is}):h.createElement("select"),n.multiple?c.multiple=!0:n.size&&(c.size=n.size);break;default:c=typeof n.is=="string"?h.createElement(r,{is:n.is}):h.createElement(r)}}c[Et]=t,c[kt]=n;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(wt(c,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&$a(t)}}return We(t),bo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&$a(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(u(166));if(e=ge.current,Il(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,r=_t,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[Et]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||qy(e.nodeValue,a)),e||gn(t,!0)}else e=ou(e).createTextNode(n),e[Et]=t,t.stateNode=e}return We(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Il(t),a!==null){if(e===null){if(!n)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[Et]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else a=Rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(u(558))}return We(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Il(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(u(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[Et]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),r=!1}else r=Rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Jr(t,t.updateQueue),We(t),null);case 4:return Je(),e===null&&Vo(t.stateNode.containerInfo),We(t),null;case 10:return Ka(t.type),We(t),null;case 19:if(Y(st),n=t.memoizedState,n===null)return We(t),null;if(r=(t.flags&128)!==0,c=n.rendering,c===null)if(r)gs(n,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=kr(e),c!==null){for(t.flags|=128,gs(n,!1),e=c.updateQueue,t.updateQueue=e,Jr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)vh(a,e),a=a.sibling;return I(st,st.current&1|2),Ue&&Ga(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&D()>eu&&(t.flags|=128,r=!0,gs(n,!1),t.lanes=4194304)}else{if(!r)if(e=kr(c),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Jr(t,e),gs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!c.alternate&&!Ue)return We(t),null}else 2*D()-n.renderingStartTime>eu&&a!==536870912&&(t.flags|=128,r=!0,gs(n,!1),t.lanes=4194304);n.isBackwards?(c.sibling=t.child,t.child=c):(e=n.last,e!==null?e.sibling=c:t.child=c,n.last=c)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=D(),e.sibling=null,a=st.current,I(st,r?a&1|2:a&1),Ue&&Ga(t,n.treeForkCount),e):(We(t),null);case 22:case 23:return $t(t),Vc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),a=t.updateQueue,a!==null&&Jr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Y(fl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ka(ot),We(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function cx(e,t){switch(Tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(ot),Je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hn(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(u(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(st),null;case 4:return Je(),null;case 10:return Ka(t.type),null;case 22:case 23:return $t(t),Vc(),e!==null&&Y(fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ka(ot),null;case 25:return null;default:return null}}function Gm(e,t){switch(Tc(t),t.tag){case 3:Ka(ot),Je();break;case 26:case 27:case 5:hn(t);break;case 4:Je();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:Y(st);break;case 10:Ka(t.type);break;case 22:case 23:$t(t),Vc(),e!==null&&Y(fl);break;case 24:Ka(ot)}}function xs(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e){n=void 0;var c=a.create,h=a.inst;n=c(),h.destroy=n}a=a.next}while(a!==r)}}catch(y){Ge(t,t.return,y)}}function jn(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var c=r.next;n=c;do{if((n.tag&e)===e){var h=n.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,r=t;var S=a,M=y;try{M()}catch(q){Ge(r,S,q)}}}n=n.next}while(n!==c)}}catch(q){Ge(t,t.return,q)}}function Xm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Uh(t,a)}catch(n){Ge(e,e.return,n)}}}function Km(e,t,a){a.props=pl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ge(e,t,n)}}function bs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(r){Ge(e,t,r)}}function Ca(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Ge(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Ge(e,t,r)}else a.current=null}function Zm(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(r){Ge(e,e.return,r)}}function So(e,t,a){try{var n=e.stateNode;Ox(n,e.type,a,t),n[kt]=t}catch(r){Ge(e,e.return,r)}}function Fm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Mn(e.type)||e.tag===4}function Eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Mn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _o(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Qa));else if(n!==4&&(n===27&&Mn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(_o(e,t,a),e=e.sibling;e!==null;)_o(e,t,a),e=e.sibling}function $r(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Mn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for($r(e,t,a),e=e.sibling;e!==null;)$r(e,t,a),e=e.sibling}function Jm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);wt(t,n,a),t[Et]=e,t[kt]=a}catch(c){Ge(e,e.return,c)}}var Wa=!1,ht=!1,No=!1,$m=typeof WeakSet=="function"?WeakSet:Set,xt=null;function ox(e,t){if(e=e.containerInfo,Xo=vu,e=uh(e),pc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,c=n.focusNode;n=n.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var h=0,y=-1,S=-1,M=0,q=0,X=e,z=null;t:for(;;){for(var k;X!==a||r!==0&&X.nodeType!==3||(y=h+r),X!==c||n!==0&&X.nodeType!==3||(S=h+n),X.nodeType===3&&(h+=X.nodeValue.length),(k=X.firstChild)!==null;)z=X,X=k;for(;;){if(X===e)break t;if(z===a&&++M===r&&(y=h),z===c&&++q===n&&(S=h),(k=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=k}a=y===-1||S===-1?null:{start:y,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ko={focusedElem:e,selectionRange:a},vu=!1,xt=t;xt!==null;)if(t=xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xt=e;else for(;xt!==null;){switch(t=xt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),wt(c,n,a),c[Et]=e,gt(c),n=c;break e;case"link":var h=ap("link","href",r).get(n+(a.href||""));if(h){for(var y=0;yZe&&(h=Ze,Ze=ye,ye=h);var R=sh(y,ye),j=sh(y,Ze);if(R&&j&&(k.rangeCount!==1||k.anchorNode!==R.node||k.anchorOffset!==R.offset||k.focusNode!==j.node||k.focusOffset!==j.offset)){var O=X.createRange();O.setStart(R.node,R.offset),k.removeAllRanges(),ye>Ze?(k.addRange(O),k.extend(j.node,j.offset)):(O.setEnd(j.node,j.offset),k.addRange(O))}}}}for(X=[],k=y;k=k.parentNode;)k.nodeType===1&&X.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;ya?32:a,L.T=null,a=Oo,Oo=null;var c=Rn,h=an;if(yt=0,di=Rn=null,an=0,(Qe&6)!==0)throw Error(u(331));var y=Qe;if(Qe|=4,ry(c.current),ly(c,c.current,h,a),Qe=y,ws(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(ct,c)}catch{}return!0}finally{F.p=r,L.T=n,jy(e,t)}}function Ty(e,t,a){t=ra(a,t),t=co(e.stateNode,t,2),e=En(e,t,2),e!==null&&(Ki(e,2),Oa(e))}function Ge(e,t,a){if(e.tag===3)Ty(e,e,a);else for(;t!==null;){if(t.tag===3){Ty(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(An===null||!An.has(n))){e=ra(a,e),a=Am(2),n=En(t,a,2),n!==null&&(Rm(a,n,t,e),Ki(n,2),Oa(n));break}}t=t.return}}function Uo(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new hx;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(To=!0,r.add(a),e=gx.bind(null,e,t,a),t.then(e,e))}function gx(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Fe===e&&(Me&a)===a&&(lt===4||lt===3&&(Me&62914560)===Me&&300>D()-Pr?(Qe&2)===0&&hi(e,0):Ao|=a,fi===Me&&(fi=0)),Oa(e)}function Ay(e,t){t===0&&(t=Ed()),e=sl(e,t),e!==null&&(Ki(e,t),Oa(e))}function xx(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ay(e,a)}function bx(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(u(314))}n!==null&&n.delete(t),Ay(e,a)}function Sx(e,t){return rr(e,t)}var su=null,yi=null,ko=!1,ru=!1,Lo=!1,On=0;function Oa(e){e!==yi&&e.next===null&&(yi===null?su=yi=e:yi=yi.next=e),ru=!0,ko||(ko=!0,_x())}function ws(e,t){if(!Lo&&ru){Lo=!0;do for(var a=!1,n=su;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var c=0;else{var h=n.suspendedLanes,y=n.pingedLanes;c=(1<<31-St(42|e)+1)-1,c&=r&~(h&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,My(n,c))}else c=Me,c=fr(n,n===Fe?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(c&3)===0||Xi(n,c)||(a=!0,My(n,c));n=n.next}while(a);Lo=!1}}function Ex(){Ry()}function Ry(){ru=ko=!1;var e=0;On!==0&&Dx()&&(e=On);for(var t=D(),a=null,n=su;n!==null;){var r=n.next,c=Cy(n,t);c===0?(n.next=null,a===null?su=r:a.next=r,r===null&&(yi=a)):(a=n,(e!==0||(c&3)!==0)&&(ru=!0)),n=r}yt!==0&&yt!==5||ws(e),On!==0&&(On=0)}function Cy(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,c=e.pendingLanes&-62914561;0y)break;var q=S.transferSize,X=S.initiatorType;q&&By(X)&&(S=S.responseEnd,h+=q*(S"u"?null:document;function Iy(e,t,a){var n=pi;if(n&&typeof t=="string"&&t){var r=ia(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),Wy.has(r)||(Wy.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),wt(t,"link",e),gt(t),n.head.appendChild(t)))}}function Vx(e){nn.D(e),Iy("dns-prefetch",e,null)}function Yx(e,t){nn.C(e,t),Iy("preconnect",e,t)}function Gx(e,t,a){nn.L(e,t,a);var n=pi;if(n&&e&&t){var r='link[rel="preload"][as="'+ia(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+ia(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+ia(a.imageSizes)+'"]')):r+='[href="'+ia(e)+'"]';var c=r;switch(t){case"style":c=vi(e);break;case"script":c=gi(e)}ha.has(c)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ha.set(c,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Cs(c))||t==="script"&&n.querySelector(Os(c))||(t=n.createElement("link"),wt(t,"link",e),gt(t),n.head.appendChild(t)))}}function Xx(e,t){nn.m(e,t);var a=pi;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+ia(n)+'"][href="'+ia(e)+'"]',c=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=gi(e)}if(!ha.has(c)&&(e=g({rel:"modulepreload",href:e},t),ha.set(c,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Os(c)))return}n=a.createElement("link"),wt(n,"link",e),gt(n),a.head.appendChild(n)}}}function Kx(e,t,a){nn.S(e,t,a);var n=pi;if(n&&e){var r=ql(n).hoistableStyles,c=vi(e);t=t||"default";var h=r.get(c);if(!h){var y={loading:0,preload:null};if(h=n.querySelector(Cs(c)))y.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ha.get(c))&&Po(e,a);var S=h=n.createElement("link");gt(S),wt(S,"link",e),S._p=new Promise(function(M,q){S.onload=M,S.onerror=q}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,du(h,t,n)}h={type:"stylesheet",instance:h,count:1,state:y},r.set(c,h)}}}function Zx(e,t){nn.X(e,t);var a=pi;if(a&&e){var n=ql(a).hoistableScripts,r=gi(e),c=n.get(r);c||(c=a.querySelector(Os(r)),c||(e=g({src:e,async:!0},t),(t=ha.get(r))&&ef(e,t),c=a.createElement("script"),gt(c),wt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(r,c))}}function Fx(e,t){nn.M(e,t);var a=pi;if(a&&e){var n=ql(a).hoistableScripts,r=gi(e),c=n.get(r);c||(c=a.querySelector(Os(r)),c||(e=g({src:e,async:!0,type:"module"},t),(t=ha.get(r))&&ef(e,t),c=a.createElement("script"),gt(c),wt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(r,c))}}function Py(e,t,a,n){var r=(r=ge.current)?fu(r):null;if(!r)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=vi(a.href),a=ql(r).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=vi(a.href);var c=ql(r).hoistableStyles,h=c.get(e);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=r.querySelector(Cs(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ha.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ha.set(e,a),c||Jx(r,e,a,h.state))),t&&n===null)throw Error(u(528,""));return h}if(t&&n!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gi(a),a=ql(r).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function vi(e){return'href="'+ia(e)+'"'}function Cs(e){return'link[rel="stylesheet"]['+e+"]"}function ep(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Jx(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),wt(t,"link",a),gt(t),e.head.appendChild(t))}function gi(e){return'[src="'+ia(e)+'"]'}function Os(e){return"script[async]"+e}function tp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+ia(a.href)+'"]');if(n)return t.instance=n,gt(n),n;var r=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),gt(n),wt(n,"style",r),du(n,a.precedence,e),t.instance=n;case"stylesheet":r=vi(a.href);var c=e.querySelector(Cs(r));if(c)return t.state.loading|=4,t.instance=c,gt(c),c;n=ep(a),(r=ha.get(r))&&Po(n,r),c=(e.ownerDocument||e).createElement("link"),gt(c);var h=c;return h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),wt(c,"link",n),t.state.loading|=4,du(c,a.precedence,e),t.instance=c;case"script":return c=gi(a.src),(r=e.querySelector(Os(c)))?(t.instance=r,gt(r),r):(n=a,(r=ha.get(c))&&(n=g({},a),ef(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),gt(r),wt(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,du(n,a.precedence,e));return t.instance}function du(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,c=r,h=0;h title"):null)}function $x(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Wx(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=vi(n.href),c=t.querySelector(Cs(r));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=mu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,gt(c);return}c=t.ownerDocument||t,n=ep(n),(r=ha.get(r))&&Po(n,r),c=c.createElement("link"),gt(c);var h=c;h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),wt(c,"link",n),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=mu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var tf=0;function Ix(e,t){return e.stylesheets&&e.count===0&&pu(e,e.stylesheets),0tf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function mu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yu=null;function pu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yu=new Map,t.forEach(Px,e),yu=null,mu.call(e))}function Px(e,t){if(!(t.state.loading&4)){var a=yu.get(e);if(a)var n=a.get(null);else{a=new Map,yu.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),mf.exports=c1(),mf.exports}var f1=o1();const d1=zv(f1);/** * react-router v7.13.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Hp="popstate";function qp(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function h1(l={}){function i(u,o){var v;let d=(v=o.state)==null?void 0:v.masked,{pathname:m,search:p,hash:x}=d||u.location;return jf("",{pathname:m,search:p,hash:x},o.state&&o.state.usr||null,o.state&&o.state.key||"default",d?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function s(u,o){return typeof o=="string"?o:Ks(o)}return y1(i,s,null,l)}function et(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function ja(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function m1(){return Math.random().toString(36).substring(2,10)}function Bp(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function jf(l,i,s=null,u,o){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?Hi(i):i,state:s,key:i&&i.key||u||m1(),unstable_mask:o}}function Ks({pathname:l="/",search:i="",hash:s=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(l+=s.charAt(0)==="#"?s:"#"+s),l}function Hi(l){let i={};if(l){let s=l.indexOf("#");s>=0&&(i.hash=l.substring(s),l=l.substring(0,s));let u=l.indexOf("?");u>=0&&(i.search=l.substring(u),l=l.substring(0,u)),l&&(i.pathname=l)}return i}function y1(l,i,s,u={}){let{window:o=document.defaultView,v5Compat:d=!1}=u,m=o.history,p="POP",x=null,v=b();v==null&&(v=0,m.replaceState({...m.state,idx:v},""));function b(){return(m.state||{idx:null}).idx}function g(){p="POP";let H=b(),G=H==null?null:H-v;v=H,x&&x({action:p,location:U.location,delta:G})}function N(H,G){p="PUSH";let Q=qp(H)?H:jf(U.location,H,G);v=b()+1;let K=Bp(Q,v),Z=U.createHref(Q.unstable_mask||Q);try{m.pushState(K,"",Z)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;o.location.assign(Z)}d&&x&&x({action:p,location:U.location,delta:1})}function T(H,G){p="REPLACE";let Q=qp(H)?H:jf(U.location,H,G);v=b();let K=Bp(Q,v),Z=U.createHref(Q.unstable_mask||Q);m.replaceState(K,"",Z),d&&x&&x({action:p,location:U.location,delta:0})}function B(H){return p1(H)}let U={get action(){return p},get location(){return l(o,m)},listen(H){if(x)throw new Error("A history only accepts one active listener");return o.addEventListener(Hp,g),x=H,()=>{o.removeEventListener(Hp,g),x=null}},createHref(H){return i(o,H)},createURL:B,encodeLocation(H){let G=B(H);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:N,replace:T,go(H){return m.go(H)}};return U}function p1(l,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),et(s,"No window.location.(origin|href) available to create URL");let u=typeof l=="string"?l:Ks(l);return u=u.replace(/ $/,"%20"),!i&&u.startsWith("//")&&(u=s+u),new URL(u,s)}function Xv(l,i,s="/"){return v1(l,i,s,!1)}function v1(l,i,s,u){let o=typeof i=="string"?Hi(i):i,d=fn(o.pathname||"/",s);if(d==null)return null;let m=Kv(l);g1(m);let p=null;for(let x=0;p==null&&x{let b={relativePath:v===void 0?m.path||"":v,caseSensitive:m.caseSensitive===!0,childrenIndex:p,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(u)&&x)return;et(b.relativePath.startsWith(u),`Absolute route path "${b.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(u.length)}let g=La([u,b.relativePath]),N=s.concat(b);m.children&&m.children.length>0&&(et(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Kv(m.children,i,N,g,x)),!(m.path==null&&!m.index)&&i.push({path:g,score:j1(g,m.index),routesMeta:N})};return l.forEach((m,p)=>{var x;if(m.path===""||!((x=m.path)!=null&&x.includes("?")))d(m,p);else for(let v of Zv(m.path))d(m,p,!0,v)}),i}function Zv(l){let i=l.split("/");if(i.length===0)return[];let[s,...u]=i,o=s.endsWith("?"),d=s.replace(/\?$/,"");if(u.length===0)return o?[d,""]:[d];let m=Zv(u.join("/")),p=[];return p.push(...m.map(x=>x===""?d:[d,x].join("/"))),o&&p.push(...m),p.map(x=>l.startsWith("/")&&x===""?"/":x)}function g1(l){l.sort((i,s)=>i.score!==s.score?s.score-i.score:w1(i.routesMeta.map(u=>u.childrenIndex),s.routesMeta.map(u=>u.childrenIndex)))}var x1=/^:[\w-]+$/,b1=3,S1=2,E1=1,_1=10,N1=-2,Qp=l=>l==="*";function j1(l,i){let s=l.split("/"),u=s.length;return s.some(Qp)&&(u+=N1),i&&(u+=S1),s.filter(o=>!Qp(o)).reduce((o,d)=>o+(x1.test(d)?b1:d===""?E1:_1),u)}function w1(l,i){return l.length===i.length&&l.slice(0,-1).every((u,o)=>u===i[o])?l[l.length-1]-i[i.length-1]:0}function T1(l,i,s=!1){let{routesMeta:u}=l,o={},d="/",m=[];for(let p=0;p{if(b==="*"){let B=p[N]||"";m=d.slice(0,d.length-B.length).replace(/(.)\/+$/,"$1")}const T=p[N];return g&&!T?v[b]=void 0:v[b]=(T||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:m,pattern:l}}function A1(l,i=!1,s=!0){ja(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let u=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,p,x,v,b)=>{if(u.push({paramName:p,isOptional:x!=null}),x){let g=b.charAt(v+m.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(u.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),u]}function R1(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return ja(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function fn(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,u=l.charAt(s);return u&&u!=="/"?null:l.slice(s)||"/"}var C1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function O1(l,i="/"){let{pathname:s,search:u="",hash:o=""}=typeof l=="string"?Hi(l):l,d;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?d=Vp(s.substring(1),"/"):d=Vp(s,i)):d=i,{pathname:d,search:z1(u),hash:U1(o)}}function Vp(l,i){let s=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?s.length>1&&s.pop():o!=="."&&s.push(o)}),s.length>1?s.join("/"):"/"}function gf(l,i,s,u){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function M1(l){return l.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Pf(l){let i=M1(l);return i.map((s,u)=>u===i.length-1?s.pathname:s.pathnameBase)}function Vu(l,i,s,u=!1){let o;typeof l=="string"?o=Hi(l):(o={...l},et(!o.pathname||!o.pathname.includes("?"),gf("?","pathname","search",o)),et(!o.pathname||!o.pathname.includes("#"),gf("#","pathname","hash",o)),et(!o.search||!o.search.includes("#"),gf("#","search","hash",o)));let d=l===""||o.pathname==="",m=d?"/":o.pathname,p;if(m==null)p=s;else{let g=i.length-1;if(!u&&m.startsWith("..")){let N=m.split("/");for(;N[0]==="..";)N.shift(),g-=1;o.pathname=N.join("/")}p=g>=0?i[g]:"/"}let x=O1(o,p),v=m&&m!=="/"&&m.endsWith("/"),b=(d||m===".")&&s.endsWith("/");return!x.pathname.endsWith("/")&&(v||b)&&(x.pathname+="/"),x}var La=l=>l.join("/").replace(/\/\/+/g,"/"),D1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),z1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,U1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,k1=class{constructor(l,i,s,u=!1){this.status=l,this.statusText=i||"",this.internal=u,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function L1(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function H1(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Fv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jv(l,i){let s=l;if(typeof s!="string"||!C1.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let u=s,o=!1;if(Fv)try{let d=new URL(window.location.href),m=s.startsWith("//")?new URL(d.protocol+s):new URL(s),p=fn(m.pathname,i);m.origin===d.origin&&p!=null?s=p+m.search+m.hash:o=!0}catch{ja(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:o,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $v=["POST","PUT","PATCH","DELETE"];new Set($v);var q1=["GET",...$v];new Set(q1);var qi=A.createContext(null);qi.displayName="DataRouter";var Yu=A.createContext(null);Yu.displayName="DataRouterState";var B1=A.createContext(!1),Wv=A.createContext({isTransitioning:!1});Wv.displayName="ViewTransition";var Q1=A.createContext(new Map);Q1.displayName="Fetchers";var V1=A.createContext(null);V1.displayName="Await";var ta=A.createContext(null);ta.displayName="Navigation";var er=A.createContext(null);er.displayName="Location";var wa=A.createContext({outlet:null,matches:[],isDataRoute:!1});wa.displayName="Route";var ed=A.createContext(null);ed.displayName="RouteError";var Iv="REACT_ROUTER_ERROR",Y1="REDIRECT",G1="ROUTE_ERROR_RESPONSE";function X1(l){if(l.startsWith(`${Iv}:${Y1}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function K1(l){if(l.startsWith(`${Iv}:${G1}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new k1(i.status,i.statusText,i.data)}catch{}}function Z1(l,{relative:i}={}){et(Bi(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:u}=A.useContext(ta),{hash:o,pathname:d,search:m}=tr(l,{relative:i}),p=d;return s!=="/"&&(p=d==="/"?s:La([s,d])),u.createHref({pathname:p,search:m,hash:o})}function Bi(){return A.useContext(er)!=null}function qa(){return et(Bi(),"useLocation() may be used only in the context of a component."),A.useContext(er).location}var Pv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eg(l){A.useContext(ta).static||A.useLayoutEffect(l)}function Dl(){let{isDataRoute:l}=A.useContext(wa);return l?uS():F1()}function F1(){et(Bi(),"useNavigate() may be used only in the context of a component.");let l=A.useContext(qi),{basename:i,navigator:s}=A.useContext(ta),{matches:u}=A.useContext(wa),{pathname:o}=qa(),d=JSON.stringify(Pf(u)),m=A.useRef(!1);return eg(()=>{m.current=!0}),A.useCallback((x,v={})=>{if(ja(m.current,Pv),!m.current)return;if(typeof x=="number"){s.go(x);return}let b=Vu(x,JSON.parse(d),o,v.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:La([i,b.pathname])),(v.replace?s.replace:s.push)(b,v.state,v)},[i,s,d,o,l])}var J1=A.createContext(null);function $1(l){let i=A.useContext(wa).outlet;return A.useMemo(()=>i&&A.createElement(J1.Provider,{value:l},i),[i,l])}function tr(l,{relative:i}={}){let{matches:s}=A.useContext(wa),{pathname:u}=qa(),o=JSON.stringify(Pf(s));return A.useMemo(()=>Vu(l,JSON.parse(o),u,i==="path"),[l,o,u,i])}function W1(l,i){return tg(l,i)}function tg(l,i,s){var H;et(Bi(),"useRoutes() may be used only in the context of a component.");let{navigator:u}=A.useContext(ta),{matches:o}=A.useContext(wa),d=o[o.length-1],m=d?d.params:{},p=d?d.pathname:"/",x=d?d.pathnameBase:"/",v=d&&d.route;{let G=v&&v.path||"";ng(p,!v||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${p}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let b=qa(),g;if(i){let G=typeof i=="string"?Hi(i):i;et(x==="/"||((H=G.pathname)==null?void 0:H.startsWith(x)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${G.pathname}" was given in the \`location\` prop.`),g=G}else g=b;let N=g.pathname||"/",T=N;if(x!=="/"){let G=x.replace(/^\//,"").split("/");T="/"+N.replace(/^\//,"").split("/").slice(G.length).join("/")}let B=Xv(l,{pathname:T});ja(v||B!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),ja(B==null||B[B.length-1].route.element!==void 0||B[B.length-1].route.Component!==void 0||B[B.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let U=aS(B&&B.map(G=>Object.assign({},G,{params:Object.assign({},m,G.params),pathname:La([x,u.encodeLocation?u.encodeLocation(G.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?x:La([x,u.encodeLocation?u.encodeLocation(G.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),o,s);return i&&U?A.createElement(er.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},U):U}function I1(){let l=rS(),i=L1(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),s=l instanceof Error?l.stack:null,u="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:u},d={padding:"2px 4px",backgroundColor:u},m=null;return console.error("Error handled by React Router default ErrorBoundary:",l),m=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:d},"ErrorBoundary")," or"," ",A.createElement("code",{style:d},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},i),s?A.createElement("pre",{style:o},s):null,m)}var P1=A.createElement(I1,null),ag=class extends A.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const s=K1(l.digest);s&&(l=s)}let i=l!==void 0?A.createElement(wa.Provider,{value:this.props.routeContext},A.createElement(ed.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?A.createElement(eS,{error:l},i):i}};ag.contextType=B1;var xf=new WeakMap;function eS({children:l,error:i}){let{basename:s}=A.useContext(ta);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let u=X1(i.digest);if(u){let o=xf.get(i);if(o)throw o;let d=Jv(u.location,s);if(Fv&&!xf.get(i))if(d.isExternal||u.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:u.replace}));throw xf.set(i,m),m}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return l}function tS({routeContext:l,match:i,children:s}){let u=A.useContext(qi);return u&&u.static&&u.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=i.route.id),A.createElement(wa.Provider,{value:l},s)}function aS(l,i=[],s){let u=s==null?void 0:s.state;if(l==null){if(!u)return null;if(u.errors)l=u.matches;else if(i.length===0&&!u.initialized&&u.matches.length>0)l=u.matches;else return null}let o=l,d=u==null?void 0:u.errors;if(d!=null){let b=o.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);et(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let m=!1,p=-1;if(s&&u){m=u.renderFallback;for(let b=0;b=0?o=o.slice(0,p+1):o=[o[0]];break}}}}let x=s==null?void 0:s.onError,v=u&&x?(b,g)=>{var N,T;x(b,{location:u.location,params:((T=(N=u.matches)==null?void 0:N[0])==null?void 0:T.params)??{},unstable_pattern:H1(u.matches),errorInfo:g})}:void 0;return o.reduceRight((b,g,N)=>{let T,B=!1,U=null,H=null;u&&(T=d&&g.route.id?d[g.route.id]:void 0,U=g.route.errorElement||P1,m&&(p<0&&N===0?(ng("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,H=null):p===N&&(B=!0,H=g.route.hydrateFallbackElement||null)));let G=i.concat(o.slice(0,N+1)),Q=()=>{let K;return T?K=U:B?K=H:g.route.Component?K=A.createElement(g.route.Component,null):g.route.element?K=g.route.element:K=b,A.createElement(tS,{match:g,routeContext:{outlet:b,matches:G,isDataRoute:u!=null},children:K})};return u&&(g.route.ErrorBoundary||g.route.errorElement||N===0)?A.createElement(ag,{location:u.location,revalidation:u.revalidation,component:U,error:T,children:Q(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:v}):Q()},null)}function td(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nS(l){let i=A.useContext(qi);return et(i,td(l)),i}function lS(l){let i=A.useContext(Yu);return et(i,td(l)),i}function iS(l){let i=A.useContext(wa);return et(i,td(l)),i}function ad(l){let i=iS(l),s=i.matches[i.matches.length-1];return et(s.route.id,`${l} can only be used on routes that contain a unique "id"`),s.route.id}function sS(){return ad("useRouteId")}function rS(){var u;let l=A.useContext(ed),i=lS("useRouteError"),s=ad("useRouteError");return l!==void 0?l:(u=i.errors)==null?void 0:u[s]}function uS(){let{router:l}=nS("useNavigate"),i=ad("useNavigate"),s=A.useRef(!1);return eg(()=>{s.current=!0}),A.useCallback(async(o,d={})=>{ja(s.current,Pv),s.current&&(typeof o=="number"?await l.navigate(o):await l.navigate(o,{fromRouteId:i,...d}))},[l,i])}var Yp={};function ng(l,i,s){!i&&!Yp[l]&&(Yp[l]=!0,ja(!1,s))}A.memo(cS);function cS({routes:l,future:i,state:s,isStatic:u,onError:o}){return tg(l,void 0,{state:s,isStatic:u,onError:o})}function lg({to:l,replace:i,state:s,relative:u}){et(Bi()," may be used only in the context of a component.");let{static:o}=A.useContext(ta);ja(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:d}=A.useContext(wa),{pathname:m}=qa(),p=Dl(),x=Vu(l,Pf(d),m,u==="path"),v=JSON.stringify(x);return A.useEffect(()=>{p(JSON.parse(v),{replace:i,state:s,relative:u})},[p,v,u,i,s]),null}function nd(l){return $1(l.context)}function xa(l){et(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function oS({basename:l="/",children:i=null,location:s,navigationType:u="POP",navigator:o,static:d=!1,unstable_useTransitions:m}){et(!Bi(),"You cannot render a inside another . You should never have more than one in your app.");let p=l.replace(/^\/*/,"/"),x=A.useMemo(()=>({basename:p,navigator:o,static:d,unstable_useTransitions:m,future:{}}),[p,o,d,m]);typeof s=="string"&&(s=Hi(s));let{pathname:v="/",search:b="",hash:g="",state:N=null,key:T="default",unstable_mask:B}=s,U=A.useMemo(()=>{let H=fn(v,p);return H==null?null:{location:{pathname:H,search:b,hash:g,state:N,key:T,unstable_mask:B},navigationType:u}},[p,v,b,g,N,T,u,B]);return ja(U!=null,` is not able to match the URL "${v}${b}${g}" because it does not start with the basename, so the won't render anything.`),U==null?null:A.createElement(ta.Provider,{value:x},A.createElement(er.Provider,{children:i,value:U}))}function fS({children:l,location:i}){return W1(wf(l),i)}function wf(l,i=[]){let s=[];return A.Children.forEach(l,(u,o)=>{if(!A.isValidElement(u))return;let d=[...i,o];if(u.type===A.Fragment){s.push.apply(s,wf(u.props.children,d));return}et(u.type===xa,`[${typeof u.type=="string"?u.type:u.type.name}] is not a component. All component children of must be a or `),et(!u.props.index||!u.props.children,"An index route cannot have child routes.");let m={id:u.props.id||d.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=wf(u.props.children,d)),s.push(m)}),s}var Au="get",Ru="application/x-www-form-urlencoded";function Gu(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function dS(l){return Gu(l)&&l.tagName.toLowerCase()==="button"}function hS(l){return Gu(l)&&l.tagName.toLowerCase()==="form"}function mS(l){return Gu(l)&&l.tagName.toLowerCase()==="input"}function yS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function pS(l,i){return l.button===0&&(!i||i==="_self")&&!yS(l)}var wu=null;function vS(){if(wu===null)try{new FormData(document.createElement("form"),0),wu=!1}catch{wu=!0}return wu}var gS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bf(l){return l!=null&&!gS.has(l)?(ja(!1,`"${l}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Ru}"`),null):l}function xS(l,i){let s,u,o,d,m;if(hS(l)){let p=l.getAttribute("action");u=p?fn(p,i):null,s=l.getAttribute("method")||Au,o=bf(l.getAttribute("enctype"))||Ru,d=new FormData(l)}else if(dS(l)||mS(l)&&(l.type==="submit"||l.type==="image")){let p=l.form;if(p==null)throw new Error('Cannot submit a