From 15abdd74d482da6c23a8622a62510afb3cbe8ab7 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 23 Jul 2023 22:03:48 +0800 Subject: [PATCH] Updates --- .../{index-b58c30c5.js => index-2fe215a1.js} | 30 +++++++++---------- index.html | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) rename assets/{index-b58c30c5.js => index-2fe215a1.js} (92%) diff --git a/assets/index-b58c30c5.js b/assets/index-2fe215a1.js similarity index 92% rename from assets/index-b58c30c5.js rename to assets/index-2fe215a1.js index 256baa9..d4f599f 100644 --- a/assets/index-b58c30c5.js +++ b/assets/index-2fe215a1.js @@ -6,7 +6,7 @@ function Im(e,t){for(var n=0;n>>1,ye=M[le];if(0>>1;leo(Je,j))qeo(cn,Je)?(M[le]=cn,M[qe]=j,le=qe):(M[le]=Je,M[Q]=j,le=Q);else if(qeo(cn,j))M[le]=cn,M[qe]=j,le=qe;else break e}}return I}function o(M,I){var j=M.sortIndex-I.sortIndex;return j!==0?j:M.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,m=null,p=3,w=!1,v=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(M){for(var I=n(s);I!==null;){if(I.callback===null)r(s);else if(I.startTime<=M)r(s),I.sortIndex=I.expirationTime,t(u,I);else break;I=n(s)}}function f(M){if(g=!1,y(M),!v)if(n(u)!==null)v=!0,de(S);else{var I=n(s);I!==null&&Ue(f,I.startTime-M)}}function S(M,I){v=!1,g&&(g=!1,h(L),L=-1),w=!0;var j=p;try{for(y(I),m=n(u);m!==null&&(!(m.expirationTime>I)||M&&!H());){var le=m.callback;if(typeof le=="function"){m.callback=null,p=m.priorityLevel;var ye=le(m.expirationTime<=I);I=e.unstable_now(),typeof ye=="function"?m.callback=ye:m===n(u)&&r(u),y(I)}else r(u);m=n(u)}if(m!==null)var sn=!0;else{var Q=n(s);Q!==null&&Ue(f,Q.startTime-I),sn=!1}return sn}finally{m=null,p=j,w=!1}}var P=!1,E=null,L=-1,A=5,O=-1;function H(){return!(e.unstable_now()-OM||125le?(M.sortIndex=j,t(s,M),n(u)===null&&M===n(s)&&(g?(h(L),L=-1):g=!0,Ue(f,j-le))):(M.sortIndex=ye,t(u,M),v||w||(v=!0,de(S))),M},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(M){var I=p;return function(){var j=p;p=I;try{return M.apply(this,arguments)}finally{p=j}}}})(Gd);Qd.exports=Gd;var i0=Qd.exports;/** + */(function(e){function t(M,I){var j=M.length;M.push(I);e:for(;0>>1,ye=M[le];if(0>>1;leo(Je,j))qeo(cn,Je)?(M[le]=cn,M[qe]=j,le=qe):(M[le]=Je,M[Q]=j,le=Q);else if(qeo(cn,j))M[le]=cn,M[qe]=j,le=qe;else break e}}return I}function o(M,I){var j=M.sortIndex-I.sortIndex;return j!==0?j:M.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],s=[],c=1,m=null,p=3,w=!1,v=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(M){for(var I=n(s);I!==null;){if(I.callback===null)r(s);else if(I.startTime<=M)r(s),I.sortIndex=I.expirationTime,t(u,I);else break;I=n(s)}}function f(M){if(g=!1,y(M),!v)if(n(u)!==null)v=!0,de(S);else{var I=n(s);I!==null&&Ue(f,I.startTime-M)}}function S(M,I){v=!1,g&&(g=!1,h(z),z=-1),w=!0;var j=p;try{for(y(I),m=n(u);m!==null&&(!(m.expirationTime>I)||M&&!H());){var le=m.callback;if(typeof le=="function"){m.callback=null,p=m.priorityLevel;var ye=le(m.expirationTime<=I);I=e.unstable_now(),typeof ye=="function"?m.callback=ye:m===n(u)&&r(u),y(I)}else r(u);m=n(u)}if(m!==null)var sn=!0;else{var Q=n(s);Q!==null&&Ue(f,Q.startTime-I),sn=!1}return sn}finally{m=null,p=j,w=!1}}var P=!1,E=null,z=-1,A=5,O=-1;function H(){return!(e.unstable_now()-OM||125le?(M.sortIndex=j,t(s,M),n(u)===null&&M===n(s)&&(g?(h(z),z=-1):g=!0,Ue(f,j-le))):(M.sortIndex=ye,t(u,M),v||w||(v=!0,de(S))),M},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(M){var I=p;return function(){var j=p;p=I;try{return M.apply(this,arguments)}finally{p=j}}}})(Gd);Qd.exports=Gd;var i0=Qd.exports;/** * @license React * react-dom.production.min.js * @@ -34,10 +34,10 @@ function Im(e,t){for(var n=0;na||o[l]!==i[a]){var u=` -`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Na=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?So(e):""}function c0(e){switch(e.tag){case 5:return So(e.type);case 16:return So("Lazy");case 13:return So("Suspense");case 19:return So("SuspenseList");case 0:case 2:case 15:return e=Da(e.type,!1),e;case 11:return e=Da(e.type.render,!1),e;case 1:return e=Da(e.type,!0),e;default:return""}}function mu(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 gr:return"Fragment";case mr:return"Portal";case du:return"Profiler";case Ss:return"StrictMode";case pu:return"Suspense";case hu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jd:return(e.displayName||"Context")+".Consumer";case Zd:return(e._context.displayName||"Context")+".Provider";case ks:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Es:return t=e.displayName||null,t!==null?t:mu(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return mu(e(t))}catch{}}return null}function f0(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 mu(t);case 8:return t===Ss?"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 Mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ep(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function d0(e){var t=ep(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){e._valueTracker||(e._valueTracker=d0(e))}function tp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ep(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function il(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 gu(e,t){var n=t.checked;return me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ac(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mn(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 np(e,t){t=t.checked,t!=null&&xs(e,"checked",t,!1)}function yu(e,t){np(e,t);var n=Mn(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")?vu(e,t.type,n):t.hasOwnProperty("defaultValue")&&vu(e,t.type,Mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jc(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 vu(e,t,n){(t!=="number"||il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ko=Array.isArray;function Mr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ro={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},p0=["Webkit","ms","Moz","O"];Object.keys(Ro).forEach(function(e){p0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ro[t]=Ro[e]})});function lp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ro.hasOwnProperty(e)&&Ro[e]?(""+t).trim():t+"px"}function ap(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var h0=me({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 Su(e,t){if(t){if(h0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function ku(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 Eu=null;function Cs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cu=null,Or=null,Lr=null;function Bc(e){if(e=ai(e)){if(typeof Cu!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Al(t),Cu(e.stateNode,e.type,t))}}function up(e){Or?Lr?Lr.push(e):Lr=[e]:Or=e}function sp(){if(Or){var e=Or,t=Lr;if(Lr=Or=null,Bc(e),t)for(e=0;e>>=0,e===0?32:31-(R0(e)/P0|0)|0}var Ri=64,Pi=4194304;function Eo(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 sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Eo(a):(i&=l,i!==0&&(r=Eo(i)))}else l=n&~o,l!==0?r=Eo(l):i!==0&&(r=Eo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===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 ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=n}function O0(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=_o),Zc=String.fromCharCode(32),Jc=!1;function Mp(e,t){switch(e){case"keyup":return og.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Op(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yr=!1;function lg(e,t){switch(e){case"compositionend":return Op(t);case"keypress":return t.which!==32?null:(Jc=!0,Zc);case"textInput":return e=t.data,e===Zc&&Jc?null:e;default:return null}}function ag(e,t){if(yr)return e==="compositionend"||!zs&&Mp(e,t)?(e=_p(),Ki=Ms=wn=null,yr=!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=nf(n)}}function Np(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Np(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dp(){for(var e=window,t=il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=il(e.document)}return t}function $s(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 gg(e){var t=Dp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Np(n.ownerDocument.documentElement,n)){if(r!==null&&$s(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=rf(n,i);var l=rf(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,vr=null,Ou=null,Mo=null,Lu=!1;function of(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lu||vr==null||vr!==il(r)||(r=vr,"selectionStart"in r&&$s(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}),Mo&&Wo(Mo,r)||(Mo=r,r=dl(Ou,"onSelect"),0Sr||(e.current=Fu[Sr],Fu[Sr]=null,Sr--)}function ie(e,t){Sr++,Fu[Sr]=e.current,e.current=t}var On={},Qe=zn(On),nt=zn(!1),Qn=On;function jr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function hl(){ue(nt),ue(Qe)}function df(e,t,n){if(Qe.current!==On)throw Error(T(168));ie(Qe,t),ie(nt,n)}function Vp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,f0(e)||"Unknown",o));return me({},n,r)}function ml(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Qn=Qe.current,ie(Qe,e),ie(nt,nt.current),!0}function pf(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Vp(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,ue(nt),ue(Qe),ie(Qe,e)):ue(nt),ie(nt,n)}var Xt=null,jl=!1,Ya=!1;function Hp(e){Xt===null?Xt=[e]:Xt.push(e)}function Tg(e){jl=!0,Hp(e)}function $n(){if(!Ya&&Xt!==null){Ya=!0;var e=0,t=q;try{var n=Xt;for(q=1;e>=l,o-=l,Zt=1<<32-$t(t)+o|n<L?(A=E,E=null):A=E.sibling;var O=p(h,E,y[L],f);if(O===null){E===null&&(E=A);break}e&&E&&O.alternate===null&&t(h,E),d=i(O,d,L),P===null?S=O:P.sibling=O,P=O,E=A}if(L===y.length)return n(h,E),fe&&Fn(h,L),S;if(E===null){for(;LL?(A=E,E=null):A=E.sibling;var H=p(h,E,O.value,f);if(H===null){E===null&&(E=A);break}e&&E&&H.alternate===null&&t(h,E),d=i(H,d,L),P===null?S=H:P.sibling=H,P=H,E=A}if(O.done)return n(h,E),fe&&Fn(h,L),S;if(E===null){for(;!O.done;L++,O=y.next())O=m(h,O.value,f),O!==null&&(d=i(O,d,L),P===null?S=O:P.sibling=O,P=O);return fe&&Fn(h,L),S}for(E=r(h,E);!O.done;L++,O=y.next())O=w(E,h,L,O.value,f),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?L:O.key),d=i(O,d,L),P===null?S=O:P.sibling=O,P=O);return e&&E.forEach(function(V){return t(h,V)}),fe&&Fn(h,L),S}function C(h,d,y,f){if(typeof y=="object"&&y!==null&&y.type===gr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:e:{for(var S=y.key,P=d;P!==null;){if(P.key===S){if(S=y.type,S===gr){if(P.tag===7){n(h,P.sibling),d=o(P,y.props.children),d.return=h,h=d;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===mn&&xf(S)===P.type){n(h,P.sibling),d=o(P,y.props),d.ref=co(h,P,y),d.return=h,h=d;break e}n(h,P);break}else t(h,P);P=P.sibling}y.type===gr?(d=Hn(y.props.children,h.mode,f,y.key),d.return=h,h=d):(f=el(y.type,y.key,y.props,null,h.mode,f),f.ref=co(h,d,y),f.return=h,h=f)}return l(h);case mr:e:{for(P=y.key;d!==null;){if(d.key===P)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){n(h,d.sibling),d=o(d,y.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=ru(y,h.mode,f),d.return=h,h=d}return l(h);case mn:return P=y._init,C(h,d,P(y._payload),f)}if(ko(y))return v(h,d,y,f);if(io(y))return g(h,d,y,f);$i(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,d!==null&&d.tag===6?(n(h,d.sibling),d=o(d,y),d.return=h,h=d):(n(h,d),d=nu(y,h.mode,f),d.return=h,h=d),l(h)):n(h,d)}return C}var Ur=qp(!0),eh=qp(!1),ui={},Vt=zn(ui),Qo=zn(ui),Go=zn(ui);function Un(e){if(e===ui)throw Error(T(174));return e}function Bs(e,t){switch(ie(Go,t),ie(Qo,e),ie(Vt,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xu(t,e)}ue(Vt),ie(Vt,t)}function Br(){ue(Vt),ue(Qo),ue(Go)}function th(e){Un(Go.current);var t=Un(Vt.current),n=xu(t,e.type);t!==n&&(ie(Qo,e),ie(Vt,n))}function Ws(e){Qo.current===e&&(ue(Vt),ue(Qo))}var pe=zn(0);function Sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xa=[];function Vs(){for(var e=0;en?n:4,e(!0);var r=Za.transition;Za.transition={};try{e(!1),t()}finally{q=n,Za.transition=r}}function yh(){return Rt().memoizedState}function zg(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vh(e))wh(t,n);else if(n=Yp(e,t,n,r),n!==null){var o=Ye();Nt(n,e,r,o),xh(n,t,r)}}function $g(e,t,n){var r=_n(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vh(e))wh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Dt(a,l)){var u=t.interleaved;u===null?(o.next=o,bs(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=Yp(e,t,o,r),n!==null&&(o=Ye(),Nt(n,e,r,o),xh(n,t,r))}}function vh(e){var t=e.alternate;return e===he||t!==null&&t===he}function wh(e,t){Oo=kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ps(e,n)}}var El={readContext:Ct,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Ng={readContext:Ct,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:kf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xi(4194308,4,dh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xi(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();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=zg.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:Sf,useDebugValue:Ys,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=Sf(!1),t=e[0];return e=Lg.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=he,o=At();if(fe){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),De===null)throw Error(T(349));Yn&30||oh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,kf(lh.bind(null,r,i,e),[e]),r.flags|=2048,Zo(9,ih.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=De.identifierPrefix;if(fe){var n=Jt,r=Zt;n=(r&~(1<<32-$t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yo++,0")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Na=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?So(e):""}function c0(e){switch(e.tag){case 5:return So(e.type);case 16:return So("Lazy");case 13:return So("Suspense");case 19:return So("SuspenseList");case 0:case 2:case 15:return e=Da(e.type,!1),e;case 11:return e=Da(e.type.render,!1),e;case 1:return e=Da(e.type,!0),e;default:return""}}function mu(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 gr:return"Fragment";case mr:return"Portal";case du:return"Profiler";case Ss:return"StrictMode";case pu:return"Suspense";case hu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jd:return(e.displayName||"Context")+".Consumer";case Zd:return(e._context.displayName||"Context")+".Provider";case ks:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Es:return t=e.displayName||null,t!==null?t:mu(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return mu(e(t))}catch{}}return null}function f0(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 mu(t);case 8:return t===Ss?"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 Mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ep(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function d0(e){var t=ep(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){e._valueTracker||(e._valueTracker=d0(e))}function tp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ep(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function il(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 gu(e,t){var n=t.checked;return me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ac(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mn(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 np(e,t){t=t.checked,t!=null&&xs(e,"checked",t,!1)}function yu(e,t){np(e,t);var n=Mn(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")?vu(e,t.type,n):t.hasOwnProperty("defaultValue")&&vu(e,t.type,Mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jc(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 vu(e,t,n){(t!=="number"||il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ko=Array.isArray;function Mr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ro={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},p0=["Webkit","ms","Moz","O"];Object.keys(Ro).forEach(function(e){p0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ro[t]=Ro[e]})});function lp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ro.hasOwnProperty(e)&&Ro[e]?(""+t).trim():t+"px"}function ap(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var h0=me({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 Su(e,t){if(t){if(h0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function ku(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 Eu=null;function Cs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cu=null,Or=null,zr=null;function Bc(e){if(e=ai(e)){if(typeof Cu!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Al(t),Cu(e.stateNode,e.type,t))}}function up(e){Or?zr?zr.push(e):zr=[e]:Or=e}function sp(){if(Or){var e=Or,t=zr;if(zr=Or=null,Bc(e),t)for(e=0;e>>=0,e===0?32:31-(R0(e)/P0|0)|0}var Ri=64,Pi=4194304;function Eo(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 sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Eo(a):(i&=l,i!==0&&(r=Eo(i)))}else l=n&~o,l!==0?r=Eo(l):i!==0&&(r=Eo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===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 ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=n}function O0(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=_o),Zc=String.fromCharCode(32),Jc=!1;function Mp(e,t){switch(e){case"keyup":return og.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Op(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yr=!1;function lg(e,t){switch(e){case"compositionend":return Op(t);case"keypress":return t.which!==32?null:(Jc=!0,Zc);case"textInput":return e=t.data,e===Zc&&Jc?null:e;default:return null}}function ag(e,t){if(yr)return e==="compositionend"||!Ls&&Mp(e,t)?(e=_p(),Ki=Ms=wn=null,yr=!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=nf(n)}}function Np(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Np(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dp(){for(var e=window,t=il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=il(e.document)}return t}function $s(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 gg(e){var t=Dp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Np(n.ownerDocument.documentElement,n)){if(r!==null&&$s(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=rf(n,i);var l=rf(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,vr=null,Ou=null,Mo=null,zu=!1;function of(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zu||vr==null||vr!==il(r)||(r=vr,"selectionStart"in r&&$s(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}),Mo&&Wo(Mo,r)||(Mo=r,r=dl(Ou,"onSelect"),0Sr||(e.current=Fu[Sr],Fu[Sr]=null,Sr--)}function ie(e,t){Sr++,Fu[Sr]=e.current,e.current=t}var On={},Qe=Ln(On),nt=Ln(!1),Qn=On;function jr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function hl(){ue(nt),ue(Qe)}function df(e,t,n){if(Qe.current!==On)throw Error(T(168));ie(Qe,t),ie(nt,n)}function Vp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,f0(e)||"Unknown",o));return me({},n,r)}function ml(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Qn=Qe.current,ie(Qe,e),ie(nt,nt.current),!0}function pf(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Vp(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,ue(nt),ue(Qe),ie(Qe,e)):ue(nt),ie(nt,n)}var Xt=null,jl=!1,Ya=!1;function Hp(e){Xt===null?Xt=[e]:Xt.push(e)}function Tg(e){jl=!0,Hp(e)}function $n(){if(!Ya&&Xt!==null){Ya=!0;var e=0,t=q;try{var n=Xt;for(q=1;e>=l,o-=l,Zt=1<<32-$t(t)+o|n<z?(A=E,E=null):A=E.sibling;var O=p(h,E,y[z],f);if(O===null){E===null&&(E=A);break}e&&E&&O.alternate===null&&t(h,E),d=i(O,d,z),P===null?S=O:P.sibling=O,P=O,E=A}if(z===y.length)return n(h,E),fe&&Fn(h,z),S;if(E===null){for(;zz?(A=E,E=null):A=E.sibling;var H=p(h,E,O.value,f);if(H===null){E===null&&(E=A);break}e&&E&&H.alternate===null&&t(h,E),d=i(H,d,z),P===null?S=H:P.sibling=H,P=H,E=A}if(O.done)return n(h,E),fe&&Fn(h,z),S;if(E===null){for(;!O.done;z++,O=y.next())O=m(h,O.value,f),O!==null&&(d=i(O,d,z),P===null?S=O:P.sibling=O,P=O);return fe&&Fn(h,z),S}for(E=r(h,E);!O.done;z++,O=y.next())O=w(E,h,z,O.value,f),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?z:O.key),d=i(O,d,z),P===null?S=O:P.sibling=O,P=O);return e&&E.forEach(function(V){return t(h,V)}),fe&&Fn(h,z),S}function C(h,d,y,f){if(typeof y=="object"&&y!==null&&y.type===gr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:e:{for(var S=y.key,P=d;P!==null;){if(P.key===S){if(S=y.type,S===gr){if(P.tag===7){n(h,P.sibling),d=o(P,y.props.children),d.return=h,h=d;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===mn&&xf(S)===P.type){n(h,P.sibling),d=o(P,y.props),d.ref=co(h,P,y),d.return=h,h=d;break e}n(h,P);break}else t(h,P);P=P.sibling}y.type===gr?(d=Hn(y.props.children,h.mode,f,y.key),d.return=h,h=d):(f=el(y.type,y.key,y.props,null,h.mode,f),f.ref=co(h,d,y),f.return=h,h=f)}return l(h);case mr:e:{for(P=y.key;d!==null;){if(d.key===P)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){n(h,d.sibling),d=o(d,y.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=ru(y,h.mode,f),d.return=h,h=d}return l(h);case mn:return P=y._init,C(h,d,P(y._payload),f)}if(ko(y))return v(h,d,y,f);if(io(y))return g(h,d,y,f);$i(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,d!==null&&d.tag===6?(n(h,d.sibling),d=o(d,y),d.return=h,h=d):(n(h,d),d=nu(y,h.mode,f),d.return=h,h=d),l(h)):n(h,d)}return C}var Ur=qp(!0),eh=qp(!1),ui={},Vt=Ln(ui),Qo=Ln(ui),Go=Ln(ui);function Un(e){if(e===ui)throw Error(T(174));return e}function Bs(e,t){switch(ie(Go,t),ie(Qo,e),ie(Vt,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xu(t,e)}ue(Vt),ie(Vt,t)}function Br(){ue(Vt),ue(Qo),ue(Go)}function th(e){Un(Go.current);var t=Un(Vt.current),n=xu(t,e.type);t!==n&&(ie(Qo,e),ie(Vt,n))}function Ws(e){Qo.current===e&&(ue(Vt),ue(Qo))}var pe=Ln(0);function Sl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xa=[];function Vs(){for(var e=0;en?n:4,e(!0);var r=Za.transition;Za.transition={};try{e(!1),t()}finally{q=n,Za.transition=r}}function yh(){return Rt().memoizedState}function Lg(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vh(e))wh(t,n);else if(n=Yp(e,t,n,r),n!==null){var o=Ye();Nt(n,e,r,o),xh(n,t,r)}}function $g(e,t,n){var r=_n(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vh(e))wh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Dt(a,l)){var u=t.interleaved;u===null?(o.next=o,bs(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=Yp(e,t,o,r),n!==null&&(o=Ye(),Nt(n,e,r,o),xh(n,t,r))}}function vh(e){var t=e.alternate;return e===he||t!==null&&t===he}function wh(e,t){Oo=kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ps(e,n)}}var El={readContext:Ct,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Ng={readContext:Ct,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:kf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xi(4194308,4,dh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xi(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();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=Lg.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:Sf,useDebugValue:Ys,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=Sf(!1),t=e[0];return e=zg.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=he,o=At();if(fe){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),De===null)throw Error(T(349));Yn&30||oh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,kf(lh.bind(null,r,i,e),[e]),r.flags|=2048,Zo(9,ih.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=De.identifierPrefix;if(fe){var n=Jt,r=Zt;n=(r&~(1<<32-$t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ut]=t,e[Ko]=r,Mh(e,t,!1,!1),t.stateNode=e;e:{switch(l=ku(n,r),n){case"dialog":ae("cancel",e),ae("close",e),o=r;break;case"iframe":case"object":case"embed":ae("load",e),o=r;break;case"video":case"audio":for(o=0;oVr&&(t.flags|=128,r=!0,fo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!fe)return Ve(t),null}else 2*ke()-i.renderingStartTime>Vr&&n!==1073741824&&(t.flags|=128,r=!0,fo(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=pe.current,ie(pe,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Bg(e,t){switch(Ds(t),t.tag){case 1:return rt(t.type)&&hl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(),ue(nt),ue(Qe),Vs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ws(t),null;case 13:if(ue(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(pe),null;case 4:return Br(),null;case 10:return js(t.type._context),null;case 22:case 23:return tc(),null;case 24:return null;default:return null}}var Di=!1,Ke=!1,Wg=typeof WeakSet=="function"?WeakSet:Set,z=null;function Rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function Yu(e,t,n){try{n()}catch(r){xe(e,t,r)}}var Lf=!1;function Vg(e,t){if(zu=cl,e=Dp(),$s(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,m=e,p=null;t:for(;;){for(var w;m!==n||o!==0&&m.nodeType!==3||(a=l+o),m!==i||r!==0&&m.nodeType!==3||(u=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(w=m.firstChild)!==null;)p=m,m=w;for(;;){if(m===e)break t;if(p===n&&++s===o&&(a=l),p===i&&++c===r&&(u=l),(w=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=w}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($u={focusedElem:e,selectionRange:n},cl=!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 v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,C=v.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:Mt(t.type,g),C);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(f){xe(t,t.return,f)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return v=Lf,Lf=!1,v}function Lo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yu(t,n,i)}o=o.next}while(o!==r)}}function Bl(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 Xu(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 zh(e){var t=e.alternate;t!==null&&(e.alternate=null,zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ut],delete t[Ko],delete t[Iu],delete t[Pg],delete t[_g])),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 $h(e){return e.tag===5||e.tag===3||e.tag===4}function zf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$h(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 Zu(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=pl));else if(r!==4&&(e=e.child,e!==null))for(Zu(e,t,n),e=e.sibling;e!==null;)Zu(e,t,n),e=e.sibling}function Ju(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(Ju(e,t,n),e=e.sibling;e!==null;)Ju(e,t,n),e=e.sibling}var Fe=null,Ot=!1;function pn(e,t,n){for(n=n.child;n!==null;)Nh(e,t,n),n=n.sibling}function Nh(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Nl,n)}catch{}switch(n.tag){case 5:Ke||Rr(n,t);case 6:var r=Fe,o=Ot;Fe=null,pn(e,t,n),Fe=r,Ot=o,Fe!==null&&(Ot?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Ot?(e=Fe,n=n.stateNode,e.nodeType===8?Ga(e.parentNode,n):e.nodeType===1&&Ga(e,n),Uo(e)):Ga(Fe,n.stateNode));break;case 4:r=Fe,o=Ot,Fe=n.stateNode.containerInfo,Ot=!0,pn(e,t,n),Fe=r,Ot=o;break;case 0:case 11:case 14:case 15:if(!Ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Yu(n,t,l),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!Ke&&(Rr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,t,a)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Ke=(r=Ke)||n.memoizedState!==null,pn(e,t,n),Ke=r):pn(e,t,n);break;default:pn(e,t,n)}}function $f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wg),t.forEach(function(r){var o=qg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kg(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,Pl=0,Y&6)throw Error(T(331));var o=Y;for(Y|=4,z=e.current;z!==null;){var i=z,l=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uke()-qs?Vn(e,0):Js|=n),ot(e,t)}function Bh(e,t){t===0&&(e.mode&1?(t=Pi,Pi<<=1,!(Pi&130023424)&&(Pi=4194304)):t=1);var n=Ye();e=rn(e,t),e!==null&&(ii(e,t,n),ot(e,n))}function Jg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bh(e,n)}function qg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Bh(e,n)}var Wh;Wh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,bg(e,t,n);tt=!!(e.flags&131072)}else tt=!1,fe&&t.flags&1048576&&Kp(t,yl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var o=jr(t,Qe.current);$r(t,n),o=Ks(null,t,r,e,o,n);var i=Qs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(i=!0,ml(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Us(t),o.updater=bl,t.stateNode=o,o._reactInternals=t,Bu(t,r,e,n),t=Hu(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Ns(t),Ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ty(r),e=Mt(r,e),o){case 0:t=Vu(null,t,r,e,n);break e;case 1:t=Tf(null,t,r,e,n);break e;case 11:t=Pf(null,t,r,e,n);break e;case 14:t=_f(null,t,r,Mt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Vu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Tf(e,t,r,o,n);case 3:e:{if(Ph(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xp(e,t),xl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Wr(Error(T(423)),t),t=Mf(e,t,r,n,o);break e}else if(r!==o){o=Wr(Error(T(424)),t),t=Mf(e,t,r,n,o);break e}else for(st=Cn(t.stateNode.containerInfo.firstChild),ct=t,fe=!0,zt=null,n=eh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(br(),r===o){t=on(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return th(t),e===null&&ju(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Nu(r,o)?l=null:i!==null&&Nu(r,i)&&(t.flags|=32),Rh(e,t),Ge(e,t,l,n),t.child;case 6:return e===null&&ju(t),null;case 13:return _h(e,t,n);case 4:return Bs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Pf(e,t,r,o,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ie(vl,r._currentValue),r._currentValue=l,i!==null)if(Dt(i.value,l)){if(i.children===o.children&&!nt.current){t=on(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=qt(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),bu(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(T(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),bu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$r(t,n),o=Ct(o),r=r(o),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,o=Mt(r,t.pendingProps),o=Mt(r.type,o),_f(e,t,r,o,n);case 15:return Eh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Zi(e,t),t.tag=1,rt(r)?(e=!0,ml(t)):e=!1,$r(t,n),Jp(t,r,o),Bu(t,r,o,n),Hu(null,t,r,!0,e,n);case 19:return Th(e,t,n);case 22:return Ch(e,t,n)}throw Error(T(156,t.tag))};function Vh(e,t){return gp(e,t)}function ey(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 kt(e,t,n,r){return new ey(e,t,n,r)}function rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ty(e){if(typeof e=="function")return rc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ks)return 11;if(e===Es)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=kt(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 el(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")rc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case gr:return Hn(n.children,o,i,t);case Ss:l=8,o|=8;break;case du:return e=kt(12,n,t,o|2),e.elementType=du,e.lanes=i,e;case pu:return e=kt(13,n,t,o),e.elementType=pu,e.lanes=i,e;case hu:return e=kt(19,n,t,o),e.elementType=hu,e.lanes=i,e;case qd:return Vl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zd:l=10;break e;case Jd:l=9;break e;case ks:l=11;break e;case Es:l=14;break e;case mn:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=kt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Hn(e,t,n,r){return e=kt(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=kt(22,e,r,t),e.elementType=qd,e.lanes=n,e.stateNode={isHidden:!1},e}function nu(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function ru(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ny(e,t,n,r,o){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=Fa(0),this.expirationTimes=Fa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function oc(e,t,n,r,o,i,l,a,u){return e=new ny(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=kt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Us(i),e}function ry(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gh)}catch(e){console.error(e)}}Gh(),Kd.exports=pt;var uy=Kd.exports,Uf=uy;cu.createRoot=Uf.createRoot,cu.hydrateRoot=Uf.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function eu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Fg=typeof WeakMap=="function"?WeakMap:Map;function Sh(e,t,n){n=qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rl||(Rl=!0,qu=r),Wu(e,t)},n}function kh(e,t,n){n=qt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Wu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Wu(e,t),typeof r!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Ef(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fg;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Zg.bind(null,e,t,n),t.then(e,e))}function Cf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Rf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=qt(-1,1),t.tag=2,Rn(n,t,1))),n.lanes|=1),e)}var Ag=an.ReactCurrentOwner,tt=!1;function Ge(e,t,n,r){t.child=e===null?eh(t,null,n,r):Ur(t,e.child,n,r)}function Pf(e,t,n,r,o){n=n.render;var i=t.ref;return $r(t,o),r=Ks(e,t,n,r,i,o),n=Qs(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,on(e,t,o)):(fe&&n&&Ns(t),t.flags|=1,Ge(e,t,r,o),t.child)}function _f(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!rc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Eh(e,t,i,r,o)):(e=el(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Wo,n(l,r)&&e.ref===t.ref)return on(e,t,o)}return t.flags|=1,e=Tn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Eh(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Wo(i,r)&&e.ref===t.ref)if(tt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,on(e,t,o)}return Vu(e,t,n,r,o)}function Ch(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ie(Pr,lt),lt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ie(Pr,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ie(Pr,lt),lt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ie(Pr,lt),lt|=r;return Ge(e,t,o,n),t.child}function Rh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vu(e,t,n,r,o){var i=rt(n)?Qn:Qe.current;return i=jr(t,i),$r(t,o),n=Ks(e,t,n,r,i,o),r=Qs(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,on(e,t,o)):(fe&&r&&Ns(t),t.flags|=1,Ge(e,t,n,o),t.child)}function Tf(e,t,n,r,o){if(rt(n)){var i=!0;ml(t)}else i=!1;if($r(t,o),t.stateNode===null)Zi(e,t),Jp(t,n,r),Bu(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var u=l.context,s=n.contextType;typeof s=="object"&&s!==null?s=Ct(s):(s=rt(n)?Qn:Qe.current,s=jr(t,s));var c=n.getDerivedStateFromProps,m=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";m||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||u!==s)&&wf(t,l,r,s),gn=!1;var p=t.memoizedState;l.state=p,xl(t,r,l,o),u=t.memoizedState,a!==r||p!==u||nt.current||gn?(typeof c=="function"&&(Uu(t,n,c,r),u=t.memoizedState),(a=gn||vf(t,n,a,r,p,u,s))?(m||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=s,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Xp(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:Mt(t.type,a),l.props=s,m=t.pendingProps,p=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ct(u):(u=rt(n)?Qn:Qe.current,u=jr(t,u));var w=n.getDerivedStateFromProps;(c=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==m||p!==u)&&wf(t,l,r,u),gn=!1,p=t.memoizedState,l.state=p,xl(t,r,l,o);var v=t.memoizedState;a!==m||p!==v||nt.current||gn?(typeof w=="function"&&(Uu(t,n,w,r),v=t.memoizedState),(s=gn||vf(t,n,s,r,p,v,u)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,v,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,v,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),l.props=r,l.state=v,l.context=u,r=s):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Hu(e,t,n,r,i,o)}function Hu(e,t,n,r,o,i){Rh(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&pf(t,n,!1),on(e,t,i);r=t.stateNode,Ag.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Ur(t,e.child,null,i),t.child=Ur(t,null,a,i)):Ge(e,t,a,i),t.memoizedState=r.state,o&&pf(t,n,!0),t.child}function Ph(e){var t=e.stateNode;t.pendingContext?df(e,t.pendingContext,t.pendingContext!==t.context):t.context&&df(e,t.context,!1),Bs(e,t.containerInfo)}function Mf(e,t,n,r,o){return br(),Is(o),t.flags|=256,Ge(e,t,n,r),t.child}var Ku={dehydrated:null,treeContext:null,retryLane:0};function Qu(e){return{baseLanes:e,cachePool:null,transitions:null}}function _h(e,t,n){var r=t.pendingProps,o=pe.current,i=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ie(pe,o&1),e===null)return ju(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Vl(l,r,0,null),e=Hn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Qu(n),t.memoizedState=Ku,e):Xs(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return jg(e,t,l,r,a,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Tn(o,u),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Tn(a,i):(i=Hn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Qu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Ku,r}return i=e.child,e=i.sibling,r=Tn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Xs(e,t){return t=Vl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ni(e,t,n,r){return r!==null&&Is(r),Ur(t,e.child,null,n),e=Xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jg(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=eu(Error(T(422))),Ni(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Vl({mode:"visible",children:r.children},o,0,null),i=Hn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ur(t,e.child,null,l),t.child.memoizedState=Qu(l),t.memoizedState=Ku,i);if(!(t.mode&1))return Ni(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(T(419)),r=eu(i,r,void 0),Ni(e,t,l,r)}if(a=(l&e.childLanes)!==0,tt||a){if(r=De,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,rn(e,o),Nt(r,e,o,-1))}return nc(),r=eu(Error(T(421))),Ni(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Jg.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,st=Cn(o.nextSibling),ct=t,fe=!0,Lt=null,e!==null&&(xt[St++]=Zt,xt[St++]=Jt,xt[St++]=Gn,Zt=e.id,Jt=e.overflow,Gn=t),t=Xs(t,r.children),t.flags|=4096,t)}function Of(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),bu(e.return,t,n)}function tu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Th(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ge(e,t,r.children,n),r=pe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Of(e,n,t);else if(e.tag===19)Of(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ie(pe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Sl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Sl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tu(t,!0,n,null,i);break;case"together":tu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function on(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=Tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function bg(e,t,n){switch(t.tag){case 3:Ph(t),br();break;case 5:th(t);break;case 1:rt(t.type)&&ml(t);break;case 4:Bs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ie(vl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ie(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?_h(e,t,n):(ie(pe,pe.current&1),e=on(e,t,n),e!==null?e.sibling:null);ie(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Th(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ie(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,Ch(e,t,n)}return on(e,t,n)}var Mh,Gu,Oh,zh;Mh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Gu=function(){};Oh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Un(Vt.current);var i=null;switch(n){case"input":o=gu(e,o),r=gu(e,r),i=[];break;case"select":o=me({},o,{value:void 0}),r=me({},r,{value:void 0}),i=[];break;case"textarea":o=wu(e,o),r=wu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pl)}Su(n,r);var l;n=null;for(s in o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&o[s]!=null)if(s==="style"){var a=o[s];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Io.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var u=r[s];if(a=o!=null?o[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(l in a)!a.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&a[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(i||(i=[]),i.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Io.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&ae("scroll",e),i||a===u||(i=[])):(i=i||[]).push(s,u))}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}};zh=function(e,t,n,r){n!==r&&(t.flags|=4)};function fo(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ug(e,t,n){var r=t.pendingProps;switch(Ds(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return rt(t.type)&&hl(),Ve(t),null;case 3:return r=t.stateNode,Br(),ue(nt),ue(Qe),Vs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lt!==null&&(ns(Lt),Lt=null))),Gu(e,t),Ve(t),null;case 5:Ws(t);var o=Un(Go.current);if(n=t.type,e!==null&&t.stateNode!=null)Oh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return Ve(t),null}if(e=Un(Vt.current),Li(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ut]=t,r[Ko]=i,e=(t.mode&1)!==0,n){case"dialog":ae("cancel",r),ae("close",r);break;case"iframe":case"object":case"embed":ae("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ut]=t,e[Ko]=r,Mh(e,t,!1,!1),t.stateNode=e;e:{switch(l=ku(n,r),n){case"dialog":ae("cancel",e),ae("close",e),o=r;break;case"iframe":case"object":case"embed":ae("load",e),o=r;break;case"video":case"audio":for(o=0;oVr&&(t.flags|=128,r=!0,fo(i,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!fe)return Ve(t),null}else 2*ke()-i.renderingStartTime>Vr&&n!==1073741824&&(t.flags|=128,r=!0,fo(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=pe.current,ie(pe,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Bg(e,t){switch(Ds(t),t.tag){case 1:return rt(t.type)&&hl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(),ue(nt),ue(Qe),Vs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ws(t),null;case 13:if(ue(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(pe),null;case 4:return Br(),null;case 10:return js(t.type._context),null;case 22:case 23:return tc(),null;case 24:return null;default:return null}}var Di=!1,Ke=!1,Wg=typeof WeakSet=="function"?WeakSet:Set,L=null;function Rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function Yu(e,t,n){try{n()}catch(r){xe(e,t,r)}}var zf=!1;function Vg(e,t){if(Lu=cl,e=Dp(),$s(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,m=e,p=null;t:for(;;){for(var w;m!==n||o!==0&&m.nodeType!==3||(a=l+o),m!==i||r!==0&&m.nodeType!==3||(u=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(w=m.firstChild)!==null;)p=m,m=w;for(;;){if(m===e)break t;if(p===n&&++s===o&&(a=l),p===i&&++c===r&&(u=l),(w=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=w}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($u={focusedElem:e,selectionRange:n},cl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,C=v.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:Mt(t.type,g),C);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(f){xe(t,t.return,f)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return v=zf,zf=!1,v}function zo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Yu(t,n,i)}o=o.next}while(o!==r)}}function Bl(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 Xu(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 Lh(e){var t=e.alternate;t!==null&&(e.alternate=null,Lh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ut],delete t[Ko],delete t[Iu],delete t[Pg],delete t[_g])),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 $h(e){return e.tag===5||e.tag===3||e.tag===4}function Lf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$h(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 Zu(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=pl));else if(r!==4&&(e=e.child,e!==null))for(Zu(e,t,n),e=e.sibling;e!==null;)Zu(e,t,n),e=e.sibling}function Ju(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(Ju(e,t,n),e=e.sibling;e!==null;)Ju(e,t,n),e=e.sibling}var Fe=null,Ot=!1;function pn(e,t,n){for(n=n.child;n!==null;)Nh(e,t,n),n=n.sibling}function Nh(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Nl,n)}catch{}switch(n.tag){case 5:Ke||Rr(n,t);case 6:var r=Fe,o=Ot;Fe=null,pn(e,t,n),Fe=r,Ot=o,Fe!==null&&(Ot?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Ot?(e=Fe,n=n.stateNode,e.nodeType===8?Ga(e.parentNode,n):e.nodeType===1&&Ga(e,n),Uo(e)):Ga(Fe,n.stateNode));break;case 4:r=Fe,o=Ot,Fe=n.stateNode.containerInfo,Ot=!0,pn(e,t,n),Fe=r,Ot=o;break;case 0:case 11:case 14:case 15:if(!Ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Yu(n,t,l),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!Ke&&(Rr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,t,a)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Ke=(r=Ke)||n.memoizedState!==null,pn(e,t,n),Ke=r):pn(e,t,n);break;default:pn(e,t,n)}}function $f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wg),t.forEach(function(r){var o=qg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kg(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,Pl=0,Y&6)throw Error(T(331));var o=Y;for(Y|=4,L=e.current;L!==null;){var i=L,l=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uke()-qs?Vn(e,0):Js|=n),ot(e,t)}function Bh(e,t){t===0&&(e.mode&1?(t=Pi,Pi<<=1,!(Pi&130023424)&&(Pi=4194304)):t=1);var n=Ye();e=rn(e,t),e!==null&&(ii(e,t,n),ot(e,n))}function Jg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bh(e,n)}function qg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Bh(e,n)}var Wh;Wh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,bg(e,t,n);tt=!!(e.flags&131072)}else tt=!1,fe&&t.flags&1048576&&Kp(t,yl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var o=jr(t,Qe.current);$r(t,n),o=Ks(null,t,r,e,o,n);var i=Qs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(i=!0,ml(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Us(t),o.updater=bl,t.stateNode=o,o._reactInternals=t,Bu(t,r,e,n),t=Hu(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Ns(t),Ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ty(r),e=Mt(r,e),o){case 0:t=Vu(null,t,r,e,n);break e;case 1:t=Tf(null,t,r,e,n);break e;case 11:t=Pf(null,t,r,e,n);break e;case 14:t=_f(null,t,r,Mt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Vu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Tf(e,t,r,o,n);case 3:e:{if(Ph(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xp(e,t),xl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Wr(Error(T(423)),t),t=Mf(e,t,r,n,o);break e}else if(r!==o){o=Wr(Error(T(424)),t),t=Mf(e,t,r,n,o);break e}else for(st=Cn(t.stateNode.containerInfo.firstChild),ct=t,fe=!0,Lt=null,n=eh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(br(),r===o){t=on(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return th(t),e===null&&ju(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Nu(r,o)?l=null:i!==null&&Nu(r,i)&&(t.flags|=32),Rh(e,t),Ge(e,t,l,n),t.child;case 6:return e===null&&ju(t),null;case 13:return _h(e,t,n);case 4:return Bs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Pf(e,t,r,o,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ie(vl,r._currentValue),r._currentValue=l,i!==null)if(Dt(i.value,l)){if(i.children===o.children&&!nt.current){t=on(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=qt(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),bu(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(T(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),bu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$r(t,n),o=Ct(o),r=r(o),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,o=Mt(r,t.pendingProps),o=Mt(r.type,o),_f(e,t,r,o,n);case 15:return Eh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mt(r,o),Zi(e,t),t.tag=1,rt(r)?(e=!0,ml(t)):e=!1,$r(t,n),Jp(t,r,o),Bu(t,r,o,n),Hu(null,t,r,!0,e,n);case 19:return Th(e,t,n);case 22:return Ch(e,t,n)}throw Error(T(156,t.tag))};function Vh(e,t){return gp(e,t)}function ey(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 kt(e,t,n,r){return new ey(e,t,n,r)}function rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ty(e){if(typeof e=="function")return rc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ks)return 11;if(e===Es)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=kt(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 el(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")rc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case gr:return Hn(n.children,o,i,t);case Ss:l=8,o|=8;break;case du:return e=kt(12,n,t,o|2),e.elementType=du,e.lanes=i,e;case pu:return e=kt(13,n,t,o),e.elementType=pu,e.lanes=i,e;case hu:return e=kt(19,n,t,o),e.elementType=hu,e.lanes=i,e;case qd:return Vl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zd:l=10;break e;case Jd:l=9;break e;case ks:l=11;break e;case Es:l=14;break e;case mn:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=kt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Hn(e,t,n,r){return e=kt(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=kt(22,e,r,t),e.elementType=qd,e.lanes=n,e.stateNode={isHidden:!1},e}function nu(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function ru(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ny(e,t,n,r,o){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=Fa(0),this.expirationTimes=Fa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function oc(e,t,n,r,o,i,l,a,u){return e=new ny(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=kt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Us(i),e}function ry(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gh)}catch(e){console.error(e)}}Gh(),Kd.exports=pt;var uy=Kd.exports,Uf=uy;cu.createRoot=Uf.createRoot,cu.hydrateRoot=Uf.hydrateRoot;/** * @remix-run/router v1.7.2 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Jn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cy(){return Math.random().toString(36).substr(2,8)}function Wf(e,t){return{usr:e.state,key:e.key,idx:t}}function qo(e,t,n,r){return n===void 0&&(n=null),ce({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Kt(t):t,{state:n,key:t&&t.key||r||cy()})}function si(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 Kt(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 fy(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=Ce.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(ce({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function m(){a=Ce.Pop;let C=c(),h=C==null?null:C-s;s=C,u&&u({action:a,location:g.location,delta:h})}function p(C,h){a=Ce.Push;let d=qo(g.location,C,h);n&&n(d,C),s=c()+1;let y=Wf(d,s),f=g.createHref(d);try{l.pushState(y,"",f)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(f)}i&&u&&u({action:a,location:g.location,delta:1})}function w(C,h){a=Ce.Replace;let d=qo(g.location,C,h);n&&n(d,C),s=c();let y=Wf(d,s),f=g.createHref(d);l.replaceState(y,"",f),i&&u&&u({action:a,location:g.location,delta:0})}function v(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,d=typeof C=="string"?C:si(C);return G(h,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,h)}let g={get action(){return a},get location(){return e(o,l)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Bf,m),u=C,()=>{o.removeEventListener(Bf,m),u=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let h=v(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:w,go(C){return l.go(C)}};return g}var Me;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Me||(Me={}));const dy=new Set(["lazy","caseSensitive","path","id","index","children"]);function py(e){return e.index===!0}function rs(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],a=typeof o.id=="string"?o.id:l.join("-");if(G(o.index!==!0||!o.children,"Cannot specify children on an index route"),G(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),py(o)){let u=ce({},o,t(o),{id:a});return r[a]=u,u}else{let u=ce({},o,t(o),{id:a,children:void 0});return r[a]=u,o.children&&(u.children=rs(o.children,t,l,r)),u}})}function _r(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Kt(t):t,o=ci(r.pathname||"/",n);if(o==null)return null;let i=Yh(e);hy(i);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(G(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=Kn([r,u.relativePath]),c=n.concat(u);i.children&&i.children.length>0&&(G(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Yh(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:Sy(s,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let u of Xh(i.path))o(i,l,u)}),t}function Xh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Xh(r.join("/")),a=[];return a.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function hy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ky(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const my=/^:\w+$/,gy=3,yy=2,vy=1,wy=10,xy=-2,Vf=e=>e==="*";function Sy(e,t){let n=e.split("/"),r=n.length;return n.some(Vf)&&(r+=xy),t&&(r+=yy),n.filter(o=>!Vf(o)).reduce((o,i)=>o+(my.test(i)?gy:i===""?vy:wy),r)}function ky(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Ey(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{if(c==="*"){let p=a[m]||"";l=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return s[c]=_y(a[m]||"",c),s},{}),pathname:i,pathnameBase:l,pattern:e}}function Ry(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jn(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Py(e){try{return decodeURI(e)}catch(t){return Jn(!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 _y(e,t){try{return decodeURIComponent(e)}catch(n){return Jn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ci(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)||"/"}function Ty(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Kt(e):e;return{pathname:n?n.startsWith("/")?n:My(n,t):t,search:zy(r),hash:$y(o)}}function My(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ou(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 Zh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Oy(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Kt(e):(o=ce({},e),G(!o.pathname||!o.pathname.includes("?"),ou("?","pathname","search",o)),G(!o.pathname||!o.pathname.includes("#"),ou("#","pathname","hash",o)),G(!o.search||!o.search.includes("#"),ou("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(r||l==null)a=n;else{let m=t.length-1;if(l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),m-=1;o.pathname=p.join("/")}a=m>=0?t[m]:"/"}let u=Ty(o,a),s=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const Kn=e=>e.join("/").replace(/\/\/+/g,"/"),Ly=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$y=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class uc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Jh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qh=["post","put","patch","delete"],Ny=new Set(qh),Dy=["get",...qh],Iy=new Set(Dy),Fy=new Set([301,302,303,307,308]),Ay=new Set([307,308]),iu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jy={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ho={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},em=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,by=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Uy(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;G(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let x=e.detectErrorBoundary;o=k=>({hasErrorBoundary:x(k)})}else o=by;let i={},l=rs(e.routes,o,void 0,i),a,u=e.basename||"/",s=ce({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,m=new Set,p=null,w=null,v=null,g=e.hydrationData!=null,C=_r(l,e.history.location,u),h=null;if(C==null){let x=vt(404,{pathname:e.history.location.pathname}),{matches:k,route:_}=Jf(l);C=k,h={[_.id]:x}}let d=!C.some(x=>x.route.lazy)&&(!C.some(x=>x.route.loader)||e.hydrationData!=null),y,f={historyAction:e.history.action,location:e.history.location,matches:C,initialized:d,navigation:iu,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||h,fetchers:new Map,blockers:new Map},S=Ce.Pop,P=!1,E,L=!1,A=!1,O=[],H=[],V=new Map,ge=0,_e=-1,Ee=new Map,de=new Set,Ue=new Map,M=new Map,I=new Map,j=!1;function le(){return c=e.history.listen(x=>{let{action:k,location:_,delta:$}=x;if(j){j=!1;return}Jn(I.size===0||$!=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 B=qr({currentLocation:f.location,nextLocation:_,historyAction:k});if(B&&$!=null){j=!0,e.history.go($*-1),ir(B,{state:"blocked",location:_,proceed(){ir(B,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go($)},reset(){let b=new Map(f.blockers);b.set(B,ho),Q({blockers:b})}});return}return It(k,_)}),f.initialized||It(Ce.Pop,f.location),y}function ye(){c&&c(),m.clear(),E&&E.abort(),f.fetchers.forEach((x,k)=>Jr(k)),f.blockers.forEach((x,k)=>fn(k))}function sn(x){return m.add(x),()=>m.delete(x)}function Q(x){f=ce({},f,x),m.forEach(k=>k(f))}function Je(x,k){var _,$;let B=f.actionData!=null&&f.navigation.formMethod!=null&&Lt(f.navigation.formMethod)&&f.navigation.state==="loading"&&((_=x.state)==null?void 0:_._isRedirect)!==!0,b;k.actionData?Object.keys(k.actionData).length>0?b=k.actionData:b=null:B?b=f.actionData:b=null;let U=k.loaderData?Zf(f.loaderData,k.loaderData,k.matches||[],k.errors):f.loaderData,F=f.blockers;F.size>0&&(F=new Map(F),F.forEach((oe,Be)=>F.set(Be,ho)));let N=P===!0||f.navigation.formMethod!=null&&Lt(f.navigation.formMethod)&&(($=x.state)==null?void 0:$._isRedirect)!==!0;a&&(l=a,a=void 0),L||S===Ce.Pop||(S===Ce.Push?e.history.push(x,x.state):S===Ce.Replace&&e.history.replace(x,x.state)),Q(ce({},k,{actionData:b,loaderData:U,historyAction:S,location:x,initialized:!0,navigation:iu,revalidation:"idle",restoreScrollPosition:no(x,k.matches||f.matches),preventScrollReset:N,blockers:F})),S=Ce.Pop,P=!1,L=!1,A=!1,O=[],H=[]}async function qe(x,k){if(typeof x=="number"){e.history.go(x);return}let _=os(f.location,f.matches,u,s.v7_prependBasename,x,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:$,submission:B,error:b}=Hf(s.v7_normalizeFormMethod,!1,_,k),U=f.location,F=qo(f.location,$,k&&k.state);F=ce({},F,e.history.encodeLocation(F));let N=k&&k.replace!=null?k.replace:void 0,oe=Ce.Push;N===!0?oe=Ce.Replace:N===!1||B!=null&&Lt(B.formMethod)&&B.formAction===f.location.pathname+f.location.search&&(oe=Ce.Replace);let Be=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,te=qr({currentLocation:U,nextLocation:F,historyAction:oe});if(te){ir(te,{state:"blocked",location:F,proceed(){ir(te,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),qe(x,k)},reset(){let Se=new Map(f.blockers);Se.set(te,ho),Q({blockers:Se})}});return}return await It(oe,F,{submission:B,pendingError:b,preventScrollReset:Be,replace:k&&k.replace})}function cn(){if(Zr(),Q({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){It(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}It(S||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation})}}async function It(x,k,_){E&&E.abort(),E=null,S=x,L=(_&&_.startUninterruptedRevalidation)===!0,Pa(f.location,f.matches),P=(_&&_.preventScrollReset)===!0;let $=a||l,B=_&&_.overrideNavigation,b=_r($,k,u);if(!b){let Se=vt(404,{pathname:k.pathname}),{matches:$e,route:Dn}=Jf($);eo(),Je(k,{matches:$e,loaderData:{},errors:{[Dn.id]:Se}});return}if(f.initialized&&!A&&Ky(f.location,k)&&!(_&&_.submission&&Lt(_.submission.formMethod))){Je(k,{matches:b});return}E=new AbortController;let U=go(e.history,k,E.signal,_&&_.submission),F,N;if(_&&_.pendingError)N={[Tr(b).route.id]:_.pendingError};else if(_&&_.submission&&Lt(_.submission.formMethod)){let Se=await Pt(U,k,_.submission,b,{replace:_.replace});if(Se.shortCircuited)return;F=Se.pendingActionData,N=Se.pendingActionError,B=Ai(k,_.submission),U=new Request(U.url,{signal:U.signal})}let{shortCircuited:oe,loaderData:Be,errors:te}=await ka(U,k,b,B,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,F,N);oe||(E=null,Je(k,ce({matches:b},F?{actionData:F}:{},{loaderData:Be,errors:te})))}async function Pt(x,k,_,$,B){B===void 0&&(B={}),Zr();let b=Zy(k,_);Q({navigation:b});let U,F=ls($,k);if(!F.route.action&&!F.route.lazy)U={type:Me.error,error:vt(405,{method:x.method,pathname:k.pathname,routeId:F.route.id})};else if(U=await mo("action",x,F,$,i,o,u),x.signal.aborted)return{shortCircuited:!0};if(Dr(U)){let N;return B&&B.replace!=null?N=B.replace:N=U.location===f.location.pathname+f.location.search,await Nn(f,U,{submission:_,replace:N}),{shortCircuited:!0}}if(No(U)){let N=Tr($,F.route.id);return(B&&B.replace)!==!0&&(S=Ce.Push),{pendingActionData:{},pendingActionError:{[N.route.id]:U.error}}}if(Bn(U))throw vt(400,{type:"defer-action"});return{pendingActionData:{[F.route.id]:U.data}}}async function ka(x,k,_,$,B,b,U,F,N){let oe=$||Ai(k,B),Be=B||b||td(oe),te=a||l,[Se,$e]=Kf(e.history,f,_,Be,k,A,O,H,Ue,de,te,u,F,N);if(eo(ne=>!(_&&_.some(_t=>_t.route.id===ne))||Se&&Se.some(_t=>_t.route.id===ne)),_e=++ge,Se.length===0&&$e.length===0){let ne=vi();return Je(k,ce({matches:_,loaderData:{},errors:N||null},F?{actionData:F}:{},ne?{fetchers:new Map(f.fetchers)}:{})),{shortCircuited:!0}}if(!L){$e.forEach(_t=>{let dn=f.fetchers.get(_t.key),La=yo(void 0,dn?dn.data:void 0);f.fetchers.set(_t.key,La)});let ne=F||f.actionData;Q(ce({navigation:oe},ne?Object.keys(ne).length===0?{actionData:null}:{actionData:ne}:{},$e.length>0?{fetchers:new Map(f.fetchers)}:{}))}$e.forEach(ne=>{V.has(ne.key)&&yt(ne.key),ne.controller&&V.set(ne.key,ne.controller)});let Dn=()=>$e.forEach(ne=>yt(ne.key));E&&E.signal.addEventListener("abort",Dn);let{results:In,loaderResults:ro,fetcherResults:_a}=await yi(f.matches,_,Se,$e,x);if(x.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",Dn),$e.forEach(ne=>V.delete(ne.key));let Qt=qf(In);if(Qt){if(Qt.idx>=Se.length){let ne=$e[Qt.idx-Se.length].key;de.add(ne)}return await Nn(f,Qt.result,{replace:U}),{shortCircuited:!0}}let{loaderData:Gt,errors:xi}=Xf(f,_,Se,ro,N,$e,_a,M);M.forEach((ne,_t)=>{ne.subscribe(dn=>{(dn||ne.done)&&M.delete(_t)})});let Ta=vi(),Ma=wi(_e),Oa=Ta||Ma||$e.length>0;return ce({loaderData:Gt,errors:xi},Oa?{fetchers:new Map(f.fetchers)}:{})}function gi(x){return f.fetchers.get(x)||jy}function Ea(x,k,_,$){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.");V.has(x)&&yt(x);let B=a||l,b=os(f.location,f.matches,u,s.v7_prependBasename,_,k,$==null?void 0:$.relative),U=_r(B,b,u);if(!U){nr(x,k,vt(404,{pathname:b}));return}let{path:F,submission:N,error:oe}=Hf(s.v7_normalizeFormMethod,!0,b,$);if(oe){nr(x,k,oe);return}let Be=ls(U,F);if(P=($&&$.preventScrollReset)===!0,N&&Lt(N.formMethod)){Ca(x,k,F,Be,U,N);return}Ue.set(x,{routeId:k,path:F}),Ra(x,k,F,Be,U,N)}async function Ca(x,k,_,$,B,b){if(Zr(),Ue.delete(x),!$.route.action&&!$.route.lazy){let Te=vt(405,{method:b.formMethod,pathname:_,routeId:k});nr(x,k,Te);return}let U=f.fetchers.get(x),F=Jy(b,U);f.fetchers.set(x,F),Q({fetchers:new Map(f.fetchers)});let N=new AbortController,oe=go(e.history,_,N.signal,b);V.set(x,N);let Be=ge,te=await mo("action",oe,$,B,i,o,u);if(oe.signal.aborted){V.get(x)===N&&V.delete(x);return}if(Dr(te))if(V.delete(x),_e>Be){let Te=dr(void 0);f.fetchers.set(x,Te),Q({fetchers:new Map(f.fetchers)});return}else{de.add(x);let Te=yo(b);return f.fetchers.set(x,Te),Q({fetchers:new Map(f.fetchers)}),Nn(f,te,{submission:b,isFetchActionRedirect:!0})}if(No(te)){nr(x,k,te.error);return}if(Bn(te))throw vt(400,{type:"defer-action"});let Se=f.navigation.location||f.location,$e=go(e.history,Se,N.signal),Dn=a||l,In=f.navigation.state!=="idle"?_r(Dn,f.navigation.location,u):f.matches;G(In,"Didn't find any matches after fetcher action");let ro=++ge;Ee.set(x,ro);let _a=yo(b,te.data);f.fetchers.set(x,_a);let[Qt,Gt]=Kf(e.history,f,In,b,Se,A,O,H,Ue,de,Dn,u,{[$.route.id]:te.data},void 0);Gt.filter(Te=>Te.key!==x).forEach(Te=>{let oo=Te.key,Lc=f.fetchers.get(oo),Dm=yo(void 0,Lc?Lc.data:void 0);f.fetchers.set(oo,Dm),V.has(oo)&&yt(oo),Te.controller&&V.set(oo,Te.controller)}),Q({fetchers:new Map(f.fetchers)});let xi=()=>Gt.forEach(Te=>yt(Te.key));N.signal.addEventListener("abort",xi);let{results:Ta,loaderResults:Ma,fetcherResults:Oa}=await yi(f.matches,In,Qt,Gt,$e);if(N.signal.aborted)return;N.signal.removeEventListener("abort",xi),Ee.delete(x),V.delete(x),Gt.forEach(Te=>V.delete(Te.key));let ne=qf(Ta);if(ne){if(ne.idx>=Qt.length){let Te=Gt[ne.idx-Qt.length].key;de.add(Te)}return Nn(f,ne.result)}let{loaderData:_t,errors:dn}=Xf(f,f.matches,Qt,Ma,void 0,Gt,Oa,M);if(f.fetchers.has(x)){let Te=dr(te.data);f.fetchers.set(x,Te)}let La=wi(ro);f.navigation.state==="loading"&&ro>_e?(G(S,"Expected pending action"),E&&E.abort(),Je(f.navigation.location,{matches:In,loaderData:_t,errors:dn,fetchers:new Map(f.fetchers)})):(Q(ce({errors:dn,loaderData:Zf(f.loaderData,_t,In,dn)},La||Gt.length>0?{fetchers:new Map(f.fetchers)}:{})),A=!1)}async function Ra(x,k,_,$,B,b){let U=f.fetchers.get(x),F=yo(b,U?U.data:void 0);f.fetchers.set(x,F),Q({fetchers:new Map(f.fetchers)});let N=new AbortController,oe=go(e.history,_,N.signal);V.set(x,N);let Be=ge,te=await mo("loader",oe,$,B,i,o,u);if(Bn(te)&&(te=await rm(te,oe.signal,!0)||te),V.get(x)===N&&V.delete(x),oe.signal.aborted)return;if(Dr(te))if(_e>Be){let $e=dr(void 0);f.fetchers.set(x,$e),Q({fetchers:new Map(f.fetchers)});return}else{de.add(x),await Nn(f,te);return}if(No(te)){let $e=Tr(f.matches,k);f.fetchers.delete(x),Q({fetchers:new Map(f.fetchers),errors:{[$e.route.id]:te.error}});return}G(!Bn(te),"Unhandled fetcher deferred data");let Se=dr(te.data);f.fetchers.set(x,Se),Q({fetchers:new Map(f.fetchers)})}async function Nn(x,k,_){let{submission:$,replace:B,isFetchActionRedirect:b}=_===void 0?{}:_;k.revalidate&&(A=!0);let U=qo(x.location,k.location,ce({_isRedirect:!0},b?{_isFetchActionRedirect:!0}:{}));if(G(U,"Expected a location on the redirect navigation"),em.test(k.location)&&n){let oe=e.history.createURL(k.location),Be=ci(oe.pathname,u)==null;if(t.location.origin!==oe.origin||Be){B?t.location.replace(k.location):t.location.assign(k.location);return}}E=null;let F=B===!0?Ce.Replace:Ce.Push,N=$||td(x.navigation);if(Ay.has(k.status)&&N&&Lt(N.formMethod))await It(F,U,{submission:ce({},N,{formAction:k.location}),preventScrollReset:P});else if(b)await It(F,U,{overrideNavigation:Ai(U),fetcherSubmission:N,preventScrollReset:P});else{let oe=Ai(U,N);await It(F,U,{overrideNavigation:oe,preventScrollReset:P})}}async function yi(x,k,_,$,B){let b=await Promise.all([..._.map(N=>mo("loader",B,N,k,i,o,u)),...$.map(N=>N.matches&&N.match&&N.controller?mo("loader",go(e.history,N.path,N.controller.signal),N.match,N.matches,i,o,u):{type:Me.error,error:vt(404,{pathname:N.path})})]),U=b.slice(0,_.length),F=b.slice(_.length);return await Promise.all([ed(x,_,U,U.map(()=>B.signal),!1,f.loaderData),ed(x,$.map(N=>N.match),F,$.map(N=>N.controller?N.controller.signal:null),!0)]),{results:b,loaderResults:U,fetcherResults:F}}function Zr(){A=!0,O.push(...eo()),Ue.forEach((x,k)=>{V.has(k)&&(H.push(k),yt(k))})}function nr(x,k,_){let $=Tr(f.matches,k);Jr(x),Q({errors:{[$.route.id]:_},fetchers:new Map(f.fetchers)})}function Jr(x){let k=f.fetchers.get(x);V.has(x)&&!(k&&k.state==="loading"&&Ee.has(x))&&yt(x),Ue.delete(x),Ee.delete(x),de.delete(x),f.fetchers.delete(x)}function yt(x){let k=V.get(x);G(k,"Expected fetch controller: "+x),k.abort(),V.delete(x)}function rr(x){for(let k of x){let _=gi(k),$=dr(_.data);f.fetchers.set(k,$)}}function vi(){let x=[],k=!1;for(let _ of de){let $=f.fetchers.get(_);G($,"Expected fetcher: "+_),$.state==="loading"&&(de.delete(_),x.push(_),k=!0)}return rr(x),k}function wi(x){let k=[];for(let[_,$]of Ee)if($0}function or(x,k){let _=f.blockers.get(x)||ho;return I.get(x)!==k&&I.set(x,k),_}function fn(x){f.blockers.delete(x),I.delete(x)}function ir(x,k){let _=f.blockers.get(x)||ho;G(_.state==="unblocked"&&k.state==="blocked"||_.state==="blocked"&&k.state==="blocked"||_.state==="blocked"&&k.state==="proceeding"||_.state==="blocked"&&k.state==="unblocked"||_.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+k.state);let $=new Map(f.blockers);$.set(x,k),Q({blockers:$})}function qr(x){let{currentLocation:k,nextLocation:_,historyAction:$}=x;if(I.size===0)return;I.size>1&&Jn(!1,"A router only supports one blocker at a time");let B=Array.from(I.entries()),[b,U]=B[B.length-1],F=f.blockers.get(b);if(!(F&&F.state==="proceeding")&&U({currentLocation:k,nextLocation:_,historyAction:$}))return b}function eo(x){let k=[];return M.forEach((_,$)=>{(!x||x($))&&(_.cancel(),k.push($),M.delete($))}),k}function W(x,k,_){if(p=x,v=k,w=_||null,!g&&f.navigation===iu){g=!0;let $=no(f.location,f.matches);$!=null&&Q({restoreScrollPosition:$})}return()=>{p=null,v=null,w=null}}function to(x,k){return w&&w(x,k.map($=>Xy($,f.loaderData)))||x.key}function Pa(x,k){if(p&&v){let _=to(x,k);p[_]=v()}}function no(x,k){if(p){let _=to(x,k),$=p[_];if(typeof $=="number")return $}return null}function Oc(x){i={},a=rs(x,o,void 0,i)}return y={get basename(){return u},get state(){return f},get routes(){return l},initialize:le,subscribe:sn,enableScrollRestoration:W,navigate:qe,fetch:Ea,revalidate:cn,createHref:x=>e.history.createHref(x),encodeLocation:x=>e.history.encodeLocation(x),getFetcher:gi,deleteFetcher:Jr,dispose:ye,getBlocker:or,deleteBlocker:fn,_internalFetchControllers:V,_internalActiveDeferreds:M,_internalSetRoutes:Oc},y}function By(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function os(e,t,n,r,o,i,l){let a,u;if(i!=null&&l!=="path"){a=[];for(let c of t)if(a.push(c),c.route.id===i){u=c;break}}else a=t,u=t[t.length-1];let s=Oy(o||".",Zh(a).map(c=>c.pathnameBase),ci(e.pathname,n)||e.pathname,l==="path");return o==null&&(s.search=e.search,s.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!sc(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(s.pathname=s.pathname==="/"?n:Kn([n,s.pathname])),si(s)}function Hf(e,t,n,r){if(!r||!By(r))return{path:n};if(r.formMethod&&!Yy(r.formMethod))return{path:n,error:vt(405,{method:r.formMethod})};let o=()=>({path:n,error:vt(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=nm(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Lt(l))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((w,v)=>{let[g,C]=v;return""+w+g+"="+C+` -`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Lt(l))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}G(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=is(r.formData),s=r.formData;else if(r.body instanceof FormData)u=is(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Yf(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Yf(u)}catch{return o()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Lt(c.formMethod))return{path:n,submission:c};let m=Kt(n);return t&&m.search&&sc(m.search)&&u.append("index",""),m.search="?"+u,{path:si(m),submission:c}}function Wy(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Kf(e,t,n,r,o,i,l,a,u,s,c,m,p,w){let v=w?Object.values(w)[0]:p?Object.values(p)[0]:void 0,g=e.createURL(t.location),C=e.createURL(o),h=w?Object.keys(w)[0]:void 0,y=Wy(n,h).filter((S,P)=>{if(S.route.lazy)return!0;if(S.route.loader==null)return!1;if(Vy(t.loaderData,t.matches[P],S)||l.some(A=>A===S.route.id))return!0;let E=t.matches[P],L=S;return Qf(S,ce({currentUrl:g,currentParams:E.params,nextUrl:C,nextParams:L.params},r,{actionResult:v,defaultShouldRevalidate:i||g.pathname+g.search===C.pathname+C.search||g.search!==C.search||tm(E,L)}))}),f=[];return u.forEach((S,P)=>{if(!n.some(H=>H.route.id===S.routeId))return;let E=_r(c,S.path,m);if(!E){f.push({key:P,routeId:S.routeId,path:S.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(P),A=ls(E,S.path),O=!1;s.has(P)?O=!1:a.includes(P)?O=!0:L&&L.state!=="idle"&&L.data===void 0?O=i:O=Qf(A,ce({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:v,defaultShouldRevalidate:i})),O&&f.push({key:P,routeId:S.routeId,path:S.path,matches:E,match:A,controller:new AbortController})}),[y,f]}function Vy(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function tm(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Qf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Gf(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];G(o,"No route found in manifest");let i={};for(let l in r){let u=o[l]!==void 0&&l!=="hasErrorBoundary";Jn(!u,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!dy.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,ce({},t(o),{lazy:void 0}))}async function mo(e,t,n,r,o,i,l,a){a===void 0&&(a={});let u,s,c,m=v=>{let g,C=new Promise((h,d)=>g=d);return c=()=>g(),t.signal.addEventListener("abort",c),Promise.race([v({request:t,params:n.params,context:a.requestContext}),C])};try{let v=n.route[e];if(n.route.lazy)if(v)s=(await Promise.all([m(v),Gf(n.route,i,o)]))[0];else if(await Gf(n.route,i,o),v=n.route[e],v)s=await m(v);else if(e==="action"){let g=new URL(t.url),C=g.pathname+g.search;throw vt(405,{method:t.method,pathname:C,routeId:n.route.id})}else return{type:Me.data,data:void 0};else if(v)s=await m(v);else{let g=new URL(t.url),C=g.pathname+g.search;throw vt(404,{pathname:C})}G(s!==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(v){u=Me.error,s=v}finally{c&&t.signal.removeEventListener("abort",c)}if(Gy(s)){let v=s.status;if(Fy.has(v)){let h=s.headers.get("Location");if(G(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!em.test(h))h=os(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,h);else if(!a.isStaticRequest){let d=new URL(t.url),y=h.startsWith("//")?new URL(d.protocol+h):new URL(h),f=ci(y.pathname,l)!=null;y.origin===d.origin&&f&&(h=y.pathname+y.search+y.hash)}if(a.isStaticRequest)throw s.headers.set("Location",h),s;return{type:Me.redirect,status:v,location:h,revalidate:s.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:u||Me.data,response:s};let g,C=s.headers.get("Content-Type");return C&&/\bapplication\/json\b/.test(C)?g=await s.json():g=await s.text(),u===Me.error?{type:u,error:new uc(v,s.statusText,g),headers:s.headers}:{type:Me.data,data:g,statusCode:s.status,headers:s.headers}}if(u===Me.error)return{type:u,error:s};if(Qy(s)){var p,w;return{type:Me.deferred,deferredData:s,statusCode:(p=s.init)==null?void 0:p.status,headers:((w=s.init)==null?void 0:w.headers)&&new Headers(s.init.headers)}}return{type:Me.data,data:s}}function go(e,t,n,r){let o=e.createURL(nm(t)).toString(),i={signal:n};if(r&&Lt(r.formMethod)){let{formMethod:l,formEncType:a}=r;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=is(r.formData):i.body=r.formData}return new Request(o,i)}function is(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Yf(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Hy(e,t,n,r,o){let i={},l=null,a,u=!1,s={};return n.forEach((c,m)=>{let p=t[m].route.id;if(G(!Dr(c),"Cannot handle redirect results in processLoaderData"),No(c)){let w=Tr(e,p),v=c.error;r&&(v=Object.values(r)[0],r=void 0),l=l||{},l[w.route.id]==null&&(l[w.route.id]=v),i[p]=void 0,u||(u=!0,a=Jh(c.error)?c.error.status:500),c.headers&&(s[p]=c.headers)}else Bn(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[p]=c.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:a||200,loaderHeaders:s}}function Xf(e,t,n,r,o,i,l,a){let{loaderData:u,errors:s}=Hy(t,n,r,o,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Jf(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function vt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?a="You made a "+o+' 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?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new uc(e||500,l,new Error(a),!0)}function qf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Dr(n))return{result:n,idx:t}}}function nm(e){let t=typeof e=="string"?Kt(e):e;return si(ce({},t,{hash:""}))}function Ky(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Bn(e){return e.type===Me.deferred}function No(e){return e.type===Me.error}function Dr(e){return(e&&e.type)===Me.redirect}function Qy(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 Gy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Yy(e){return Iy.has(e.toLowerCase())}function Lt(e){return Ny.has(e.toLowerCase())}async function ed(e,t,n,r,o,i){for(let l=0;lm.route.id===u.route.id),c=s!=null&&!tm(s,u)&&(i&&i[u.route.id])!==void 0;if(Bn(a)&&(o||c)){let m=r[l];G(m,"Expected an AbortSignal for revalidating fetcher deferred result"),await rm(a,m,o).then(p=>{p&&(n[l]=p||n[l])})}}}async function rm(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Me.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Me.error,error:o}}return{type:Me.data,data:e.deferredData.data}}}function sc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Xy(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function ls(e,t){let n=typeof t=="string"?Kt(t).search:t.search;if(e[e.length-1].route.index&&sc(n||""))return e[e.length-1];let r=Zh(e);return r[r.length-1]}function td(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Ai(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 Zy(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 yo(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," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Jy(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," _hasFetcherDoneAnything ":!0}}function dr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + */function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Jn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cy(){return Math.random().toString(36).substr(2,8)}function Wf(e,t){return{usr:e.state,key:e.key,idx:t}}function qo(e,t,n,r){return n===void 0&&(n=null),ce({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Kt(t):t,{state:n,key:t&&t.key||r||cy()})}function si(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 Kt(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 fy(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=Ce.Pop,u=null,s=c();s==null&&(s=0,l.replaceState(ce({},l.state,{idx:s}),""));function c(){return(l.state||{idx:null}).idx}function m(){a=Ce.Pop;let C=c(),h=C==null?null:C-s;s=C,u&&u({action:a,location:g.location,delta:h})}function p(C,h){a=Ce.Push;let d=qo(g.location,C,h);n&&n(d,C),s=c()+1;let y=Wf(d,s),f=g.createHref(d);try{l.pushState(y,"",f)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(f)}i&&u&&u({action:a,location:g.location,delta:1})}function w(C,h){a=Ce.Replace;let d=qo(g.location,C,h);n&&n(d,C),s=c();let y=Wf(d,s),f=g.createHref(d);l.replaceState(y,"",f),i&&u&&u({action:a,location:g.location,delta:0})}function v(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,d=typeof C=="string"?C:si(C);return G(h,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,h)}let g={get action(){return a},get location(){return e(o,l)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Bf,m),u=C,()=>{o.removeEventListener(Bf,m),u=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let h=v(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:w,go(C){return l.go(C)}};return g}var Me;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Me||(Me={}));const dy=new Set(["lazy","caseSensitive","path","id","index","children"]);function py(e){return e.index===!0}function rs(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],a=typeof o.id=="string"?o.id:l.join("-");if(G(o.index!==!0||!o.children,"Cannot specify children on an index route"),G(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),py(o)){let u=ce({},o,t(o),{id:a});return r[a]=u,u}else{let u=ce({},o,t(o),{id:a,children:void 0});return r[a]=u,o.children&&(u.children=rs(o.children,t,l,r)),u}})}function _r(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Kt(t):t,o=ci(r.pathname||"/",n);if(o==null)return null;let i=Yh(e);hy(i);let l=null;for(let a=0;l==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(G(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=Kn([r,u.relativePath]),c=n.concat(u);i.children&&i.children.length>0&&(G(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Yh(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:Sy(s,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let u of Xh(i.path))o(i,l,u)}),t}function Xh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Xh(r.join("/")),a=[];return a.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function hy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ky(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const my=/^:\w+$/,gy=3,yy=2,vy=1,wy=10,xy=-2,Vf=e=>e==="*";function Sy(e,t){let n=e.split("/"),r=n.length;return n.some(Vf)&&(r+=xy),t&&(r+=yy),n.filter(o=>!Vf(o)).reduce((o,i)=>o+(my.test(i)?gy:i===""?vy:wy),r)}function ky(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Ey(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{if(c==="*"){let p=a[m]||"";l=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return s[c]=_y(a[m]||"",c),s},{}),pathname:i,pathnameBase:l,pattern:e}}function Ry(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jn(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Py(e){try{return decodeURI(e)}catch(t){return Jn(!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 _y(e,t){try{return decodeURIComponent(e)}catch(n){return Jn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ci(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)||"/"}function Ty(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Kt(e):e;return{pathname:n?n.startsWith("/")?n:My(n,t):t,search:Ly(r),hash:$y(o)}}function My(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ou(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 Zh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Oy(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Kt(e):(o=ce({},e),G(!o.pathname||!o.pathname.includes("?"),ou("?","pathname","search",o)),G(!o.pathname||!o.pathname.includes("#"),ou("#","pathname","hash",o)),G(!o.search||!o.search.includes("#"),ou("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(r||l==null)a=n;else{let m=t.length-1;if(l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),m-=1;o.pathname=p.join("/")}a=m>=0?t[m]:"/"}let u=Ty(o,a),s=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const Kn=e=>e.join("/").replace(/\/\/+/g,"/"),zy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ly=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$y=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class uc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Jh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qh=["post","put","patch","delete"],Ny=new Set(qh),Dy=["get",...qh],Iy=new Set(Dy),Fy=new Set([301,302,303,307,308]),Ay=new Set([307,308]),iu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jy={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ho={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},em=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,by=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Uy(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;G(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let x=e.detectErrorBoundary;o=k=>({hasErrorBoundary:x(k)})}else o=by;let i={},l=rs(e.routes,o,void 0,i),a,u=e.basename||"/",s=ce({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,m=new Set,p=null,w=null,v=null,g=e.hydrationData!=null,C=_r(l,e.history.location,u),h=null;if(C==null){let x=vt(404,{pathname:e.history.location.pathname}),{matches:k,route:_}=Jf(l);C=k,h={[_.id]:x}}let d=!C.some(x=>x.route.lazy)&&(!C.some(x=>x.route.loader)||e.hydrationData!=null),y,f={historyAction:e.history.action,location:e.history.location,matches:C,initialized:d,navigation:iu,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||h,fetchers:new Map,blockers:new Map},S=Ce.Pop,P=!1,E,z=!1,A=!1,O=[],H=[],V=new Map,ge=0,_e=-1,Ee=new Map,de=new Set,Ue=new Map,M=new Map,I=new Map,j=!1;function le(){return c=e.history.listen(x=>{let{action:k,location:_,delta:$}=x;if(j){j=!1;return}Jn(I.size===0||$!=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 B=qr({currentLocation:f.location,nextLocation:_,historyAction:k});if(B&&$!=null){j=!0,e.history.go($*-1),ir(B,{state:"blocked",location:_,proceed(){ir(B,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go($)},reset(){let b=new Map(f.blockers);b.set(B,ho),Q({blockers:b})}});return}return It(k,_)}),f.initialized||It(Ce.Pop,f.location),y}function ye(){c&&c(),m.clear(),E&&E.abort(),f.fetchers.forEach((x,k)=>Jr(k)),f.blockers.forEach((x,k)=>fn(k))}function sn(x){return m.add(x),()=>m.delete(x)}function Q(x){f=ce({},f,x),m.forEach(k=>k(f))}function Je(x,k){var _,$;let B=f.actionData!=null&&f.navigation.formMethod!=null&&zt(f.navigation.formMethod)&&f.navigation.state==="loading"&&((_=x.state)==null?void 0:_._isRedirect)!==!0,b;k.actionData?Object.keys(k.actionData).length>0?b=k.actionData:b=null:B?b=f.actionData:b=null;let U=k.loaderData?Zf(f.loaderData,k.loaderData,k.matches||[],k.errors):f.loaderData,F=f.blockers;F.size>0&&(F=new Map(F),F.forEach((re,Be)=>F.set(Be,ho)));let N=P===!0||f.navigation.formMethod!=null&&zt(f.navigation.formMethod)&&(($=x.state)==null?void 0:$._isRedirect)!==!0;a&&(l=a,a=void 0),z||S===Ce.Pop||(S===Ce.Push?e.history.push(x,x.state):S===Ce.Replace&&e.history.replace(x,x.state)),Q(ce({},k,{actionData:b,loaderData:U,historyAction:S,location:x,initialized:!0,navigation:iu,revalidation:"idle",restoreScrollPosition:no(x,k.matches||f.matches),preventScrollReset:N,blockers:F})),S=Ce.Pop,P=!1,z=!1,A=!1,O=[],H=[]}async function qe(x,k){if(typeof x=="number"){e.history.go(x);return}let _=os(f.location,f.matches,u,s.v7_prependBasename,x,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:$,submission:B,error:b}=Hf(s.v7_normalizeFormMethod,!1,_,k),U=f.location,F=qo(f.location,$,k&&k.state);F=ce({},F,e.history.encodeLocation(F));let N=k&&k.replace!=null?k.replace:void 0,re=Ce.Push;N===!0?re=Ce.Replace:N===!1||B!=null&&zt(B.formMethod)&&B.formAction===f.location.pathname+f.location.search&&(re=Ce.Replace);let Be=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,te=qr({currentLocation:U,nextLocation:F,historyAction:re});if(te){ir(te,{state:"blocked",location:F,proceed(){ir(te,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),qe(x,k)},reset(){let Se=new Map(f.blockers);Se.set(te,ho),Q({blockers:Se})}});return}return await It(re,F,{submission:B,pendingError:b,preventScrollReset:Be,replace:k&&k.replace})}function cn(){if(Zr(),Q({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){It(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}It(S||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation})}}async function It(x,k,_){E&&E.abort(),E=null,S=x,z=(_&&_.startUninterruptedRevalidation)===!0,Pa(f.location,f.matches),P=(_&&_.preventScrollReset)===!0;let $=a||l,B=_&&_.overrideNavigation,b=_r($,k,u);if(!b){let Se=vt(404,{pathname:k.pathname}),{matches:$e,route:Dn}=Jf($);eo(),Je(k,{matches:$e,loaderData:{},errors:{[Dn.id]:Se}});return}if(f.initialized&&!A&&Ky(f.location,k)&&!(_&&_.submission&&zt(_.submission.formMethod))){Je(k,{matches:b});return}E=new AbortController;let U=go(e.history,k,E.signal,_&&_.submission),F,N;if(_&&_.pendingError)N={[Tr(b).route.id]:_.pendingError};else if(_&&_.submission&&zt(_.submission.formMethod)){let Se=await Pt(U,k,_.submission,b,{replace:_.replace});if(Se.shortCircuited)return;F=Se.pendingActionData,N=Se.pendingActionError,B=Ai(k,_.submission),U=new Request(U.url,{signal:U.signal})}let{shortCircuited:re,loaderData:Be,errors:te}=await ka(U,k,b,B,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,F,N);re||(E=null,Je(k,ce({matches:b},F?{actionData:F}:{},{loaderData:Be,errors:te})))}async function Pt(x,k,_,$,B){B===void 0&&(B={}),Zr();let b=Zy(k,_);Q({navigation:b});let U,F=ls($,k);if(!F.route.action&&!F.route.lazy)U={type:Me.error,error:vt(405,{method:x.method,pathname:k.pathname,routeId:F.route.id})};else if(U=await mo("action",x,F,$,i,o,u),x.signal.aborted)return{shortCircuited:!0};if(Dr(U)){let N;return B&&B.replace!=null?N=B.replace:N=U.location===f.location.pathname+f.location.search,await Nn(f,U,{submission:_,replace:N}),{shortCircuited:!0}}if(No(U)){let N=Tr($,F.route.id);return(B&&B.replace)!==!0&&(S=Ce.Push),{pendingActionData:{},pendingActionError:{[N.route.id]:U.error}}}if(Bn(U))throw vt(400,{type:"defer-action"});return{pendingActionData:{[F.route.id]:U.data}}}async function ka(x,k,_,$,B,b,U,F,N){let re=$||Ai(k,B),Be=B||b||td(re),te=a||l,[Se,$e]=Kf(e.history,f,_,Be,k,A,O,H,Ue,de,te,u,F,N);if(eo(ne=>!(_&&_.some(_t=>_t.route.id===ne))||Se&&Se.some(_t=>_t.route.id===ne)),_e=++ge,Se.length===0&&$e.length===0){let ne=vi();return Je(k,ce({matches:_,loaderData:{},errors:N||null},F?{actionData:F}:{},ne?{fetchers:new Map(f.fetchers)}:{})),{shortCircuited:!0}}if(!z){$e.forEach(_t=>{let dn=f.fetchers.get(_t.key),za=yo(void 0,dn?dn.data:void 0);f.fetchers.set(_t.key,za)});let ne=F||f.actionData;Q(ce({navigation:re},ne?Object.keys(ne).length===0?{actionData:null}:{actionData:ne}:{},$e.length>0?{fetchers:new Map(f.fetchers)}:{}))}$e.forEach(ne=>{V.has(ne.key)&&yt(ne.key),ne.controller&&V.set(ne.key,ne.controller)});let Dn=()=>$e.forEach(ne=>yt(ne.key));E&&E.signal.addEventListener("abort",Dn);let{results:In,loaderResults:ro,fetcherResults:_a}=await yi(f.matches,_,Se,$e,x);if(x.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",Dn),$e.forEach(ne=>V.delete(ne.key));let Qt=qf(In);if(Qt){if(Qt.idx>=Se.length){let ne=$e[Qt.idx-Se.length].key;de.add(ne)}return await Nn(f,Qt.result,{replace:U}),{shortCircuited:!0}}let{loaderData:Gt,errors:xi}=Xf(f,_,Se,ro,N,$e,_a,M);M.forEach((ne,_t)=>{ne.subscribe(dn=>{(dn||ne.done)&&M.delete(_t)})});let Ta=vi(),Ma=wi(_e),Oa=Ta||Ma||$e.length>0;return ce({loaderData:Gt,errors:xi},Oa?{fetchers:new Map(f.fetchers)}:{})}function gi(x){return f.fetchers.get(x)||jy}function Ea(x,k,_,$){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.");V.has(x)&&yt(x);let B=a||l,b=os(f.location,f.matches,u,s.v7_prependBasename,_,k,$==null?void 0:$.relative),U=_r(B,b,u);if(!U){nr(x,k,vt(404,{pathname:b}));return}let{path:F,submission:N,error:re}=Hf(s.v7_normalizeFormMethod,!0,b,$);if(re){nr(x,k,re);return}let Be=ls(U,F);if(P=($&&$.preventScrollReset)===!0,N&&zt(N.formMethod)){Ca(x,k,F,Be,U,N);return}Ue.set(x,{routeId:k,path:F}),Ra(x,k,F,Be,U,N)}async function Ca(x,k,_,$,B,b){if(Zr(),Ue.delete(x),!$.route.action&&!$.route.lazy){let Te=vt(405,{method:b.formMethod,pathname:_,routeId:k});nr(x,k,Te);return}let U=f.fetchers.get(x),F=Jy(b,U);f.fetchers.set(x,F),Q({fetchers:new Map(f.fetchers)});let N=new AbortController,re=go(e.history,_,N.signal,b);V.set(x,N);let Be=ge,te=await mo("action",re,$,B,i,o,u);if(re.signal.aborted){V.get(x)===N&&V.delete(x);return}if(Dr(te))if(V.delete(x),_e>Be){let Te=dr(void 0);f.fetchers.set(x,Te),Q({fetchers:new Map(f.fetchers)});return}else{de.add(x);let Te=yo(b);return f.fetchers.set(x,Te),Q({fetchers:new Map(f.fetchers)}),Nn(f,te,{submission:b,isFetchActionRedirect:!0})}if(No(te)){nr(x,k,te.error);return}if(Bn(te))throw vt(400,{type:"defer-action"});let Se=f.navigation.location||f.location,$e=go(e.history,Se,N.signal),Dn=a||l,In=f.navigation.state!=="idle"?_r(Dn,f.navigation.location,u):f.matches;G(In,"Didn't find any matches after fetcher action");let ro=++ge;Ee.set(x,ro);let _a=yo(b,te.data);f.fetchers.set(x,_a);let[Qt,Gt]=Kf(e.history,f,In,b,Se,A,O,H,Ue,de,Dn,u,{[$.route.id]:te.data},void 0);Gt.filter(Te=>Te.key!==x).forEach(Te=>{let oo=Te.key,zc=f.fetchers.get(oo),Dm=yo(void 0,zc?zc.data:void 0);f.fetchers.set(oo,Dm),V.has(oo)&&yt(oo),Te.controller&&V.set(oo,Te.controller)}),Q({fetchers:new Map(f.fetchers)});let xi=()=>Gt.forEach(Te=>yt(Te.key));N.signal.addEventListener("abort",xi);let{results:Ta,loaderResults:Ma,fetcherResults:Oa}=await yi(f.matches,In,Qt,Gt,$e);if(N.signal.aborted)return;N.signal.removeEventListener("abort",xi),Ee.delete(x),V.delete(x),Gt.forEach(Te=>V.delete(Te.key));let ne=qf(Ta);if(ne){if(ne.idx>=Qt.length){let Te=Gt[ne.idx-Qt.length].key;de.add(Te)}return Nn(f,ne.result)}let{loaderData:_t,errors:dn}=Xf(f,f.matches,Qt,Ma,void 0,Gt,Oa,M);if(f.fetchers.has(x)){let Te=dr(te.data);f.fetchers.set(x,Te)}let za=wi(ro);f.navigation.state==="loading"&&ro>_e?(G(S,"Expected pending action"),E&&E.abort(),Je(f.navigation.location,{matches:In,loaderData:_t,errors:dn,fetchers:new Map(f.fetchers)})):(Q(ce({errors:dn,loaderData:Zf(f.loaderData,_t,In,dn)},za||Gt.length>0?{fetchers:new Map(f.fetchers)}:{})),A=!1)}async function Ra(x,k,_,$,B,b){let U=f.fetchers.get(x),F=yo(b,U?U.data:void 0);f.fetchers.set(x,F),Q({fetchers:new Map(f.fetchers)});let N=new AbortController,re=go(e.history,_,N.signal);V.set(x,N);let Be=ge,te=await mo("loader",re,$,B,i,o,u);if(Bn(te)&&(te=await rm(te,re.signal,!0)||te),V.get(x)===N&&V.delete(x),re.signal.aborted)return;if(Dr(te))if(_e>Be){let $e=dr(void 0);f.fetchers.set(x,$e),Q({fetchers:new Map(f.fetchers)});return}else{de.add(x),await Nn(f,te);return}if(No(te)){let $e=Tr(f.matches,k);f.fetchers.delete(x),Q({fetchers:new Map(f.fetchers),errors:{[$e.route.id]:te.error}});return}G(!Bn(te),"Unhandled fetcher deferred data");let Se=dr(te.data);f.fetchers.set(x,Se),Q({fetchers:new Map(f.fetchers)})}async function Nn(x,k,_){let{submission:$,replace:B,isFetchActionRedirect:b}=_===void 0?{}:_;k.revalidate&&(A=!0);let U=qo(x.location,k.location,ce({_isRedirect:!0},b?{_isFetchActionRedirect:!0}:{}));if(G(U,"Expected a location on the redirect navigation"),em.test(k.location)&&n){let re=e.history.createURL(k.location),Be=ci(re.pathname,u)==null;if(t.location.origin!==re.origin||Be){B?t.location.replace(k.location):t.location.assign(k.location);return}}E=null;let F=B===!0?Ce.Replace:Ce.Push,N=$||td(x.navigation);if(Ay.has(k.status)&&N&&zt(N.formMethod))await It(F,U,{submission:ce({},N,{formAction:k.location}),preventScrollReset:P});else if(b)await It(F,U,{overrideNavigation:Ai(U),fetcherSubmission:N,preventScrollReset:P});else{let re=Ai(U,N);await It(F,U,{overrideNavigation:re,preventScrollReset:P})}}async function yi(x,k,_,$,B){let b=await Promise.all([..._.map(N=>mo("loader",B,N,k,i,o,u)),...$.map(N=>N.matches&&N.match&&N.controller?mo("loader",go(e.history,N.path,N.controller.signal),N.match,N.matches,i,o,u):{type:Me.error,error:vt(404,{pathname:N.path})})]),U=b.slice(0,_.length),F=b.slice(_.length);return await Promise.all([ed(x,_,U,U.map(()=>B.signal),!1,f.loaderData),ed(x,$.map(N=>N.match),F,$.map(N=>N.controller?N.controller.signal:null),!0)]),{results:b,loaderResults:U,fetcherResults:F}}function Zr(){A=!0,O.push(...eo()),Ue.forEach((x,k)=>{V.has(k)&&(H.push(k),yt(k))})}function nr(x,k,_){let $=Tr(f.matches,k);Jr(x),Q({errors:{[$.route.id]:_},fetchers:new Map(f.fetchers)})}function Jr(x){let k=f.fetchers.get(x);V.has(x)&&!(k&&k.state==="loading"&&Ee.has(x))&&yt(x),Ue.delete(x),Ee.delete(x),de.delete(x),f.fetchers.delete(x)}function yt(x){let k=V.get(x);G(k,"Expected fetch controller: "+x),k.abort(),V.delete(x)}function rr(x){for(let k of x){let _=gi(k),$=dr(_.data);f.fetchers.set(k,$)}}function vi(){let x=[],k=!1;for(let _ of de){let $=f.fetchers.get(_);G($,"Expected fetcher: "+_),$.state==="loading"&&(de.delete(_),x.push(_),k=!0)}return rr(x),k}function wi(x){let k=[];for(let[_,$]of Ee)if($0}function or(x,k){let _=f.blockers.get(x)||ho;return I.get(x)!==k&&I.set(x,k),_}function fn(x){f.blockers.delete(x),I.delete(x)}function ir(x,k){let _=f.blockers.get(x)||ho;G(_.state==="unblocked"&&k.state==="blocked"||_.state==="blocked"&&k.state==="blocked"||_.state==="blocked"&&k.state==="proceeding"||_.state==="blocked"&&k.state==="unblocked"||_.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+k.state);let $=new Map(f.blockers);$.set(x,k),Q({blockers:$})}function qr(x){let{currentLocation:k,nextLocation:_,historyAction:$}=x;if(I.size===0)return;I.size>1&&Jn(!1,"A router only supports one blocker at a time");let B=Array.from(I.entries()),[b,U]=B[B.length-1],F=f.blockers.get(b);if(!(F&&F.state==="proceeding")&&U({currentLocation:k,nextLocation:_,historyAction:$}))return b}function eo(x){let k=[];return M.forEach((_,$)=>{(!x||x($))&&(_.cancel(),k.push($),M.delete($))}),k}function W(x,k,_){if(p=x,v=k,w=_||null,!g&&f.navigation===iu){g=!0;let $=no(f.location,f.matches);$!=null&&Q({restoreScrollPosition:$})}return()=>{p=null,v=null,w=null}}function to(x,k){return w&&w(x,k.map($=>Xy($,f.loaderData)))||x.key}function Pa(x,k){if(p&&v){let _=to(x,k);p[_]=v()}}function no(x,k){if(p){let _=to(x,k),$=p[_];if(typeof $=="number")return $}return null}function Oc(x){i={},a=rs(x,o,void 0,i)}return y={get basename(){return u},get state(){return f},get routes(){return l},initialize:le,subscribe:sn,enableScrollRestoration:W,navigate:qe,fetch:Ea,revalidate:cn,createHref:x=>e.history.createHref(x),encodeLocation:x=>e.history.encodeLocation(x),getFetcher:gi,deleteFetcher:Jr,dispose:ye,getBlocker:or,deleteBlocker:fn,_internalFetchControllers:V,_internalActiveDeferreds:M,_internalSetRoutes:Oc},y}function By(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function os(e,t,n,r,o,i,l){let a,u;if(i!=null&&l!=="path"){a=[];for(let c of t)if(a.push(c),c.route.id===i){u=c;break}}else a=t,u=t[t.length-1];let s=Oy(o||".",Zh(a).map(c=>c.pathnameBase),ci(e.pathname,n)||e.pathname,l==="path");return o==null&&(s.search=e.search,s.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!sc(s.search)&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(s.pathname=s.pathname==="/"?n:Kn([n,s.pathname])),si(s)}function Hf(e,t,n,r){if(!r||!By(r))return{path:n};if(r.formMethod&&!Yy(r.formMethod))return{path:n,error:vt(405,{method:r.formMethod})};let o=()=>({path:n,error:vt(400,{type:"invalid-body"})}),i=r.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),a=nm(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!zt(l))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((w,v)=>{let[g,C]=v;return""+w+g+"="+C+` +`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!zt(l))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}G(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=is(r.formData),s=r.formData;else if(r.body instanceof FormData)u=is(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Yf(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Yf(u)}catch{return o()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(zt(c.formMethod))return{path:n,submission:c};let m=Kt(n);return t&&m.search&&sc(m.search)&&u.append("index",""),m.search="?"+u,{path:si(m),submission:c}}function Wy(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Kf(e,t,n,r,o,i,l,a,u,s,c,m,p,w){let v=w?Object.values(w)[0]:p?Object.values(p)[0]:void 0,g=e.createURL(t.location),C=e.createURL(o),h=w?Object.keys(w)[0]:void 0,y=Wy(n,h).filter((S,P)=>{if(S.route.lazy)return!0;if(S.route.loader==null)return!1;if(Vy(t.loaderData,t.matches[P],S)||l.some(A=>A===S.route.id))return!0;let E=t.matches[P],z=S;return Qf(S,ce({currentUrl:g,currentParams:E.params,nextUrl:C,nextParams:z.params},r,{actionResult:v,defaultShouldRevalidate:i||g.pathname+g.search===C.pathname+C.search||g.search!==C.search||tm(E,z)}))}),f=[];return u.forEach((S,P)=>{if(!n.some(H=>H.route.id===S.routeId))return;let E=_r(c,S.path,m);if(!E){f.push({key:P,routeId:S.routeId,path:S.path,matches:null,match:null,controller:null});return}let z=t.fetchers.get(P),A=ls(E,S.path),O=!1;s.has(P)?O=!1:a.includes(P)?O=!0:z&&z.state!=="idle"&&z.data===void 0?O=i:O=Qf(A,ce({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:v,defaultShouldRevalidate:i})),O&&f.push({key:P,routeId:S.routeId,path:S.path,matches:E,match:A,controller:new AbortController})}),[y,f]}function Vy(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function tm(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Qf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Gf(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];G(o,"No route found in manifest");let i={};for(let l in r){let u=o[l]!==void 0&&l!=="hasErrorBoundary";Jn(!u,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!dy.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,ce({},t(o),{lazy:void 0}))}async function mo(e,t,n,r,o,i,l,a){a===void 0&&(a={});let u,s,c,m=v=>{let g,C=new Promise((h,d)=>g=d);return c=()=>g(),t.signal.addEventListener("abort",c),Promise.race([v({request:t,params:n.params,context:a.requestContext}),C])};try{let v=n.route[e];if(n.route.lazy)if(v)s=(await Promise.all([m(v),Gf(n.route,i,o)]))[0];else if(await Gf(n.route,i,o),v=n.route[e],v)s=await m(v);else if(e==="action"){let g=new URL(t.url),C=g.pathname+g.search;throw vt(405,{method:t.method,pathname:C,routeId:n.route.id})}else return{type:Me.data,data:void 0};else if(v)s=await m(v);else{let g=new URL(t.url),C=g.pathname+g.search;throw vt(404,{pathname:C})}G(s!==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(v){u=Me.error,s=v}finally{c&&t.signal.removeEventListener("abort",c)}if(Gy(s)){let v=s.status;if(Fy.has(v)){let h=s.headers.get("Location");if(G(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!em.test(h))h=os(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,h);else if(!a.isStaticRequest){let d=new URL(t.url),y=h.startsWith("//")?new URL(d.protocol+h):new URL(h),f=ci(y.pathname,l)!=null;y.origin===d.origin&&f&&(h=y.pathname+y.search+y.hash)}if(a.isStaticRequest)throw s.headers.set("Location",h),s;return{type:Me.redirect,status:v,location:h,revalidate:s.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:u||Me.data,response:s};let g,C=s.headers.get("Content-Type");return C&&/\bapplication\/json\b/.test(C)?g=await s.json():g=await s.text(),u===Me.error?{type:u,error:new uc(v,s.statusText,g),headers:s.headers}:{type:Me.data,data:g,statusCode:s.status,headers:s.headers}}if(u===Me.error)return{type:u,error:s};if(Qy(s)){var p,w;return{type:Me.deferred,deferredData:s,statusCode:(p=s.init)==null?void 0:p.status,headers:((w=s.init)==null?void 0:w.headers)&&new Headers(s.init.headers)}}return{type:Me.data,data:s}}function go(e,t,n,r){let o=e.createURL(nm(t)).toString(),i={signal:n};if(r&&zt(r.formMethod)){let{formMethod:l,formEncType:a}=r;i.method=l.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=is(r.formData):i.body=r.formData}return new Request(o,i)}function is(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Yf(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Hy(e,t,n,r,o){let i={},l=null,a,u=!1,s={};return n.forEach((c,m)=>{let p=t[m].route.id;if(G(!Dr(c),"Cannot handle redirect results in processLoaderData"),No(c)){let w=Tr(e,p),v=c.error;r&&(v=Object.values(r)[0],r=void 0),l=l||{},l[w.route.id]==null&&(l[w.route.id]=v),i[p]=void 0,u||(u=!0,a=Jh(c.error)?c.error.status:500),c.headers&&(s[p]=c.headers)}else Bn(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[p]=c.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:a||200,loaderHeaders:s}}function Xf(e,t,n,r,o,i,l,a){let{loaderData:u,errors:s}=Hy(t,n,r,o,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Jf(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function vt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?a="You made a "+o+' 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?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new uc(e||500,l,new Error(a),!0)}function qf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Dr(n))return{result:n,idx:t}}}function nm(e){let t=typeof e=="string"?Kt(e):e;return si(ce({},t,{hash:""}))}function Ky(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Bn(e){return e.type===Me.deferred}function No(e){return e.type===Me.error}function Dr(e){return(e&&e.type)===Me.redirect}function Qy(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 Gy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Yy(e){return Iy.has(e.toLowerCase())}function zt(e){return Ny.has(e.toLowerCase())}async function ed(e,t,n,r,o,i){for(let l=0;lm.route.id===u.route.id),c=s!=null&&!tm(s,u)&&(i&&i[u.route.id])!==void 0;if(Bn(a)&&(o||c)){let m=r[l];G(m,"Expected an AbortSignal for revalidating fetcher deferred result"),await rm(a,m,o).then(p=>{p&&(n[l]=p||n[l])})}}}async function rm(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Me.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Me.error,error:o}}return{type:Me.data,data:e.deferredData.data}}}function sc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Xy(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function ls(e,t){let n=typeof t=="string"?Kt(t).search:t.search;if(e[e.length-1].route.index&&sc(n||""))return e[e.length-1];let r=Zh(e);return r[r.length-1]}function td(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function Ai(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 Zy(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 yo(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," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Jy(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," _hasFetcherDoneAnything ":!0}}function dr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** * React Router v6.14.2 * * Copyright (c) Remix Software Inc. @@ -65,20 +65,20 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=sm(e[n])}),t}function en(e,t,n={clone:!0}){const r=n.clone?D({},e):e;return pr(e)&&pr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(pr(t[o])&&o in e&&pr(e[o])?r[o]=en(e[o],t[o],n):n.clone?r[o]=pr(t[o])?sm(t[o]):t[o]:r[o]=t[o])}),r}function Hr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n{t.current=e}),R.useCallback((...n)=>(0,t.current)(...n),[])}function ad(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{wv(n,t)})},e)}let Xl=!0,us=!1,ud;const kv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ev(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&kv[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Cv(e){e.metaKey||e.altKey||e.ctrlKey||(Xl=!0)}function lu(){Xl=!1}function Rv(){this.visibilityState==="hidden"&&us&&(Xl=!0)}function Pv(e){e.addEventListener("keydown",Cv,!0),e.addEventListener("mousedown",lu,!0),e.addEventListener("pointerdown",lu,!0),e.addEventListener("touchstart",lu,!0),e.addEventListener("visibilitychange",Rv,!0)}function _v(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Xl||Ev(t)}function Tv(){const e=R.useCallback(o=>{o!=null&&Pv(o.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(us=!0,window.clearTimeout(ud),ud=window.setTimeout(()=>{us=!1},100),t.current=!1,!0):!1}function r(o){return _v(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fc(e,t){const n=D({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=D({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=D({},i),Object.keys(o).forEach(l=>{n[r][l]=fc(o[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function dc(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,l)=>{if(l){const a=t(l);a!==""&&i.push(a),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}const sd=e=>e,Mv=()=>{let e=sd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sd}}},Ov=Mv(),Lv=Ov,zv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Zl(e,t,n="Mui"){const r=zv[t];return r?`${n}-${r}`:`${Lv.generate(e)}-${t}`}function Jl(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Zl(e,o,n)}),r}function cm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $v=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Nv=cm(function(e){return $v.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Dv(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ae(Xr,--it):0,Kr--,Re===10&&(Kr=1,ea--),Re}function ft(){return Re=it2||ti(Re)>3?"":" "}function Gv(e,t){for(;--t&&ft()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return di(e,tl()+(t<6&&Ht()==32&&ft()==32))}function cs(e){for(;ft();)switch(Re){case e:return it;case 34:case 39:e!==34&&e!==39&&cs(Re);break;case 40:e===41&&cs(e);break;case 92:ft();break}return it}function Yv(e,t){for(;ft()&&e+Re!==47+10;)if(e+Re===42+42&&Ht()===47)break;return"/*"+di(t,it-1)+"*"+ql(e===47?e:ft())}function Xv(e){for(;!ti(Ht());)ft();return di(e,it)}function Zv(e){return gm(rl("",null,null,null,[""],e=mm(e),0,[0],e))}function rl(e,t,n,r,o,i,l,a,u){for(var s=0,c=0,m=l,p=0,w=0,v=0,g=1,C=1,h=1,d=0,y="",f=o,S=i,P=r,E=y;C;)switch(v=d,d=ft()){case 40:if(v!=108&&Ae(E,m-1)==58){ss(E+=Z(nl(d),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:E+=nl(d);break;case 9:case 10:case 13:case 32:E+=Qv(v);break;case 92:E+=Gv(tl()-1,7);continue;case 47:switch(Ht()){case 42:case 47:bi(Jv(Yv(ft(),tl()),t,n),u);break;default:E+="/"}break;case 123*g:a[s++]=jt(E)*h;case 125*g:case 59:case 0:switch(d){case 0:case 125:C=0;case 59+c:h==-1&&(E=Z(E,/\f/g,"")),w>0&&jt(E)-m&&bi(w>32?fd(E+";",r,n,m-1):fd(Z(E," ","")+";",r,n,m-2),u);break;case 59:E+=";";default:if(bi(P=cd(E,t,n,s,c,o,a,y,f=[],S=[],m),i),d===123)if(c===0)rl(E,t,P,P,f,i,m,a,S);else switch(p===99&&Ae(E,3)===110?100:p){case 100:case 108:case 109:case 115:rl(e,P,P,r&&bi(cd(e,P,P,0,0,o,a,y,o,f=[],m),S),o,S,m,a,r?f:S);break;default:rl(E,P,P,P,[""],S,0,a,S)}}s=c=w=0,g=h=1,y=E="",m=l;break;case 58:m=1+jt(E),w=v;default:if(g<1){if(d==123)--g;else if(d==125&&g++==0&&Kv()==125)continue}switch(E+=ql(d),d*g){case 38:h=c>0?1:(E+="\f",-1);break;case 44:a[s++]=(jt(E)-1)*h,h=1;break;case 64:Ht()===45&&(E+=nl(ft())),p=Ht(),c=m=jt(y=E+=Xv(tl())),d++;break;case 45:v===45&&jt(E)==2&&(g=0)}}return i}function cd(e,t,n,r,o,i,l,a,u,s,c){for(var m=o-1,p=o===0?i:[""],w=mc(p),v=0,g=0,C=0;v0?p[h]+" "+d:Z(d,/&\f/g,p[h])))&&(u[C++]=y);return ta(e,t,n,o===0?pc:a,u,s,c)}function Jv(e,t,n){return ta(e,t,n,fm,ql(Hv()),ei(e,2,-2),0)}function fd(e,t,n,r){return ta(e,t,n,hc,ei(e,0,r),ei(e,r+1,-1),r)}function Ir(e,t){for(var n="",r=mc(e),o=0;o6)switch(Ae(e,t+1)){case 109:if(Ae(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+Ll+(Ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ss(e,"stretch")?ym(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ae(e,t+1)!==115)break;case 6444:switch(Ae(e,jt(e)-3-(~ss(e,"!important")&&10))){case 107:return Z(e,":",":"+X)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(Ae(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Ae(e,t+11)){case 114:return X+e+He+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+He+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+He+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+He+e+e}return e}var a1=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case hc:t.return=ym(t.value,t.length);break;case dm:return Ir([vo(t,{value:Z(t.value,"@","@"+X)})],o);case pc:if(t.length)return Vv(t.props,function(i){switch(Wv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ir([vo(t,{props:[Z(i,/:(read-\w+)/,":"+Ll+"$1")]})],o);case"::placeholder":return Ir([vo(t,{props:[Z(i,/:(plac\w+)/,":"+X+"input-$1")]}),vo(t,{props:[Z(i,/:(plac\w+)/,":"+Ll+"$1")]}),vo(t,{props:[Z(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},u1=[a1],s1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||u1,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var C=g.getAttribute("data-emotion").split(" "),h=1;h=0)&&(n[o]=e[o]);return n}function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=sm(e[n])}),t}function en(e,t,n={clone:!0}){const r=n.clone?D({},e):e;return pr(e)&&pr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(pr(t[o])&&o in e&&pr(e[o])?r[o]=en(e[o],t[o],n):n.clone?r[o]=pr(t[o])?sm(t[o]):t[o]:r[o]=t[o])}),r}function Hr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n{t.current=e}),R.useCallback((...n)=>(0,t.current)(...n),[])}function ad(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{wv(n,t)})},e)}let Xl=!0,us=!1,ud;const kv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ev(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&kv[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Cv(e){e.metaKey||e.altKey||e.ctrlKey||(Xl=!0)}function lu(){Xl=!1}function Rv(){this.visibilityState==="hidden"&&us&&(Xl=!0)}function Pv(e){e.addEventListener("keydown",Cv,!0),e.addEventListener("mousedown",lu,!0),e.addEventListener("pointerdown",lu,!0),e.addEventListener("touchstart",lu,!0),e.addEventListener("visibilitychange",Rv,!0)}function _v(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Xl||Ev(t)}function Tv(){const e=R.useCallback(o=>{o!=null&&Pv(o.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(us=!0,window.clearTimeout(ud),ud=window.setTimeout(()=>{us=!1},100),t.current=!1,!0):!1}function r(o){return _v(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fc(e,t){const n=D({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=D({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=D({},i),Object.keys(o).forEach(l=>{n[r][l]=fc(o[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function dc(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,l)=>{if(l){const a=t(l);a!==""&&i.push(a),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}const sd=e=>e,Mv=()=>{let e=sd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sd}}},Ov=Mv(),zv=Ov,Lv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Zl(e,t,n="Mui"){const r=Lv[t];return r?`${n}-${r}`:`${zv.generate(e)}-${t}`}function Jl(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Zl(e,o,n)}),r}function cm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $v=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Nv=cm(function(e){return $v.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Dv(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ae(Xr,--it):0,Kr--,Re===10&&(Kr=1,ea--),Re}function ft(){return Re=it2||ti(Re)>3?"":" "}function Gv(e,t){for(;--t&&ft()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return di(e,tl()+(t<6&&Ht()==32&&ft()==32))}function cs(e){for(;ft();)switch(Re){case e:return it;case 34:case 39:e!==34&&e!==39&&cs(Re);break;case 40:e===41&&cs(e);break;case 92:ft();break}return it}function Yv(e,t){for(;ft()&&e+Re!==47+10;)if(e+Re===42+42&&Ht()===47)break;return"/*"+di(t,it-1)+"*"+ql(e===47?e:ft())}function Xv(e){for(;!ti(Ht());)ft();return di(e,it)}function Zv(e){return gm(rl("",null,null,null,[""],e=mm(e),0,[0],e))}function rl(e,t,n,r,o,i,l,a,u){for(var s=0,c=0,m=l,p=0,w=0,v=0,g=1,C=1,h=1,d=0,y="",f=o,S=i,P=r,E=y;C;)switch(v=d,d=ft()){case 40:if(v!=108&&Ae(E,m-1)==58){ss(E+=Z(nl(d),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:E+=nl(d);break;case 9:case 10:case 13:case 32:E+=Qv(v);break;case 92:E+=Gv(tl()-1,7);continue;case 47:switch(Ht()){case 42:case 47:bi(Jv(Yv(ft(),tl()),t,n),u);break;default:E+="/"}break;case 123*g:a[s++]=jt(E)*h;case 125*g:case 59:case 0:switch(d){case 0:case 125:C=0;case 59+c:h==-1&&(E=Z(E,/\f/g,"")),w>0&&jt(E)-m&&bi(w>32?fd(E+";",r,n,m-1):fd(Z(E," ","")+";",r,n,m-2),u);break;case 59:E+=";";default:if(bi(P=cd(E,t,n,s,c,o,a,y,f=[],S=[],m),i),d===123)if(c===0)rl(E,t,P,P,f,i,m,a,S);else switch(p===99&&Ae(E,3)===110?100:p){case 100:case 108:case 109:case 115:rl(e,P,P,r&&bi(cd(e,P,P,0,0,o,a,y,o,f=[],m),S),o,S,m,a,r?f:S);break;default:rl(E,P,P,P,[""],S,0,a,S)}}s=c=w=0,g=h=1,y=E="",m=l;break;case 58:m=1+jt(E),w=v;default:if(g<1){if(d==123)--g;else if(d==125&&g++==0&&Kv()==125)continue}switch(E+=ql(d),d*g){case 38:h=c>0?1:(E+="\f",-1);break;case 44:a[s++]=(jt(E)-1)*h,h=1;break;case 64:Ht()===45&&(E+=nl(ft())),p=Ht(),c=m=jt(y=E+=Xv(tl())),d++;break;case 45:v===45&&jt(E)==2&&(g=0)}}return i}function cd(e,t,n,r,o,i,l,a,u,s,c){for(var m=o-1,p=o===0?i:[""],w=mc(p),v=0,g=0,C=0;v0?p[h]+" "+d:Z(d,/&\f/g,p[h])))&&(u[C++]=y);return ta(e,t,n,o===0?pc:a,u,s,c)}function Jv(e,t,n){return ta(e,t,n,fm,ql(Hv()),ei(e,2,-2),0)}function fd(e,t,n,r){return ta(e,t,n,hc,ei(e,0,r),ei(e,r+1,-1),r)}function Ir(e,t){for(var n="",r=mc(e),o=0;o6)switch(Ae(e,t+1)){case 109:if(Ae(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+zl+(Ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ss(e,"stretch")?ym(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ae(e,t+1)!==115)break;case 6444:switch(Ae(e,jt(e)-3-(~ss(e,"!important")&&10))){case 107:return Z(e,":",":"+X)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(Ae(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Ae(e,t+11)){case 114:return X+e+He+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+He+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+He+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+He+e+e}return e}var a1=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case hc:t.return=ym(t.value,t.length);break;case dm:return Ir([vo(t,{value:Z(t.value,"@","@"+X)})],o);case pc:if(t.length)return Vv(t.props,function(i){switch(Wv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ir([vo(t,{props:[Z(i,/:(read-\w+)/,":"+zl+"$1")]})],o);case"::placeholder":return Ir([vo(t,{props:[Z(i,/:(plac\w+)/,":"+X+"input-$1")]}),vo(t,{props:[Z(i,/:(plac\w+)/,":"+zl+"$1")]}),vo(t,{props:[Z(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},u1=[a1],s1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||u1,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var C=g.getAttribute("data-emotion").split(" "),h=1;h=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var k1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},E1=/[A-Z]|^ms/g,C1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Em=function(t){return t.charCodeAt(1)===45},pd=function(t){return t!=null&&typeof t!="boolean"},au=cm(function(e){return Em(e)?e:e.replace(E1,"-$&").toLowerCase()}),hd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(C1,function(r,o,i){return bt={name:o,styles:i,next:bt},o})}return k1[t]!==1&&!Em(t)&&typeof n=="number"&&n!==0?n+"px":n};function ni(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return bt={name:n.name,styles:n.styles,next:bt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)bt={name:r.name,styles:r.styles,next:bt},r=r.next;var o=n.styles+";";return o}return R1(e,t,n)}case"function":{if(e!==void 0){var i=bt,l=n(e);return bt=i,ni(e,t,l)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function R1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?O1:L1},yd=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},z1=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return km(n,r,o),T1(function(){return x1(n,r,o)}),null},$1=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var a=yd(t,n,r),u=a||gd(o),s=!u("as");return function(){var c=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)m.push.apply(m,c);else{m.push(c[0][0]);for(var p=c.length,w=1;w=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var k1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},E1=/[A-Z]|^ms/g,C1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Em=function(t){return t.charCodeAt(1)===45},pd=function(t){return t!=null&&typeof t!="boolean"},au=cm(function(e){return Em(e)?e:e.replace(E1,"-$&").toLowerCase()}),hd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(C1,function(r,o,i){return bt={name:o,styles:i,next:bt},o})}return k1[t]!==1&&!Em(t)&&typeof n=="number"&&n!==0?n+"px":n};function ni(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return bt={name:n.name,styles:n.styles,next:bt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)bt={name:r.name,styles:r.styles,next:bt},r=r.next;var o=n.styles+";";return o}return R1(e,t,n)}case"function":{if(e!==void 0){var i=bt,l=n(e);return bt=i,ni(e,t,l)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function R1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?O1:z1},yd=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},L1=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return km(n,r,o),T1(function(){return x1(n,r,o)}),null},$1=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var a=yd(t,n,r),u=a||gd(o),s=!u("as");return function(){var c=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)m.push.apply(m,c);else{m.push(c[0][0]);for(var p=c.length,w=1;w{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},F1=["values","unit","step"],A1=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>D({},n,{[r.key]:r.val}),{})};function j1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=mt(e,F1),i=A1(t),l=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function s(p,w){const v=l.indexOf(w);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[l[v]]=="number"?t[l[v]]:w)-r/100}${n})`}function c(p){return l.indexOf(p)+1`@media (min-width:${xc[e]}px)`};function ln(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||vd;return t.reduce((l,a,u)=>(l[i.up(i.keys[u])]=n(t[u]),l),{})}if(typeof t=="object"){const i=r.breakpoints||vd;return Object.keys(t).reduce((l,a)=>{if(Object.keys(i.values||xc).indexOf(a)!==-1){const u=i.up(a);l[u]=n(t[a],a)}else{const u=a;l[u]=t[u]}return l},{})}return n(t)}function B1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function W1(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function da(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function zl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=da(e,n)||r,t&&(o=t(o,r,e)),o}function J(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const a=l[t],u=l.theme,s=da(u,r)||{};return ln(l,a,m=>{let p=zl(s,o,m);return m===p&&typeof m=="string"&&(p=zl(s,o,`${t}${m==="default"?"":Le(m)}`,m)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function V1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const H1={m:"margin",p:"padding"},K1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Q1=V1(e=>{if(e.length>2)if(wd[e])e=wd[e];else return[e];const[t,n]=e.split(""),r=H1[t],o=K1[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Sc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Sc,...kc];function hi(e,t,n,r){var o;const i=(o=da(e,t,!1))!=null?o:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function _m(e){return hi(e,"spacing",8)}function mi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function G1(e,t){return n=>e.reduce((r,o)=>(r[o]=mi(t,n),r),{})}function Y1(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Q1(n),i=G1(o,r),l=e[n];return ln(e,l,i)}function Tm(e,t){const n=_m(e.theme);return Object.keys(e).map(r=>Y1(e,t,r,n)).reduce(Do,{})}function ve(e){return Tm(e,Sc)}ve.propTypes={};ve.filterProps=Sc;function we(e){return Tm(e,kc)}we.propTypes={};we.filterProps=kc;function X1(e=8){if(e.mui)return e;const t=_m({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function pa(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Do(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Bt(e){return typeof e!="number"?e:`${e}px solid`}const Z1=J({prop:"border",themeKey:"borders",transform:Bt}),J1=J({prop:"borderTop",themeKey:"borders",transform:Bt}),q1=J({prop:"borderRight",themeKey:"borders",transform:Bt}),ew=J({prop:"borderBottom",themeKey:"borders",transform:Bt}),tw=J({prop:"borderLeft",themeKey:"borders",transform:Bt}),nw=J({prop:"borderColor",themeKey:"palette"}),rw=J({prop:"borderTopColor",themeKey:"palette"}),ow=J({prop:"borderRightColor",themeKey:"palette"}),iw=J({prop:"borderBottomColor",themeKey:"palette"}),lw=J({prop:"borderLeftColor",themeKey:"palette"}),ha=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=hi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:mi(t,r)});return ln(e,e.borderRadius,n)}return null};ha.propTypes={};ha.filterProps=["borderRadius"];pa(Z1,J1,q1,ew,tw,nw,rw,ow,iw,lw,ha);const ma=e=>{if(e.gap!==void 0&&e.gap!==null){const t=hi(e.theme,"spacing",8),n=r=>({gap:mi(t,r)});return ln(e,e.gap,n)}return null};ma.propTypes={};ma.filterProps=["gap"];const ga=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=hi(e.theme,"spacing",8),n=r=>({columnGap:mi(t,r)});return ln(e,e.columnGap,n)}return null};ga.propTypes={};ga.filterProps=["columnGap"];const ya=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=hi(e.theme,"spacing",8),n=r=>({rowGap:mi(t,r)});return ln(e,e.rowGap,n)}return null};ya.propTypes={};ya.filterProps=["rowGap"];const aw=J({prop:"gridColumn"}),uw=J({prop:"gridRow"}),sw=J({prop:"gridAutoFlow"}),cw=J({prop:"gridAutoColumns"}),fw=J({prop:"gridAutoRows"}),dw=J({prop:"gridTemplateColumns"}),pw=J({prop:"gridTemplateRows"}),hw=J({prop:"gridTemplateAreas"}),mw=J({prop:"gridArea"});pa(ma,ga,ya,aw,uw,sw,cw,fw,dw,pw,hw,mw);function Fr(e,t){return t==="grey"?t:e}const gw=J({prop:"color",themeKey:"palette",transform:Fr}),yw=J({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fr}),vw=J({prop:"backgroundColor",themeKey:"palette",transform:Fr});pa(gw,yw,vw);function ut(e){return e<=1&&e!==0?`${e*100}%`:e}const ww=J({prop:"width",transform:ut}),Ec=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r;return{maxWidth:((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||xc[n]||ut(n)}};return ln(e,e.maxWidth,t)}return null};Ec.filterProps=["maxWidth"];const xw=J({prop:"minWidth",transform:ut}),Sw=J({prop:"height",transform:ut}),kw=J({prop:"maxHeight",transform:ut}),Ew=J({prop:"minHeight",transform:ut});J({prop:"size",cssProperty:"width",transform:ut});J({prop:"size",cssProperty:"height",transform:ut});const Cw=J({prop:"boxSizing"});pa(ww,Ec,xw,Sw,kw,Ew,Cw);const Rw={border:{themeKey:"borders",transform:Bt},borderTop:{themeKey:"borders",transform:Bt},borderRight:{themeKey:"borders",transform:Bt},borderBottom:{themeKey:"borders",transform:Bt},borderLeft:{themeKey:"borders",transform:Bt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ha},color:{themeKey:"palette",transform:Fr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fr},backgroundColor:{themeKey:"palette",transform:Fr},p:{style:we},pt:{style:we},pr:{style:we},pb:{style:we},pl:{style:we},px:{style:we},py:{style:we},padding:{style:we},paddingTop:{style:we},paddingRight:{style:we},paddingBottom:{style:we},paddingLeft:{style:we},paddingX:{style:we},paddingY:{style:we},paddingInline:{style:we},paddingInlineStart:{style:we},paddingInlineEnd:{style:we},paddingBlock:{style:we},paddingBlockStart:{style:we},paddingBlockEnd:{style:we},m:{style:ve},mt:{style:ve},mr:{style:ve},mb:{style:ve},ml:{style:ve},mx:{style:ve},my:{style:ve},margin:{style:ve},marginTop:{style:ve},marginRight:{style:ve},marginBottom:{style:ve},marginLeft:{style:ve},marginX:{style:ve},marginY:{style:ve},marginInline:{style:ve},marginInlineStart:{style:ve},marginInlineEnd:{style:ve},marginBlock:{style:ve},marginBlockStart:{style:ve},marginBlockEnd:{style:ve},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ma},rowGap:{style:ya},columnGap:{style:ga},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ut},maxWidth:{style:Ec},minWidth:{transform:ut},height:{transform:ut},maxHeight:{transform:ut},minHeight:{transform:ut},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Cc=Rw;function Pw(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function _w(e,t){return typeof e=="function"?e(t):e}function Tw(){function e(n,r,o,i){const l={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:u=n,themeKey:s,transform:c,style:m}=a;if(r==null)return null;if(s==="typography"&&r==="inherit")return{[n]:r};const p=da(o,s)||{};return m?m(l):ln(l,r,v=>{let g=zl(p,c,v);return v===g&&typeof v=="string"&&(g=zl(p,c,`${n}${v==="default"?"":Le(v)}`,v)),u===!1?g:{[u]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:Cc;function a(u){let s=u;if(typeof u=="function")s=u(i);else if(typeof u!="object")return u;if(!s)return null;const c=B1(i.breakpoints),m=Object.keys(c);let p=c;return Object.keys(s).forEach(w=>{const v=_w(s[w],i);if(v!=null)if(typeof v=="object")if(l[w])p=Do(p,e(w,v,i,l));else{const g=ln({theme:i},v,C=>({[w]:C}));Pw(g,v)?p[w]=t({sx:v,theme:i}):p=Do(p,g)}else p=Do(p,e(w,v,i,l))}),W1(m,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const Mm=Tw();Mm.filterProps=["sx"];const Rc=Mm,Mw=["breakpoints","palette","spacing","shape"];function Pc(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=mt(e,Mw),a=j1(n),u=X1(o);let s=en({breakpoints:a,direction:"ltr",components:{},palette:D({mode:"light"},r),spacing:u,shape:D({},U1,i)},l);return s=t.reduce((c,m)=>en(c,m),s),s.unstable_sxConfig=D({},Cc,l==null?void 0:l.unstable_sxConfig),s.unstable_sx=function(m){return Rc({sx:m,theme:this})},s}function Ow(e){return Object.keys(e).length===0}function Lw(e=null){const t=R.useContext(Pm);return!t||Ow(t)?e:t}const zw=Pc();function $w(e=zw){return Lw(e)}const Nw=["variant"];function xd(e){return e.length===0}function Om(e){const{variant:t}=e,n=mt(e,Nw);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=xd(r)?e[o]:Le(e[o]):r+=`${xd(r)?o:Le(o)}${Le(e[o].toString())}`}),r}const Dw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Iw(e){return Object.keys(e).length===0}function Fw(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Aw=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,jw=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=Om(o.props);r[i]=o.style}),r},bw=(e,t,n,r)=>{var o;const{ownerState:i={}}=e,l=[],a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return a&&a.forEach(u=>{let s=!0;Object.keys(u.props).forEach(c=>{i[c]!==u.props[c]&&e[c]!==u.props[c]&&(s=!1)}),s&&l.push(t[Om(u.props)])}),l};function ol(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Uw=Pc();function wo({defaultTheme:e,theme:t,themeId:n}){return Iw(t)?e:t[n]||t}function Bw(e={}){const{themeId:t,defaultTheme:n=Uw,rootShouldForwardProp:r=ol,slotShouldForwardProp:o=ol}=e,i=l=>Rc(D({},l,{theme:wo(D({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{I1(l,f=>f.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:u,slot:s,skipVariantsResolver:c,skipSx:m,overridesResolver:p}=a,w=mt(a,Dw),v=c!==void 0?c:s&&s!=="Root"||!1,g=m||!1;let C,h=ol;s==="Root"?h=r:s?h=o:Fw(l)&&(h=void 0);const d=D1(l,D({shouldForwardProp:h,label:C},w)),y=(f,...S)=>{const P=S?S.map(O=>typeof O=="function"&&O.__emotion_real!==O?H=>O(D({},H,{theme:wo(D({},H,{defaultTheme:n,themeId:t}))})):O):[];let E=f;u&&p&&P.push(O=>{const H=wo(D({},O,{defaultTheme:n,themeId:t})),V=Aw(u,H);if(V){const ge={};return Object.entries(V).forEach(([_e,Ee])=>{ge[_e]=typeof Ee=="function"?Ee(D({},O,{theme:H})):Ee}),p(O,ge)}return null}),u&&!v&&P.push(O=>{const H=wo(D({},O,{defaultTheme:n,themeId:t}));return bw(O,jw(u,H),H,u)}),g||P.push(i);const L=P.length-S.length;if(Array.isArray(f)&&L>0){const O=new Array(L).fill("");E=[...f,...O],E.raw=[...f.raw,...O]}else typeof f=="function"&&f.__emotion_real!==f&&(E=O=>f(D({},O,{theme:wo(D({},O,{defaultTheme:n,themeId:t}))})));const A=d(E,...P);return l.muiName&&(A.muiName=l.muiName),A};return d.withConfig&&(y.withConfig=d.withConfig),y}}function Ww(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:fc(t.components[n].defaultProps,r)}function Vw({props:e,name:t,defaultTheme:n,themeId:r}){let o=$w(n);return r&&(o=o[r]||o),Ww({theme:o,name:t,props:e})}function _c(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Hw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function qn(e){if(e.type)return e;if(e.charAt(0)==="#")return qn(Hw(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Hr(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Hr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function va(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Kw(e){e=qn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(s,c=(s+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const u=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",u.push(t[3])),va({type:a,values:u})}function Sd(e){e=qn(e);let t=e.type==="hsl"||e.type==="hsla"?qn(Kw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Qw(e,t){const n=Sd(e),r=Sd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ui(e,t){return e=qn(e),t=_c(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,va(e)}function Gw(e,t){if(e=qn(e),t=_c(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return va(e)}function Yw(e,t){if(e=qn(e),t=_c(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return va(e)}function Xw(e,t){return D({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Zw={black:"#000",white:"#fff"},ri=Zw,Jw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},qw=Jw,ex={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ar=ex,tx={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ur=tx,nx={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},xo=nx,rx={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},sr=rx,ox={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},cr=ox,ix={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},fr=ix,lx=["mode","contrastThreshold","tonalOffset"],kd={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ri.white,default:ri.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},uu={text:{primary:ri.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ri.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ed(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Yw(e.main,o):t==="dark"&&(e.dark=Gw(e.main,i)))}function ax(e="light"){return e==="dark"?{main:sr[200],light:sr[50],dark:sr[400]}:{main:sr[700],light:sr[400],dark:sr[800]}}function ux(e="light"){return e==="dark"?{main:ar[200],light:ar[50],dark:ar[400]}:{main:ar[500],light:ar[300],dark:ar[700]}}function sx(e="light"){return e==="dark"?{main:ur[500],light:ur[300],dark:ur[700]}:{main:ur[700],light:ur[400],dark:ur[800]}}function cx(e="light"){return e==="dark"?{main:cr[400],light:cr[300],dark:cr[700]}:{main:cr[700],light:cr[500],dark:cr[900]}}function fx(e="light"){return e==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:fr[800],light:fr[500],dark:fr[900]}}function dx(e="light"){return e==="dark"?{main:xo[400],light:xo[300],dark:xo[700]}:{main:"#ed6c02",light:xo[500],dark:xo[900]}}function px(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=mt(e,lx),i=e.primary||ax(t),l=e.secondary||ux(t),a=e.error||sx(t),u=e.info||cx(t),s=e.success||fx(t),c=e.warning||dx(t);function m(g){return Qw(g,uu.text.primary)>=n?uu.text.primary:kd.text.primary}const p=({color:g,name:C,mainShade:h=500,lightShade:d=300,darkShade:y=700})=>{if(g=D({},g),!g.main&&g[h]&&(g.main=g[h]),!g.hasOwnProperty("main"))throw new Error(Hr(11,C?` (${C})`:"",h));if(typeof g.main!="string")throw new Error(Hr(12,C?` (${C})`:"",JSON.stringify(g.main)));return Ed(g,"light",d,r),Ed(g,"dark",y,r),g.contrastText||(g.contrastText=m(g.main)),g},w={dark:uu,light:kd};return en(D({common:D({},ri),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:s,name:"success"}),grey:qw,contrastThreshold:n,getContrastText:m,augmentColor:p,tonalOffset:r},w[t]),o)}const hx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function mx(e){return Math.round(e*1e5)/1e5}const Cd={textTransform:"uppercase"},Rd='"Roboto", "Helvetica", "Arial", sans-serif';function gx(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Rd,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:u=700,htmlFontSize:s=16,allVariants:c,pxToRem:m}=n,p=mt(n,hx),w=o/14,v=m||(h=>`${h/s*w}rem`),g=(h,d,y,f,S)=>D({fontFamily:r,fontWeight:h,fontSize:v(d),lineHeight:y},r===Rd?{letterSpacing:`${mx(f/d)}em`}:{},S,c),C={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(l,48,1.167,0),h4:g(l,34,1.235,.25),h5:g(l,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(l,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(l,16,1.5,.15),body2:g(l,14,1.43,.15),button:g(a,14,1.75,.4,Cd),caption:g(l,12,1.66,.4),overline:g(l,12,2.66,1,Cd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return en(D({htmlFontSize:s,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:u},C),p,{clone:!1})}const yx=.2,vx=.14,wx=.12;function se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${yx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${vx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wx})`].join(",")}const xx=["none",se(0,2,1,-1,0,1,1,0,0,1,3,0),se(0,3,1,-2,0,2,2,0,0,1,5,0),se(0,3,3,-2,0,3,4,0,0,1,8,0),se(0,2,4,-1,0,4,5,0,0,1,10,0),se(0,3,5,-1,0,5,8,0,0,1,14,0),se(0,3,5,-1,0,6,10,0,0,1,18,0),se(0,4,5,-2,0,7,10,1,0,2,16,1),se(0,5,5,-3,0,8,10,1,0,3,14,2),se(0,5,6,-3,0,9,12,1,0,3,16,2),se(0,6,6,-3,0,10,14,1,0,4,18,3),se(0,6,7,-4,0,11,15,1,0,4,20,3),se(0,7,8,-4,0,12,17,2,0,5,22,4),se(0,7,8,-4,0,13,19,2,0,5,24,4),se(0,7,9,-4,0,14,21,2,0,5,26,4),se(0,8,9,-5,0,15,22,2,0,6,28,5),se(0,8,10,-5,0,16,24,2,0,6,30,5),se(0,8,11,-5,0,17,26,2,0,6,32,5),se(0,9,11,-5,0,18,28,2,0,7,34,6),se(0,9,12,-6,0,19,29,2,0,7,36,6),se(0,10,13,-6,0,20,31,3,0,8,38,7),se(0,10,13,-6,0,21,33,3,0,8,40,7),se(0,10,14,-6,0,22,35,3,0,8,42,7),se(0,11,14,-7,0,23,36,3,0,9,44,8),se(0,11,15,-7,0,24,38,3,0,9,46,8)],Sx=xx,kx=["duration","easing","delay"],Ex={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Cx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Pd(e){return`${Math.round(e)}ms`}function Rx(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Px(e){const t=D({},Ex,e.easing),n=D({},Cx,e.duration);return D({getAutoHeightDuration:Rx,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:u=0}=i;return mt(i,kx),(Array.isArray(o)?o:[o]).map(s=>`${s} ${typeof l=="string"?l:Pd(l)} ${a} ${typeof u=="string"?u:Pd(u)}`).join(",")}},e,{easing:t,duration:n})}const _x={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tx=_x,Mx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ox(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=mt(e,Mx);if(e.vars)throw new Error(Hr(18));const a=px(r),u=Pc(e);let s=en(u,{mixins:Xw(u.breakpoints,n),palette:a,shadows:Sx.slice(),typography:gx(a,i),transitions:Px(o),zIndex:D({},Tx)});return s=en(s,l),s=t.reduce((c,m)=>en(c,m),s),s.unstable_sxConfig=D({},Cc,l==null?void 0:l.unstable_sxConfig),s.unstable_sx=function(m){return Rc({sx:m,theme:this})},s}const Lx=Ox(),Lm=Lx,zm="$$material";function wa({props:e,name:t}){return Vw({props:e,name:t,defaultTheme:Lm,themeId:zm})}const $m=e=>ol(e)&&e!=="classes",zx=Bw({themeId:zm,defaultTheme:Lm,rootShouldForwardProp:$m}),un=zx;function $x(e){return Zl("MuiCircularProgress",e)}Jl("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Nx=["className","color","disableShrink","size","style","thickness","value","variant"];let xa=e=>e,_d,Td,Md,Od;const hn=44,Dx=pi(_d||(_d=xa` + */function D1(e,t){return fs(e,t)}const I1=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},F1=["values","unit","step"],A1=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>D({},n,{[r.key]:r.val}),{})};function j1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=mt(e,F1),i=A1(t),l=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function s(p,w){const v=l.indexOf(w);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[l[v]]=="number"?t[l[v]]:w)-r/100}${n})`}function c(p){return l.indexOf(p)+1`@media (min-width:${xc[e]}px)`};function ln(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||vd;return t.reduce((l,a,u)=>(l[i.up(i.keys[u])]=n(t[u]),l),{})}if(typeof t=="object"){const i=r.breakpoints||vd;return Object.keys(t).reduce((l,a)=>{if(Object.keys(i.values||xc).indexOf(a)!==-1){const u=i.up(a);l[u]=n(t[a],a)}else{const u=a;l[u]=t[u]}return l},{})}return n(t)}function B1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function W1(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function da(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Ll(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=da(e,n)||r,t&&(o=t(o,r,e)),o}function J(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const a=l[t],u=l.theme,s=da(u,r)||{};return ln(l,a,m=>{let p=Ll(s,o,m);return m===p&&typeof m=="string"&&(p=Ll(s,o,`${t}${m==="default"?"":ze(m)}`,m)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function V1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const H1={m:"margin",p:"padding"},K1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Q1=V1(e=>{if(e.length>2)if(wd[e])e=wd[e];else return[e];const[t,n]=e.split(""),r=H1[t],o=K1[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Sc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Sc,...kc];function hi(e,t,n,r){var o;const i=(o=da(e,t,!1))!=null?o:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function _m(e){return hi(e,"spacing",8)}function mi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function G1(e,t){return n=>e.reduce((r,o)=>(r[o]=mi(t,n),r),{})}function Y1(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Q1(n),i=G1(o,r),l=e[n];return ln(e,l,i)}function Tm(e,t){const n=_m(e.theme);return Object.keys(e).map(r=>Y1(e,t,r,n)).reduce(Do,{})}function ve(e){return Tm(e,Sc)}ve.propTypes={};ve.filterProps=Sc;function we(e){return Tm(e,kc)}we.propTypes={};we.filterProps=kc;function X1(e=8){if(e.mui)return e;const t=_m({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function pa(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Do(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Bt(e){return typeof e!="number"?e:`${e}px solid`}const Z1=J({prop:"border",themeKey:"borders",transform:Bt}),J1=J({prop:"borderTop",themeKey:"borders",transform:Bt}),q1=J({prop:"borderRight",themeKey:"borders",transform:Bt}),ew=J({prop:"borderBottom",themeKey:"borders",transform:Bt}),tw=J({prop:"borderLeft",themeKey:"borders",transform:Bt}),nw=J({prop:"borderColor",themeKey:"palette"}),rw=J({prop:"borderTopColor",themeKey:"palette"}),ow=J({prop:"borderRightColor",themeKey:"palette"}),iw=J({prop:"borderBottomColor",themeKey:"palette"}),lw=J({prop:"borderLeftColor",themeKey:"palette"}),ha=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=hi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:mi(t,r)});return ln(e,e.borderRadius,n)}return null};ha.propTypes={};ha.filterProps=["borderRadius"];pa(Z1,J1,q1,ew,tw,nw,rw,ow,iw,lw,ha);const ma=e=>{if(e.gap!==void 0&&e.gap!==null){const t=hi(e.theme,"spacing",8),n=r=>({gap:mi(t,r)});return ln(e,e.gap,n)}return null};ma.propTypes={};ma.filterProps=["gap"];const ga=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=hi(e.theme,"spacing",8),n=r=>({columnGap:mi(t,r)});return ln(e,e.columnGap,n)}return null};ga.propTypes={};ga.filterProps=["columnGap"];const ya=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=hi(e.theme,"spacing",8),n=r=>({rowGap:mi(t,r)});return ln(e,e.rowGap,n)}return null};ya.propTypes={};ya.filterProps=["rowGap"];const aw=J({prop:"gridColumn"}),uw=J({prop:"gridRow"}),sw=J({prop:"gridAutoFlow"}),cw=J({prop:"gridAutoColumns"}),fw=J({prop:"gridAutoRows"}),dw=J({prop:"gridTemplateColumns"}),pw=J({prop:"gridTemplateRows"}),hw=J({prop:"gridTemplateAreas"}),mw=J({prop:"gridArea"});pa(ma,ga,ya,aw,uw,sw,cw,fw,dw,pw,hw,mw);function Fr(e,t){return t==="grey"?t:e}const gw=J({prop:"color",themeKey:"palette",transform:Fr}),yw=J({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fr}),vw=J({prop:"backgroundColor",themeKey:"palette",transform:Fr});pa(gw,yw,vw);function ut(e){return e<=1&&e!==0?`${e*100}%`:e}const ww=J({prop:"width",transform:ut}),Ec=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r;return{maxWidth:((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||xc[n]||ut(n)}};return ln(e,e.maxWidth,t)}return null};Ec.filterProps=["maxWidth"];const xw=J({prop:"minWidth",transform:ut}),Sw=J({prop:"height",transform:ut}),kw=J({prop:"maxHeight",transform:ut}),Ew=J({prop:"minHeight",transform:ut});J({prop:"size",cssProperty:"width",transform:ut});J({prop:"size",cssProperty:"height",transform:ut});const Cw=J({prop:"boxSizing"});pa(ww,Ec,xw,Sw,kw,Ew,Cw);const Rw={border:{themeKey:"borders",transform:Bt},borderTop:{themeKey:"borders",transform:Bt},borderRight:{themeKey:"borders",transform:Bt},borderBottom:{themeKey:"borders",transform:Bt},borderLeft:{themeKey:"borders",transform:Bt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ha},color:{themeKey:"palette",transform:Fr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fr},backgroundColor:{themeKey:"palette",transform:Fr},p:{style:we},pt:{style:we},pr:{style:we},pb:{style:we},pl:{style:we},px:{style:we},py:{style:we},padding:{style:we},paddingTop:{style:we},paddingRight:{style:we},paddingBottom:{style:we},paddingLeft:{style:we},paddingX:{style:we},paddingY:{style:we},paddingInline:{style:we},paddingInlineStart:{style:we},paddingInlineEnd:{style:we},paddingBlock:{style:we},paddingBlockStart:{style:we},paddingBlockEnd:{style:we},m:{style:ve},mt:{style:ve},mr:{style:ve},mb:{style:ve},ml:{style:ve},mx:{style:ve},my:{style:ve},margin:{style:ve},marginTop:{style:ve},marginRight:{style:ve},marginBottom:{style:ve},marginLeft:{style:ve},marginX:{style:ve},marginY:{style:ve},marginInline:{style:ve},marginInlineStart:{style:ve},marginInlineEnd:{style:ve},marginBlock:{style:ve},marginBlockStart:{style:ve},marginBlockEnd:{style:ve},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ma},rowGap:{style:ya},columnGap:{style:ga},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ut},maxWidth:{style:Ec},minWidth:{transform:ut},height:{transform:ut},maxHeight:{transform:ut},minHeight:{transform:ut},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Cc=Rw;function Pw(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function _w(e,t){return typeof e=="function"?e(t):e}function Tw(){function e(n,r,o,i){const l={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:u=n,themeKey:s,transform:c,style:m}=a;if(r==null)return null;if(s==="typography"&&r==="inherit")return{[n]:r};const p=da(o,s)||{};return m?m(l):ln(l,r,v=>{let g=Ll(p,c,v);return v===g&&typeof v=="string"&&(g=Ll(p,c,`${n}${v==="default"?"":ze(v)}`,v)),u===!1?g:{[u]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:Cc;function a(u){let s=u;if(typeof u=="function")s=u(i);else if(typeof u!="object")return u;if(!s)return null;const c=B1(i.breakpoints),m=Object.keys(c);let p=c;return Object.keys(s).forEach(w=>{const v=_w(s[w],i);if(v!=null)if(typeof v=="object")if(l[w])p=Do(p,e(w,v,i,l));else{const g=ln({theme:i},v,C=>({[w]:C}));Pw(g,v)?p[w]=t({sx:v,theme:i}):p=Do(p,g)}else p=Do(p,e(w,v,i,l))}),W1(m,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const Mm=Tw();Mm.filterProps=["sx"];const Rc=Mm,Mw=["breakpoints","palette","spacing","shape"];function Pc(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=mt(e,Mw),a=j1(n),u=X1(o);let s=en({breakpoints:a,direction:"ltr",components:{},palette:D({mode:"light"},r),spacing:u,shape:D({},U1,i)},l);return s=t.reduce((c,m)=>en(c,m),s),s.unstable_sxConfig=D({},Cc,l==null?void 0:l.unstable_sxConfig),s.unstable_sx=function(m){return Rc({sx:m,theme:this})},s}function Ow(e){return Object.keys(e).length===0}function zw(e=null){const t=R.useContext(Pm);return!t||Ow(t)?e:t}const Lw=Pc();function $w(e=Lw){return zw(e)}const Nw=["variant"];function xd(e){return e.length===0}function Om(e){const{variant:t}=e,n=mt(e,Nw);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=xd(r)?e[o]:ze(e[o]):r+=`${xd(r)?o:ze(o)}${ze(e[o].toString())}`}),r}const Dw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Iw(e){return Object.keys(e).length===0}function Fw(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Aw=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,jw=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=Om(o.props);r[i]=o.style}),r},bw=(e,t,n,r)=>{var o;const{ownerState:i={}}=e,l=[],a=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return a&&a.forEach(u=>{let s=!0;Object.keys(u.props).forEach(c=>{i[c]!==u.props[c]&&e[c]!==u.props[c]&&(s=!1)}),s&&l.push(t[Om(u.props)])}),l};function ol(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Uw=Pc();function wo({defaultTheme:e,theme:t,themeId:n}){return Iw(t)?e:t[n]||t}function Bw(e={}){const{themeId:t,defaultTheme:n=Uw,rootShouldForwardProp:r=ol,slotShouldForwardProp:o=ol}=e,i=l=>Rc(D({},l,{theme:wo(D({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{I1(l,f=>f.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:u,slot:s,skipVariantsResolver:c,skipSx:m,overridesResolver:p}=a,w=mt(a,Dw),v=c!==void 0?c:s&&s!=="Root"||!1,g=m||!1;let C,h=ol;s==="Root"?h=r:s?h=o:Fw(l)&&(h=void 0);const d=D1(l,D({shouldForwardProp:h,label:C},w)),y=(f,...S)=>{const P=S?S.map(O=>typeof O=="function"&&O.__emotion_real!==O?H=>O(D({},H,{theme:wo(D({},H,{defaultTheme:n,themeId:t}))})):O):[];let E=f;u&&p&&P.push(O=>{const H=wo(D({},O,{defaultTheme:n,themeId:t})),V=Aw(u,H);if(V){const ge={};return Object.entries(V).forEach(([_e,Ee])=>{ge[_e]=typeof Ee=="function"?Ee(D({},O,{theme:H})):Ee}),p(O,ge)}return null}),u&&!v&&P.push(O=>{const H=wo(D({},O,{defaultTheme:n,themeId:t}));return bw(O,jw(u,H),H,u)}),g||P.push(i);const z=P.length-S.length;if(Array.isArray(f)&&z>0){const O=new Array(z).fill("");E=[...f,...O],E.raw=[...f.raw,...O]}else typeof f=="function"&&f.__emotion_real!==f&&(E=O=>f(D({},O,{theme:wo(D({},O,{defaultTheme:n,themeId:t}))})));const A=d(E,...P);return l.muiName&&(A.muiName=l.muiName),A};return d.withConfig&&(y.withConfig=d.withConfig),y}}function Ww(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:fc(t.components[n].defaultProps,r)}function Vw({props:e,name:t,defaultTheme:n,themeId:r}){let o=$w(n);return r&&(o=o[r]||o),Ww({theme:o,name:t,props:e})}function _c(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Hw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function qn(e){if(e.type)return e;if(e.charAt(0)==="#")return qn(Hw(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Hr(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Hr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function va(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Kw(e){e=qn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(s,c=(s+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const u=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",u.push(t[3])),va({type:a,values:u})}function Sd(e){e=qn(e);let t=e.type==="hsl"||e.type==="hsla"?qn(Kw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Qw(e,t){const n=Sd(e),r=Sd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ui(e,t){return e=qn(e),t=_c(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,va(e)}function Gw(e,t){if(e=qn(e),t=_c(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return va(e)}function Yw(e,t){if(e=qn(e),t=_c(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return va(e)}function Xw(e,t){return D({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Zw={black:"#000",white:"#fff"},ri=Zw,Jw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},qw=Jw,ex={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ar=ex,tx={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ur=tx,nx={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},xo=nx,rx={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},sr=rx,ox={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},cr=ox,ix={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},fr=ix,lx=["mode","contrastThreshold","tonalOffset"],kd={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ri.white,default:ri.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},uu={text:{primary:ri.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ri.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ed(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Yw(e.main,o):t==="dark"&&(e.dark=Gw(e.main,i)))}function ax(e="light"){return e==="dark"?{main:sr[200],light:sr[50],dark:sr[400]}:{main:sr[700],light:sr[400],dark:sr[800]}}function ux(e="light"){return e==="dark"?{main:ar[200],light:ar[50],dark:ar[400]}:{main:ar[500],light:ar[300],dark:ar[700]}}function sx(e="light"){return e==="dark"?{main:ur[500],light:ur[300],dark:ur[700]}:{main:ur[700],light:ur[400],dark:ur[800]}}function cx(e="light"){return e==="dark"?{main:cr[400],light:cr[300],dark:cr[700]}:{main:cr[700],light:cr[500],dark:cr[900]}}function fx(e="light"){return e==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:fr[800],light:fr[500],dark:fr[900]}}function dx(e="light"){return e==="dark"?{main:xo[400],light:xo[300],dark:xo[700]}:{main:"#ed6c02",light:xo[500],dark:xo[900]}}function px(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=mt(e,lx),i=e.primary||ax(t),l=e.secondary||ux(t),a=e.error||sx(t),u=e.info||cx(t),s=e.success||fx(t),c=e.warning||dx(t);function m(g){return Qw(g,uu.text.primary)>=n?uu.text.primary:kd.text.primary}const p=({color:g,name:C,mainShade:h=500,lightShade:d=300,darkShade:y=700})=>{if(g=D({},g),!g.main&&g[h]&&(g.main=g[h]),!g.hasOwnProperty("main"))throw new Error(Hr(11,C?` (${C})`:"",h));if(typeof g.main!="string")throw new Error(Hr(12,C?` (${C})`:"",JSON.stringify(g.main)));return Ed(g,"light",d,r),Ed(g,"dark",y,r),g.contrastText||(g.contrastText=m(g.main)),g},w={dark:uu,light:kd};return en(D({common:D({},ri),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:s,name:"success"}),grey:qw,contrastThreshold:n,getContrastText:m,augmentColor:p,tonalOffset:r},w[t]),o)}const hx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function mx(e){return Math.round(e*1e5)/1e5}const Cd={textTransform:"uppercase"},Rd='"Roboto", "Helvetica", "Arial", sans-serif';function gx(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Rd,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:u=700,htmlFontSize:s=16,allVariants:c,pxToRem:m}=n,p=mt(n,hx),w=o/14,v=m||(h=>`${h/s*w}rem`),g=(h,d,y,f,S)=>D({fontFamily:r,fontWeight:h,fontSize:v(d),lineHeight:y},r===Rd?{letterSpacing:`${mx(f/d)}em`}:{},S,c),C={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(l,48,1.167,0),h4:g(l,34,1.235,.25),h5:g(l,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(l,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(l,16,1.5,.15),body2:g(l,14,1.43,.15),button:g(a,14,1.75,.4,Cd),caption:g(l,12,1.66,.4),overline:g(l,12,2.66,1,Cd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return en(D({htmlFontSize:s,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:u},C),p,{clone:!1})}const yx=.2,vx=.14,wx=.12;function se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${yx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${vx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wx})`].join(",")}const xx=["none",se(0,2,1,-1,0,1,1,0,0,1,3,0),se(0,3,1,-2,0,2,2,0,0,1,5,0),se(0,3,3,-2,0,3,4,0,0,1,8,0),se(0,2,4,-1,0,4,5,0,0,1,10,0),se(0,3,5,-1,0,5,8,0,0,1,14,0),se(0,3,5,-1,0,6,10,0,0,1,18,0),se(0,4,5,-2,0,7,10,1,0,2,16,1),se(0,5,5,-3,0,8,10,1,0,3,14,2),se(0,5,6,-3,0,9,12,1,0,3,16,2),se(0,6,6,-3,0,10,14,1,0,4,18,3),se(0,6,7,-4,0,11,15,1,0,4,20,3),se(0,7,8,-4,0,12,17,2,0,5,22,4),se(0,7,8,-4,0,13,19,2,0,5,24,4),se(0,7,9,-4,0,14,21,2,0,5,26,4),se(0,8,9,-5,0,15,22,2,0,6,28,5),se(0,8,10,-5,0,16,24,2,0,6,30,5),se(0,8,11,-5,0,17,26,2,0,6,32,5),se(0,9,11,-5,0,18,28,2,0,7,34,6),se(0,9,12,-6,0,19,29,2,0,7,36,6),se(0,10,13,-6,0,20,31,3,0,8,38,7),se(0,10,13,-6,0,21,33,3,0,8,40,7),se(0,10,14,-6,0,22,35,3,0,8,42,7),se(0,11,14,-7,0,23,36,3,0,9,44,8),se(0,11,15,-7,0,24,38,3,0,9,46,8)],Sx=xx,kx=["duration","easing","delay"],Ex={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Cx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Pd(e){return`${Math.round(e)}ms`}function Rx(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Px(e){const t=D({},Ex,e.easing),n=D({},Cx,e.duration);return D({getAutoHeightDuration:Rx,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:u=0}=i;return mt(i,kx),(Array.isArray(o)?o:[o]).map(s=>`${s} ${typeof l=="string"?l:Pd(l)} ${a} ${typeof u=="string"?u:Pd(u)}`).join(",")}},e,{easing:t,duration:n})}const _x={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tx=_x,Mx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ox(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=mt(e,Mx);if(e.vars)throw new Error(Hr(18));const a=px(r),u=Pc(e);let s=en(u,{mixins:Xw(u.breakpoints,n),palette:a,shadows:Sx.slice(),typography:gx(a,i),transitions:Px(o),zIndex:D({},Tx)});return s=en(s,l),s=t.reduce((c,m)=>en(c,m),s),s.unstable_sxConfig=D({},Cc,l==null?void 0:l.unstable_sxConfig),s.unstable_sx=function(m){return Rc({sx:m,theme:this})},s}const zx=Ox(),zm=zx,Lm="$$material";function wa({props:e,name:t}){return Vw({props:e,name:t,defaultTheme:zm,themeId:Lm})}const $m=e=>ol(e)&&e!=="classes",Lx=Bw({themeId:Lm,defaultTheme:zm,rootShouldForwardProp:$m}),un=Lx;function $x(e){return Zl("MuiCircularProgress",e)}Jl("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Nx=["className","color","disableShrink","size","style","thickness","value","variant"];let xa=e=>e,_d,Td,Md,Od;const hn=44,Dx=pi(_d||(_d=xa` 0% { transform: rotate(0deg); } @@ -101,11 +101,11 @@ Error generating stack: `+i.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),Fx=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Le(r)}`],svg:["svg"],circle:["circle",`circle${Le(n)}`,o&&"circleDisableShrink"]};return dc(i,$x,t)},Ax=un("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Le(n.color)}`]]}})(({ownerState:e,theme:t})=>D({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&wc(Md||(Md=xa` +`)),Fx=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ze(r)}`],svg:["svg"],circle:["circle",`circle${ze(n)}`,o&&"circleDisableShrink"]};return dc(i,$x,t)},Ax=un("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ze(n.color)}`]]}})(({ownerState:e,theme:t})=>D({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&wc(Md||(Md=xa` animation: ${0} 1.4s linear infinite; - `),Dx)),jx=un("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),bx=un("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>D({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&wc(Od||(Od=xa` + `),Dx)),jx=un("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),bx=un("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ze(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>D({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&wc(Od||(Od=xa` animation: ${0} 1.4s ease-in-out infinite; - `),Ix)),Ux=R.forwardRef(function(t,n){const r=wa({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,size:a=40,style:u,thickness:s=3.6,value:c=0,variant:m="indeterminate"}=r,p=mt(r,Nx),w=D({},r,{color:i,disableShrink:l,size:a,thickness:s,value:c,variant:m}),v=Fx(w),g={},C={},h={};if(m==="determinate"){const d=2*Math.PI*((hn-s)/2);g.strokeDasharray=d.toFixed(3),h["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*d).toFixed(3)}px`,C.transform="rotate(-90deg)"}return re.jsx(Ax,D({className:at(v.root,o),style:D({width:a,height:a},C,u),ownerState:w,ref:n,role:"progressbar"},h,p,{children:re.jsx(jx,{className:v.svg,ownerState:w,viewBox:`${hn/2} ${hn/2} ${hn} ${hn}`,children:re.jsx(bx,{className:v.circle,style:g,ownerState:w,cx:hn,cy:hn,r:(hn-s)/2,fill:"none",strokeWidth:s})})}))}),Bx=Ux;function ds(e,t){return ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ds(e,t)}function Wx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ds(e,t)}const Ld=hr.createContext(null);function Vx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tc(e,t){var n=function(i){return t&&R.isValidElement(i)?t(i):i},r=Object.create(null);return e&&R.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Hx(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,a={};for(var u in t){if(r[u])for(l=0;l{if(!a&&u!=null){const g=setTimeout(u,s);return()=>{clearTimeout(g)}}},[u,a,s]),re.jsx("span",{className:p,style:w,children:re.jsx("span",{className:v})})}const Jx=Jl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wt=Jx,qx=["center","classes","className"];let Sa=e=>e,zd,$d,Nd,Dd;const ps=550,eS=80,tS=pi(zd||(zd=Sa` + `),Ix)),Ux=R.forwardRef(function(t,n){const r=wa({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,size:a=40,style:u,thickness:s=3.6,value:c=0,variant:m="indeterminate"}=r,p=mt(r,Nx),w=D({},r,{color:i,disableShrink:l,size:a,thickness:s,value:c,variant:m}),v=Fx(w),g={},C={},h={};if(m==="determinate"){const d=2*Math.PI*((hn-s)/2);g.strokeDasharray=d.toFixed(3),h["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*d).toFixed(3)}px`,C.transform="rotate(-90deg)"}return oe.jsx(Ax,D({className:at(v.root,o),style:D({width:a,height:a},C,u),ownerState:w,ref:n,role:"progressbar"},h,p,{children:oe.jsx(jx,{className:v.svg,ownerState:w,viewBox:`${hn/2} ${hn/2} ${hn} ${hn}`,children:oe.jsx(bx,{className:v.circle,style:g,ownerState:w,cx:hn,cy:hn,r:(hn-s)/2,fill:"none",strokeWidth:s})})}))}),Bx=Ux;function ds(e,t){return ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ds(e,t)}function Wx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ds(e,t)}const zd=hr.createContext(null);function Vx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tc(e,t){var n=function(i){return t&&R.isValidElement(i)?t(i):i},r=Object.create(null);return e&&R.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Hx(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,a={};for(var u in t){if(r[u])for(l=0;l{if(!a&&u!=null){const g=setTimeout(u,s);return()=>{clearTimeout(g)}}},[u,a,s]),oe.jsx("span",{className:p,style:w,children:oe.jsx("span",{className:v})})}const Jx=Jl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wt=Jx,qx=["center","classes","className"];let Sa=e=>e,Ld,$d,Nd,Dd;const ps=550,eS=80,tS=pi(Ld||(Ld=Sa` 0% { transform: scale(0); opacity: 0.1; @@ -178,4 +178,4 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),wt.rippleVisible,tS,ps,({theme:e})=>e.transitions.easing.easeInOut,wt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,wt.child,wt.childLeaving,nS,ps,({theme:e})=>e.transitions.easing.easeInOut,wt.childPulsate,rS,({theme:e})=>e.transitions.easing.easeInOut),lS=R.forwardRef(function(t,n){const r=wa({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l}=r,a=mt(r,qx),[u,s]=R.useState([]),c=R.useRef(0),m=R.useRef(null);R.useEffect(()=>{m.current&&(m.current(),m.current=null)},[u]);const p=R.useRef(!1),w=R.useRef(0),v=R.useRef(null),g=R.useRef(null);R.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]);const C=R.useCallback(f=>{const{pulsate:S,rippleX:P,rippleY:E,rippleSize:L,cb:A}=f;s(O=>[...O,re.jsx(iS,{classes:{ripple:at(i.ripple,wt.ripple),rippleVisible:at(i.rippleVisible,wt.rippleVisible),ripplePulsate:at(i.ripplePulsate,wt.ripplePulsate),child:at(i.child,wt.child),childLeaving:at(i.childLeaving,wt.childLeaving),childPulsate:at(i.childPulsate,wt.childPulsate)},timeout:ps,pulsate:S,rippleX:P,rippleY:E,rippleSize:L},c.current)]),c.current+=1,m.current=A},[i]),h=R.useCallback((f={},S={},P=()=>{})=>{const{pulsate:E=!1,center:L=o||S.pulsate,fakeElement:A=!1}=S;if((f==null?void 0:f.type)==="mousedown"&&p.current){p.current=!1;return}(f==null?void 0:f.type)==="touchstart"&&(p.current=!0);const O=A?null:g.current,H=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,ge,_e;if(L||f===void 0||f.clientX===0&&f.clientY===0||!f.clientX&&!f.touches)V=Math.round(H.width/2),ge=Math.round(H.height/2);else{const{clientX:Ee,clientY:de}=f.touches&&f.touches.length>0?f.touches[0]:f;V=Math.round(Ee-H.left),ge=Math.round(de-H.top)}if(L)_e=Math.sqrt((2*H.width**2+H.height**2)/3),_e%2===0&&(_e+=1);else{const Ee=Math.max(Math.abs((O?O.clientWidth:0)-V),V)*2+2,de=Math.max(Math.abs((O?O.clientHeight:0)-ge),ge)*2+2;_e=Math.sqrt(Ee**2+de**2)}f!=null&&f.touches?v.current===null&&(v.current=()=>{C({pulsate:E,rippleX:V,rippleY:ge,rippleSize:_e,cb:P})},w.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},eS)):C({pulsate:E,rippleX:V,rippleY:ge,rippleSize:_e,cb:P})},[o,C]),d=R.useCallback(()=>{h({},{pulsate:!0})},[h]),y=R.useCallback((f,S)=>{if(clearTimeout(w.current),(f==null?void 0:f.type)==="touchend"&&v.current){v.current(),v.current=null,w.current=setTimeout(()=>{y(f,S)});return}v.current=null,s(P=>P.length>0?P.slice(1):P),m.current=S},[]);return R.useImperativeHandle(n,()=>({pulsate:d,start:h,stop:y}),[d,h,y]),re.jsx(oS,D({className:at(wt.root,i.root,l),ref:g},a,{children:re.jsx(Xx,{component:null,exit:!0,children:u})}))}),aS=lS;function uS(e){return Zl("MuiButtonBase",e)}const sS=Jl("MuiButtonBase",["root","disabled","focusVisible"]),cS=sS,fS=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],dS=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=dc({root:["root",t&&"disabled",n&&"focusVisible"]},uS,o);return n&&r&&(l.root+=` ${r}`),l},pS=un("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hS=R.forwardRef(function(t,n){const r=wa({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:a,component:u="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:m=!1,focusRipple:p=!1,LinkComponent:w="a",onBlur:v,onClick:g,onContextMenu:C,onDragLeave:h,onFocus:d,onFocusVisible:y,onKeyDown:f,onKeyUp:S,onMouseDown:P,onMouseLeave:E,onMouseUp:L,onTouchEnd:A,onTouchMove:O,onTouchStart:H,tabIndex:V=0,TouchRippleProps:ge,touchRippleRef:_e,type:Ee}=r,de=mt(r,fS),Ue=R.useRef(null),M=R.useRef(null),I=ad(M,_e),{isFocusVisibleRef:j,onFocus:le,onBlur:ye,ref:sn}=Tv(),[Q,Je]=R.useState(!1);s&&Q&&Je(!1),R.useImperativeHandle(o,()=>({focusVisible:()=>{Je(!0),Ue.current.focus()}}),[]);const[qe,cn]=R.useState(!1);R.useEffect(()=>{cn(!0)},[]);const It=qe&&!c&&!s;R.useEffect(()=>{Q&&p&&!c&&qe&&M.current.pulsate()},[c,p,Q,qe]);function Pt(W,to,Pa=m){return ji(no=>(to&&to(no),!Pa&&M.current&&M.current[W](no),!0))}const ka=Pt("start",P),gi=Pt("stop",C),Ea=Pt("stop",h),Ca=Pt("stop",L),Ra=Pt("stop",W=>{Q&&W.preventDefault(),E&&E(W)}),Nn=Pt("start",H),yi=Pt("stop",A),Zr=Pt("stop",O),nr=Pt("stop",W=>{ye(W),j.current===!1&&Je(!1),v&&v(W)},!1),Jr=ji(W=>{Ue.current||(Ue.current=W.currentTarget),le(W),j.current===!0&&(Je(!0),y&&y(W)),d&&d(W)}),yt=()=>{const W=Ue.current;return u&&u!=="button"&&!(W.tagName==="A"&&W.href)},rr=R.useRef(!1),vi=ji(W=>{p&&!rr.current&&Q&&M.current&&W.key===" "&&(rr.current=!0,M.current.stop(W,()=>{M.current.start(W)})),W.target===W.currentTarget&&yt()&&W.key===" "&&W.preventDefault(),f&&f(W),W.target===W.currentTarget&&yt()&&W.key==="Enter"&&!s&&(W.preventDefault(),g&&g(W))}),wi=ji(W=>{p&&W.key===" "&&M.current&&Q&&!W.defaultPrevented&&(rr.current=!1,M.current.stop(W,()=>{M.current.pulsate(W)})),S&&S(W),g&&W.target===W.currentTarget&&yt()&&W.key===" "&&!W.defaultPrevented&&g(W)});let or=u;or==="button"&&(de.href||de.to)&&(or=w);const fn={};or==="button"?(fn.type=Ee===void 0?"button":Ee,fn.disabled=s):(!de.href&&!de.to&&(fn.role="button"),s&&(fn["aria-disabled"]=s));const ir=ad(n,sn,Ue),qr=D({},r,{centerRipple:i,component:u,disabled:s,disableRipple:c,disableTouchRipple:m,focusRipple:p,tabIndex:V,focusVisible:Q}),eo=dS(qr);return re.jsxs(pS,D({as:or,className:at(eo.root,a),ownerState:qr,onBlur:nr,onClick:g,onContextMenu:gi,onFocus:Jr,onKeyDown:vi,onKeyUp:wi,onMouseDown:ka,onMouseLeave:Ra,onMouseUp:Ca,onDragLeave:Ea,onTouchEnd:yi,onTouchMove:Zr,onTouchStart:Nn,ref:ir,tabIndex:s?-1:V,type:Ee},fn,de,{children:[l,It?re.jsx(aS,D({ref:I,center:i},ge)):null]}))}),mS=hS;function gS(e){return Zl("MuiButton",e)}const yS=Jl("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Bi=yS,vS=R.createContext({}),wS=vS,xS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],SS=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e,a={root:["root",i,`${i}${Le(t)}`,`size${Le(o)}`,`${i}Size${Le(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Le(o)}`],endIcon:["endIcon",`iconSize${Le(o)}`]},u=dc(a,gS,l);return D({},l,u)},Nm=e=>D({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),kS=un(mS,{shouldForwardProp:e=>$m(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Le(n.color)}`],t[`size${Le(n.size)}`],t[`${n.variant}Size${Le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return D({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":D({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ui(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ui(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ui(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":D({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Bi.focusVisible}`]:D({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Bi.disabled}`]:D({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ui(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Bi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Bi.disabled}`]:{boxShadow:"none"}}),ES=un("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Le(n.size)}`]]}})(({ownerState:e})=>D({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Nm(e))),CS=un("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Le(n.size)}`]]}})(({ownerState:e})=>D({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Nm(e))),RS=R.forwardRef(function(t,n){const r=R.useContext(wS),o=fc(r,t),i=wa({props:o,name:"MuiButton"}),{children:l,color:a="primary",component:u="button",className:s,disabled:c=!1,disableElevation:m=!1,disableFocusRipple:p=!1,endIcon:w,focusVisibleClassName:v,fullWidth:g=!1,size:C="medium",startIcon:h,type:d,variant:y="text"}=i,f=mt(i,xS),S=D({},i,{color:a,component:u,disabled:c,disableElevation:m,disableFocusRipple:p,fullWidth:g,size:C,type:d,variant:y}),P=SS(S),E=h&&re.jsx(ES,{className:P.startIcon,ownerState:S,children:h}),L=w&&re.jsx(CS,{className:P.endIcon,ownerState:S,children:w});return re.jsxs(kS,D({ownerState:S,className:at(r.className,P.root,s),component:u,disabled:c,focusRipple:!p,focusVisibleClassName:at(P.focusVisible,v),ref:n,type:d},f,{classes:P,children:[E,l,L]}))}),PS=RS,_S=gv([{path:"redirect/:name/:slug1/:slug2/:slug3",element:re.jsx(MS,{})}]);function TS(){return re.jsx(dv,{router:_S})}function MS(){const{name:t,slug1:n,slug2:r,slug3:o}=ev(),[i,l]=R.useState("inherit"),[a,u]=R.useState("Opening "+t+" on your mobile device "),[s,c]=R.useState(!1),[m,p]=R.useState(!1),[w,v]=R.useState(!1),g=t+"://"+n+"/"+r+"/"+o;function C(){return s?re.jsx(PS,{onClick:()=>window.open(g,"_blank"),size:"large",variant:"contained",children:"Open Link"}):re.jsx("view",{})}return R.useEffect(()=>{(t==="http"||t==="HTTP"||t==="https"||t==="HTTPS")&&(u("Simple redirect is not allowed to redirect HTTP links"),l("error"),p(!0)),!m&&w&&(setTimeout(()=>{window.open(g,"_blank")},2e3),setTimeout(()=>{l("warning"),u("Link redirection is taking longer than usual")},3e3),setTimeout(()=>{l("error"),u("Unable to open link automatically. Please open using the link below"),c(!0)},5e3)),v(!0)},[m,t,g,w,!0]),re.jsxs("view",{children:[re.jsx(Bx,{size:s?128:0,color:i}),re.jsxs("view",{style:{display:"flex",flexDirection:"row",justifyContent:"center"},children:[re.jsx("h5",{children:"URL Payload 1:"+n}),re.jsx("view",{style:{padding:16}}),re.jsx("h5",{children:"URL Payload 2:"+r})]}),re.jsx("h5",{children:"URL Payload 3:"+o}),re.jsx("h2",{style:{color:"white",textAlign:"center"},children:a}),re.jsx(C,{})]})}cu.createRoot(document.getElementById("root")).render(re.jsx(TS,{})); +`),wt.rippleVisible,tS,ps,({theme:e})=>e.transitions.easing.easeInOut,wt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,wt.child,wt.childLeaving,nS,ps,({theme:e})=>e.transitions.easing.easeInOut,wt.childPulsate,rS,({theme:e})=>e.transitions.easing.easeInOut),lS=R.forwardRef(function(t,n){const r=wa({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l}=r,a=mt(r,qx),[u,s]=R.useState([]),c=R.useRef(0),m=R.useRef(null);R.useEffect(()=>{m.current&&(m.current(),m.current=null)},[u]);const p=R.useRef(!1),w=R.useRef(0),v=R.useRef(null),g=R.useRef(null);R.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]);const C=R.useCallback(f=>{const{pulsate:S,rippleX:P,rippleY:E,rippleSize:z,cb:A}=f;s(O=>[...O,oe.jsx(iS,{classes:{ripple:at(i.ripple,wt.ripple),rippleVisible:at(i.rippleVisible,wt.rippleVisible),ripplePulsate:at(i.ripplePulsate,wt.ripplePulsate),child:at(i.child,wt.child),childLeaving:at(i.childLeaving,wt.childLeaving),childPulsate:at(i.childPulsate,wt.childPulsate)},timeout:ps,pulsate:S,rippleX:P,rippleY:E,rippleSize:z},c.current)]),c.current+=1,m.current=A},[i]),h=R.useCallback((f={},S={},P=()=>{})=>{const{pulsate:E=!1,center:z=o||S.pulsate,fakeElement:A=!1}=S;if((f==null?void 0:f.type)==="mousedown"&&p.current){p.current=!1;return}(f==null?void 0:f.type)==="touchstart"&&(p.current=!0);const O=A?null:g.current,H=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,ge,_e;if(z||f===void 0||f.clientX===0&&f.clientY===0||!f.clientX&&!f.touches)V=Math.round(H.width/2),ge=Math.round(H.height/2);else{const{clientX:Ee,clientY:de}=f.touches&&f.touches.length>0?f.touches[0]:f;V=Math.round(Ee-H.left),ge=Math.round(de-H.top)}if(z)_e=Math.sqrt((2*H.width**2+H.height**2)/3),_e%2===0&&(_e+=1);else{const Ee=Math.max(Math.abs((O?O.clientWidth:0)-V),V)*2+2,de=Math.max(Math.abs((O?O.clientHeight:0)-ge),ge)*2+2;_e=Math.sqrt(Ee**2+de**2)}f!=null&&f.touches?v.current===null&&(v.current=()=>{C({pulsate:E,rippleX:V,rippleY:ge,rippleSize:_e,cb:P})},w.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},eS)):C({pulsate:E,rippleX:V,rippleY:ge,rippleSize:_e,cb:P})},[o,C]),d=R.useCallback(()=>{h({},{pulsate:!0})},[h]),y=R.useCallback((f,S)=>{if(clearTimeout(w.current),(f==null?void 0:f.type)==="touchend"&&v.current){v.current(),v.current=null,w.current=setTimeout(()=>{y(f,S)});return}v.current=null,s(P=>P.length>0?P.slice(1):P),m.current=S},[]);return R.useImperativeHandle(n,()=>({pulsate:d,start:h,stop:y}),[d,h,y]),oe.jsx(oS,D({className:at(wt.root,i.root,l),ref:g},a,{children:oe.jsx(Xx,{component:null,exit:!0,children:u})}))}),aS=lS;function uS(e){return Zl("MuiButtonBase",e)}const sS=Jl("MuiButtonBase",["root","disabled","focusVisible"]),cS=sS,fS=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],dS=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=dc({root:["root",t&&"disabled",n&&"focusVisible"]},uS,o);return n&&r&&(l.root+=` ${r}`),l},pS=un("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hS=R.forwardRef(function(t,n){const r=wa({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:a,component:u="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:m=!1,focusRipple:p=!1,LinkComponent:w="a",onBlur:v,onClick:g,onContextMenu:C,onDragLeave:h,onFocus:d,onFocusVisible:y,onKeyDown:f,onKeyUp:S,onMouseDown:P,onMouseLeave:E,onMouseUp:z,onTouchEnd:A,onTouchMove:O,onTouchStart:H,tabIndex:V=0,TouchRippleProps:ge,touchRippleRef:_e,type:Ee}=r,de=mt(r,fS),Ue=R.useRef(null),M=R.useRef(null),I=ad(M,_e),{isFocusVisibleRef:j,onFocus:le,onBlur:ye,ref:sn}=Tv(),[Q,Je]=R.useState(!1);s&&Q&&Je(!1),R.useImperativeHandle(o,()=>({focusVisible:()=>{Je(!0),Ue.current.focus()}}),[]);const[qe,cn]=R.useState(!1);R.useEffect(()=>{cn(!0)},[]);const It=qe&&!c&&!s;R.useEffect(()=>{Q&&p&&!c&&qe&&M.current.pulsate()},[c,p,Q,qe]);function Pt(W,to,Pa=m){return ji(no=>(to&&to(no),!Pa&&M.current&&M.current[W](no),!0))}const ka=Pt("start",P),gi=Pt("stop",C),Ea=Pt("stop",h),Ca=Pt("stop",z),Ra=Pt("stop",W=>{Q&&W.preventDefault(),E&&E(W)}),Nn=Pt("start",H),yi=Pt("stop",A),Zr=Pt("stop",O),nr=Pt("stop",W=>{ye(W),j.current===!1&&Je(!1),v&&v(W)},!1),Jr=ji(W=>{Ue.current||(Ue.current=W.currentTarget),le(W),j.current===!0&&(Je(!0),y&&y(W)),d&&d(W)}),yt=()=>{const W=Ue.current;return u&&u!=="button"&&!(W.tagName==="A"&&W.href)},rr=R.useRef(!1),vi=ji(W=>{p&&!rr.current&&Q&&M.current&&W.key===" "&&(rr.current=!0,M.current.stop(W,()=>{M.current.start(W)})),W.target===W.currentTarget&&yt()&&W.key===" "&&W.preventDefault(),f&&f(W),W.target===W.currentTarget&&yt()&&W.key==="Enter"&&!s&&(W.preventDefault(),g&&g(W))}),wi=ji(W=>{p&&W.key===" "&&M.current&&Q&&!W.defaultPrevented&&(rr.current=!1,M.current.stop(W,()=>{M.current.pulsate(W)})),S&&S(W),g&&W.target===W.currentTarget&&yt()&&W.key===" "&&!W.defaultPrevented&&g(W)});let or=u;or==="button"&&(de.href||de.to)&&(or=w);const fn={};or==="button"?(fn.type=Ee===void 0?"button":Ee,fn.disabled=s):(!de.href&&!de.to&&(fn.role="button"),s&&(fn["aria-disabled"]=s));const ir=ad(n,sn,Ue),qr=D({},r,{centerRipple:i,component:u,disabled:s,disableRipple:c,disableTouchRipple:m,focusRipple:p,tabIndex:V,focusVisible:Q}),eo=dS(qr);return oe.jsxs(pS,D({as:or,className:at(eo.root,a),ownerState:qr,onBlur:nr,onClick:g,onContextMenu:gi,onFocus:Jr,onKeyDown:vi,onKeyUp:wi,onMouseDown:ka,onMouseLeave:Ra,onMouseUp:Ca,onDragLeave:Ea,onTouchEnd:yi,onTouchMove:Zr,onTouchStart:Nn,ref:ir,tabIndex:s?-1:V,type:Ee},fn,de,{children:[l,It?oe.jsx(aS,D({ref:I,center:i},ge)):null]}))}),mS=hS;function gS(e){return Zl("MuiButton",e)}const yS=Jl("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Bi=yS,vS=R.createContext({}),wS=vS,xS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],SS=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e,a={root:["root",i,`${i}${ze(t)}`,`size${ze(o)}`,`${i}Size${ze(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ze(o)}`],endIcon:["endIcon",`iconSize${ze(o)}`]},u=dc(a,gS,l);return D({},l,u)},Nm=e=>D({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),kS=un(mS,{shouldForwardProp:e=>$m(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ze(n.color)}`],t[`size${ze(n.size)}`],t[`${n.variant}Size${ze(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return D({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":D({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ui(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ui(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ui(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":D({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Bi.focusVisible}`]:D({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Bi.disabled}`]:D({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ui(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Bi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Bi.disabled}`]:{boxShadow:"none"}}),ES=un("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ze(n.size)}`]]}})(({ownerState:e})=>D({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Nm(e))),CS=un("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ze(n.size)}`]]}})(({ownerState:e})=>D({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Nm(e))),RS=R.forwardRef(function(t,n){const r=R.useContext(wS),o=fc(r,t),i=wa({props:o,name:"MuiButton"}),{children:l,color:a="primary",component:u="button",className:s,disabled:c=!1,disableElevation:m=!1,disableFocusRipple:p=!1,endIcon:w,focusVisibleClassName:v,fullWidth:g=!1,size:C="medium",startIcon:h,type:d,variant:y="text"}=i,f=mt(i,xS),S=D({},i,{color:a,component:u,disabled:c,disableElevation:m,disableFocusRipple:p,fullWidth:g,size:C,type:d,variant:y}),P=SS(S),E=h&&oe.jsx(ES,{className:P.startIcon,ownerState:S,children:h}),z=w&&oe.jsx(CS,{className:P.endIcon,ownerState:S,children:w});return oe.jsxs(kS,D({ownerState:S,className:at(r.className,P.root,s),component:u,disabled:c,focusRipple:!p,focusVisibleClassName:at(P.focusVisible,v),ref:n,type:d},f,{classes:P,children:[E,l,z]}))}),PS=RS,_S=gv([{path:"redirect/:name/:slug1/:slug2/:slug3",element:oe.jsx(MS,{})}]);function TS(){return oe.jsx(dv,{router:_S})}function MS(){const{name:t,slug1:n,slug2:r}=ev(),[o,i]=R.useState("inherit"),[l,a]=R.useState("Opening "+t+" on your mobile device "),[u,s]=R.useState(!1),[c,m]=R.useState(!1),[p,w]=R.useState(!1),v=t+"://"+n+"/"+r;function g(){return u?oe.jsx(PS,{onClick:()=>window.open(v,"_blank"),size:"large",variant:"contained",children:"Open Link"}):oe.jsx("view",{})}return R.useEffect(()=>{(t==="http"||t==="HTTP"||t==="https"||t==="HTTPS")&&(a("Simple redirect is not allowed to redirect HTTP links"),i("error"),m(!0)),!c&&p&&(setTimeout(()=>{window.open(v,"_blank")},2e3),setTimeout(()=>{i("warning"),a("Link redirection is taking longer than usual")},3e3),setTimeout(()=>{i("error"),a("Unable to open link automatically. Please open using the link below"),s(!0)},5e3)),w(!0)},[c,t,v,p,!0]),oe.jsxs("view",{children:[oe.jsx(Bx,{size:u?128:0,color:o}),oe.jsxs("view",{style:{display:"flex",flexDirection:"row",justifyContent:"center"},children:[oe.jsx("h5",{children:"URL Payload 1:"+n}),oe.jsx("view",{style:{padding:16}}),oe.jsx("h5",{children:"URL Payload 2:"+r})]}),oe.jsx("h2",{style:{color:"white",textAlign:"center"},children:l}),oe.jsx(g,{})]})}cu.createRoot(document.getElementById("root")).render(oe.jsx(TS,{})); diff --git a/index.html b/index.html index c4f971e..4193d8c 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +