mt&&(e.y=1)}function yt(t,e){t.min=t.min+e,t.max=t.max+e}function vt(t,e,s,n,i=.5){const r=te(t.min,t.max,i);Ae(t,e,s,r,n)}function Tt(t,e){vt(t.x,e.x,e.scaleX,e.scale,e.originX),vt(t.y,e.y,e.scaleY,e.scale,e.originY)}function ys(t,e){return Ni(ki(t.getBoundingClientRect(),e))}function rr(t,e,s){const n=ys(t,s),{scroll:i}=e;return i&&(yt(n.x,i.offset.x),yt(n.y,i.offset.y)),n}function or(t,e,s){const n=P(t)?t:Z(t);return n.start(ms("",n,e,s)),n.animation}function ar(t){return t instanceof SVGElement&&t.tagName!=="svg"}function lr(t,e){const s=E.now(),n=({timestamp:i})=>{const r=i-s;r>=e&&(X(n),t(r-e))};return D.read(n,!0),()=>X(n)}function ur(t,e,s){var n;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const r=(n=void 0)!==null&&n!==void 0?n:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}const Me={current:null},vs={current:!1};function Gi(){if(vs.current=!0,!!bs)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Me.current=t.matches;t.addListener(e),e()}else Me.current=!1}const $i=[...rs,S,z],ji=t=>$i.find(is(t)),bt=new WeakMap;function zi(t,e,s){for(const n in e){const i=e[n],r=s[n];if(P(i))t.addValue(n,i);else if(P(r))t.addValue(n,Z(i,{owner:t}));else if(r!==i)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(n);t.addValue(n,Z(o!==void 0?o:i,{owner:t}))}}for(const n in s)e[n]===void 0&&t.removeValue(n);return e}const Vt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class qi{scrapeMotionValuesFromProps(e,s,n){return{}}constructor({parent:e,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=E.now();this.renderScheduledAtthis.bindToMotionValue(n,s)),vs.current||Gi(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Me.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bt.delete(this.current),this.projection&&this.projection.unmount(),X(this.notifyUpdate),X(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const s=this.features[e];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(e,s){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=$.has(e),i=s.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&D.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=s.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,s)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),s.owner&&s.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ge){const s=ge[e];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gs()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,s){this.latestValues[e]=s}update(e,s){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;ns.variantChildren.delete(e)}addValue(e,s){const n=this.values.get(e);s!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,s),this.values.set(e,s),this.latestValues[e]=s.get())}removeValue(e){this.values.delete(e);const s=this.valueSubscriptions.get(e);s&&(s(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,s){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&s!==void 0&&(n=Z(s===null?void 0:s,{owner:this}),this.addValue(e,n)),n}readValue(e,s){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(ss(i)||qt(i))?i=parseFloat(i):!ji(i)&&z.test(s)&&(i=Jt(e,s)),this.setBaseTarget(e,P(i)?i.get():i)),P(i)?i.get():i}setBaseTarget(e,s){this.baseTarget[e]=s}getBaseTarget(e){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=St(this.props,n,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!P(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,s){return this.events[e]||(this.events[e]=new Bt),this.events[e].add(s)}notify(e,...s){this.events[e]&&this.events[e].notify(...s)}}class Ts extends qi{constructor(){super(...arguments),this.KeyframeResolver=os}sortInstanceNodePosition(e,s){return e.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(e,s){return e.style?e.style[s]:void 0}removeValueFromRenderState(e,{vars:s,style:n}){delete s[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;P(e)&&(this.childSubscription=e.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function Yi(t){return window.getComputedStyle(t)}class cr extends Ts{constructor(){super(...arguments),this.type="html",this.renderInstance=Ft}readValueFromInstance(e,s){if($.has(s)){const n=ke(s);return n&&n.default||0}else{const n=Yi(e),i=(Mt(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:s}){return ys(e,s)}build(e,s,n){Ct(e,s,n.transformTemplate)}scrapeMotionValuesFromProps(e,s,n){return Et(e,s,n)}}class fr extends Ts{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gs}getBaseTargetFromProps(e,s){return e[s]}readValueFromInstance(e,s){if($.has(s)){const n=ke(s);return n&&n.default||0}return s=Dt.has(s)?s:Pe(s),e.getAttribute(s)}scrapeMotionValuesFromProps(e,s,n){return Zs(e,s,n)}build(e,s,n){qs(e,s,this.isSVGTag,n.transformTemplate)}renderInstance(e,s,n,i){Xs(e,s,n,i)}mount(e){this.isSVGTag=Ys(e.tagName),super.mount(e)}}export{Ot as $,re as A,Le as B,X as C,tr as D,I as E,B as F,te as G,Oe as H,_ as I,gs as J,rr as K,nr as L,Ni as M,ln as N,ms as O,U as P,k as Q,h as R,z as S,Qi as T,en as U,tn as V,vn as W,dt as X,Bt as Y,ar as Z,lr as _,wt as a,E as a0,Hi as a1,Li as a2,yt as a3,Tt as a4,_i as a5,Wi as a6,Ui as a7,ir as a8,sr as a9,or as aa,Rt as ab,un as ac,ur as ad,er as ae,fr as af,cr as ag,As as b,Ss as c,P as d,Zi as e,ge as f,Fs as g,Ms as h,bs as i,D as j,qs as k,Ys as l,Xs as m,Et as n,Rs as o,Hs as p,Ct as q,St as r,Zs as s,$ as t,Qs as u,Ji as v,Cs as w,Es as x,Ps as y,lt as z};
diff --git a/vitals/console/static/assets/query-CgLjg1tz.js b/vitals/console/static/assets/query-CgLjg1tz.js
new file mode 100644
index 0000000..8471cdc
--- /dev/null
+++ b/vitals/console/static/assets/query-CgLjg1tz.js
@@ -0,0 +1,9 @@
+var pe=e=>{throw TypeError(e)};var $t=(e,t,s)=>t.has(e)||pe("Cannot "+s);var i=(e,t,s)=>($t(e,t,"read from private field"),s?s.call(e):t.get(e)),c=(e,t,s)=>t.has(e)?pe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),o=(e,t,s,r)=>($t(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s),p=(e,t,s)=>($t(e,t,"access private method"),s);var Bt=(e,t,s,r)=>({set _(n){o(e,t,n,s)},get _(){return i(e,t,r)}});import{r as K}from"./vendor-CTg1skId.js";var je={exports:{}},Wt={};/**
+ * @license React
+ * react-jsx-runtime.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Je=K,Ye=Symbol.for("react.element"),Ze=Symbol.for("react.fragment"),Xe=Object.prototype.hasOwnProperty,ts=Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,es={key:!0,ref:!0,__self:!0,__source:!0};function Ue(e,t,s){var r,n={},a=null,h=null;s!==void 0&&(a=""+s),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(h=t.ref);for(r in t)Xe.call(t,r)&&!es.hasOwnProperty(r)&&(n[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)n[r]===void 0&&(n[r]=t[r]);return{$$typeof:Ye,type:e,key:a,ref:h,props:n,_owner:ts.current}}Wt.Fragment=Ze;Wt.jsx=Ue;Wt.jsxs=Ue;je.exports=Wt;var ss=je.exports,Lt=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(){}},ht,X,gt,Fe,rs=(Fe=class extends Lt{constructor(){super();c(this,ht);c(this,X);c(this,gt);o(this,gt,t=>{if(typeof window<"u"&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){i(this,X)||this.setEventListener(i(this,gt))}onUnsubscribe(){var t;this.hasListeners()||((t=i(this,X))==null||t.call(this),o(this,X,void 0))}setEventListener(t){var s;o(this,gt,t),(s=i(this,X))==null||s.call(this),o(this,X,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){i(this,ht)!==t&&(o(this,ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof i(this,ht)=="boolean"?i(this,ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ht=new WeakMap,X=new WeakMap,gt=new WeakMap,Fe),ce=new rs,is={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},tt,he,Ee,ns=(Ee=class{constructor(){c(this,tt,is);c(this,he,!1)}setTimeoutProvider(e){o(this,tt,e)}setTimeout(e,t){return i(this,tt).setTimeout(e,t)}clearTimeout(e){i(this,tt).clearTimeout(e)}setInterval(e,t){return i(this,tt).setInterval(e,t)}clearInterval(e){i(this,tt).clearInterval(e)}},tt=new WeakMap,he=new WeakMap,Ee),ut=new ns;function as(e){setTimeout(e,0)}var os=typeof window>"u"||"Deno"in globalThis;function q(){}function us(e,t){return typeof e=="function"?e(t):e}function Vt(e){return typeof e=="number"&&e>=0&&e!==1/0}function qe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ot(e,t){return typeof e=="function"?e(t):e}function L(e,t){return typeof e=="function"?e(t):e}function ve(e,t){const{type:s="all",exact:r,fetchStatus:n,predicate:a,queryKey:h,stale:u}=e;if(h){if(r){if(t.queryHash!==le(h,t.options))return!1}else if(!Tt(t.queryKey,h))return!1}if(s!=="all"){const y=t.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||n&&n!==t.state.fetchStatus||a&&!a(t))}function me(e,t){const{exact:s,status:r,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(s){if(xt(t.options.mutationKey)!==xt(a))return!1}else if(!Tt(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||n&&!n(t))}function le(e,t){return((t==null?void 0:t.queryKeyHashFn)||xt)(e)}function xt(e){return JSON.stringify(e,(t,s)=>Yt(s)?Object.keys(s).sort().reduce((r,n)=>(r[n]=s[n],r),{}):s)}function Tt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r500)return t;const r=ge(e)&&ge(t);if(!r&&!(Yt(e)&&Yt(t)))return t;const a=(r?e:Object.keys(e)).length,h=r?t:Object.keys(t),u=h.length,y=r?new Array(u):{};let F=0;for(let g=0;g{ut.setTimeout(t,e)})}function Zt(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?ke(e,t):t}function ls(e,t,s=0){const r=[...e,t];return s&&r.length>s?r.slice(1):r}function fs(e,t,s=0){const r=[t,...e];return s&&r.length>s?r.slice(0,-1):r}var fe=Symbol();function Le(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fe?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ke(e,t){return typeof e=="function"?e(...t):!!e}function ds(e,t,s){let r=!1,n;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??(n=t()),r||(r=!0,n.aborted?s():n.addEventListener("abort",s,{once:!0})),n)}),e}var At=(()=>{let e=()=>os;return{isServer(){return e()},setIsServer(t){e=t}}})();function Xt(){let e,t;const s=new Promise((n,a)=>{e=n,t=a});s.status="pending",s.catch(()=>{});function r(n){Object.assign(s,n),delete s.resolve,delete s.reject}return s.resolve=n=>{r({status:"fulfilled",value:n}),e(n)},s.reject=n=>{r({status:"rejected",reason:n}),t(n)},s}var ys=as;function ps(){let e=[],t=0,s=u=>{u()},r=u=>{u()},n=ys;const a=u=>{t?e.push(u):n(()=>{s(u)})},h=()=>{const u=e;e=[],u.length&&n(()=>{r(()=>{u.forEach(y=>{s(y)})})})};return{batch:u=>{let y;t++;try{y=u()}finally{t--,t||h()}return y},batchCalls:u=>(...y)=>{a(()=>{u(...y)})},schedule:a,setNotifyFunction:u=>{s=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{n=u}}}var D=ps(),bt,et,St,Qe,vs=(Qe=class extends Lt{constructor(){super();c(this,bt,!0);c(this,et);c(this,St);o(this,St,t=>{if(typeof window<"u"&&window.addEventListener){const s=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){i(this,et)||this.setEventListener(i(this,St))}onUnsubscribe(){var t;this.hasListeners()||((t=i(this,et))==null||t.call(this),o(this,et,void 0))}setEventListener(t){var s;o(this,St,t),(s=i(this,et))==null||s.call(this),o(this,et,t(this.setOnline.bind(this)))}setOnline(t){i(this,bt)!==t&&(o(this,bt,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return i(this,bt)}},bt=new WeakMap,et=new WeakMap,St=new WeakMap,Qe),zt=new vs;function ms(e){return Math.min(1e3*2**e,3e4)}function Ne(e){return(e??"online")==="online"?zt.isOnline():!0}var te=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function He(e){let t=!1,s=0,r;const n=Xt(),a=()=>n.status!=="pending",h=m=>{var S;if(!a()){const w=new te(m);O(w),(S=e.onCancel)==null||S.call(e,w)}},u=()=>{t=!0},y=()=>{t=!1},F=()=>ce.isFocused()&&(e.networkMode==="always"||zt.isOnline())&&e.canRun(),g=()=>Ne(e.networkMode)&&e.canRun(),f=m=>{a()||(r==null||r(),n.resolve(m))},O=m=>{a()||(r==null||r(),n.reject(m))},d=()=>new Promise(m=>{var S;r=w=>{(a()||F())&&m(w)},(S=e.onPause)==null||S.call(e)}).then(()=>{var m;r=void 0,a()||(m=e.onContinue)==null||m.call(e)}),E=()=>{if(a())return;let m;const S=s===0?e.initialPromise:void 0;try{m=S??e.fn()}catch(w){m=Promise.reject(w)}Promise.resolve(m).then(f).catch(w=>{var j;if(a())return;const Q=e.retry??(At.isServer()?0:3),P=e.retryDelay??ms,l=typeof P=="function"?P(s,w):P,M=Q===!0||typeof Q=="number"&&sF()?void 0:d()).then(()=>{t?O(w):E()})})};return{promise:n,status:()=>n.status,cancel:h,continue:()=>(r==null||r(),n),cancelRetry:u,continueRetry:y,canStart:g,start:()=>(g()?E():d().then(E),n)}}var ct,Me,Be=(Me=class{constructor(){c(this,ct)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vt(this.gcTime)&&o(this,ct,ut.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(At.isServer()?1/0:5*60*1e3))}clearGcTimeout(){i(this,ct)!==void 0&&(ut.clearTimeout(i(this,ct)),o(this,ct,void 0))}},ct=new WeakMap,Me);function gs(e){return{onFetch:(t,s)=>{var g,f,O,d,E;const r=t.options,n=(O=(f=(g=t.fetchOptions)==null?void 0:g.meta)==null?void 0:f.fetchMore)==null?void 0:O.direction,a=((d=t.state.data)==null?void 0:d.pages)||[],h=((E=t.state.data)==null?void 0:E.pageParams)||[];let u={pages:[],pageParams:[]},y=0;const F=async()=>{let m=!1;const S=P=>{ds(P,()=>t.signal,()=>m=!0)},w=Le(t.options,t.fetchOptions),Q=async(P,l,M)=>{if(m)return Promise.reject(t.signal.reason);if(l==null&&P.pages.length)return Promise.resolve(P);const J=(()=>{const Y={client:t.client,queryKey:t.queryKey,pageParam:l,direction:M?"backward":"forward",meta:t.options.meta};return S(Y),Y})(),C=await w(J),{maxPages:I}=t.options,A=M?fs:ls;return{pages:A(P.pages,C,I),pageParams:A(P.pageParams,l,I)}};if(n&&a.length){const P=n==="backward",l=P?bs:Se,M={pages:a,pageParams:h},j=l(r,M);u=await Q(M,j,P)}else{const P=e??a.length;do{const l=y===0?h[0]??r.initialPageParam:Se(r,u);if(y>0&&l==null)break;u=await Q(u,l),y++}while(y{var m,S;return(S=(m=t.options).persister)==null?void 0:S.call(m,F,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s)}:t.fetchFn=F}}}function Se(e,{pages:t,pageParams:s}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}function bs(e,{pages:t,pageParams:s}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,s[0],s):void 0}var wt,lt,Ct,N,ft,T,_t,dt,k,Ge,W,Ie,Ss=(Ie=class extends Be{constructor(t){super();c(this,k);c(this,wt);c(this,lt);c(this,Ct);c(this,N);c(this,ft);c(this,T);c(this,_t);c(this,dt);o(this,dt,!1),o(this,_t,t.defaultOptions),this.setOptions(t.options),this.observers=[],o(this,ft,t.client),o(this,N,i(this,ft).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,o(this,lt,Ce(this.options)),this.state=t.state??i(this,lt),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return i(this,wt)}get promise(){var t;return(t=i(this,T))==null?void 0:t.promise}setOptions(t){if(this.options={...i(this,_t),...t},t!=null&&t._type&&o(this,wt,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Ce(this.options);s.data!==void 0&&(this.setState(we(s.data,s.dataUpdatedAt)),o(this,lt,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&i(this,N).remove(this)}setData(t,s){const r=Zt(this.state.data,t,this.options);return p(this,k,W).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(t){p(this,k,W).call(this,{type:"setState",state:t})}cancel(t){var r,n;const s=(r=i(this,T))==null?void 0:r.promise;return(n=i(this,T))==null||n.cancel(t),s?s.then(q).catch(q):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return i(this,lt)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>L(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fe||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ot(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!qe(this.state.dataUpdatedAt,t)}onFocus(){var s;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(s=i(this,T))==null||s.continue()}onOnline(){var s;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(s=i(this,T))==null||s.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),i(this,N).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(s=>s!==t),this.observers.length||(i(this,T)&&(i(this,dt)||p(this,k,Ge).call(this)?i(this,T).cancel({revert:!0}):i(this,T).cancelRetry()),this.scheduleGc()),i(this,N).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,k,W).call(this,{type:"invalidate"})}async fetch(t,s){var F,g,f,O,d,E,m,S,w,Q,P;if(this.state.fetchStatus!=="idle"&&((F=i(this,T))==null?void 0:F.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(i(this,T))return i(this,T).continueRetry(),i(this,T).promise}if(t&&this.setOptions(t),!this.options.queryFn){const l=this.observers.find(M=>M.options.queryFn);l&&this.setOptions(l.options)}const r=new AbortController,n=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(o(this,dt,!0),r.signal)})},a=()=>{const l=Le(this.options,s),j=(()=>{const J={client:i(this,ft),queryKey:this.queryKey,meta:this.meta};return n(J),J})();return o(this,dt,!1),this.options.persister?this.options.persister(l,j,this):l(j)},u=(()=>{const l={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:i(this,ft),state:this.state,fetchFn:a};return n(l),l})(),y=i(this,wt)==="infinite"?gs(this.options.pages):this.options.behavior;y==null||y.onFetch(u,this),o(this,Ct,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=u.fetchOptions)==null?void 0:g.meta))&&p(this,k,W).call(this,{type:"fetch",meta:(f=u.fetchOptions)==null?void 0:f.meta}),o(this,T,He({initialPromise:s==null?void 0:s.initialPromise,fn:u.fetchFn,onCancel:l=>{l instanceof te&&l.revert&&this.setState({...i(this,Ct),fetchStatus:"idle"}),r.abort()},onFail:(l,M)=>{p(this,k,W).call(this,{type:"failed",failureCount:l,error:M})},onPause:()=>{p(this,k,W).call(this,{type:"pause"})},onContinue:()=>{p(this,k,W).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const l=await i(this,T).start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),(d=(O=i(this,N).config).onSuccess)==null||d.call(O,l,this),(m=(E=i(this,N).config).onSettled)==null||m.call(E,l,this.state.error,this),l}catch(l){if(l instanceof te){if(l.silent)return i(this,T).promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw p(this,k,W).call(this,{type:"error",error:l}),(w=(S=i(this,N).config).onError)==null||w.call(S,l,this),(P=(Q=i(this,N).config).onSettled)==null||P.call(Q,this.state.data,l,this),l}finally{this.scheduleGc()}}},wt=new WeakMap,lt=new WeakMap,Ct=new WeakMap,N=new WeakMap,ft=new WeakMap,T=new WeakMap,_t=new WeakMap,dt=new WeakMap,k=new WeakSet,Ge=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},W=function(t){const s=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ze(r.data,this.options),fetchMeta:t.meta??null};case"success":const n={...r,...we(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return o(this,Ct,t.manual?n:void 0),n;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=s(this.state),D.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),i(this,N).notify({query:this,type:"updated",action:t})})},Ie);function ze(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ne(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function we(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ce(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,r=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var U,v,jt,_,yt,Ot,$,st,Ut,Pt,Rt,pt,vt,rt,Ft,b,Dt,ee,se,re,ie,ne,ae,oe,We,Te,ws=(Te=class extends Lt{constructor(t,s){super();c(this,b);c(this,U);c(this,v);c(this,jt);c(this,_);c(this,yt);c(this,Ot);c(this,$);c(this,st);c(this,Ut);c(this,Pt);c(this,Rt);c(this,pt);c(this,vt);c(this,rt);c(this,Ft,new Set);this.options=s,o(this,U,t),o(this,st,null),o(this,$,Xt()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(i(this,v).addObserver(this),Oe(i(this,v),this.options)?p(this,b,Dt).call(this):this.updateResult(),p(this,b,ie).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ue(i(this,v),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ue(i(this,v),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,p(this,b,ne).call(this),p(this,b,ae).call(this),i(this,v).removeObserver(this)}setOptions(t){const s=this.options,r=i(this,v);if(this.options=i(this,U).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof L(this.options.enabled,i(this,v))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");p(this,b,oe).call(this),i(this,v).setOptions(this.options),s._defaulted&&!Jt(this.options,s)&&i(this,U).getQueryCache().notify({type:"observerOptionsUpdated",query:i(this,v),observer:this});const n=this.hasListeners();n&&Pe(i(this,v),r,this.options,s)&&p(this,b,Dt).call(this),this.updateResult(),n&&(i(this,v)!==r||L(this.options.enabled,i(this,v))!==L(s.enabled,i(this,v))||ot(this.options.staleTime,i(this,v))!==ot(s.staleTime,i(this,v)))&&p(this,b,ee).call(this);const a=p(this,b,se).call(this);n&&(i(this,v)!==r||L(this.options.enabled,i(this,v))!==L(s.enabled,i(this,v))||a!==i(this,rt))&&p(this,b,re).call(this,a)}getOptimisticResult(t){const s=i(this,U).getQueryCache().build(i(this,U),t),r=this.createResult(s,t);return Os(this,r)&&(o(this,_,r),o(this,Ot,this.options),o(this,yt,i(this,v).state)),r}getCurrentResult(){return i(this,_)}trackResult(t,s){return new Proxy(t,{get:(r,n)=>(this.trackProp(n),s==null||s(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&i(this,$).status==="pending"&&i(this,$).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(t){i(this,Ft).add(t)}getCurrentQuery(){return i(this,v)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=i(this,U).defaultQueryOptions(t),r=i(this,U).getQueryCache().build(i(this,U),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(t){return p(this,b,Dt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),i(this,_)))}createResult(t,s){var I;const r=i(this,v),n=this.options,a=i(this,_),h=i(this,yt),u=i(this,Ot),F=t!==r?t.state:i(this,jt),{state:g}=t;let f={...g},O=!1,d;if(s._optimisticResults){const A=this.hasListeners(),Y=!A&&Oe(t,s),Kt=A&&Pe(t,r,s,n);(Y||Kt)&&(f={...f,...ze(g.data,t.options)}),s._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:E,errorUpdatedAt:m,status:S}=f;d=f.data;let w=!1;if(s.placeholderData!==void 0&&d===void 0&&S==="pending"){let A;a!=null&&a.isPlaceholderData&&s.placeholderData===(u==null?void 0:u.placeholderData)?(A=a.data,w=!0):A=typeof s.placeholderData=="function"?s.placeholderData((I=i(this,Rt))==null?void 0:I.state.data,i(this,Rt)):s.placeholderData,A!==void 0&&(S="success",d=Zt(a==null?void 0:a.data,A,s),O=!0)}if(s.select&&d!==void 0&&!w)if(a&&d===(h==null?void 0:h.data)&&s.select===i(this,Ut))d=i(this,Pt);else try{o(this,Ut,s.select),d=s.select(d),d=Zt(a==null?void 0:a.data,d,s),o(this,Pt,d),o(this,st,null)}catch(A){o(this,st,A)}i(this,st)&&(E=i(this,st),d=i(this,Pt),m=Date.now(),S="error");const Q=f.fetchStatus==="fetching",P=S==="pending",l=S==="error",M=P&&Q,j=d!==void 0,C={status:S,fetchStatus:f.fetchStatus,isPending:P,isSuccess:S==="success",isError:l,isInitialLoading:M,isLoading:M,data:d,dataUpdatedAt:f.dataUpdatedAt,error:E,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>F.dataUpdateCount||f.errorUpdateCount>F.errorUpdateCount,isFetching:Q,isRefetching:Q&&!P,isLoadingError:l&&!j,isPaused:f.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:l&&j,isStale:de(t,s),refetch:this.refetch,promise:i(this,$),isEnabled:L(s.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const A=C.data!==void 0,Y=C.status==="error"&&!A,Kt=Ht=>{Y?Ht.reject(C.error):A&&Ht.resolve(C.data)},ye=()=>{const Ht=o(this,$,C.promise=Xt());Kt(Ht)},Nt=i(this,$);switch(Nt.status){case"pending":t.queryHash===r.queryHash&&Kt(Nt);break;case"fulfilled":(Y||C.data!==Nt.value)&&ye();break;case"rejected":(!Y||C.error!==Nt.reason)&&ye();break}}return C}updateResult(){const t=i(this,_),s=this.createResult(i(this,v),this.options);if(o(this,yt,i(this,v).state),o(this,Ot,this.options),i(this,yt).data!==void 0&&o(this,Rt,i(this,v)),Jt(s,t))return;o(this,_,s);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:n}=this.options,a=typeof n=="function"?n():n;if(a==="all"||!a&&!i(this,Ft).size)return!0;const h=new Set(a??i(this,Ft));return this.options.throwOnError&&h.add("error"),Object.keys(i(this,_)).some(u=>{const y=u;return i(this,_)[y]!==t[y]&&h.has(y)})};p(this,b,We).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&p(this,b,ie).call(this)}},U=new WeakMap,v=new WeakMap,jt=new WeakMap,_=new WeakMap,yt=new WeakMap,Ot=new WeakMap,$=new WeakMap,st=new WeakMap,Ut=new WeakMap,Pt=new WeakMap,Rt=new WeakMap,pt=new WeakMap,vt=new WeakMap,rt=new WeakMap,Ft=new WeakMap,b=new WeakSet,Dt=function(t){p(this,b,oe).call(this);let s=i(this,v).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(q)),s},ee=function(){p(this,b,ne).call(this);const t=ot(this.options.staleTime,i(this,v));if(At.isServer()||i(this,_).isStale||!Vt(t))return;const r=qe(i(this,_).dataUpdatedAt,t)+1;o(this,pt,ut.setTimeout(()=>{i(this,_).isStale||this.updateResult()},r))},se=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(i(this,v)):this.options.refetchInterval)??!1},re=function(t){p(this,b,ae).call(this),o(this,rt,t),!(At.isServer()||L(this.options.enabled,i(this,v))===!1||!Vt(i(this,rt))||i(this,rt)===0)&&o(this,vt,ut.setInterval(()=>{(this.options.refetchIntervalInBackground||ce.isFocused())&&p(this,b,Dt).call(this)},i(this,rt)))},ie=function(){p(this,b,ee).call(this),p(this,b,re).call(this,p(this,b,se).call(this))},ne=function(){i(this,pt)!==void 0&&(ut.clearTimeout(i(this,pt)),o(this,pt,void 0))},ae=function(){i(this,vt)!==void 0&&(ut.clearInterval(i(this,vt)),o(this,vt,void 0))},oe=function(){const t=i(this,U).getQueryCache().build(i(this,U),this.options);if(t===i(this,v))return;const s=i(this,v);o(this,v,t),o(this,jt,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},We=function(t){D.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(i(this,_))}),i(this,U).getQueryCache().notify({query:i(this,v),type:"observerResultsUpdated"})})},Te);function Cs(e,t){return L(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&L(t.retryOnMount,e)===!1)}function Oe(e,t){return Cs(e,t)||e.state.data!==void 0&&ue(e,t,t.refetchOnMount)}function ue(e,t,s){if(L(t.enabled,e)!==!1&&ot(t.staleTime,e)!=="static"){const r=typeof s=="function"?s(e):s;return r==="always"||r!==!1&&de(e,t)}return!1}function Pe(e,t,s,r){return(e!==t||L(r.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&de(e,s)}function de(e,t){return L(t.enabled,e)!==!1&&e.isStaleByTime(ot(t.staleTime,e))}function Os(e,t){return!Jt(e.getCurrentResult(),t)}var qt,B,x,mt,G,Z,De,Ps=(De=class extends Be{constructor(t){super();c(this,G);c(this,qt);c(this,B);c(this,x);c(this,mt);o(this,qt,t.client),this.mutationId=t.mutationId,o(this,x,t.mutationCache),o(this,B,[]),this.state=t.state||Rs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){i(this,B).includes(t)||(i(this,B).push(t),this.clearGcTimeout(),i(this,x).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){o(this,B,i(this,B).filter(s=>s!==t)),this.scheduleGc(),i(this,x).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){i(this,B).length||(this.state.status==="pending"?this.scheduleGc():i(this,x).remove(this))}continue(){var t;return((t=i(this,mt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var h,u,y,F,g,f,O,d,E,m,S,w,Q,P,l,M,j,J;const s=()=>{p(this,G,Z).call(this,{type:"continue"})},r={client:i(this,qt),meta:this.options.meta,mutationKey:this.options.mutationKey};o(this,mt,He({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(C,I)=>{p(this,G,Z).call(this,{type:"failed",failureCount:C,error:I})},onPause:()=>{p(this,G,Z).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>i(this,x).canRun(this)}));const n=this.state.status==="pending",a=!i(this,mt).canStart();try{if(n)s();else{p(this,G,Z).call(this,{type:"pending",variables:t,isPaused:a}),i(this,x).config.onMutate&&await i(this,x).config.onMutate(t,this,r);const I=await((u=(h=this.options).onMutate)==null?void 0:u.call(h,t,r));I!==this.state.context&&p(this,G,Z).call(this,{type:"pending",context:I,variables:t,isPaused:a})}const C=await i(this,mt).start();return await((F=(y=i(this,x).config).onSuccess)==null?void 0:F.call(y,C,t,this.state.context,this,r)),await((f=(g=this.options).onSuccess)==null?void 0:f.call(g,C,t,this.state.context,r)),await((d=(O=i(this,x).config).onSettled)==null?void 0:d.call(O,C,null,this.state.variables,this.state.context,this,r)),await((m=(E=this.options).onSettled)==null?void 0:m.call(E,C,null,t,this.state.context,r)),p(this,G,Z).call(this,{type:"success",data:C}),C}catch(C){try{await((w=(S=i(this,x).config).onError)==null?void 0:w.call(S,C,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((P=(Q=this.options).onError)==null?void 0:P.call(Q,C,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((M=(l=i(this,x).config).onSettled)==null?void 0:M.call(l,void 0,C,this.state.variables,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((J=(j=this.options).onSettled)==null?void 0:J.call(j,void 0,C,t,this.state.context,r))}catch(I){Promise.reject(I)}throw p(this,G,Z).call(this,{type:"error",error:C}),C}finally{i(this,x).runNext(this)}}},qt=new WeakMap,B=new WeakMap,x=new WeakMap,mt=new WeakMap,G=new WeakSet,Z=function(t){const s=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=s(this.state),D.batch(()=>{i(this,B).forEach(r=>{r.onMutationUpdate(t)}),i(this,x).notify({mutation:this,type:"updated",action:t})})},De);function Rs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var V,H,kt,xe,Fs=(xe=class extends Lt{constructor(t={}){super();c(this,V);c(this,H);c(this,kt);this.config=t,o(this,V,new Set),o(this,H,new Map),o(this,kt,0)}build(t,s,r){const n=new Ps({client:t,mutationCache:this,mutationId:++Bt(this,kt)._,options:t.defaultMutationOptions(s),state:r});return this.add(n),n}add(t){i(this,V).add(t);const s=Gt(t);if(typeof s=="string"){const r=i(this,H).get(s);r?r.push(t):i(this,H).set(s,[t])}this.notify({type:"added",mutation:t})}remove(t){if(i(this,V).delete(t)){const s=Gt(t);if(typeof s=="string"){const r=i(this,H).get(s);if(r)if(r.length>1){const n=r.indexOf(t);n!==-1&&r.splice(n,1)}else r[0]===t&&i(this,H).delete(s)}}this.notify({type:"removed",mutation:t})}canRun(t){const s=Gt(t);if(typeof s=="string"){const r=i(this,H).get(s),n=r==null?void 0:r.find(a=>a.state.status==="pending");return!n||n===t}else return!0}runNext(t){var r;const s=Gt(t);if(typeof s=="string"){const n=(r=i(this,H).get(s))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}else return Promise.resolve()}clear(){D.batch(()=>{i(this,V).forEach(t=>{this.notify({type:"removed",mutation:t})}),i(this,V).clear(),i(this,H).clear()})}getAll(){return Array.from(i(this,V))}find(t){const s={exact:!0,...t};return this.getAll().find(r=>me(s,r))}findAll(t={}){return this.getAll().filter(s=>me(t,s))}notify(t){D.batch(()=>{this.listeners.forEach(s=>{s(t)})})}resumePausedMutations(){const t=this.getAll().filter(s=>s.state.isPaused);return D.batch(()=>Promise.all(t.map(s=>s.continue().catch(q))))}},V=new WeakMap,H=new WeakMap,kt=new WeakMap,xe);function Gt(e){var t;return(t=e.options.scope)==null?void 0:t.id}var z,Ae,Es=(Ae=class extends Lt{constructor(t={}){super();c(this,z);this.config=t,o(this,z,new Map)}build(t,s,r){const n=s.queryKey,a=s.queryHash??le(n,s);let h=this.get(a);return h||(h=new Ss({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(s),state:r,defaultOptions:t.getQueryDefaults(n)}),this.add(h)),h}add(t){i(this,z).has(t.queryHash)||(i(this,z).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const s=i(this,z).get(t.queryHash);s&&(t.destroy(),s===t&&i(this,z).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){D.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return i(this,z).get(t)}getAll(){return[...i(this,z).values()]}find(t){const s={exact:!0,...t};return this.getAll().find(r=>ve(s,r))}findAll(t={}){const s=this.getAll();return Object.keys(t).length>0?s.filter(r=>ve(t,r)):s}notify(t){D.batch(()=>{this.listeners.forEach(s=>{s(t)})})}onFocus(){D.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){D.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},z=new WeakMap,Ae),R,it,nt,Et,Qt,at,Mt,It,_e,Ns=(_e=class{constructor(e={}){c(this,R);c(this,it);c(this,nt);c(this,Et);c(this,Qt);c(this,at);c(this,Mt);c(this,It);o(this,R,e.queryCache||new Es),o(this,it,e.mutationCache||new Fs),o(this,nt,e.defaultOptions||{}),o(this,Et,new Map),o(this,Qt,new Map),o(this,at,0)}mount(){Bt(this,at)._++,i(this,at)===1&&(o(this,Mt,ce.subscribe(async e=>{e&&(await this.resumePausedMutations(),i(this,R).onFocus())})),o(this,It,zt.subscribe(async e=>{e&&(await this.resumePausedMutations(),i(this,R).onOnline())})))}unmount(){var e,t;Bt(this,at)._--,i(this,at)===0&&((e=i(this,Mt))==null||e.call(this),o(this,Mt,void 0),(t=i(this,It))==null||t.call(this),o(this,It,void 0))}isFetching(e){return i(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return i(this,it).findAll({...e,status:"pending"}).length}getQueryData(e){var s;const t=this.defaultQueryOptions({queryKey:e});return(s=i(this,R).get(t.queryHash))==null?void 0:s.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=i(this,R).build(this,t),r=s.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(ot(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return i(this,R).findAll(e).map(({queryKey:t,state:s})=>{const r=s.data;return[t,r]})}setQueryData(e,t,s){const r=this.defaultQueryOptions({queryKey:e}),n=i(this,R).get(r.queryHash),a=n==null?void 0:n.state.data,h=us(t,a);if(h!==void 0)return i(this,R).build(this,r).setData(h,{...s,manual:!0})}setQueriesData(e,t,s){return D.batch(()=>i(this,R).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,s)]))}getQueryState(e){var s;const t=this.defaultQueryOptions({queryKey:e});return(s=i(this,R).get(t.queryHash))==null?void 0:s.state}removeQueries(e){const t=i(this,R);D.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=i(this,R);return D.batch(()=>(s.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const s={revert:!0,...t},r=D.batch(()=>i(this,R).findAll(e).map(n=>n.cancel(s)));return Promise.all(r).then(q).catch(q)}invalidateQueries(e,t={}){return D.batch(()=>(i(this,R).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},r=D.batch(()=>i(this,R).findAll(e).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let a=n.fetch(void 0,s);return s.throwOnError||(a=a.catch(q)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(q)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=i(this,R).build(this,t);return s.isStaleByTime(ot(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(q).catch(q)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(q).catch(q)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return zt.isOnline()?i(this,it).resumePausedMutations():Promise.resolve()}getQueryCache(){return i(this,R)}getMutationCache(){return i(this,it)}getDefaultOptions(){return i(this,nt)}setDefaultOptions(e){o(this,nt,e)}setQueryDefaults(e,t){i(this,Et).set(xt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...i(this,Et).values()],s={};return t.forEach(r=>{Tt(e,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(e,t){i(this,Qt).set(xt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...i(this,Qt).values()],s={};return t.forEach(r=>{Tt(e,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...i(this,nt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=le(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===fe&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...i(this,nt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){i(this,R).clear(),i(this,it).clear()}},R=new WeakMap,it=new WeakMap,nt=new WeakMap,Et=new WeakMap,Qt=new WeakMap,at=new WeakMap,Mt=new WeakMap,It=new WeakMap,_e),$e=K.createContext(void 0),Qs=e=>{const t=K.useContext($e);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Hs=({client:e,children:t})=>(K.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ss.jsx($e.Provider,{value:e,children:t})),Ve=K.createContext(!1),Ms=()=>K.useContext(Ve);Ve.Provider;function Is(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ts=K.createContext(Is()),Ds=()=>K.useContext(Ts),xs=(e,t,s)=>{const r=s!=null&&s.state.error&&typeof e.throwOnError=="function"?Ke(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},As=e=>{K.useEffect(()=>{e.clearReset()},[e])},_s=({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(n&&e.data===void 0||Ke(s,[e.error,r])),js=e=>{if(e.suspense){const s=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>s(r(...n)):s(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Us=(e,t)=>e.isLoading&&e.isFetching&&!t,qs=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Re=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function ks(e,t,s){var d,E,m,S;const r=Ms(),n=Ds(),a=Qs(),h=a.defaultQueryOptions(e);(E=(d=a.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||E.call(d,h);const u=a.getQueryCache().get(h.queryHash),y=e.subscribed!==!1;h._optimisticResults=r?"isRestoring":y?"optimistic":void 0,js(h),xs(h,n,u),As(n);const F=!a.getQueryCache().get(h.queryHash),[g]=K.useState(()=>new t(a,h)),f=g.getOptimisticResult(h),O=!r&&y;if(K.useSyncExternalStore(K.useCallback(w=>{const Q=O?g.subscribe(D.batchCalls(w)):q;return g.updateResult(),Q},[g,O]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),K.useEffect(()=>{g.setOptions(h)},[h,g]),qs(h,f))throw Re(h,g,n);if(_s({result:f,errorResetBoundary:n,throwOnError:h.throwOnError,query:u,suspense:h.suspense}))throw f.error;if((S=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||S.call(m,h,f),h.experimental_prefetchInRender&&!At.isServer()&&Us(f,r)){const w=F?Re(h,g,n):u==null?void 0:u.promise;w==null||w.catch(q).finally(()=>{g.updateResult()})}return h.notifyOnChangeProps?f:g.trackResult(f)}function Bs(e,t){return ks(e,ws)}export{Ns as Q,Hs as a,Qs as b,ss as j,Bs as u};
diff --git a/vitals/console/static/assets/vendor-CTg1skId.js b/vitals/console/static/assets/vendor-CTg1skId.js
new file mode 100644
index 0000000..8f0170f
--- /dev/null
+++ b/vitals/console/static/assets/vendor-CTg1skId.js
@@ -0,0 +1,60 @@
+function cc(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dc={exports:{}},Q={};/**
+ * @license React
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var cl=Symbol.for("react.element"),lp=Symbol.for("react.portal"),ip=Symbol.for("react.fragment"),op=Symbol.for("react.strict_mode"),up=Symbol.for("react.profiler"),ap=Symbol.for("react.provider"),sp=Symbol.for("react.context"),cp=Symbol.for("react.forward_ref"),fp=Symbol.for("react.suspense"),dp=Symbol.for("react.memo"),pp=Symbol.for("react.lazy"),za=Symbol.iterator;function hp(e){return e===null||typeof e!="object"?null:(e=za&&e[za]||e["@@iterator"],typeof e=="function"?e:null)}var pc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hc=Object.assign,mc={};function fr(e,t,n){this.props=e,this.context=t,this.refs=mc,this.updater=n||pc}fr.prototype.isReactComponent={};fr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function vc(){}vc.prototype=fr.prototype;function Su(e,t,n){this.props=e,this.context=t,this.refs=mc,this.updater=n||pc}var Eu=Su.prototype=new vc;Eu.constructor=Su;hc(Eu,fr.prototype);Eu.isPureReactComponent=!0;var Oa=Array.isArray,yc=Object.prototype.hasOwnProperty,ku={current:null},gc={key:!0,ref:!0,__self:!0,__source:!0};function wc(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)yc.call(t,r)&&!gc.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,te=T[ee];if(0>>1;eel(ze,H))Oel(et,ze)?(T[ee]=et,T[Oe]=H,ee=Oe):(T[ee]=ze,T[Ke]=H,ee=Ke);else if(Oel(et,H))T[ee]=et,T[Oe]=H,ee=Oe;else break e}}return $}function l(T,$){var H=T.sortIndex-$.sortIndex;return H!==0?H:T.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],s=[],d=1,f=null,h=3,w=!1,k=!1,E=!1,D=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(T){for(var $=n(s);$!==null;){if($.callback===null)r(s);else if($.startTime<=T)r(s),$.sortIndex=$.expirationTime,t(a,$);else break;$=n(s)}}function x(T){if(E=!1,v(T),!k)if(n(a)!==null)k=!0,It(L);else{var $=n(s);$!==null&&jt(x,$.startTime-T)}}function L(T,$){k=!1,E&&(E=!1,m(P),P=-1),w=!0;var H=h;try{for(v($),f=n(a);f!==null&&(!(f.expirationTime>$)||T&&!b());){var ee=f.callback;if(typeof ee=="function"){f.callback=null,h=f.priorityLevel;var te=ee(f.expirationTime<=$);$=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(a)&&r(a),v($)}else r(a);f=n(a)}if(f!==null)var at=!0;else{var Ke=n(s);Ke!==null&&jt(x,Ke.startTime-$),at=!1}return at}finally{f=null,h=H,w=!1}}var O=!1,y=null,P=-1,B=5,M=-1;function b(){return!(e.unstable_now()-MT||125ee?(T.sortIndex=H,t(s,T),n(a)===null&&T===n(s)&&(E?(m(P),P=-1):E=!0,jt(x,H-ee))):(T.sortIndex=te,t(a,T),k||w||(k=!0,It(L))),T},e.unstable_shouldYield=b,e.unstable_wrapCallback=function(T){var $=h;return function(){var H=h;h=$;try{return T.apply(this,arguments)}finally{h=H}}}})(xc);kc.exports=xc;var Ep=kc.exports;/**
+ * @license React
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its 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=_,Ze=Ep;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Co=Object.prototype.hasOwnProperty,xp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ua={},Ia={};function Cp(e){return Co.call(Ia,e)?!0:Co.call(Ua,e)?!1:xp.test(e)?Ia[e]=!0:(Ua[e]=!0,!1)}function Pp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _p(e,t,n,r){if(t===null||typeof t>"u"||Pp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ae(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cu=/[\-:]([a-z])/g;function Pu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cu,Pu);Le[t]=new Ae(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cu,Pu);Le[t]=new Ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cu,Pu);Le[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function _u(e,t,n,r){var l=Le.hasOwnProperty(t)?Le[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var a=`
+`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{Ji=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nr(e):""}function Rp(e){switch(e.tag){case 5:return Nr(e.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return e=Zi(e.type,!1),e;case 11:return e=Zi(e.type.render,!1),e;case 1:return e=Zi(e.type,!0),e;default:return""}}function Lo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $n:return"Fragment";case Bn:return"Portal";case Po:return"Profiler";case Ru:return"StrictMode";case _o:return"Suspense";case Ro:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _c:return(e.displayName||"Context")+".Consumer";case Pc:return(e._context.displayName||"Context")+".Provider";case Lu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tu:return t=e.displayName||null,t!==null?t:Lo(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return Lo(e(t))}catch{}}return null}function Lp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lo(t);case 8:return t===Ru?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tp(e){var t=Lc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _l(e){e._valueTracker||(e._valueTracker=Tp(e))}function Tc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function To(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Aa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Nc(e,t){t=t.checked,t!=null&&_u(e,"checked",t,!1)}function No(e,t){Nc(e,t);var n=ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Do(e,t.type,n):t.hasOwnProperty("defaultValue")&&Do(e,t.type,ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ba(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Do(e,t,n){(t!=="number"||ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function qn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Np=["Webkit","ms","Moz","O"];Object.keys(Fr).forEach(function(e){Np.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fr[t]=Fr[e]})});function Oc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fr.hasOwnProperty(e)&&Fr[e]?(""+t).trim():t+"px"}function Fc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Oc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Dp=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oo(e,t){if(t){if(Dp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Fo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uo=null;function Nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,bn=null,er=null;function Ha(e){if(e=pl(e)){if(typeof Io!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Mi(t),Io(e.stateNode,e.type,t))}}function Uc(e){bn?er?er.push(e):er=[e]:bn=e}function Ic(){if(bn){var e=bn,t=er;if(er=bn=null,Ha(e),t)for(e=0;e>>=0,e===0?32:31-(Vp(e)/Hp|0)|0}var Ll=64,Tl=4194304;function Mr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ii(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Mr(u):(i&=o,i!==0&&(r=Mr(i)))}else o=n&~l,o!==0?r=Mr(o):i!==0&&(r=Mr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function Yp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ir),qa=" ",ba=!1;function rf(e,t){switch(e){case"keyup":return Eh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function xh(e,t){switch(e){case"compositionend":return lf(t);case"keypress":return t.which!==32?null:(ba=!0,qa);case"textInput":return e=t.data,e===qa&&ba?null:e;default:return null}}function Ch(e,t){if(Vn)return e==="compositionend"||!ju&&rf(e,t)?(e=tf(),Ql=Fu=Yt=null,Vn=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rs(n)}}function sf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cf(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ti(e.document)}return t}function Au(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")}function zh(e){var t=cf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sf(n.ownerDocument.documentElement,n)){if(r!==null&&Au(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=ls(n,i);var o=ls(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hn=null,Ho=null,Ar=null,Wo=!1;function is(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wo||Hn==null||Hn!==ti(r)||(r=Hn,"selectionStart"in r&&Au(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ar&&Zr(Ar,r)||(Ar=r,r=ai(Ho,"onSelect"),0Kn||(e.current=Jo[Kn],Jo[Kn]=null,Kn--)}function le(e,t){Kn++,Jo[Kn]=e.current,e.current=t}var on={},Me=an(on),He=an(!1),Cn=on;function ir(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function We(e){return e=e.childContextTypes,e!=null}function ci(){oe(He),oe(Me)}function ds(e,t,n){if(Me.current!==on)throw Error(R(168));le(Me,t),le(He,n)}function wf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(R(108,Lp(e)||"Unknown",l));return fe({},n,r)}function fi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,Cn=Me.current,le(Me,e),le(He,He.current),!0}function ps(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=wf(e,t,Cn),r.__reactInternalMemoizedMergedChildContext=e,oe(He),oe(Me),le(Me,e)):oe(He),le(He,n)}var _t=null,zi=!1,fo=!1;function Sf(e){_t===null?_t=[e]:_t.push(e)}function Qh(e){zi=!0,Sf(e)}function sn(){if(!fo&&_t!==null){fo=!0;var e=0,t=q;try{var n=_t;for(q=1;e>=o,l-=o,Rt=1<<32-ht(t)+l|n<P?(B=y,y=null):B=y.sibling;var M=h(m,y,v[P],x);if(M===null){y===null&&(y=B);break}e&&y&&M.alternate===null&&t(m,y),c=i(M,c,P),O===null?L=M:O.sibling=M,O=M,y=B}if(P===v.length)return n(m,y),ae&&hn(m,P),L;if(y===null){for(;PP?(B=y,y=null):B=y.sibling;var b=h(m,y,M.value,x);if(b===null){y===null&&(y=B);break}e&&y&&b.alternate===null&&t(m,y),c=i(b,c,P),O===null?L=b:O.sibling=b,O=b,y=B}if(M.done)return n(m,y),ae&&hn(m,P),L;if(y===null){for(;!M.done;P++,M=v.next())M=f(m,M.value,x),M!==null&&(c=i(M,c,P),O===null?L=M:O.sibling=M,O=M);return ae&&hn(m,P),L}for(y=r(m,y);!M.done;P++,M=v.next())M=w(y,m,P,M.value,x),M!==null&&(e&&M.alternate!==null&&y.delete(M.key===null?P:M.key),c=i(M,c,P),O===null?L=M:O.sibling=M,O=M);return e&&y.forEach(function(ne){return t(m,ne)}),ae&&hn(m,P),L}function D(m,c,v,x){if(typeof v=="object"&&v!==null&&v.type===$n&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Pl:e:{for(var L=v.key,O=c;O!==null;){if(O.key===L){if(L=v.type,L===$n){if(O.tag===7){n(m,O.sibling),c=l(O,v.props.children),c.return=m,m=c;break e}}else if(O.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Ht&&vs(L)===O.type){n(m,O.sibling),c=l(O,v.props),c.ref=Cr(m,O,v),c.return=m,m=c;break e}n(m,O);break}else t(m,O);O=O.sibling}v.type===$n?(c=xn(v.props.children,m.mode,x,v.key),c.return=m,m=c):(x=bl(v.type,v.key,v.props,null,m.mode,x),x.ref=Cr(m,c,v),x.return=m,m=x)}return o(m);case Bn:e:{for(O=v.key;c!==null;){if(c.key===O)if(c.tag===4&&c.stateNode.containerInfo===v.containerInfo&&c.stateNode.implementation===v.implementation){n(m,c.sibling),c=l(c,v.children||[]),c.return=m,m=c;break e}else{n(m,c);break}else t(m,c);c=c.sibling}c=So(v,m.mode,x),c.return=m,m=c}return o(m);case Ht:return O=v._init,D(m,c,O(v._payload),x)}if(Dr(v))return k(m,c,v,x);if(wr(v))return E(m,c,v,x);Ul(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,c!==null&&c.tag===6?(n(m,c.sibling),c=l(c,v),c.return=m,m=c):(n(m,c),c=wo(v,m.mode,x),c.return=m,m=c),o(m)):n(m,c)}return D}var ur=Cf(!0),Pf=Cf(!1),hi=an(null),mi=null,Gn=null,Hu=null;function Wu(){Hu=Gn=mi=null}function Qu(e){var t=hi.current;oe(hi),e._currentValue=t}function bo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function nr(e,t){mi=e,Hu=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(Hu!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(mi===null)throw Error(R(308));Gn=e,mi.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var wn=null;function Ku(e){wn===null?wn=[e]:wn.push(e)}function _f(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ku(t)):(n.next=l.next,l.next=n),t.interleaved=n,zt(e,r)}function zt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Wt=!1;function Yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function en(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,zt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ku(r)):(t.next=l.next,l.next=t),r.interleaved=t,zt(e,n)}function Yl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mu(e,n)}}function ys(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vi(e,t,n,r){var l=e.updateQueue;Wt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var a=u,s=a.next;a.next=null,o===null?i=s:o.next=s,o=a;var d=e.alternate;d!==null&&(d=d.updateQueue,u=d.lastBaseUpdate,u!==o&&(u===null?d.firstBaseUpdate=s:u.next=s,d.lastBaseUpdate=a))}if(i!==null){var f=l.baseState;o=0,d=s=a=null,u=i;do{var h=u.lane,w=u.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var k=e,E=u;switch(h=t,w=n,E.tag){case 1:if(k=E.payload,typeof k=="function"){f=k.call(w,f,h);break e}f=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=E.payload,h=typeof k=="function"?k.call(w,f,h):k,h==null)break e;f=fe({},f,h);break e;case 2:Wt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else w={eventTime:w,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},d===null?(s=d=w,a=f):d=d.next=w,o|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(d===null&&(a=f),l.baseState=a,l.firstBaseUpdate=s,l.lastBaseUpdate=d,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Rn|=o,e.lanes=o,e.memoizedState=f}}function gs(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{q=n,ho.transition=r}}function Wf(){return ot().memoizedState}function Gh(e,t,n){var r=nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qf(e))Kf(t,n);else if(n=_f(e,t,n,r),n!==null){var l=Ie();mt(n,e,r,l),Yf(n,t,r)}}function Jh(e,t,n){var r=nn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qf(e))Kf(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,vt(u,o)){var a=t.interleaved;a===null?(l.next=l,Ku(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=_f(e,t,l,r),n!==null&&(l=Ie(),mt(n,e,r,l),Yf(n,t,r))}}function Qf(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Kf(e,t){Br=gi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mu(e,n)}}var wi={readContext:it,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Zh={readContext:it,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Ss,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gl(4194308,4,Af.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gl(4,2,e,t)},useMemo:function(e,t){var n=wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gh.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:ws,useDebugValue:ta,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=ws(!1),t=e[0];return e=Xh.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,l=wt();if(ae){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),xe===null)throw Error(R(349));_n&30||Df(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Ss(zf.bind(null,r,i,e),[e]),r.flags|=2048,il(9,Mf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wt(),t=xe.identifierPrefix;if(ae){var n=Lt,r=Rt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[St]=t,e[el]=r,rd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Fo(n,r),n){case"dialog":ie("cancel",e),ie("close",e),l=r;break;case"iframe":case"object":case"embed":ie("load",e),l=r;break;case"video":case"audio":for(l=0;lcr&&(t.flags|=128,r=!0,Pr(i,!1),t.lanes=4194304)}else{if(!r)if(e=yi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ae)return Ne(t),null}else 2*me()-i.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Pr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=me(),t.sibling=null,n=se.current,le(se,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return ua(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function im(e,t){switch($u(t),t.tag){case 1:return We(t.type)&&ci(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),oe(He),oe(Me),Ju(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gu(t),null;case 13:if(oe(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(se),null;case 4:return ar(),null;case 10:return Qu(t.type._context),null;case 22:case 23:return ua(),null;case 24:return null;default:return null}}var jl=!1,De=!1,om=typeof WeakSet=="function"?WeakSet:Set,z=null;function Jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){he(e,t,r)}else n.current=null}function au(e,t,n){try{n()}catch(r){he(e,t,r)}}var Ds=!1;function um(e,t){if(Qo=oi,e=cf(),Au(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,a=-1,s=0,d=0,f=e,h=null;t:for(;;){for(var w;f!==n||l!==0&&f.nodeType!==3||(u=o+l),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===n&&++s===l&&(u=o),h===i&&++d===r&&(a=o),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ko={focusedElem:e,selectionRange:n},oi=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var E=k.memoizedProps,D=k.memoizedState,m=t.stateNode,c=m.getSnapshotBeforeUpdate(t.elementType===t.type?E:ct(t.type,E),D);m.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){he(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return k=Ds,Ds=!1,k}function $r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&au(t,n,i)}l=l.next}while(l!==r)}}function Ui(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function su(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function od(e){var t=e.alternate;t!==null&&(e.alternate=null,od(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[el],delete t[Go],delete t[Hh],delete t[Wh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ud(e){return e.tag===5||e.tag===3||e.tag===4}function Ms(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ud(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.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 cu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=si));else if(r!==4&&(e=e.child,e!==null))for(cu(e,t,n),e=e.sibling;e!==null;)cu(e,t,n),e=e.sibling}function fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fu(e,t,n),e=e.sibling;e!==null;)fu(e,t,n),e=e.sibling}var _e=null,ft=!1;function $t(e,t,n){for(n=n.child;n!==null;)ad(e,t,n),n=n.sibling}function ad(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Li,n)}catch{}switch(n.tag){case 5:De||Jn(n,t);case 6:var r=_e,l=ft;_e=null,$t(e,t,n),_e=r,ft=l,_e!==null&&(ft?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(ft?(e=_e,n=n.stateNode,e.nodeType===8?co(e.parentNode,n):e.nodeType===1&&co(e,n),Gr(e)):co(_e,n.stateNode));break;case 4:r=_e,l=ft,_e=n.stateNode.containerInfo,ft=!0,$t(e,t,n),_e=r,ft=l;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&au(n,t,o),l=l.next}while(l!==r)}$t(e,t,n);break;case 1:if(!De&&(Jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){he(n,t,u)}$t(e,t,n);break;case 21:$t(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,$t(e,t,n),De=r):$t(e,t,n);break;default:$t(e,t,n)}}function zs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new om),t.forEach(function(r){var l=vm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function st(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sm(r/1960))-r,10e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,ki=0,X&6)throw Error(R(331));var l=X;for(X|=4,z=e.current;z!==null;){var i=z,o=i.child;if(z.flags&16){var u=i.deletions;if(u!==null){for(var a=0;ame()-ia?kn(e,0):la|=n),Qe(e,t)}function vd(e,t){t===0&&(e.mode&1?(t=Tl,Tl<<=1,!(Tl&130023424)&&(Tl=4194304)):t=1);var n=Ie();e=zt(e,t),e!==null&&(fl(e,t,n),Qe(e,n))}function mm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vd(e,n)}function vm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),vd(e,n)}var yd;yd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||He.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,rm(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,ae&&t.flags&1048576&&Ef(t,pi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Jl(e,t),e=t.pendingProps;var l=ir(t,Me.current);nr(t,n),l=qu(null,t,r,e,l,n);var i=bu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(i=!0,fi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Yu(t),l.updater=Fi,t.stateNode=l,l._reactInternals=t,tu(t,r,e,n),t=lu(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&Bu(t),Ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Jl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=gm(r),e=ct(r,e),l){case 0:t=ru(null,t,r,e,n);break e;case 1:t=Ls(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=Rs(null,t,r,ct(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),ru(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),Ls(e,t,r,l,n);case 3:e:{if(ed(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Rf(e,t),vi(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=sr(Error(R(423)),t),t=Ts(e,t,r,n,l);break e}else if(r!==l){l=sr(Error(R(424)),t),t=Ts(e,t,r,n,l);break e}else for(Ge=bt(t.stateNode.containerInfo.firstChild),Je=t,ae=!0,pt=null,n=Pf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(or(),r===l){t=Ot(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return Lf(t),e===null&&qo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Yo(r,l)?o=null:i!==null&&Yo(r,i)&&(t.flags|=32),bf(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&qo(t),null;case 13:return td(e,t,n);case 4:return Xu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),_s(e,t,r,l,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,le(hi,r._currentValue),r._currentValue=o,i!==null)if(vt(i.value,o)){if(i.children===l.children&&!He.current){t=Ot(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Tt(-1,n&-n),a.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var d=s.pending;d===null?a.next=a:(a.next=d.next,d.next=a),s.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),bo(i.return,n,t),u.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(R(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),bo(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,nr(t,n),l=it(l),r=r(l),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,l=ct(r,t.pendingProps),l=ct(r.type,l),Rs(e,t,r,l,n);case 15:return Zf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),Jl(e,t),t.tag=1,We(r)?(e=!0,fi(t)):e=!1,nr(t,n),Xf(t,r,l),tu(t,r,l,n),lu(null,t,r,!0,e,n);case 19:return nd(e,t,n);case 22:return qf(e,t,n)}throw Error(R(156,t.tag))};function gd(e,t){return Wc(e,t)}function ym(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new ym(e,t,n,r)}function sa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gm(e){if(typeof e=="function")return sa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lu)return 11;if(e===Tu)return 14}return 2}function rn(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")sa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $n:return xn(n.children,l,i,t);case Ru:o=8,l|=8;break;case Po:return e=rt(12,n,t,l|2),e.elementType=Po,e.lanes=i,e;case _o:return e=rt(13,n,t,l),e.elementType=_o,e.lanes=i,e;case Ro:return e=rt(19,n,t,l),e.elementType=Ro,e.lanes=i,e;case Rc:return ji(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pc:o=10;break e;case _c:o=9;break e;case Lu:o=11;break e;case Tu:o=14;break e;case Ht:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=rt(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function xn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function ji(e,t,n,r){return e=rt(22,e,r,t),e.elementType=Rc,e.lanes=n,e.stateNode={isHidden:!1},e}function wo(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function So(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bi(0),this.expirationTimes=bi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ca(e,t,n,r,l,i,o,u,a){return e=new wm(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yu(i),e}function Sm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kd)}catch(e){console.error(e)}}kd(),Ec.exports=qe;var xd=Ec.exports;const Pm=fc(xd),_m=cc({__proto__:null,default:Pm},[xd]);/**
+ * @remix-run/router v1.23.3
+ *
+ * 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
+ */function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Tn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Lm(){return Math.random().toString(36).substr(2,8)}function Vs(e,t){return{usr:e.state,key:e.key,idx:t}}function ul(e,t,n,r){return n===void 0&&(n=null),ue({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?cn(t):t,{state:n,key:t&&t.key||r||Lm()})}function Nn(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function cn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Tm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,u=ye.Pop,a=null,s=d();s==null&&(s=0,o.replaceState(ue({},o.state,{idx:s}),""));function d(){return(o.state||{idx:null}).idx}function f(){u=ye.Pop;let D=d(),m=D==null?null:D-s;s=D,a&&a({action:u,location:E.location,delta:m})}function h(D,m){u=ye.Push;let c=ul(E.location,D,m);s=d()+1;let v=Vs(c,s),x=E.createHref(c);try{o.pushState(v,"",x)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(x)}i&&a&&a({action:u,location:E.location,delta:1})}function w(D,m){u=ye.Replace;let c=ul(E.location,D,m);s=d();let v=Vs(c,s),x=E.createHref(c);o.replaceState(v,"",x),i&&a&&a({action:u,location:E.location,delta:0})}function k(D){let m=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof D=="string"?D:Nn(D);return c=c.replace(/ $/,"%20"),K(m,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,m)}let E={get action(){return u},get location(){return e(l,o)},listen(D){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener($s,f),a=D,()=>{l.removeEventListener($s,f),a=null}},createHref(D){return t(l,D)},createURL:k,encodeLocation(D){let m=k(D);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:w,go(D){return o.go(D)}};return E}var Z;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Z||(Z={}));const Nm=new Set(["lazy","caseSensitive","path","id","index","children"]);function Dm(e){return e.index===!0}function Pi(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,i)=>{let o=[...n,String(i)],u=typeof l.id=="string"?l.id:o.join("-");if(K(l.index!==!0||!l.children,"Cannot specify children on an index route"),K(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),Dm(l)){let a=ue({},l,t(l),{id:u});return r[u]=a,a}else{let a=ue({},l,t(l),{id:u,children:void 0});return r[u]=a,l.children&&(a.children=Pi(l.children,t,o,r)),a}})}function vn(e,t,n){return n===void 0&&(n="/"),ei(e,t,n,!1)}function ei(e,t,n,r){let l=typeof t=="string"?cn(t):t,i=hr(l.pathname||"/",n);if(i==null)return null;let o=Cd(e);zm(o);let u=null,a=Wm(i);for(let s=0;u==null&&s{let a={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(K(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let s=Nt([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(K(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Cd(i.children,t,d,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:Bm(s,i.index),routesMeta:d})};return e.forEach((i,o)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,o);else for(let a of Pd(i.path))l(i,o,a)}),t}function Pd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Pd(r.join("/")),u=[];return u.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&u.push(...o),u.map(a=>e.startsWith("/")&&a===""?"/":a)}function zm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$m(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Om=/^:[\w-]+$/,Fm=3,Um=2,Im=1,jm=10,Am=-2,Hs=e=>e==="*";function Bm(e,t){let n=e.split("/"),r=n.length;return n.some(Hs)&&(r+=Am),t&&(r+=Um),n.filter(l=>!Hs(l)).reduce((l,i)=>l+(Om.test(i)?Fm:i===""?Im:jm),r)}function $m(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Vm(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,l={},i="/",o=[];for(let u=0;u{let{paramName:h,isOptional:w}=d;if(h==="*"){let E=u[f]||"";o=i.slice(0,i.length-E.length).replace(/(.)\/+$/,"$1")}const k=u[f];return w&&!k?s[h]=void 0:s[h]=(k||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:o,pattern:e}}function Hm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,u,a)=>(r.push({paramName:u,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Wm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Qm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Km=e=>Qm.test(e);function Ym(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?cn(e):e,i;if(n)if(Km(n))i=n;else{if(n.includes("//")){let o=n;n=va(n),Tn(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=Qs(n.substring(1),"/"):i=Qs(n,t)}else i=t;return{pathname:i,search:Gm(r),hash:Jm(l)}}function Qs(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Eo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function _d(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ha(e,t){let n=_d(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ma(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=cn(e):(l=ue({},e),K(!l.pathname||!l.pathname.includes("?"),Eo("?","pathname","search",l)),K(!l.pathname||!l.pathname.includes("#"),Eo("#","pathname","hash",l)),K(!l.search||!l.search.includes("#"),Eo("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,u;if(o==null)u=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;l.pathname=h.join("/")}u=f>=0?t[f]:"/"}let a=Ym(l,u),s=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(s||d)&&(a.pathname+="/"),a}const va=e=>e.replace(/\/\/+/g,"/"),Nt=e=>va(e.join("/")),Xm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Gm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Jm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class _i{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function al(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Rd=["post","put","patch","delete"],Zm=new Set(Rd),qm=["get",...Rd],bm=new Set(qm),ev=new Set([301,302,303,307,308]),tv=new Set([307,308]),ko={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},nv={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ya=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ld="remix-router-transitions";function lv(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;K(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let p=e.detectErrorBoundary;l=g=>({hasErrorBoundary:p(g)})}else l=rv;let i={},o=Pi(e.routes,l,void 0,i),u,a=e.basename||"/",s=e.dataStrategy||av,d=e.patchRoutesOnNavigation,f=ue({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,w=new Set,k=null,E=null,D=null,m=e.hydrationData!=null,c=vn(o,e.history.location,a),v=!1,x=null;if(c==null&&!d){let p=Be(404,{pathname:e.history.location.pathname}),{matches:g,route:S}=nc(o);c=g,x={[S.id]:p}}c&&!e.hydrationData&&Sl(c,o,e.history.location.pathname).active&&(c=null);let L;if(c)if(c.some(p=>p.route.lazy))L=!1;else if(!c.some(p=>p.route.loader))L=!0;else if(f.v7_partialHydration){let p=e.hydrationData?e.hydrationData.loaderData:null,g=e.hydrationData?e.hydrationData.errors:null;if(g){let S=c.findIndex(C=>g[C.route.id]!==void 0);L=c.slice(0,S+1).every(C=>!yu(C.route,p,g))}else L=c.every(S=>!yu(S.route,p,g))}else L=e.hydrationData!=null;else if(L=!1,c=[],f.v7_partialHydration){let p=Sl(null,o,e.history.location.pathname);p.active&&p.matches&&(v=!0,c=p.matches)}let O,y={historyAction:e.history.action,location:e.history.location,matches:c,initialized:L,navigation:ko,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},P=ye.Pop,B=!1,M,b=!1,ne=new Map,we=null,Ce=!1,ut=!1,It=[],jt=new Set,T=new Map,$=0,H=-1,ee=new Map,te=new Set,at=new Map,Ke=new Map,ze=new Set,Oe=new Map,et=new Map,yl;function $d(){if(h=e.history.listen(p=>{let{action:g,location:S,delta:C}=p;if(yl){yl(),yl=void 0;return}Tn(et.size===0||C!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let N=Ta({currentLocation:y.location,nextLocation:S,historyAction:g});if(N&&C!=null){let A=new Promise(V=>{yl=V});e.history.go(C*-1),wl(N,{state:"blocked",location:S,proceed(){wl(N,{state:"proceeding",proceed:void 0,reset:void 0,location:S}),A.then(()=>e.history.go(C))},reset(){let V=new Map(y.blockers);V.set(N,Rr),Fe({blockers:V})}});return}return fn(g,S)}),n){kv(t,ne);let p=()=>xv(t,ne);t.addEventListener("pagehide",p),we=()=>t.removeEventListener("pagehide",p)}return y.initialized||fn(ye.Pop,y.location,{initialHydration:!0}),O}function Vd(){h&&h(),we&&we(),w.clear(),M&&M.abort(),y.fetchers.forEach((p,g)=>gl(g)),y.blockers.forEach((p,g)=>La(g))}function Hd(p){return w.add(p),()=>w.delete(p)}function Fe(p,g){g===void 0&&(g={}),y=ue({},y,p);let S=[],C=[];f.v7_fetcherPersist&&y.fetchers.forEach((N,A)=>{N.state==="idle"&&(ze.has(A)?C.push(A):S.push(A))}),ze.forEach(N=>{!y.fetchers.has(N)&&!T.has(N)&&C.push(N)}),[...w].forEach(N=>N(y,{deletedFetchers:C,viewTransitionOpts:g.viewTransitionOpts,flushSync:g.flushSync===!0})),f.v7_fetcherPersist?(S.forEach(N=>y.fetchers.delete(N)),C.forEach(N=>gl(N))):C.forEach(N=>ze.delete(N))}function On(p,g,S){var C,N;let{flushSync:A}=S===void 0?{}:S,V=y.actionData!=null&&y.navigation.formMethod!=null&&dt(y.navigation.formMethod)&&y.navigation.state==="loading"&&((C=p.state)==null?void 0:C._isRedirect)!==!0,U;g.actionData?Object.keys(g.actionData).length>0?U=g.actionData:U=null:V?U=y.actionData:U=null;let I=g.loaderData?ec(y.loaderData,g.loaderData,g.matches||[],g.errors):y.loaderData,F=y.blockers;F.size>0&&(F=new Map(F),F.forEach((Y,Pe)=>F.set(Pe,Rr)));let j=B===!0||y.navigation.formMethod!=null&&dt(y.navigation.formMethod)&&((N=p.state)==null?void 0:N._isRedirect)!==!0;u&&(o=u,u=void 0),Ce||P===ye.Pop||(P===ye.Push?e.history.push(p,p.state):P===ye.Replace&&e.history.replace(p,p.state));let W;if(P===ye.Pop){let Y=ne.get(y.location.pathname);Y&&Y.has(p.pathname)?W={currentLocation:y.location,nextLocation:p}:ne.has(p.pathname)&&(W={currentLocation:p,nextLocation:y.location})}else if(b){let Y=ne.get(y.location.pathname);Y?Y.add(p.pathname):(Y=new Set([p.pathname]),ne.set(y.location.pathname,Y)),W={currentLocation:y.location,nextLocation:p}}Fe(ue({},g,{actionData:U,loaderData:I,historyAction:P,location:p,initialized:!0,navigation:ko,revalidation:"idle",restoreScrollPosition:Da(p,g.matches||y.matches),preventScrollReset:j,blockers:F}),{viewTransitionOpts:W,flushSync:A===!0}),P=ye.Pop,B=!1,b=!1,Ce=!1,ut=!1,It=[]}async function Ea(p,g){if(typeof p=="number"){e.history.go(p);return}let S=vu(y.location,y.matches,a,f.v7_prependBasename,p,f.v7_relativeSplatPath,g==null?void 0:g.fromRouteId,g==null?void 0:g.relative),{path:C,submission:N,error:A}=Ks(f.v7_normalizeFormMethod,!1,S,g),V=y.location,U=ul(y.location,C,g&&g.state);U=ue({},U,e.history.encodeLocation(U));let I=g&&g.replace!=null?g.replace:void 0,F=ye.Push;I===!0?F=ye.Replace:I===!1||N!=null&&dt(N.formMethod)&&N.formAction===y.location.pathname+y.location.search&&(F=ye.Replace);let j=g&&"preventScrollReset"in g?g.preventScrollReset===!0:void 0,W=(g&&g.flushSync)===!0,Y=Ta({currentLocation:V,nextLocation:U,historyAction:F});if(Y){wl(Y,{state:"blocked",location:U,proceed(){wl(Y,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Ea(p,g)},reset(){let Pe=new Map(y.blockers);Pe.set(Y,Rr),Fe({blockers:Pe})}});return}return await fn(F,U,{submission:N,pendingError:A,preventScrollReset:j,replace:g&&g.replace,enableViewTransition:g&&g.viewTransition,flushSync:W})}function Wd(){if(Wi(),Fe({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){fn(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}fn(P||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation,enableViewTransition:b===!0})}}async function fn(p,g,S){M&&M.abort(),M=null,P=p,Ce=(S&&S.startUninterruptedRevalidation)===!0,ep(y.location,y.matches),B=(S&&S.preventScrollReset)===!0,b=(S&&S.enableViewTransition)===!0;let C=u||o,N=S&&S.overrideNavigation,A=S!=null&&S.initialHydration&&y.matches&&y.matches.length>0&&!v?y.matches:vn(C,g,a),V=(S&&S.flushSync)===!0;if(A&&y.initialized&&!ut&&hv(y.location,g)&&!(S&&S.submission&&dt(S.submission.formMethod))){On(g,{matches:A},{flushSync:V});return}let U=Sl(A,C,g.pathname);if(U.active&&U.matches&&(A=U.matches),!A){let{error:re,notFoundMatches:J,route:de}=Qi(g.pathname);On(g,{matches:J,loaderData:{},errors:{[de.id]:re}},{flushSync:V});return}M=new AbortController;let I=An(e.history,g,M.signal,S&&S.submission),F;if(S&&S.pendingError)F=[yn(A).route.id,{type:Z.error,error:S.pendingError}];else if(S&&S.submission&&dt(S.submission.formMethod)){let re=await Qd(I,g,S.submission,A,U.active,{replace:S.replace,flushSync:V});if(re.shortCircuited)return;if(re.pendingActionResult){let[J,de]=re.pendingActionResult;if(Xe(de)&&al(de.error)&&de.error.status===404){M=null,On(g,{matches:re.matches,loaderData:{},errors:{[J]:de.error}});return}}A=re.matches||A,F=re.pendingActionResult,N=xo(g,S.submission),V=!1,U.active=!1,I=An(e.history,I.url,I.signal)}let{shortCircuited:j,matches:W,loaderData:Y,errors:Pe}=await Kd(I,g,A,U.active,N,S&&S.submission,S&&S.fetcherSubmission,S&&S.replace,S&&S.initialHydration===!0,V,F);j||(M=null,On(g,ue({matches:W||A},tc(F),{loaderData:Y,errors:Pe})))}async function Qd(p,g,S,C,N,A){A===void 0&&(A={}),Wi();let V=Sv(g,S);if(Fe({navigation:V},{flushSync:A.flushSync===!0}),N){let F=await El(C,g.pathname,p.signal);if(F.type==="aborted")return{shortCircuited:!0};if(F.type==="error"){let j=yn(F.partialMatches).route.id;return{matches:F.partialMatches,pendingActionResult:[j,{type:Z.error,error:F.error}]}}else if(F.matches)C=F.matches;else{let{notFoundMatches:j,error:W,route:Y}=Qi(g.pathname);return{matches:j,pendingActionResult:[Y.id,{type:Z.error,error:W}]}}}let U,I=Or(C,g);if(!I.route.action&&!I.route.lazy)U={type:Z.error,error:Be(405,{method:p.method,pathname:g.pathname,routeId:I.route.id})};else if(U=(await mr("action",y,p,[I],C,null))[I.route.id],p.signal.aborted)return{shortCircuited:!0};if(En(U)){let F;return A&&A.replace!=null?F=A.replace:F=Zs(U.response.headers.get("Location"),new URL(p.url),a,e.history)===y.location.pathname+y.location.search,await dn(p,U,!0,{submission:S,replace:F}),{shortCircuited:!0}}if(Gt(U))throw Be(400,{type:"defer-action"});if(Xe(U)){let F=yn(C,I.route.id);return(A&&A.replace)!==!0&&(P=ye.Push),{matches:C,pendingActionResult:[F.route.id,U]}}return{matches:C,pendingActionResult:[I.route.id,U]}}async function Kd(p,g,S,C,N,A,V,U,I,F,j){let W=N||xo(g,A),Y=A||V||lc(W),Pe=!Ce&&(!f.v7_partialHydration||!I);if(C){if(Pe){let pe=ka(j);Fe(ue({navigation:W},pe!==void 0?{actionData:pe}:{}),{flushSync:F})}let G=await El(S,g.pathname,p.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let pe=yn(G.partialMatches).route.id;return{matches:G.partialMatches,loaderData:{},errors:{[pe]:G.error}}}else if(G.matches)S=G.matches;else{let{error:pe,notFoundMatches:Un,route:gr}=Qi(g.pathname);return{matches:Un,loaderData:{},errors:{[gr.id]:pe}}}}let re=u||o,[J,de]=Xs(e.history,y,S,Y,g,f.v7_partialHydration&&I===!0,f.v7_skipActionErrorRevalidation,ut,It,jt,ze,at,te,re,a,j);if(Ki(G=>!(S&&S.some(pe=>pe.route.id===G))||J&&J.some(pe=>pe.route.id===G)),H=++$,J.length===0&&de.length===0){let G=_a();return On(g,ue({matches:S,loaderData:{},errors:j&&Xe(j[1])?{[j[0]]:j[1].error}:null},tc(j),G?{fetchers:new Map(y.fetchers)}:{}),{flushSync:F}),{shortCircuited:!0}}if(Pe){let G={};if(!C){G.navigation=W;let pe=ka(j);pe!==void 0&&(G.actionData=pe)}de.length>0&&(G.fetchers=Yd(de)),Fe(G,{flushSync:F})}de.forEach(G=>{Bt(G.key),G.controller&&T.set(G.key,G.controller)});let Fn=()=>de.forEach(G=>Bt(G.key));M&&M.signal.addEventListener("abort",Fn);let{loaderResults:vr,fetcherResults:Ct}=await xa(y,S,J,de,p);if(p.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Fn),de.forEach(G=>T.delete(G.key));let yt=$l(vr);if(yt)return await dn(p,yt.result,!0,{replace:U}),{shortCircuited:!0};if(yt=$l(Ct),yt)return te.add(yt.key),await dn(p,yt.result,!0,{replace:U}),{shortCircuited:!0};let{loaderData:Yi,errors:yr}=bs(y,S,vr,j,de,Ct,Oe);Oe.forEach((G,pe)=>{G.subscribe(Un=>{(Un||G.done)&&Oe.delete(pe)})}),f.v7_partialHydration&&I&&y.errors&&(yr=ue({},y.errors,yr));let pn=_a(),kl=Ra(H),xl=pn||kl||de.length>0;return ue({matches:S,loaderData:Yi,errors:yr},xl?{fetchers:new Map(y.fetchers)}:{})}function ka(p){if(p&&!Xe(p[1]))return{[p[0]]:p[1].data};if(y.actionData)return Object.keys(y.actionData).length===0?null:y.actionData}function Yd(p){return p.forEach(g=>{let S=y.fetchers.get(g.key),C=Lr(void 0,S?S.data:void 0);y.fetchers.set(g.key,C)}),new Map(y.fetchers)}function Xd(p,g,S,C){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Bt(p);let N=(C&&C.flushSync)===!0,A=u||o,V=vu(y.location,y.matches,a,f.v7_prependBasename,S,f.v7_relativeSplatPath,g,C==null?void 0:C.relative),U=vn(A,V,a),I=Sl(U,A,V);if(I.active&&I.matches&&(U=I.matches),!U){xt(p,g,Be(404,{pathname:V}),{flushSync:N});return}let{path:F,submission:j,error:W}=Ks(f.v7_normalizeFormMethod,!0,V,C);if(W){xt(p,g,W,{flushSync:N});return}let Y=Or(U,F),Pe=(C&&C.preventScrollReset)===!0;if(j&&dt(j.formMethod)){Gd(p,g,F,Y,U,I.active,N,Pe,j);return}at.set(p,{routeId:g,path:F}),Jd(p,g,F,Y,U,I.active,N,Pe,j)}async function Gd(p,g,S,C,N,A,V,U,I){Wi(),at.delete(p);function F(ve){if(!ve.route.action&&!ve.route.lazy){let In=Be(405,{method:I.formMethod,pathname:S,routeId:g});return xt(p,g,In,{flushSync:V}),!0}return!1}if(!A&&F(C))return;let j=y.fetchers.get(p);At(p,Ev(I,j),{flushSync:V});let W=new AbortController,Y=An(e.history,S,W.signal,I);if(A){let ve=await El(N,new URL(Y.url).pathname,Y.signal,p);if(ve.type==="aborted")return;if(ve.type==="error"){xt(p,g,ve.error,{flushSync:V});return}else if(ve.matches){if(N=ve.matches,C=Or(N,S),F(C))return}else{xt(p,g,Be(404,{pathname:S}),{flushSync:V});return}}T.set(p,W);let Pe=$,J=(await mr("action",y,Y,[C],N,p))[C.route.id];if(Y.signal.aborted){T.get(p)===W&&T.delete(p);return}if(f.v7_fetcherPersist&&ze.has(p)){if(En(J)||Xe(J)){At(p,Vt(void 0));return}}else{if(En(J))if(T.delete(p),H>Pe){At(p,Vt(void 0));return}else return te.add(p),At(p,Lr(I)),dn(Y,J,!1,{fetcherSubmission:I,preventScrollReset:U});if(Xe(J)){xt(p,g,J.error);return}}if(Gt(J))throw Be(400,{type:"defer-action"});let de=y.navigation.location||y.location,Fn=An(e.history,de,W.signal),vr=u||o,Ct=y.navigation.state!=="idle"?vn(vr,y.navigation.location,a):y.matches;K(Ct,"Didn't find any matches after fetcher action");let yt=++$;ee.set(p,yt);let Yi=Lr(I,J.data);y.fetchers.set(p,Yi);let[yr,pn]=Xs(e.history,y,Ct,I,de,!1,f.v7_skipActionErrorRevalidation,ut,It,jt,ze,at,te,vr,a,[C.route.id,J]);pn.filter(ve=>ve.key!==p).forEach(ve=>{let In=ve.key,Ma=y.fetchers.get(In),rp=Lr(void 0,Ma?Ma.data:void 0);y.fetchers.set(In,rp),Bt(In),ve.controller&&T.set(In,ve.controller)}),Fe({fetchers:new Map(y.fetchers)});let kl=()=>pn.forEach(ve=>Bt(ve.key));W.signal.addEventListener("abort",kl);let{loaderResults:xl,fetcherResults:G}=await xa(y,Ct,yr,pn,Fn);if(W.signal.aborted)return;W.signal.removeEventListener("abort",kl),ee.delete(p),T.delete(p),pn.forEach(ve=>T.delete(ve.key));let pe=$l(xl);if(pe)return dn(Fn,pe.result,!1,{preventScrollReset:U});if(pe=$l(G),pe)return te.add(pe.key),dn(Fn,pe.result,!1,{preventScrollReset:U});let{loaderData:Un,errors:gr}=bs(y,Ct,xl,void 0,pn,G,Oe);if(y.fetchers.has(p)){let ve=Vt(J.data);y.fetchers.set(p,ve)}Ra(yt),y.navigation.state==="loading"&&yt>H?(K(P,"Expected pending action"),M&&M.abort(),On(y.navigation.location,{matches:Ct,loaderData:Un,errors:gr,fetchers:new Map(y.fetchers)})):(Fe({errors:gr,loaderData:ec(y.loaderData,Un,Ct,gr),fetchers:new Map(y.fetchers)}),ut=!1)}async function Jd(p,g,S,C,N,A,V,U,I){let F=y.fetchers.get(p);At(p,Lr(I,F?F.data:void 0),{flushSync:V});let j=new AbortController,W=An(e.history,S,j.signal);if(A){let J=await El(N,new URL(W.url).pathname,W.signal,p);if(J.type==="aborted")return;if(J.type==="error"){xt(p,g,J.error,{flushSync:V});return}else if(J.matches)N=J.matches,C=Or(N,S);else{xt(p,g,Be(404,{pathname:S}),{flushSync:V});return}}T.set(p,j);let Y=$,re=(await mr("loader",y,W,[C],N,p))[C.route.id];if(Gt(re)&&(re=await ga(re,W.signal,!0)||re),T.get(p)===j&&T.delete(p),!W.signal.aborted){if(ze.has(p)){At(p,Vt(void 0));return}if(En(re))if(H>Y){At(p,Vt(void 0));return}else{te.add(p),await dn(W,re,!1,{preventScrollReset:U});return}if(Xe(re)){xt(p,g,re.error);return}K(!Gt(re),"Unhandled fetcher deferred data"),At(p,Vt(re.data))}}async function dn(p,g,S,C){let{submission:N,fetcherSubmission:A,preventScrollReset:V,replace:U}=C===void 0?{}:C;g.response.headers.has("X-Remix-Revalidate")&&(ut=!0);let I=g.response.headers.get("Location");K(I,"Expected a Location header on the redirect Response"),I=Zs(I,new URL(p.url),a,e.history);let F=ul(y.location,I,{_isRedirect:!0});if(n){let J=!1;if(g.response.headers.has("X-Remix-Reload-Document"))J=!0;else if(ya.test(I)){const de=e.history.createURL(I);J=de.origin!==t.location.origin||hr(de.pathname,a)==null}if(J){U?t.location.replace(I):t.location.assign(I);return}}M=null;let j=U===!0||g.response.headers.has("X-Remix-Replace")?ye.Replace:ye.Push,{formMethod:W,formAction:Y,formEncType:Pe}=y.navigation;!N&&!A&&W&&Y&&Pe&&(N=lc(y.navigation));let re=N||A;if(tv.has(g.response.status)&&re&&dt(re.formMethod))await fn(j,F,{submission:ue({},re,{formAction:I}),preventScrollReset:V||B,enableViewTransition:S?b:void 0});else{let J=xo(F,N);await fn(j,F,{overrideNavigation:J,fetcherSubmission:A,preventScrollReset:V||B,enableViewTransition:S?b:void 0})}}async function mr(p,g,S,C,N,A){let V,U={};try{V=await sv(s,p,g,S,C,N,A,i,l)}catch(I){return C.forEach(F=>{U[F.route.id]={type:Z.error,error:I}}),U}for(let[I,F]of Object.entries(V))if(mv(F)){let j=F.result;U[I]={type:Z.redirect,response:dv(j,S,I,N,a,f.v7_relativeSplatPath)}}else U[I]=await fv(F);return U}async function xa(p,g,S,C,N){let A=p.matches,V=mr("loader",p,N,S,g,null),U=Promise.all(C.map(async j=>{if(j.matches&&j.match&&j.controller){let Y=(await mr("loader",p,An(e.history,j.path,j.controller.signal),[j.match],j.matches,j.key))[j.match.route.id];return{[j.key]:Y}}else return Promise.resolve({[j.key]:{type:Z.error,error:Be(404,{pathname:j.path})}})})),I=await V,F=(await U).reduce((j,W)=>Object.assign(j,W),{});return await Promise.all([gv(g,I,N.signal,A,p.loaderData),wv(g,F,C)]),{loaderResults:I,fetcherResults:F}}function Wi(){ut=!0,It.push(...Ki()),at.forEach((p,g)=>{T.has(g)&&jt.add(g),Bt(g)})}function At(p,g,S){S===void 0&&(S={}),y.fetchers.set(p,g),Fe({fetchers:new Map(y.fetchers)},{flushSync:(S&&S.flushSync)===!0})}function xt(p,g,S,C){C===void 0&&(C={});let N=yn(y.matches,g);gl(p),Fe({errors:{[N.route.id]:S},fetchers:new Map(y.fetchers)},{flushSync:(C&&C.flushSync)===!0})}function Ca(p){return Ke.set(p,(Ke.get(p)||0)+1),ze.has(p)&&ze.delete(p),y.fetchers.get(p)||nv}function gl(p){let g=y.fetchers.get(p);T.has(p)&&!(g&&g.state==="loading"&&ee.has(p))&&Bt(p),at.delete(p),ee.delete(p),te.delete(p),f.v7_fetcherPersist&&ze.delete(p),jt.delete(p),y.fetchers.delete(p)}function Zd(p){let g=(Ke.get(p)||0)-1;g<=0?(Ke.delete(p),ze.add(p),f.v7_fetcherPersist||gl(p)):Ke.set(p,g),Fe({fetchers:new Map(y.fetchers)})}function Bt(p){let g=T.get(p);g&&(g.abort(),T.delete(p))}function Pa(p){for(let g of p){let S=Ca(g),C=Vt(S.data);y.fetchers.set(g,C)}}function _a(){let p=[],g=!1;for(let S of te){let C=y.fetchers.get(S);K(C,"Expected fetcher: "+S),C.state==="loading"&&(te.delete(S),p.push(S),g=!0)}return Pa(p),g}function Ra(p){let g=[];for(let[S,C]of ee)if(C0}function qd(p,g){let S=y.blockers.get(p)||Rr;return et.get(p)!==g&&et.set(p,g),S}function La(p){y.blockers.delete(p),et.delete(p)}function wl(p,g){let S=y.blockers.get(p)||Rr;K(S.state==="unblocked"&&g.state==="blocked"||S.state==="blocked"&&g.state==="blocked"||S.state==="blocked"&&g.state==="proceeding"||S.state==="blocked"&&g.state==="unblocked"||S.state==="proceeding"&&g.state==="unblocked","Invalid blocker state transition: "+S.state+" -> "+g.state);let C=new Map(y.blockers);C.set(p,g),Fe({blockers:C})}function Ta(p){let{currentLocation:g,nextLocation:S,historyAction:C}=p;if(et.size===0)return;et.size>1&&Tn(!1,"A router only supports one blocker at a time");let N=Array.from(et.entries()),[A,V]=N[N.length-1],U=y.blockers.get(A);if(!(U&&U.state==="proceeding")&&V({currentLocation:g,nextLocation:S,historyAction:C}))return A}function Qi(p){let g=Be(404,{pathname:p}),S=u||o,{matches:C,route:N}=nc(S);return Ki(),{notFoundMatches:C,route:N,error:g}}function Ki(p){let g=[];return Oe.forEach((S,C)=>{(!p||p(C))&&(S.cancel(),g.push(C),Oe.delete(C))}),g}function bd(p,g,S){if(k=p,D=g,E=S||null,!m&&y.navigation===ko){m=!0;let C=Da(y.location,y.matches);C!=null&&Fe({restoreScrollPosition:C})}return()=>{k=null,D=null,E=null}}function Na(p,g){return E&&E(p,g.map(C=>Mm(C,y.loaderData)))||p.key}function ep(p,g){if(k&&D){let S=Na(p,g);k[S]=D()}}function Da(p,g){if(k){let S=Na(p,g),C=k[S];if(typeof C=="number")return C}return null}function Sl(p,g,S){if(d)if(p){if(Object.keys(p[0].params).length>0)return{active:!0,matches:ei(g,S,a,!0)}}else return{active:!0,matches:ei(g,S,a,!0)||[]};return{active:!1,matches:null}}async function El(p,g,S,C){if(!d)return{type:"success",matches:p};let N=p;for(;;){let A=u==null,V=u||o,U=i;try{await d({signal:S,path:g,matches:N,fetcherKey:C,patch:(j,W)=>{S.aborted||Js(j,W,V,U,l)}})}catch(j){return{type:"error",error:j,partialMatches:N}}finally{A&&!S.aborted&&(o=[...o])}if(S.aborted)return{type:"aborted"};let I=vn(V,g,a);if(I)return{type:"success",matches:I};let F=ei(V,g,a,!0);if(!F||N.length===F.length&&N.every((j,W)=>j.route.id===F[W].route.id))return{type:"success",matches:null};N=F}}function tp(p){i={},u=Pi(p,l,void 0,i)}function np(p,g){let S=u==null;Js(p,g,u||o,i,l),S&&(o=[...o],Fe({}))}return O={get basename(){return a},get future(){return f},get state(){return y},get routes(){return o},get window(){return t},initialize:$d,subscribe:Hd,enableScrollRestoration:bd,navigate:Ea,fetch:Xd,revalidate:Wd,createHref:p=>e.history.createHref(p),encodeLocation:p=>e.history.encodeLocation(p),getFetcher:Ca,deleteFetcher:Zd,dispose:Vd,getBlocker:qd,deleteBlocker:La,patchRoutes:np,_internalFetchControllers:T,_internalActiveDeferreds:Oe,_internalSetRoutes:tp},O}function iv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function vu(e,t,n,r,l,i,o,u){let a,s;if(o){a=[];for(let f of t)if(a.push(f),f.route.id===o){s=f;break}}else a=t,s=t[t.length-1];let d=ma(l||".",ha(a,i),hr(e.pathname,n)||e.pathname,u==="path");if(l==null&&(d.search=e.search,d.hash=e.hash),(l==null||l===""||l===".")&&s){let f=wa(d.search);if(s.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&f){let h=new URLSearchParams(d.search),w=h.getAll("index");h.delete("index"),w.filter(E=>E).forEach(E=>h.append("index",E));let k=h.toString();d.search=k?"?"+k:""}}return r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:Nt([n,d.pathname])),Nn(d)}function Ks(e,t,n,r){if(!r||!iv(r))return{path:n};if(r.formMethod&&!yv(r.formMethod))return{path:n,error:Be(405,{method:r.formMethod})};let l=()=>({path:n,error:Be(400,{type:"invalid-body"})}),i=r.formMethod||"get",o=e?i.toUpperCase():i.toLowerCase(),u=Dd(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!dt(o))return l();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((w,k)=>{let[E,D]=k;return""+w+E+"="+D+`
+`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!dt(o))return l();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:u,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return l()}}}K(typeof FormData=="function","FormData is not available in this environment");let a,s;if(r.formData)a=gu(r.formData),s=r.formData;else if(r.body instanceof FormData)a=gu(r.body),s=r.body;else if(r.body instanceof URLSearchParams)a=r.body,s=qs(a);else if(r.body==null)a=new URLSearchParams,s=new FormData;else try{a=new URLSearchParams(r.body),s=qs(a)}catch{return l()}let d={formMethod:o,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(dt(d.formMethod))return{path:n,submission:d};let f=cn(n);return t&&f.search&&wa(f.search)&&a.append("index",""),f.search="?"+a,{path:Nn(f),submission:d}}function Ys(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(l=>l.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Xs(e,t,n,r,l,i,o,u,a,s,d,f,h,w,k,E){let D=E?Xe(E[1])?E[1].error:E[1].data:void 0,m=e.createURL(t.location),c=e.createURL(l),v=n;i&&t.errors?v=Ys(n,Object.keys(t.errors)[0],!0):E&&Xe(E[1])&&(v=Ys(n,E[0]));let x=E?E[1].statusCode:void 0,L=o&&x&&x>=400,O=v.filter((P,B)=>{let{route:M}=P;if(M.lazy)return!0;if(M.loader==null)return!1;if(i)return yu(M,t.loaderData,t.errors);if(ov(t.loaderData,t.matches[B],P)||a.some(we=>we===P.route.id))return!0;let b=t.matches[B],ne=P;return Gs(P,ue({currentUrl:m,currentParams:b.params,nextUrl:c,nextParams:ne.params},r,{actionResult:D,actionStatus:x,defaultShouldRevalidate:L?!1:u||m.pathname+m.search===c.pathname+c.search||m.search!==c.search||Td(b,ne)}))}),y=[];return f.forEach((P,B)=>{if(i||!n.some(Ce=>Ce.route.id===P.routeId)||d.has(B))return;let M=vn(w,P.path,k);if(!M){y.push({key:B,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let b=t.fetchers.get(B),ne=Or(M,P.path),we=!1;h.has(B)?we=!1:s.has(B)?(s.delete(B),we=!0):b&&b.state!=="idle"&&b.data===void 0?we=u:we=Gs(ne,ue({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:c,nextParams:n[n.length-1].params},r,{actionResult:D,actionStatus:x,defaultShouldRevalidate:L?!1:u})),we&&y.push({key:B,routeId:P.routeId,path:P.path,matches:M,match:ne,controller:new AbortController})}),[O,y]}function yu(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,l=n!=null&&n[e.id]!==void 0;return!r&&l?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!l}function ov(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Td(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Gs(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Js(e,t,n,r,l){var i;let o;if(e){let s=r[e];K(s,"No route found to patch children into: routeId = "+e),s.children||(s.children=[]),o=s.children}else o=n;let u=t.filter(s=>!o.some(d=>Nd(s,d))),a=Pi(u,l,[e||"_","patch",String(((i=o)==null?void 0:i.length)||"0")],r);o.push(...a)}function Nd(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var l;return(l=t.children)==null?void 0:l.some(i=>Nd(n,i))}):!1}async function uv(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];K(l,"No route found in manifest");let i={};for(let o in r){let a=l[o]!==void 0&&o!=="hasErrorBoundary";Tn(!a,'Route "'+l.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!a&&!Nm.has(o)&&(i[o]=r[o])}Object.assign(l,i),Object.assign(l,ue({},t(l),{lazy:void 0}))}async function av(e){let{matches:t}=e,n=t.filter(l=>l.shouldLoad);return(await Promise.all(n.map(l=>l.resolve()))).reduce((l,i,o)=>Object.assign(l,{[n[o].route.id]:i}),{})}async function sv(e,t,n,r,l,i,o,u,a,s){let d=i.map(w=>w.route.lazy?uv(w.route,a,u):void 0),f=i.map((w,k)=>{let E=d[k],D=l.some(c=>c.route.id===w.route.id);return ue({},w,{shouldLoad:D,resolve:async c=>(c&&r.method==="GET"&&(w.route.lazy||w.route.loader)&&(D=!0),D?cv(t,r,w,E,c,s):Promise.resolve({type:Z.data,result:void 0}))})}),h=await e({matches:f,request:r,params:i[0].params,fetcherKey:o,context:s});try{await Promise.all(d)}catch{}return h}async function cv(e,t,n,r,l,i){let o,u,a=s=>{let d,f=new Promise((k,E)=>d=E);u=()=>d(),t.signal.addEventListener("abort",u);let h=k=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):s({request:t,params:n.params,context:i},...k!==void 0?[k]:[]),w=(async()=>{try{return{type:"data",result:await(l?l(E=>h(E)):h())}}catch(k){return{type:"error",result:k}}})();return Promise.race([w,f])};try{let s=n.route[e];if(r)if(s){let d,[f]=await Promise.all([a(s).catch(h=>{d=h}),r]);if(d!==void 0)throw d;o=f}else if(await r,s=n.route[e],s)o=await a(s);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw Be(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Z.data,result:void 0};else if(s)o=await a(s);else{let d=new URL(t.url),f=d.pathname+d.search;throw Be(404,{pathname:f})}K(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(s){return{type:Z.error,result:s}}finally{u&&t.signal.removeEventListener("abort",u)}return o}async function fv(e){let{result:t,type:n}=e;if(Md(t)){let f;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(h){return{type:Z.error,error:h}}return n===Z.error?{type:Z.error,error:new _i(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:Z.data,data:f,statusCode:t.status,headers:t.headers}}if(n===Z.error){if(rc(t)){var r,l;if(t.data instanceof Error){var i,o;return{type:Z.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:Z.error,error:new _i(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:al(t)?t.status:void 0,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Z.error,error:t,statusCode:al(t)?t.status:void 0}}if(vv(t)){var u,a;return{type:Z.deferred,deferredData:t,statusCode:(u=t.init)==null?void 0:u.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(rc(t)){var s,d;return{type:Z.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}}return{type:Z.data,data:t}}function dv(e,t,n,r,l,i){let o=e.headers.get("Location");if(K(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!ya.test(o)){let u=r.slice(0,r.findIndex(a=>a.route.id===n)+1);o=vu(new URL(t.url),u,l,!0,o,i),e.headers.set("Location",o)}return e}function Zs(e,t,n,r){let l=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ya.test(e)){let i=e,o=i.startsWith("//")?new URL(t.protocol+i):new URL(i);if(l.includes(o.protocol))throw new Error("Invalid redirect location");let u=hr(o.pathname,n)!=null;if(o.origin===t.origin&&u)return va(o.pathname)+o.search+o.hash}try{let i=r.createURL(e);if(l.includes(i.protocol))throw new Error("Invalid redirect location")}catch{}return e}function An(e,t,n,r){let l=e.createURL(Dd(t)).toString(),i={signal:n};if(r&&dt(r.formMethod)){let{formMethod:o,formEncType:u}=r;i.method=o.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(r.json)):u==="text/plain"?i.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?i.body=gu(r.formData):i.body=r.formData}return new Request(l,i)}function gu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function qs(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function pv(e,t,n,r,l){let i={},o=null,u,a=!1,s={},d=n&&Xe(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let h=f.route.id,w=t[h];if(K(!En(w),"Cannot handle redirect results in processLoaderData"),Xe(w)){let k=w.error;d!==void 0&&(k=d,d=void 0),o=o||{};{let E=yn(e,h);o[E.route.id]==null&&(o[E.route.id]=k)}i[h]=void 0,a||(a=!0,u=al(w.error)?w.error.status:500),w.headers&&(s[h]=w.headers)}else Gt(w)?(r.set(h,w.deferredData),i[h]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!a&&(u=w.statusCode),w.headers&&(s[h]=w.headers)):(i[h]=w.data,w.statusCode&&w.statusCode!==200&&!a&&(u=w.statusCode),w.headers&&(s[h]=w.headers))}),d!==void 0&&n&&(o={[n[0]]:d},i[n[0]]=void 0),{loaderData:i,errors:o,statusCode:u||200,loaderHeaders:s}}function bs(e,t,n,r,l,i,o){let{loaderData:u,errors:a}=pv(t,n,r,o);return l.forEach(s=>{let{key:d,match:f,controller:h}=s,w=i[d];if(K(w,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(Xe(w)){let k=yn(e.matches,f==null?void 0:f.route.id);a&&a[k.route.id]||(a=ue({},a,{[k.route.id]:w.error})),e.fetchers.delete(d)}else if(En(w))K(!1,"Unhandled fetcher revalidation redirect");else if(Gt(w))K(!1,"Unhandled fetcher deferred data");else{let k=Vt(w.data);e.fetchers.set(d,k)}}),{loaderData:u,errors:a}}function ec(e,t,n,r){let l=ue({},t);for(let i of n){let o=i.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(l[o]=t[o]):e[o]!==void 0&&i.route.loader&&(l[o]=e[o]),r&&r.hasOwnProperty(o))break}return l}function tc(e){return e?Xe(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function yn(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function nc(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Be(e,t){let{pathname:n,routeId:r,method:l,type:i,message:o}=t===void 0?{}:t,u="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(u="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(u="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(u="Not Found",a='No route matches URL "'+n+'"'):e===405&&(u="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new _i(e||500,u,new Error(a),!0)}function $l(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,l]=t[n];if(En(l))return{key:r,result:l}}}function Dd(e){let t=typeof e=="string"?cn(e):e;return Nn(ue({},t,{hash:""}))}function hv(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function mv(e){return Md(e.result)&&ev.has(e.result.status)}function Gt(e){return e.type===Z.deferred}function Xe(e){return e.type===Z.error}function En(e){return(e&&e.type)===Z.redirect}function rc(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function vv(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Md(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function yv(e){return bm.has(e.toLowerCase())}function dt(e){return Zm.has(e.toLowerCase())}async function gv(e,t,n,r,l){let i=Object.entries(t);for(let o=0;o(h==null?void 0:h.route.id)===u);if(!s)continue;let d=r.find(h=>h.route.id===s.route.id),f=d!=null&&!Td(d,s)&&(l&&l[s.route.id])!==void 0;Gt(a)&&f&&await ga(a,n,!1).then(h=>{h&&(t[u]=h)})}}async function wv(e,t,n){for(let r=0;r(s==null?void 0:s.route.id)===i)&&Gt(u)&&(K(o,"Expected an AbortController for revalidating fetcher deferred result"),await ga(u,o.signal,!0).then(s=>{s&&(t[l]=s)}))}}async function ga(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Z.data,data:e.deferredData.unwrappedData}}catch(l){return{type:Z.error,error:l}}return{type:Z.data,data:e.deferredData.data}}}function wa(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Or(e,t){let n=typeof t=="string"?cn(t).search:t.search;if(e[e.length-1].route.index&&wa(n||""))return e[e.length-1];let r=_d(e);return r[r.length-1]}function lc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:i,json:o}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function xo(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Sv(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Lr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ev(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Vt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function kv(e,t){try{let n=e.sessionStorage.getItem(Ld);if(n){let r=JSON.parse(n);for(let[l,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(l,new Set(i||[]))}}catch{}}function xv(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Ld,JSON.stringify(n))}catch(r){Tn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
+ * React Router v6.30.4
+ *
+ * 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
+ */function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),_.useCallback(function(s,d){if(d===void 0&&(d={}),!u.current)return;if(typeof s=="number"){r.go(s);return}let f=ma(s,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Nt([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}const _v=_.createContext(null);function Rv(e){let t=_.useContext(Ut).outlet;return t&&_.createElement(_v.Provider,{value:e},t)}function ay(){let{matches:e}=_.useContext(Ut),t=e[e.length-1];return t?t.params:{}}function Id(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(zn),{matches:l}=_.useContext(Ut),{pathname:i}=vl(),o=JSON.stringify(ha(l,r.v7_relativeSplatPath));return _.useMemo(()=>ma(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Lv(e,t,n,r){ml()||K(!1);let{navigator:l}=_.useContext(zn),{matches:i}=_.useContext(Ut),o=i[i.length-1],u=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let s=vl(),d;d=s;let f=d.pathname||"/",h=f;if(a!=="/"){let E=a.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=vn(e,{pathname:h});return zv(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:Nt([a,l.encodeLocation?l.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?a:Nt([a,l.encodeLocation?l.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),i,n,r)}function Tv(){let e=Iv(),t=al(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:l},n):null,null)}const Nv=_.createElement(Tv,null);class Dv extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?_.createElement(Ut.Provider,{value:this.props.routeContext},_.createElement(Od.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Mv(e){let{routeContext:t,match:n,children:r}=e,l=_.useContext(Hi);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(Ut.Provider,{value:t},r)}function zv(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let d=o.findIndex(f=>f.route.id&&(u==null?void 0:u[f.route.id])!==void 0);d>=0||K(!1),o=o.slice(0,Math.min(o.length,d+1))}let a=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let w,k=!1,E=null,D=null;n&&(w=u&&f.route.id?u[f.route.id]:void 0,E=f.route.errorElement||Nv,a&&(s<0&&h===0?(Av("route-fallback"),k=!0,D=null):s===h&&(k=!0,D=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,h+1)),c=()=>{let v;return w?v=E:k?v=D:f.route.Component?v=_.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,_.createElement(Mv,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?_.createElement(Dv,{location:n.location,revalidation:n.revalidation,component:E,error:w,children:c(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):c()},null)}var jd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(jd||{}),Ad=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ad||{});function Ov(e){let t=_.useContext(Hi);return t||K(!1),t}function Fv(e){let t=_.useContext(zd);return t||K(!1),t}function Uv(e){let t=_.useContext(Ut);return t||K(!1),t}function Bd(e){let t=Uv(),n=t.matches[t.matches.length-1];return n.route.id||K(!1),n.route.id}function Iv(){var e;let t=_.useContext(Od),n=Fv(Ad.UseRouteError),r=Bd();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function jv(){let{router:e}=Ov(jd.UseNavigateStable),t=Bd(),n=_.useRef(!1);return Fd(()=>{n.current=!0}),_.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Ri({fromRouteId:t},i)))},[e,t])}const ic={};function Av(e,t,n){ic[e]||(ic[e]=!0)}function Bv(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function sy(e){return Rv(e.context)}function $v(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ye.Pop,navigator:i,static:o=!1,future:u}=e;ml()&&K(!1);let a=t.replace(/^\/*/,"/"),s=_.useMemo(()=>({basename:a,navigator:i,static:o,future:Ri({v7_relativeSplatPath:!1},u)}),[a,u,i,o]);typeof r=="string"&&(r=cn(r));let{pathname:d="/",search:f="",hash:h="",state:w=null,key:k="default"}=r,E=_.useMemo(()=>{let D=hr(d,a);return D==null?null:{location:{pathname:D,search:f,hash:h,state:w,key:k},navigationType:l}},[a,d,f,h,w,k,l]);return E==null?null:_.createElement(zn.Provider,{value:s},_.createElement(Sa.Provider,{children:n,value:E}))}new Promise(()=>{});function Vv(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
+ * React Router DOM v6.30.4
+ *
+ * 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
+ */function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(l=>[n,l]):[[n,r]])},[]))}function Kv(e,t){let n=wu(e);return t&&t.forEach((r,l)=>{n.has(l)||t.getAll(l).forEach(i=>{n.append(l,i)})}),n}const Yv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Xv="6";try{window.__reactRouterVersion=Xv}catch{}function cy(e,t){return lv({basename:void 0,future:sl({},void 0,{v7_prependBasename:!0}),history:Rm({window:void 0}),hydrationData:Gv(),routes:e,mapRouteProperties:Vv,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Gv(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=sl({},t,{errors:Jv(t.errors)})),t}function Jv(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,l]of t)if(l&&l.__type==="RouteErrorResponse")n[r]=new _i(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let i=window[l.__subType];if(typeof i=="function")try{let o=new i(l.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let i=new Error(l.message);i.stack="",n[r]=i}}else n[r]=l;return n}const Zv=_.createContext({isTransitioning:!1}),qv=_.createContext(new Map),bv="startTransition",oc=Sp[bv],ey="flushSync",uc=_m[ey];function ty(e){oc?oc(e):e()}function Tr(e){uc?uc(e):e()}class ny{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function fy(e){let{fallbackElement:t,router:n,future:r}=e,[l,i]=_.useState(n.state),[o,u]=_.useState(),[a,s]=_.useState({isTransitioning:!1}),[d,f]=_.useState(),[h,w]=_.useState(),[k,E]=_.useState(),D=_.useRef(new Map),{v7_startTransition:m}=r||{},c=_.useCallback(P=>{m?ty(P):P()},[m]),v=_.useCallback((P,B)=>{let{deletedFetchers:M,flushSync:b,viewTransitionOpts:ne}=B;P.fetchers.forEach((Ce,ut)=>{Ce.data!==void 0&&D.current.set(ut,Ce.data)}),M.forEach(Ce=>D.current.delete(Ce));let we=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!ne||we){b?Tr(()=>i(P)):c(()=>i(P));return}if(b){Tr(()=>{h&&(d&&d.resolve(),h.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation})});let Ce=n.window.document.startViewTransition(()=>{Tr(()=>i(P))});Ce.finished.finally(()=>{Tr(()=>{f(void 0),w(void 0),u(void 0),s({isTransitioning:!1})})}),Tr(()=>w(Ce));return}h?(d&&d.resolve(),h.skipTransition(),E({state:P,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation})):(u(P),s({isTransitioning:!0,flushSync:!1,currentLocation:ne.currentLocation,nextLocation:ne.nextLocation}))},[n.window,h,d,D,c]);_.useLayoutEffect(()=>n.subscribe(v),[n,v]),_.useEffect(()=>{a.isTransitioning&&!a.flushSync&&f(new ny)},[a]),_.useEffect(()=>{if(d&&o&&n.window){let P=o,B=d.promise,M=n.window.document.startViewTransition(async()=>{c(()=>i(P)),await B});M.finished.finally(()=>{f(void 0),w(void 0),u(void 0),s({isTransitioning:!1})}),w(M)}},[c,o,d,n.window]),_.useEffect(()=>{d&&o&&l.location.key===o.location.key&&d.resolve()},[d,h,l.location,o]),_.useEffect(()=>{!a.isTransitioning&&k&&(u(k.state),s({isTransitioning:!0,flushSync:!1,currentLocation:k.currentLocation,nextLocation:k.nextLocation}),E(void 0))},[a.isTransitioning,k]),_.useEffect(()=>{},[]);let x=_.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:P=>n.navigate(P),push:(P,B,M)=>n.navigate(P,{state:B,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(P,B,M)=>n.navigate(P,{replace:!0,state:B,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),L=n.basename||"/",O=_.useMemo(()=>({router:n,navigator:x,static:!1,basename:L}),[n,x,L]),y=_.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return _.useEffect(()=>Bv(r,n.future),[r,n.future]),_.createElement(_.Fragment,null,_.createElement(Hi.Provider,{value:O},_.createElement(zd.Provider,{value:l},_.createElement(qv.Provider,{value:D.current},_.createElement(Zv.Provider,{value:a},_.createElement($v,{basename:L,location:l.location,navigationType:l.historyAction,navigator:x,future:y},l.initialized||n.future.v7_partialHydration?_.createElement(ry,{routes:n.routes,future:n.future,state:l}):t))))),null)}const ry=_.memo(ly);function ly(e){let{routes:t,future:n,state:r}=e;return Lv(t,void 0,r,n)}const iy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dy=_.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:u,target:a,to:s,preventScrollReset:d,viewTransition:f}=t,h=Hv(t,Yv),{basename:w}=_.useContext(zn),k,E=!1;if(typeof s=="string"&&oy.test(s)&&(k=s,iy))try{let v=new URL(window.location.href),x=s.startsWith("//")?new URL(v.protocol+s):new URL(s),L=hr(x.pathname,w);x.origin===v.origin&&L!=null?s=L+x.search+x.hash:E=!0}catch{}let D=Cv(s,{relative:l}),m=uy(s,{replace:o,state:u,target:a,preventScrollReset:d,relative:l,viewTransition:f});function c(v){r&&r(v),v.defaultPrevented||m(v)}return _.createElement("a",sl({},h,{href:k||D,onClick:E||i?r:c,ref:n,target:a}))});var ac;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ac||(ac={}));var sc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sc||(sc={}));function uy(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,viewTransition:u}=t===void 0?{}:t,a=Ud(),s=vl(),d=Id(e,{relative:o});return _.useCallback(f=>{if(Qv(f,n)){f.preventDefault();let h=r!==void 0?r:Nn(s)===Nn(d);a(e,{replace:h,state:l,preventScrollReset:i,relative:o,viewTransition:u})}},[s,a,d,r,l,n,e,i,o,u])}function py(e){let t=_.useRef(wu(e)),n=_.useRef(!1),r=vl(),l=_.useMemo(()=>Kv(r.search,n.current?null:t.current),[r.search]),i=Ud(),o=_.useCallback((u,a)=>{const s=wu(typeof u=="function"?u(l):u);n.current=!0,i("?"+s,a)},[i,l]);return[l,o]}export{dy as L,sy as O,fy as R,xd as a,vl as b,Ud as c,ay as d,cy as e,wp as f,_ as r,py as u};
diff --git a/vitals/console/static/favicon.svg b/vitals/console/static/favicon.svg
new file mode 100644
index 0000000..eb57fd4
--- /dev/null
+++ b/vitals/console/static/favicon.svg
@@ -0,0 +1,4 @@
+
diff --git a/vitals/console/static/fonts/InterVariable.woff2 b/vitals/console/static/fonts/InterVariable.woff2
new file mode 100644
index 0000000..9c1a33c
--- /dev/null
+++ b/vitals/console/static/fonts/InterVariable.woff2
@@ -0,0 +1 @@
+wOF2 font placeholder
diff --git a/vitals/console/static/fonts/JetBrainsMono-Medium.woff2 b/vitals/console/static/fonts/JetBrainsMono-Medium.woff2
new file mode 100644
index 0000000..9c1a33c
--- /dev/null
+++ b/vitals/console/static/fonts/JetBrainsMono-Medium.woff2
@@ -0,0 +1 @@
+wOF2 font placeholder
diff --git a/vitals/console/static/fonts/JetBrainsMono-Regular.woff2 b/vitals/console/static/fonts/JetBrainsMono-Regular.woff2
new file mode 100644
index 0000000..9c1a33c
--- /dev/null
+++ b/vitals/console/static/fonts/JetBrainsMono-Regular.woff2
@@ -0,0 +1 @@
+wOF2 font placeholder
diff --git a/vitals/console/static/index.html b/vitals/console/static/index.html
new file mode 100644
index 0000000..b28ac1e
--- /dev/null
+++ b/vitals/console/static/index.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+ Vitals Console
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+