function gc(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xc={exports:{}},Ni={},Sc={exports:{}},Q={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var fl=Symbol.for("react.element"),mp=Symbol.for("react.portal"),vp=Symbol.for("react.fragment"),yp=Symbol.for("react.strict_mode"),gp=Symbol.for("react.profiler"),wp=Symbol.for("react.provider"),xp=Symbol.for("react.context"),Sp=Symbol.for("react.forward_ref"),Ep=Symbol.for("react.suspense"),kp=Symbol.for("react.memo"),Cp=Symbol.for("react.lazy"),Iu=Symbol.iterator;function _p(e){return e===null||typeof e!="object"?null:(e=Iu&&e[Iu]||e["@@iterator"],typeof e=="function"?e:null)}var Ec={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kc=Object.assign,Cc={};function pr(e,t,n){this.props=e,this.context=t,this.refs=Cc,this.updater=n||Ec}pr.prototype.isReactComponent={};pr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _c(){}_c.prototype=pr.prototype;function Ca(e,t,n){this.props=e,this.context=t,this.refs=Cc,this.updater=n||Ec}var _a=Ca.prototype=new _c;_a.constructor=Ca;kc(_a,pr.prototype);_a.isPureReactComponent=!0;var Uu=Array.isArray,Pc=Object.prototype.hasOwnProperty,Pa={current:null},Rc={key:!0,ref:!0,__self:!0,__source:!0};function Lc(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Pc.call(t,r)&&!Rc.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1>>1,le=D[J];if(0>>1;Jl(ut,V))Iel(Ct,ut)?(D[J]=Ct,D[Ie]=V,J=Ie):(D[J]=ut,D[Re]=V,J=Re);else if(Iel(Ct,V))D[J]=Ct,D[Ie]=V,J=Ie;else break e}}return H}function l(D,H){var V=D.sortIndex-H.sortIndex;return V!==0?V:D.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],s=[],d=1,f=null,m=3,w=!1,E=!1,S=!1,N=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(D){for(var H=n(s);H!==null;){if(H.callback===null)r(s);else if(H.startTime<=D)r(s),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(s)}}function k(D){if(S=!1,v(D),!E)if(n(u)!==null)E=!0,At(L);else{var H=n(s);H!==null&&ve(k,H.startTime-D)}}function L(D,H){E=!1,S&&(S=!1,p(R),R=-1),w=!0;var V=m;try{for(v(H),f=n(u);f!==null&&(!(f.expirationTime>H)||D&&!ee());){var J=f.callback;if(typeof J=="function"){f.callback=null,m=f.priorityLevel;var le=J(f.expirationTime<=H);H=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(u)&&r(u),v(H)}else r(u);f=n(u)}if(f!==null)var yt=!0;else{var Re=n(s);Re!==null&&ve(k,Re.startTime-H),yt=!1}return yt}finally{f=null,m=V,w=!1}}var y=!1,T=null,R=-1,A=5,U=-1;function ee(){return!(e.unstable_now()-UD||125J?(D.sortIndex=V,t(s,D),n(u)===null&&D===n(s)&&(S?(p(R),R=-1):S=!0,ve(k,V-J))):(D.sortIndex=le,t(u,D),E||w||(E=!0,At(L))),D},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(D){var H=m;return function(){var V=m;m=H;try{return D.apply(this,arguments)}finally{m=V}}}})(zc);Mc.exports=zc;var Up=Mc.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ap=_,be=Up;function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),No=Object.prototype.hasOwnProperty,Bp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Bu={},$u={};function $p(e){return No.call($u,e)?!0:No.call(Bu,e)?!1:Bp.test(e)?$u[e]=!0:(Bu[e]=!0,!1)}function Hp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Vp(e,t,n,r){if(t===null||typeof t>"u"||Hp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function He(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Me[e]=new He(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Me[t]=new He(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Me[e]=new He(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Me[e]=new He(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Me[e]=new He(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Me[e]=new He(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Me[e]=new He(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Me[e]=new He(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Me[e]=new He(e,5,!1,e.toLowerCase(),null,!1,!1)});var La=/[\-:]([a-z])/g;function Na(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(La,Na);Me[t]=new He(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(La,Na);Me[t]=new He(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(La,Na);Me[t]=new He(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Me[e]=new He(e,1,!1,e.toLowerCase(),null,!1,!1)});Me.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Me[e]=new He(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ta(e,t,n,r){var l=Me.hasOwnProperty(t)?Me[t]:null;(l!==null?l.type!==0:r||!(2a||l[o]!==i[a]){var u=` `+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{eo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mr(e):""}function Wp(e){switch(e.tag){case 5:return Mr(e.type);case 16:return Mr("Lazy");case 13:return Mr("Suspense");case 19:return Mr("SuspenseList");case 0:case 2:case 15:return e=to(e.type,!1),e;case 11:return e=to(e.type.render,!1),e;case 1:return e=to(e.type,!0),e;default:return""}}function zo(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 Hn:return"Fragment";case $n:return"Portal";case To:return"Profiler";case Da:return"StrictMode";case Do:return"Suspense";case Mo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fc:return(e.displayName||"Context")+".Consumer";case Oc:return(e._context.displayName||"Context")+".Provider";case Ma:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case za:return t=e.displayName||null,t!==null?t:zo(e.type)||"Memo";case Wt:t=e._payload,e=e._init;try{return zo(e(t))}catch{}}return null}function Qp(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 zo(t);case 8:return t===Da?"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 on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kp(e){var t=Uc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _l(e){e._valueTracker||(e._valueTracker=Kp(e))}function Ac(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Uc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jo(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=on(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 Bc(e,t){t=t.checked,t!=null&&Ta(e,"checked",t,!1)}function Oo(e,t){Bc(e,t);var n=on(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")?Fo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fo(e,t.type,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wu(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 Fo(e,t,n){(t!=="number"||ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function bn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Pl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ir={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},Yp=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(e){Yp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ir[t]=Ir[e]})});function Wc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ir.hasOwnProperty(e)&&Ir[e]?(""+t).trim():t+"px"}function Qc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Wc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Xp=de({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 Ao(e,t){if(t){if(Xp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Bo(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 $o=null;function ja(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ho=null,er=null,tr=null;function Yu(e){if(e=hl(e)){if(typeof Ho!="function")throw Error(P(280));var t=e.stateNode;t&&(t=ji(t),Ho(e.stateNode,e.type,t))}}function Kc(e){er?tr?tr.push(e):tr=[e]:er=e}function Yc(){if(er){var e=er,t=tr;if(tr=er=null,Yu(e),t)for(e=0;e>>=0,e===0?32:31-(ih(e)/oh|0)|0}var Rl=64,Ll=4194304;function jr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ii(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=jr(a):(i&=o,i!==0&&(r=jr(i)))}else o=n&~l,o!==0?r=jr(o):i!==0&&(r=jr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function dl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function ch(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=Ar),ns=" ",rs=!1;function hf(e,t){switch(e){case"keyup":return Uh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function Bh(e,t){switch(e){case"compositionend":return mf(t);case"keypress":return t.which!==32?null:(rs=!0,ns);case"textInput":return e=t.data,e===ns&&rs?null:e;default:return null}}function $h(e,t){if(Vn)return e==="compositionend"||!Ha&&hf(e,t)?(e=df(),Ql=Aa=Xt=null,Vn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=as(n)}}function wf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xf(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ti(e.document)}return t}function Va(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Zh(e){var t=xf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wf(n.ownerDocument.documentElement,n)){if(r!==null&&Va(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=us(n,i);var o=us(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Wn=null,Xo=null,$r=null,Go=!1;function ss(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Go||Wn==null||Wn!==ti(r)||(r=Wn,"selectionStart"in r&&Va(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}),$r&&br($r,r)||($r=r,r=ui(Xo,"onSelect"),0Yn||(e.current=ta[Yn],ta[Yn]=null,Yn--)}function re(e,t){Yn++,ta[Yn]=e.current,e.current=t}var an={},Fe=sn(an),Ke=sn(!1),Pn=an;function or(e,t){var n=e.type.contextTypes;if(!n)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ye(e){return e=e.childContextTypes,e!=null}function ci(){oe(Ke),oe(Fe)}function vs(e,t,n){if(Fe.current!==an)throw Error(P(168));re(Fe,t),re(Ke,n)}function Nf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(P(108,Qp(e)||"Unknown",l));return de({},n,r)}function fi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,Pn=Fe.current,re(Fe,e),re(Ke,Ke.current),!0}function ys(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Nf(e,t,Pn),r.__reactInternalMemoizedMergedChildContext=e,oe(Ke),oe(Fe),re(Fe,e)):oe(Ke),re(Ke,n)}var Lt=null,Oi=!1,vo=!1;function Tf(e){Lt===null?Lt=[e]:Lt.push(e)}function um(e){Oi=!0,Tf(e)}function cn(){if(!vo&&Lt!==null){vo=!0;var e=0,t=b;try{var n=Lt;for(b=1;e>=o,l-=o,Nt=1<<32-ht(t)+l|n<R?(A=T,T=null):A=T.sibling;var U=m(p,T,v[R],k);if(U===null){T===null&&(T=A);break}e&&T&&U.alternate===null&&t(p,T),c=i(U,c,R),y===null?L=U:y.sibling=U,y=U,T=A}if(R===v.length)return n(p,T),ue&&vn(p,R),L;if(T===null){for(;RR?(A=T,T=null):A=T.sibling;var ee=m(p,T,U.value,k);if(ee===null){T===null&&(T=A);break}e&&T&&ee.alternate===null&&t(p,T),c=i(ee,c,R),y===null?L=ee:y.sibling=ee,y=ee,T=A}if(U.done)return n(p,T),ue&&vn(p,R),L;if(T===null){for(;!U.done;R++,U=v.next())U=f(p,U.value,k),U!==null&&(c=i(U,c,R),y===null?L=U:y.sibling=U,y=U);return ue&&vn(p,R),L}for(T=r(p,T);!U.done;R++,U=v.next())U=w(T,p,R,U.value,k),U!==null&&(e&&U.alternate!==null&&T.delete(U.key===null?R:U.key),c=i(U,c,R),y===null?L=U:y.sibling=U,y=U);return e&&T.forEach(function(se){return t(p,se)}),ue&&vn(p,R),L}function N(p,c,v,k){if(typeof v=="object"&&v!==null&&v.type===Hn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Cl:e:{for(var L=v.key,y=c;y!==null;){if(y.key===L){if(L=v.type,L===Hn){if(y.tag===7){n(p,y.sibling),c=l(y,v.props.children),c.return=p,p=c;break e}}else if(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Wt&&xs(L)===y.type){n(p,y.sibling),c=l(y,v.props),c.ref=Pr(p,y,v),c.return=p,p=c;break e}n(p,y);break}else t(p,y);y=y.sibling}v.type===Hn?(c=_n(v.props.children,p.mode,k,v.key),c.return=p,p=c):(k=bl(v.type,v.key,v.props,null,p.mode,k),k.ref=Pr(p,c,v),k.return=p,p=k)}return o(p);case $n:e:{for(y=v.key;c!==null;){if(c.key===y)if(c.tag===4&&c.stateNode.containerInfo===v.containerInfo&&c.stateNode.implementation===v.implementation){n(p,c.sibling),c=l(c,v.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=Co(v,p.mode,k),c.return=p,p=c}return o(p);case Wt:return y=v._init,N(p,c,y(v._payload),k)}if(zr(v))return E(p,c,v,k);if(Sr(v))return S(p,c,v,k);Ol(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,c!==null&&c.tag===6?(n(p,c.sibling),c=l(c,v),c.return=p,p=c):(n(p,c),c=ko(v,p.mode,k),c.return=p,p=c),o(p)):n(p,c)}return N}var ur=jf(!0),Of=jf(!1),hi=sn(null),mi=null,Zn=null,Ya=null;function Xa(){Ya=Zn=mi=null}function Ga(e){var t=hi.current;oe(hi),e._currentValue=t}function la(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rr(e,t){mi=e,Ya=Zn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qe=!0),e.firstContext=null)}function ot(e){var t=e._currentValue;if(Ya!==e)if(e={context:e,memoizedValue:t,next:null},Zn===null){if(mi===null)throw Error(P(308));Zn=e,mi.dependencies={lanes:0,firstContext:e}}else Zn=Zn.next=e;return t}var Sn=null;function Za(e){Sn===null?Sn=[e]:Sn.push(e)}function Ff(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Za(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ot(e,r)}function Ot(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qt=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function If(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Dt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ot(e,n)}return l=r.interleaved,l===null?(t.next=t,Za(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ot(e,n)}function Yl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fa(e,n)}}function Ss(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vi(e,t,n,r){var l=e.updateQueue;Qt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,s=u.next;u.next=null,o===null?i=s:o.next=s,o=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=s:a.next=s,d.lastBaseUpdate=u))}if(i!==null){var f=l.baseState;o=0,d=s=u=null,a=i;do{var m=a.lane,w=a.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var E=e,S=a;switch(m=t,w=n,S.tag){case 1:if(E=S.payload,typeof E=="function"){f=E.call(w,f,m);break e}f=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=S.payload,m=typeof E=="function"?E.call(w,f,m):E,m==null)break e;f=de({},f,m);break e;case 2:Qt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[a]:m.push(a))}else w={eventTime:w,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(s=d=w,u=f):d=d.next=w,o|=m;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;m=a,a=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(d===null&&(u=f),l.baseState=u,l.firstBaseUpdate=s,l.lastBaseUpdate=d,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Nn|=o,e.lanes=o,e.memoizedState=f}}function Es(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=go.transition;go.transition={};try{e(!1),t()}finally{b=n,go.transition=r}}function ed(){return at().memoizedState}function dm(e,t,n){var r=rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},td(e))nd(t,n);else if(n=Ff(e,t,n,r),n!==null){var l=Be();mt(n,e,r,l),rd(n,t,r)}}function pm(e,t,n){var r=rn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(td(e))nd(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,vt(a,o)){var u=t.interleaved;u===null?(l.next=l,Za(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Ff(e,t,l,r),n!==null&&(l=Be(),mt(n,e,r,l),rd(n,t,r))}}function td(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function nd(e,t){Hr=gi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fa(e,n)}}var wi={readContext:ot,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useInsertionEffect:ze,useLayoutEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useMutableSource:ze,useSyncExternalStore:ze,useId:ze,unstable_isNewReconciler:!1},hm={readContext:ot,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:Cs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gl(4194308,4,Gf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gl(4,2,e,t)},useMemo:function(e,t){var n=xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xt();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=dm.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:ks,useDebugValue:iu,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=ks(!1),t=e[0];return e=fm.bind(null,e[1]),xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,l=xt();if(ue){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),Pe===null)throw Error(P(349));Ln&30||$f(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Cs(Vf.bind(null,r,i,e),[e]),r.flags|=2048,al(9,Hf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xt(),t=Pe.identifierPrefix;if(ue){var n=Tt,r=Nt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=il++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[St]=t,e[nl]=r,pd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Bo(n,r),n){case"dialog":ie("cancel",e),ie("close",e),l=r;break;case"iframe":case"object":case"embed":ie("load",e),l=r;break;case"video":case"audio":for(l=0;lfr&&(t.flags|=128,r=!0,Rr(i,!1),t.lanes=4194304)}else{if(!r)if(e=yi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ue)return je(t),null}else 2*ye()-i.renderingStartTime>fr&&n!==1073741824&&(t.flags|=128,r=!0,Rr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ye(),t.sibling=null,n=ce.current,re(ce,r?n&1|2:n&1),t):(je(t),null);case 22:case 23:return fu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Em(e,t){switch(Qa(t),t.tag){case 1:return Ye(t.type)&&ci(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),oe(Ke),oe(Fe),eu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ba(t),null;case 13:if(oe(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ce),null;case 4:return sr(),null;case 10:return Ga(t.type._context),null;case 22:case 23:return fu(),null;case 24:return null;default:return null}}var Il=!1,Oe=!1,km=typeof WeakSet=="function"?WeakSet:Set,z=null;function Jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function pa(e,t,n){try{n()}catch(r){me(e,t,r)}}var Os=!1;function Cm(e,t){if(Zo=oi,e=xf(),Va(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,s=0,d=0,f=e,m=null;t:for(;;){for(var w;f!==n||l!==0&&f.nodeType!==3||(a=o+l),f!==i||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(w=f.firstChild)!==null;)m=f,f=w;for(;;){if(f===e)break t;if(m===n&&++s===l&&(a=o),m===i&&++d===r&&(u=o),(w=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=w}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jo={focusedElem:e,selectionRange:n},oi=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var S=E.memoizedProps,N=E.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?S:ct(t.type,S),N);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(k){me(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return E=Os,Os=!1,E}function Vr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&pa(t,n,i)}l=l.next}while(l!==r)}}function Ui(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ha(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 vd(e){var t=e.alternate;t!==null&&(e.alternate=null,vd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[nl],delete t[ea],delete t[om],delete t[am])),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 yd(e){return e.tag===5||e.tag===3||e.tag===4}function Fs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yd(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 ma(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=si));else if(r!==4&&(e=e.child,e!==null))for(ma(e,t,n),e=e.sibling;e!==null;)ma(e,t,n),e=e.sibling}function va(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(va(e,t,n),e=e.sibling;e!==null;)va(e,t,n),e=e.sibling}var Te=null,ft=!1;function Ht(e,t,n){for(n=n.child;n!==null;)gd(e,t,n),n=n.sibling}function gd(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Ti,n)}catch{}switch(n.tag){case 5:Oe||Jn(n,t);case 6:var r=Te,l=ft;Te=null,Ht(e,t,n),Te=r,ft=l,Te!==null&&(ft?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(ft?(e=Te,n=n.stateNode,e.nodeType===8?mo(e.parentNode,n):e.nodeType===1&&mo(e,n),Jr(e)):mo(Te,n.stateNode));break;case 4:r=Te,l=ft,Te=n.stateNode.containerInfo,ft=!0,Ht(e,t,n),Te=r,ft=l;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&pa(n,t,o),l=l.next}while(l!==r)}Ht(e,t,n);break;case 1:if(!Oe&&(Jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){me(n,t,a)}Ht(e,t,n);break;case 21:Ht(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,Ht(e,t,n),Oe=r):Ht(e,t,n);break;default:Ht(e,t,n)}}function Is(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new km),t.forEach(function(r){var l=zm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function st(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pm(r/1960))-r,10e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,Ei=0,G&6)throw Error(P(331));var l=G;for(G|=4,z=e.current;z!==null;){var i=z,o=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uye()-su?Cn(e,0):uu|=n),Xe(e,t)}function Pd(e,t){t===0&&(e.mode&1?(t=Ll,Ll<<=1,!(Ll&130023424)&&(Ll=4194304)):t=1);var n=Be();e=Ot(e,t),e!==null&&(dl(e,t,n),Xe(e,n))}function Mm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pd(e,n)}function zm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),Pd(e,n)}var Rd;Rd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,xm(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,ue&&t.flags&1048576&&Df(t,pi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zl(e,t),e=t.pendingProps;var l=or(t,Fe.current);rr(t,n),l=nu(null,t,r,e,l,n);var i=ru();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(i=!0,fi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ja(t),l.updater=Ii,t.stateNode=l,l._reactInternals=t,oa(t,r,e,n),t=sa(null,t,r,!0,i,n)):(t.tag=0,ue&&i&&Wa(t),Ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Om(r),e=ct(r,e),l){case 0:t=ua(null,t,r,e,n);break e;case 1:t=Ms(null,t,r,e,n);break e;case 11:t=Ts(null,t,r,e,n);break e;case 14:t=Ds(null,t,r,ct(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),ua(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),Ms(e,t,r,l,n);case 3:e:{if(cd(t),e===null)throw Error(P(387));r=t.pendingProps,i=t.memoizedState,l=i.element,If(e,t),vi(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=cr(Error(P(423)),t),t=zs(e,t,r,n,l);break e}else if(r!==l){l=cr(Error(P(424)),t),t=zs(e,t,r,n,l);break e}else for(Je=en(t.stateNode.containerInfo.firstChild),qe=t,ue=!0,pt=null,n=Of(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ar(),r===l){t=Ft(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return Uf(t),e===null&&ra(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,qo(r,l)?o=null:i!==null&&qo(r,i)&&(t.flags|=32),sd(e,t),Ae(e,t,o,n),t.child;case 6:return e===null&&ra(t),null;case 13:return fd(e,t,n);case 4:return qa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),Ts(e,t,r,l,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,re(hi,r._currentValue),r._currentValue=o,i!==null)if(vt(i.value,o)){if(i.children===l.children&&!Ke.current){t=Ft(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Dt(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var d=s.pending;d===null?u.next=u:(u.next=d.next,d.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),la(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(P(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),la(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,rr(t,n),l=ot(l),r=r(l),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,l=ct(r,t.pendingProps),l=ct(r.type,l),Ds(e,t,r,l,n);case 15:return ad(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ct(r,l),Zl(e,t),t.tag=1,Ye(r)?(e=!0,fi(t)):e=!1,rr(t,n),ld(t,r,l),oa(t,r,l,n),sa(null,t,r,!0,e,n);case 19:return dd(e,t,n);case 22:return ud(e,t,n)}throw Error(P(156,t.tag))};function Ld(e,t){return ef(e,t)}function jm(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 lt(e,t,n,r){return new jm(e,t,n,r)}function pu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Om(e){if(typeof e=="function")return pu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ma)return 11;if(e===za)return 14}return 2}function ln(e,t){var n=e.alternate;return n===null?(n=lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")pu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Hn:return _n(n.children,l,i,t);case Da:o=8,l|=8;break;case To:return e=lt(12,n,t,l|2),e.elementType=To,e.lanes=i,e;case Do:return e=lt(13,n,t,l),e.elementType=Do,e.lanes=i,e;case Mo:return e=lt(19,n,t,l),e.elementType=Mo,e.lanes=i,e;case Ic:return Bi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Oc:o=10;break e;case Fc:o=9;break e;case Ma:o=11;break e;case za:o=14;break e;case Wt:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=lt(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function _n(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function Bi(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Ic,e.lanes=n,e.stateNode={isHidden:!1},e}function ko(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function Co(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ro(0),this.expirationTimes=ro(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ro(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function hu(e,t,n,r,l,i,o,a,u){return e=new Fm(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ja(i),e}function Im(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Md)}catch(e){console.error(e)}}Md(),Dc.exports=et;var gu=Dc.exports;const Hm=wc(gu),Vm=gc({__proto__:null,default:Hm},[gu]);var zd,Qs=gu;zd=Qs.createRoot,Qs.hydrateRoot;/** * @remix-run/router v1.20.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function dr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Qm(){return Math.random().toString(36).substr(2,8)}function Ys(e,t){return{usr:e.state,key:e.key,idx:t}}function sl(e,t,n,r){return n===void 0&&(n=null),ae({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fn(t):t,{state:n,key:t&&t.key||r||Qm()})}function Dn(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 fn(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 Km(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,a=Se.Pop,u=null,s=d();s==null&&(s=0,o.replaceState(ae({},o.state,{idx:s}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=Se.Pop;let N=d(),p=N==null?null:N-s;s=N,u&&u({action:a,location:S.location,delta:p})}function m(N,p){a=Se.Push;let c=sl(S.location,N,p);s=d()+1;let v=Ys(c,s),k=S.createHref(c);try{o.pushState(v,"",k)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(k)}i&&u&&u({action:a,location:S.location,delta:1})}function w(N,p){a=Se.Replace;let c=sl(S.location,N,p);s=d();let v=Ys(c,s),k=S.createHref(c);o.replaceState(v,"",k),i&&u&&u({action:a,location:S.location,delta:0})}function E(N){let p=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof N=="string"?N:Dn(N);return c=c.replace(/ $/,"%20"),Y(p,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,p)}let S={get action(){return a},get location(){return e(l,o)},listen(N){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Ks,f),u=N,()=>{l.removeEventListener(Ks,f),u=null}},createHref(N){return t(l,N)},createURL:E,encodeLocation(N){let p=E(N);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:m,replace:w,go(N){return o.go(N)}};return S}var te;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(te||(te={}));const Ym=new Set(["lazy","caseSensitive","path","id","index","children"]);function Xm(e){return e.index===!0}function _i(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,i)=>{let o=[...n,String(i)],a=typeof l.id=="string"?l.id:o.join("-");if(Y(l.index!==!0||!l.children,"Cannot specify children on an index route"),Y(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Xm(l)){let u=ae({},l,t(l),{id:a});return r[a]=u,u}else{let u=ae({},l,t(l),{id:a,children:void 0});return r[a]=u,l.children&&(u.children=_i(l.children,t,o,r)),u}})}function gn(e,t,n){return n===void 0&&(n="/"),ei(e,t,n,!1)}function ei(e,t,n,r){let l=typeof t=="string"?fn(t):t,i=vr(l.pathname||"/",n);if(i==null)return null;let o=jd(e);Zm(o);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(Y(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=Mt([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(Y(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),jd(i.children,t,d,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:rv(s,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))l(i,o);else for(let u of Od(i.path))l(i,o,u)}),t}function Od(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Od(r.join("/")),a=[];return a.push(...o.map(u=>u===""?i:[i,u].join("/"))),l&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Jm=/^:[\w-]+$/,qm=3,bm=2,ev=1,tv=10,nv=-2,Xs=e=>e==="*";function rv(e,t){let n=e.split("/"),r=n.length;return n.some(Xs)&&(r+=nv),t&&(r+=bm),n.filter(l=>!Xs(l)).reduce((l,i)=>l+(Jm.test(i)?qm:i===""?ev:tv),r)}function lv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function iv(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,l={},i="/",o=[];for(let a=0;a{let{paramName:m,isOptional:w}=d;if(m==="*"){let S=a[f]||"";o=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const E=a[f];return w&&!E?s[m]=void 0:s[m]=(E||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:o,pattern:e}}function ov(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function av(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dr(!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 vr(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 uv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?fn(e):e;return{pathname:n?n.startsWith("/")?n:sv(n,t):t,search:fv(r),hash:dv(l)}}function sv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function _o(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 Fd(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wu(e,t){let n=Fd(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xu(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=fn(e):(l=ae({},e),Y(!l.pathname||!l.pathname.includes("?"),_o("?","pathname","search",l)),Y(!l.pathname||!l.pathname.includes("#"),_o("#","pathname","hash",l)),Y(!l.search||!l.search.includes("#"),_o("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;l.pathname=m.join("/")}a=f>=0?t[f]:"/"}let u=uv(l,a),s=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||d)&&(u.pathname+="/"),u}const Mt=e=>e.join("/").replace(/\/\/+/g,"/"),cv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Pi{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Qi(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Id=["post","put","patch","delete"],pv=new Set(Id),hv=["get",...Id],mv=new Set(hv),vv=new Set([301,302,303,307,308]),yv=new Set([307,308]),Po={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gv={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Nr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Su=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ud="remix-router-transitions";function xv(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;Y(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let h=e.detectErrorBoundary;l=g=>({hasErrorBoundary:h(g)})}else l=wv;let i={},o=_i(e.routes,l,void 0,i),a,u=e.basename||"/",s=e.dataStrategy||Cv,d=e.patchRoutesOnNavigation,f=ae({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,w=new Set,E=null,S=null,N=null,p=e.hydrationData!=null,c=gn(o,e.history.location,u),v=null;if(c==null&&!d){let h=Ve(404,{pathname:e.history.location.pathname}),{matches:g,route:x}=oc(o);c=g,v={[x.id]:h}}c&&!e.hydrationData&&wl(c,o,e.history.location.pathname).active&&(c=null);let k;if(c)if(c.some(h=>h.route.lazy))k=!1;else if(!c.some(h=>h.route.loader))k=!0;else if(f.v7_partialHydration){let h=e.hydrationData?e.hydrationData.loaderData:null,g=e.hydrationData?e.hydrationData.errors:null;if(g){let x=c.findIndex(C=>g[C.route.id]!==void 0);k=c.slice(0,x+1).every(C=>!Ea(C.route,h,g))}else k=c.every(x=>!Ea(x.route,h,g))}else k=e.hydrationData!=null;else if(k=!1,c=[],f.v7_partialHydration){let h=wl(null,o,e.history.location.pathname);h.active&&h.matches&&(c=h.matches)}let L,y={historyAction:e.history.action,location:e.history.location,matches:c,initialized:k,navigation:Po,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||v,fetchers:new Map,blockers:new Map},T=Se.Pop,R=!1,A,U=!1,ee=new Map,se=null,ge=!1,we=!1,Ut=[],At=new Set,ve=new Map,D=0,H=-1,V=new Map,J=new Set,le=new Map,yt=new Map,Re=new Set,ut=new Map,Ie=new Map,Ct;function qd(){if(m=e.history.listen(h=>{let{action:g,location:x,delta:C}=h;if(Ct){Ct(),Ct=void 0;return}dr(Ie.size===0||C!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let j=zu({currentLocation:y.location,nextLocation:x,historyAction:g});if(j&&C!=null){let B=new Promise(W=>{Ct=W});e.history.go(C*-1),gl(j,{state:"blocked",location:x,proceed(){gl(j,{state:"proceeding",proceed:void 0,reset:void 0,location:x}),B.then(()=>e.history.go(C))},reset(){let W=new Map(y.blockers);W.set(j,Nr),Ue({blockers:W})}});return}return pn(g,x)}),n){Uv(t,ee);let h=()=>Av(t,ee);t.addEventListener("pagehide",h),se=()=>t.removeEventListener("pagehide",h)}return y.initialized||pn(Se.Pop,y.location,{initialHydration:!0}),L}function bd(){m&&m(),se&&se(),w.clear(),A&&A.abort(),y.fetchers.forEach((h,g)=>yl(g)),y.blockers.forEach((h,g)=>Mu(g))}function ep(h){return w.add(h),()=>w.delete(h)}function Ue(h,g){g===void 0&&(g={}),y=ae({},y,h);let x=[],C=[];f.v7_fetcherPersist&&y.fetchers.forEach((j,B)=>{j.state==="idle"&&(Re.has(B)?C.push(B):x.push(B))}),[...w].forEach(j=>j(y,{deletedFetchers:C,viewTransitionOpts:g.viewTransitionOpts,flushSync:g.flushSync===!0})),f.v7_fetcherPersist&&(x.forEach(j=>y.fetchers.delete(j)),C.forEach(j=>yl(j)))}function On(h,g,x){var C,j;let{flushSync:B}=x===void 0?{}:x,W=y.actionData!=null&&y.navigation.formMethod!=null&&dt(y.navigation.formMethod)&&y.navigation.state==="loading"&&((C=h.state)==null?void 0:C._isRedirect)!==!0,F;g.actionData?Object.keys(g.actionData).length>0?F=g.actionData:F=null:W?F=y.actionData:F=null;let I=g.loaderData?lc(y.loaderData,g.loaderData,g.matches||[],g.errors):y.loaderData,O=y.blockers;O.size>0&&(O=new Map(O),O.forEach((X,Le)=>O.set(Le,Nr)));let $=R===!0||y.navigation.formMethod!=null&&dt(y.navigation.formMethod)&&((j=h.state)==null?void 0:j._isRedirect)!==!0;a&&(o=a,a=void 0),ge||T===Se.Pop||(T===Se.Push?e.history.push(h,h.state):T===Se.Replace&&e.history.replace(h,h.state));let K;if(T===Se.Pop){let X=ee.get(y.location.pathname);X&&X.has(h.pathname)?K={currentLocation:y.location,nextLocation:h}:ee.has(h.pathname)&&(K={currentLocation:h,nextLocation:y.location})}else if(U){let X=ee.get(y.location.pathname);X?X.add(h.pathname):(X=new Set([h.pathname]),ee.set(y.location.pathname,X)),K={currentLocation:y.location,nextLocation:h}}Ue(ae({},g,{actionData:F,loaderData:I,historyAction:T,location:h,initialized:!0,navigation:Po,revalidation:"idle",restoreScrollPosition:Ou(h,g.matches||y.matches),preventScrollReset:$,blockers:O}),{viewTransitionOpts:K,flushSync:B===!0}),T=Se.Pop,R=!1,U=!1,ge=!1,we=!1,Ut=[]}async function _u(h,g){if(typeof h=="number"){e.history.go(h);return}let x=Sa(y.location,y.matches,u,f.v7_prependBasename,h,f.v7_relativeSplatPath,g==null?void 0:g.fromRouteId,g==null?void 0:g.relative),{path:C,submission:j,error:B}=Zs(f.v7_normalizeFormMethod,!1,x,g),W=y.location,F=sl(y.location,C,g&&g.state);F=ae({},F,e.history.encodeLocation(F));let I=g&&g.replace!=null?g.replace:void 0,O=Se.Push;I===!0?O=Se.Replace:I===!1||j!=null&&dt(j.formMethod)&&j.formAction===y.location.pathname+y.location.search&&(O=Se.Replace);let $=g&&"preventScrollReset"in g?g.preventScrollReset===!0:void 0,K=(g&&g.flushSync)===!0,X=zu({currentLocation:W,nextLocation:F,historyAction:O});if(X){gl(X,{state:"blocked",location:F,proceed(){gl(X,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),_u(h,g)},reset(){let Le=new Map(y.blockers);Le.set(X,Nr),Ue({blockers:Le})}});return}return await pn(O,F,{submission:j,pendingError:B,preventScrollReset:$,replace:g&&g.replace,enableViewTransition:g&&g.viewTransition,flushSync:K})}function tp(){if(Xi(),Ue({revalidation:"loading"}),y.navigation.state!=="submitting"){if(y.navigation.state==="idle"){pn(y.historyAction,y.location,{startUninterruptedRevalidation:!0});return}pn(T||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation,enableViewTransition:U===!0})}}async function pn(h,g,x){A&&A.abort(),A=null,T=h,ge=(x&&x.startUninterruptedRevalidation)===!0,fp(y.location,y.matches),R=(x&&x.preventScrollReset)===!0,U=(x&&x.enableViewTransition)===!0;let C=a||o,j=x&&x.overrideNavigation,B=gn(C,g,u),W=(x&&x.flushSync)===!0,F=wl(B,C,g.pathname);if(F.active&&F.matches&&(B=F.matches),!B){let{error:ne,notFoundMatches:q,route:pe}=Gi(g.pathname);On(g,{matches:q,loaderData:{},errors:{[pe.id]:ne}},{flushSync:W});return}if(y.initialized&&!we&&Tv(y.location,g)&&!(x&&x.submission&&dt(x.submission.formMethod))){On(g,{matches:B},{flushSync:W});return}A=new AbortController;let I=Bn(e.history,g,A.signal,x&&x.submission),O;if(x&&x.pendingError)O=[wn(B).route.id,{type:te.error,error:x.pendingError}];else if(x&&x.submission&&dt(x.submission.formMethod)){let ne=await np(I,g,x.submission,B,F.active,{replace:x.replace,flushSync:W});if(ne.shortCircuited)return;if(ne.pendingActionResult){let[q,pe]=ne.pendingActionResult;if(Ze(pe)&&Qi(pe.error)&&pe.error.status===404){A=null,On(g,{matches:ne.matches,loaderData:{},errors:{[q]:pe.error}});return}}B=ne.matches||B,O=ne.pendingActionResult,j=Ro(g,x.submission),W=!1,F.active=!1,I=Bn(e.history,I.url,I.signal)}let{shortCircuited:$,matches:K,loaderData:X,errors:Le}=await rp(I,g,B,F.active,j,x&&x.submission,x&&x.fetcherSubmission,x&&x.replace,x&&x.initialHydration===!0,W,O);$||(A=null,On(g,ae({matches:K||B},ic(O),{loaderData:X,errors:Le})))}async function np(h,g,x,C,j,B){B===void 0&&(B={}),Xi();let W=Fv(g,x);if(Ue({navigation:W},{flushSync:B.flushSync===!0}),j){let O=await xl(C,g.pathname,h.signal);if(O.type==="aborted")return{shortCircuited:!0};if(O.type==="error"){let $=wn(O.partialMatches).route.id;return{matches:O.partialMatches,pendingActionResult:[$,{type:te.error,error:O.error}]}}else if(O.matches)C=O.matches;else{let{notFoundMatches:$,error:K,route:X}=Gi(g.pathname);return{matches:$,pendingActionResult:[X.id,{type:te.error,error:K}]}}}let F,I=Fr(C,g);if(!I.route.action&&!I.route.lazy)F={type:te.error,error:Ve(405,{method:h.method,pathname:g.pathname,routeId:I.route.id})};else if(F=(await yr("action",y,h,[I],C,null))[I.route.id],h.signal.aborted)return{shortCircuited:!0};if(kn(F)){let O;return B&&B.replace!=null?O=B.replace:O=tc(F.response.headers.get("Location"),new URL(h.url),u)===y.location.pathname+y.location.search,await hn(h,F,!0,{submission:x,replace:O}),{shortCircuited:!0}}if(Zt(F))throw Ve(400,{type:"defer-action"});if(Ze(F)){let O=wn(C,I.route.id);return(B&&B.replace)!==!0&&(T=Se.Push),{matches:C,pendingActionResult:[O.route.id,F]}}return{matches:C,pendingActionResult:[I.route.id,F]}}async function rp(h,g,x,C,j,B,W,F,I,O,$){let K=j||Ro(g,B),X=B||W||uc(K),Le=!ge&&(!f.v7_partialHydration||!I);if(C){if(Le){let he=Pu($);Ue(ae({navigation:K},he!==void 0?{actionData:he}:{}),{flushSync:O})}let Z=await xl(x,g.pathname,h.signal);if(Z.type==="aborted")return{shortCircuited:!0};if(Z.type==="error"){let he=wn(Z.partialMatches).route.id;return{matches:Z.partialMatches,loaderData:{},errors:{[he]:Z.error}}}else if(Z.matches)x=Z.matches;else{let{error:he,notFoundMatches:In,route:xr}=Gi(g.pathname);return{matches:In,loaderData:{},errors:{[xr.id]:he}}}}let ne=a||o,[q,pe]=qs(e.history,y,x,X,g,f.v7_partialHydration&&I===!0,f.v7_skipActionErrorRevalidation,we,Ut,At,Re,le,J,ne,u,$);if(Zi(Z=>!(x&&x.some(he=>he.route.id===Z))||q&&q.some(he=>he.route.id===Z)),H=++D,q.length===0&&pe.length===0){let Z=Tu();return On(g,ae({matches:x,loaderData:{},errors:$&&Ze($[1])?{[$[0]]:$[1].error}:null},ic($),Z?{fetchers:new Map(y.fetchers)}:{}),{flushSync:O}),{shortCircuited:!0}}if(Le){let Z={};if(!C){Z.navigation=K;let he=Pu($);he!==void 0&&(Z.actionData=he)}pe.length>0&&(Z.fetchers=lp(pe)),Ue(Z,{flushSync:O})}pe.forEach(Z=>{$t(Z.key),Z.controller&&ve.set(Z.key,Z.controller)});let Fn=()=>pe.forEach(Z=>$t(Z.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:gr,fetcherResults:Pt}=await Ru(y,x,q,pe,h);if(h.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),pe.forEach(Z=>ve.delete(Z.key));let gt=Bl(gr);if(gt)return await hn(h,gt.result,!0,{replace:F}),{shortCircuited:!0};if(gt=Bl(Pt),gt)return J.add(gt.key),await hn(h,gt.result,!0,{replace:F}),{shortCircuited:!0};let{loaderData:Ji,errors:wr}=rc(y,x,gr,$,pe,Pt,ut);ut.forEach((Z,he)=>{Z.subscribe(In=>{(In||Z.done)&&ut.delete(he)})}),f.v7_partialHydration&&I&&y.errors&&(wr=ae({},y.errors,wr));let mn=Tu(),Sl=Du(H),El=mn||Sl||pe.length>0;return ae({matches:x,loaderData:Ji,errors:wr},El?{fetchers:new Map(y.fetchers)}:{})}function Pu(h){if(h&&!Ze(h[1]))return{[h[0]]:h[1].data};if(y.actionData)return Object.keys(y.actionData).length===0?null:y.actionData}function lp(h){return h.forEach(g=>{let x=y.fetchers.get(g.key),C=Tr(void 0,x?x.data:void 0);y.fetchers.set(g.key,C)}),new Map(y.fetchers)}function ip(h,g,x,C){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$t(h);let j=(C&&C.flushSync)===!0,B=a||o,W=Sa(y.location,y.matches,u,f.v7_prependBasename,x,f.v7_relativeSplatPath,g,C==null?void 0:C.relative),F=gn(B,W,u),I=wl(F,B,W);if(I.active&&I.matches&&(F=I.matches),!F){_t(h,g,Ve(404,{pathname:W}),{flushSync:j});return}let{path:O,submission:$,error:K}=Zs(f.v7_normalizeFormMethod,!0,W,C);if(K){_t(h,g,K,{flushSync:j});return}let X=Fr(F,O),Le=(C&&C.preventScrollReset)===!0;if($&&dt($.formMethod)){op(h,g,O,X,F,I.active,j,Le,$);return}le.set(h,{routeId:g,path:O}),ap(h,g,O,X,F,I.active,j,Le,$)}async function op(h,g,x,C,j,B,W,F,I){Xi(),le.delete(h);function O(xe){if(!xe.route.action&&!xe.route.lazy){let Un=Ve(405,{method:I.formMethod,pathname:x,routeId:g});return _t(h,g,Un,{flushSync:W}),!0}return!1}if(!B&&O(C))return;let $=y.fetchers.get(h);Bt(h,Iv(I,$),{flushSync:W});let K=new AbortController,X=Bn(e.history,x,K.signal,I);if(B){let xe=await xl(j,x,X.signal);if(xe.type==="aborted")return;if(xe.type==="error"){_t(h,g,xe.error,{flushSync:W});return}else if(xe.matches){if(j=xe.matches,C=Fr(j,x),O(C))return}else{_t(h,g,Ve(404,{pathname:x}),{flushSync:W});return}}ve.set(h,K);let Le=D,q=(await yr("action",y,X,[C],j,h))[C.route.id];if(X.signal.aborted){ve.get(h)===K&&ve.delete(h);return}if(f.v7_fetcherPersist&&Re.has(h)){if(kn(q)||Ze(q)){Bt(h,Vt(void 0));return}}else{if(kn(q))if(ve.delete(h),H>Le){Bt(h,Vt(void 0));return}else return J.add(h),Bt(h,Tr(I)),hn(X,q,!1,{fetcherSubmission:I,preventScrollReset:F});if(Ze(q)){_t(h,g,q.error);return}}if(Zt(q))throw Ve(400,{type:"defer-action"});let pe=y.navigation.location||y.location,Fn=Bn(e.history,pe,K.signal),gr=a||o,Pt=y.navigation.state!=="idle"?gn(gr,y.navigation.location,u):y.matches;Y(Pt,"Didn't find any matches after fetcher action");let gt=++D;V.set(h,gt);let Ji=Tr(I,q.data);y.fetchers.set(h,Ji);let[wr,mn]=qs(e.history,y,Pt,I,pe,!1,f.v7_skipActionErrorRevalidation,we,Ut,At,Re,le,J,gr,u,[C.route.id,q]);mn.filter(xe=>xe.key!==h).forEach(xe=>{let Un=xe.key,Fu=y.fetchers.get(Un),hp=Tr(void 0,Fu?Fu.data:void 0);y.fetchers.set(Un,hp),$t(Un),xe.controller&&ve.set(Un,xe.controller)}),Ue({fetchers:new Map(y.fetchers)});let Sl=()=>mn.forEach(xe=>$t(xe.key));K.signal.addEventListener("abort",Sl);let{loaderResults:El,fetcherResults:Z}=await Ru(y,Pt,wr,mn,Fn);if(K.signal.aborted)return;K.signal.removeEventListener("abort",Sl),V.delete(h),ve.delete(h),mn.forEach(xe=>ve.delete(xe.key));let he=Bl(El);if(he)return hn(Fn,he.result,!1,{preventScrollReset:F});if(he=Bl(Z),he)return J.add(he.key),hn(Fn,he.result,!1,{preventScrollReset:F});let{loaderData:In,errors:xr}=rc(y,Pt,El,void 0,mn,Z,ut);if(y.fetchers.has(h)){let xe=Vt(q.data);y.fetchers.set(h,xe)}Du(gt),y.navigation.state==="loading"&>>H?(Y(T,"Expected pending action"),A&&A.abort(),On(y.navigation.location,{matches:Pt,loaderData:In,errors:xr,fetchers:new Map(y.fetchers)})):(Ue({errors:xr,loaderData:lc(y.loaderData,In,Pt,xr),fetchers:new Map(y.fetchers)}),we=!1)}async function ap(h,g,x,C,j,B,W,F,I){let O=y.fetchers.get(h);Bt(h,Tr(I,O?O.data:void 0),{flushSync:W});let $=new AbortController,K=Bn(e.history,x,$.signal);if(B){let q=await xl(j,x,K.signal);if(q.type==="aborted")return;if(q.type==="error"){_t(h,g,q.error,{flushSync:W});return}else if(q.matches)j=q.matches,C=Fr(j,x);else{_t(h,g,Ve(404,{pathname:x}),{flushSync:W});return}}ve.set(h,$);let X=D,ne=(await yr("loader",y,K,[C],j,h))[C.route.id];if(Zt(ne)&&(ne=await Eu(ne,K.signal,!0)||ne),ve.get(h)===$&&ve.delete(h),!K.signal.aborted){if(Re.has(h)){Bt(h,Vt(void 0));return}if(kn(ne))if(H>X){Bt(h,Vt(void 0));return}else{J.add(h),await hn(K,ne,!1,{preventScrollReset:F});return}if(Ze(ne)){_t(h,g,ne.error);return}Y(!Zt(ne),"Unhandled fetcher deferred data"),Bt(h,Vt(ne.data))}}async function hn(h,g,x,C){let{submission:j,fetcherSubmission:B,preventScrollReset:W,replace:F}=C===void 0?{}:C;g.response.headers.has("X-Remix-Revalidate")&&(we=!0);let I=g.response.headers.get("Location");Y(I,"Expected a Location header on the redirect Response"),I=tc(I,new URL(h.url),u);let O=sl(y.location,I,{_isRedirect:!0});if(n){let q=!1;if(g.response.headers.has("X-Remix-Reload-Document"))q=!0;else if(Su.test(I)){const pe=e.history.createURL(I);q=pe.origin!==t.location.origin||vr(pe.pathname,u)==null}if(q){F?t.location.replace(I):t.location.assign(I);return}}A=null;let $=F===!0||g.response.headers.has("X-Remix-Replace")?Se.Replace:Se.Push,{formMethod:K,formAction:X,formEncType:Le}=y.navigation;!j&&!B&&K&&X&&Le&&(j=uc(y.navigation));let ne=j||B;if(yv.has(g.response.status)&&ne&&dt(ne.formMethod))await pn($,O,{submission:ae({},ne,{formAction:I}),preventScrollReset:W||R,enableViewTransition:x?U:void 0});else{let q=Ro(O,j);await pn($,O,{overrideNavigation:q,fetcherSubmission:B,preventScrollReset:W||R,enableViewTransition:x?U:void 0})}}async function yr(h,g,x,C,j,B){let W,F={};try{W=await _v(s,h,g,x,C,j,B,i,l)}catch(I){return C.forEach(O=>{F[O.route.id]={type:te.error,error:I}}),F}for(let[I,O]of Object.entries(W))if(Dv(O)){let $=O.result;F[I]={type:te.redirect,response:Lv($,x,I,j,u,f.v7_relativeSplatPath)}}else F[I]=await Rv(O);return F}async function Ru(h,g,x,C,j){let B=h.matches,W=yr("loader",h,j,x,g,null),F=Promise.all(C.map(async $=>{if($.matches&&$.match&&$.controller){let X=(await yr("loader",h,Bn(e.history,$.path,$.controller.signal),[$.match],$.matches,$.key))[$.match.route.id];return{[$.key]:X}}else return Promise.resolve({[$.key]:{type:te.error,error:Ve(404,{pathname:$.path})}})})),I=await W,O=(await F).reduce(($,K)=>Object.assign($,K),{});return await Promise.all([jv(g,I,j.signal,B,h.loaderData),Ov(g,O,C)]),{loaderResults:I,fetcherResults:O}}function Xi(){we=!0,Ut.push(...Zi()),le.forEach((h,g)=>{ve.has(g)&&At.add(g),$t(g)})}function Bt(h,g,x){x===void 0&&(x={}),y.fetchers.set(h,g),Ue({fetchers:new Map(y.fetchers)},{flushSync:(x&&x.flushSync)===!0})}function _t(h,g,x,C){C===void 0&&(C={});let j=wn(y.matches,g);yl(h),Ue({errors:{[j.route.id]:x},fetchers:new Map(y.fetchers)},{flushSync:(C&&C.flushSync)===!0})}function Lu(h){return f.v7_fetcherPersist&&(yt.set(h,(yt.get(h)||0)+1),Re.has(h)&&Re.delete(h)),y.fetchers.get(h)||gv}function yl(h){let g=y.fetchers.get(h);ve.has(h)&&!(g&&g.state==="loading"&&V.has(h))&&$t(h),le.delete(h),V.delete(h),J.delete(h),Re.delete(h),At.delete(h),y.fetchers.delete(h)}function up(h){if(f.v7_fetcherPersist){let g=(yt.get(h)||0)-1;g<=0?(yt.delete(h),Re.add(h)):yt.set(h,g)}else yl(h);Ue({fetchers:new Map(y.fetchers)})}function $t(h){let g=ve.get(h);g&&(g.abort(),ve.delete(h))}function Nu(h){for(let g of h){let x=Lu(g),C=Vt(x.data);y.fetchers.set(g,C)}}function Tu(){let h=[],g=!1;for(let x of J){let C=y.fetchers.get(x);Y(C,"Expected fetcher: "+x),C.state==="loading"&&(J.delete(x),h.push(x),g=!0)}return Nu(h),g}function Du(h){let g=[];for(let[x,C]of V)if(C0}function sp(h,g){let x=y.blockers.get(h)||Nr;return Ie.get(h)!==g&&Ie.set(h,g),x}function Mu(h){y.blockers.delete(h),Ie.delete(h)}function gl(h,g){let x=y.blockers.get(h)||Nr;Y(x.state==="unblocked"&&g.state==="blocked"||x.state==="blocked"&&g.state==="blocked"||x.state==="blocked"&&g.state==="proceeding"||x.state==="blocked"&&g.state==="unblocked"||x.state==="proceeding"&&g.state==="unblocked","Invalid blocker state transition: "+x.state+" -> "+g.state);let C=new Map(y.blockers);C.set(h,g),Ue({blockers:C})}function zu(h){let{currentLocation:g,nextLocation:x,historyAction:C}=h;if(Ie.size===0)return;Ie.size>1&&dr(!1,"A router only supports one blocker at a time");let j=Array.from(Ie.entries()),[B,W]=j[j.length-1],F=y.blockers.get(B);if(!(F&&F.state==="proceeding")&&W({currentLocation:g,nextLocation:x,historyAction:C}))return B}function Gi(h){let g=Ve(404,{pathname:h}),x=a||o,{matches:C,route:j}=oc(x);return Zi(),{notFoundMatches:C,route:j,error:g}}function Zi(h){let g=[];return ut.forEach((x,C)=>{(!h||h(C))&&(x.cancel(),g.push(C),ut.delete(C))}),g}function cp(h,g,x){if(E=h,N=g,S=x||null,!p&&y.navigation===Po){p=!0;let C=Ou(y.location,y.matches);C!=null&&Ue({restoreScrollPosition:C})}return()=>{E=null,N=null,S=null}}function ju(h,g){return S&&S(h,g.map(C=>Gm(C,y.loaderData)))||h.key}function fp(h,g){if(E&&N){let x=ju(h,g);E[x]=N()}}function Ou(h,g){if(E){let x=ju(h,g),C=E[x];if(typeof C=="number")return C}return null}function wl(h,g,x){if(d)if(h){if(Object.keys(h[0].params).length>0)return{active:!0,matches:ei(g,x,u,!0)}}else return{active:!0,matches:ei(g,x,u,!0)||[]};return{active:!1,matches:null}}async function xl(h,g,x){if(!d)return{type:"success",matches:h};let C=h;for(;;){let j=a==null,B=a||o,W=i;try{await d({path:g,matches:C,patch:(O,$)=>{x.aborted||ec(O,$,B,W,l)}})}catch(O){return{type:"error",error:O,partialMatches:C}}finally{j&&!x.aborted&&(o=[...o])}if(x.aborted)return{type:"aborted"};let F=gn(B,g,u);if(F)return{type:"success",matches:F};let I=ei(B,g,u,!0);if(!I||C.length===I.length&&C.every((O,$)=>O.route.id===I[$].route.id))return{type:"success",matches:null};C=I}}function dp(h){i={},a=_i(h,l,void 0,i)}function pp(h,g){let x=a==null;ec(h,g,a||o,i,l),x&&(o=[...o],Ue({}))}return L={get basename(){return u},get future(){return f},get state(){return y},get routes(){return o},get window(){return t},initialize:qd,subscribe:ep,enableScrollRestoration:cp,navigate:_u,fetch:ip,revalidate:tp,createHref:h=>e.history.createHref(h),encodeLocation:h=>e.history.encodeLocation(h),getFetcher:Lu,deleteFetcher:up,dispose:bd,getBlocker:sp,deleteBlocker:Mu,patchRoutes:pp,_internalFetchControllers:ve,_internalActiveDeferreds:ut,_internalSetRoutes:dp},L}function Sv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Sa(e,t,n,r,l,i,o,a){let u,s;if(o){u=[];for(let f of t)if(u.push(f),f.route.id===o){s=f;break}}else u=t,s=t[t.length-1];let d=xu(l||".",wu(u,i),vr(e.pathname,n)||e.pathname,a==="path");if(l==null&&(d.search=e.search,d.hash=e.hash),(l==null||l===""||l===".")&&s){let f=ku(d.search);if(s.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&f){let m=new URLSearchParams(d.search),w=m.getAll("index");m.delete("index"),w.filter(S=>S).forEach(S=>m.append("index",S));let E=m.toString();d.search=E?"?"+E:""}}return r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:Mt([n,d.pathname])),Dn(d)}function Zs(e,t,n,r){if(!r||!Sv(r))return{path:n};if(r.formMethod&&!zv(r.formMethod))return{path:n,error:Ve(405,{method:r.formMethod})};let l=()=>({path:n,error:Ve(400,{type:"invalid-body"})}),i=r.formMethod||"get",o=e?i.toUpperCase():i.toLowerCase(),a=$d(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!dt(o))return l();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((w,E)=>{let[S,N]=E;return""+w+S+"="+N+` `},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!dt(o))return l();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return l()}}}Y(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=ka(r.formData),s=r.formData;else if(r.body instanceof FormData)u=ka(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=nc(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=nc(u)}catch{return l()}let d={formMethod:o,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(dt(d.formMethod))return{path:n,submission:d};let f=fn(n);return t&&f.search&&ku(f.search)&&u.append("index",""),f.search="?"+u,{path:Dn(f),submission:d}}function Js(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(l=>l.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function qs(e,t,n,r,l,i,o,a,u,s,d,f,m,w,E,S){let N=S?Ze(S[1])?S[1].error:S[1].data:void 0,p=e.createURL(t.location),c=e.createURL(l),v=n;i&&t.errors?v=Js(n,Object.keys(t.errors)[0],!0):S&&Ze(S[1])&&(v=Js(n,S[0]));let k=S?S[1].statusCode:void 0,L=o&&k&&k>=400,y=v.filter((R,A)=>{let{route:U}=R;if(U.lazy)return!0;if(U.loader==null)return!1;if(i)return Ea(U,t.loaderData,t.errors);if(Ev(t.loaderData,t.matches[A],R)||u.some(ge=>ge===R.route.id))return!0;let ee=t.matches[A],se=R;return bs(R,ae({currentUrl:p,currentParams:ee.params,nextUrl:c,nextParams:se.params},r,{actionResult:N,actionStatus:k,defaultShouldRevalidate:L?!1:a||p.pathname+p.search===c.pathname+c.search||p.search!==c.search||Ad(ee,se)}))}),T=[];return f.forEach((R,A)=>{if(i||!n.some(we=>we.route.id===R.routeId)||d.has(A))return;let U=gn(w,R.path,E);if(!U){T.push({key:A,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let ee=t.fetchers.get(A),se=Fr(U,R.path),ge=!1;m.has(A)?ge=!1:s.has(A)?(s.delete(A),ge=!0):ee&&ee.state!=="idle"&&ee.data===void 0?ge=a:ge=bs(se,ae({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:c,nextParams:n[n.length-1].params},r,{actionResult:N,actionStatus:k,defaultShouldRevalidate:L?!1:a})),ge&&T.push({key:A,routeId:R.routeId,path:R.path,matches:U,match:se,controller:new AbortController})}),[y,T]}function Ea(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,l=n!=null&&n[e.id]!==void 0;return!r&&l?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!l}function Ev(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Ad(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function bs(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function ec(e,t,n,r,l){var i;let o;if(e){let s=r[e];Y(s,"No route found to patch children into: routeId = "+e),s.children||(s.children=[]),o=s.children}else o=n;let a=t.filter(s=>!o.some(d=>Bd(s,d))),u=_i(a,l,[e||"_","patch",String(((i=o)==null?void 0:i.length)||"0")],r);o.push(...u)}function Bd(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var l;return(l=t.children)==null?void 0:l.some(i=>Bd(n,i))}):!1}async function kv(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];Y(l,"No route found in manifest");let i={};for(let o in r){let u=l[o]!==void 0&&o!=="hasErrorBoundary";dr(!u,'Route "'+l.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!Ym.has(o)&&(i[o]=r[o])}Object.assign(l,i),Object.assign(l,ae({},t(l),{lazy:void 0}))}async function Cv(e){let{matches:t}=e,n=t.filter(l=>l.shouldLoad);return(await Promise.all(n.map(l=>l.resolve()))).reduce((l,i,o)=>Object.assign(l,{[n[o].route.id]:i}),{})}async function _v(e,t,n,r,l,i,o,a,u,s){let d=i.map(w=>w.route.lazy?kv(w.route,u,a):void 0),f=i.map((w,E)=>{let S=d[E],N=l.some(c=>c.route.id===w.route.id);return ae({},w,{shouldLoad:N,resolve:async c=>(c&&r.method==="GET"&&(w.route.lazy||w.route.loader)&&(N=!0),N?Pv(t,r,w,S,c,s):Promise.resolve({type:te.data,result:void 0}))})}),m=await e({matches:f,request:r,params:i[0].params,fetcherKey:o,context:s});try{await Promise.all(d)}catch{}return m}async function Pv(e,t,n,r,l,i){let o,a,u=s=>{let d,f=new Promise((E,S)=>d=S);a=()=>d(),t.signal.addEventListener("abort",a);let m=E=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):s({request:t,params:n.params,context:i},...E!==void 0?[E]:[]),w=(async()=>{try{return{type:"data",result:await(l?l(S=>m(S)):m())}}catch(E){return{type:"error",result:E}}})();return Promise.race([w,f])};try{let s=n.route[e];if(r)if(s){let d,[f]=await Promise.all([u(s).catch(m=>{d=m}),r]);if(d!==void 0)throw d;o=f}else if(await r,s=n.route[e],s)o=await u(s);else if(e==="action"){let d=new URL(t.url),f=d.pathname+d.search;throw Ve(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:te.data,result:void 0};else if(s)o=await u(s);else{let d=new URL(t.url),f=d.pathname+d.search;throw Ve(404,{pathname:f})}Y(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(s){return{type:te.error,result:s}}finally{a&&t.signal.removeEventListener("abort",a)}return o}async function Rv(e){let{result:t,type:n}=e;if(Hd(t)){let s;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(d){return{type:te.error,error:d}}return n===te.error?{type:te.error,error:new Pi(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:te.data,data:s,statusCode:t.status,headers:t.headers}}if(n===te.error){if(ac(t)){var r;if(t.data instanceof Error){var l;return{type:te.error,error:t.data,statusCode:(l=t.init)==null?void 0:l.status}}t=new Pi(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:te.error,error:t,statusCode:Qi(t)?t.status:void 0}}if(Mv(t)){var i,o;return{type:te.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}if(ac(t)){var a,u;return{type:te.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:te.data,data:t}}function Lv(e,t,n,r,l,i){let o=e.headers.get("Location");if(Y(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Su.test(o)){let a=r.slice(0,r.findIndex(u=>u.route.id===n)+1);o=Sa(new URL(t.url),a,l,!0,o,i),e.headers.set("Location",o)}return e}function tc(e,t,n){if(Su.test(e)){let r=e,l=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=vr(l.pathname,n)!=null;if(l.origin===t.origin&&i)return l.pathname+l.search+l.hash}return e}function Bn(e,t,n,r){let l=e.createURL($d(t)).toString(),i={signal:n};if(r&&dt(r.formMethod)){let{formMethod:o,formEncType:a}=r;i.method=o.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=ka(r.formData):i.body=r.formData}return new Request(l,i)}function ka(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function nc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Nv(e,t,n,r,l){let i={},o=null,a,u=!1,s={},d=n&&Ze(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let m=f.route.id,w=t[m];if(Y(!kn(w),"Cannot handle redirect results in processLoaderData"),Ze(w)){let E=w.error;d!==void 0&&(E=d,d=void 0),o=o||{};{let S=wn(e,m);o[S.route.id]==null&&(o[S.route.id]=E)}i[m]=void 0,u||(u=!0,a=Qi(w.error)?w.error.status:500),w.headers&&(s[m]=w.headers)}else Zt(w)?(r.set(m,w.deferredData),i[m]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!u&&(a=w.statusCode),w.headers&&(s[m]=w.headers)):(i[m]=w.data,w.statusCode&&w.statusCode!==200&&!u&&(a=w.statusCode),w.headers&&(s[m]=w.headers))}),d!==void 0&&n&&(o={[n[0]]:d},i[n[0]]=void 0),{loaderData:i,errors:o,statusCode:a||200,loaderHeaders:s}}function rc(e,t,n,r,l,i,o){let{loaderData:a,errors:u}=Nv(t,n,r,o);return l.forEach(s=>{let{key:d,match:f,controller:m}=s,w=i[d];if(Y(w,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(Ze(w)){let E=wn(e.matches,f==null?void 0:f.route.id);u&&u[E.route.id]||(u=ae({},u,{[E.route.id]:w.error})),e.fetchers.delete(d)}else if(kn(w))Y(!1,"Unhandled fetcher revalidation redirect");else if(Zt(w))Y(!1,"Unhandled fetcher deferred data");else{let E=Vt(w.data);e.fetchers.set(d,E)}}),{loaderData:a,errors:u}}function lc(e,t,n,r){let l=ae({},t);for(let i of n){let o=i.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(l[o]=t[o]):e[o]!==void 0&&i.route.loader&&(l[o]=e[o]),r&&r.hasOwnProperty(o))break}return l}function ic(e){return e?Ze(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function wn(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function oc(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ve(e,t){let{pathname:n,routeId:r,method:l,type:i,message:o}=t===void 0?{}:t,a="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(a="Bad Request",l&&n&&r?u="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?u="defer() is not supported in actions":i==="invalid-body"&&(u="Unable to encode submission body")):e===403?(a="Forbidden",u='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",u='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",l&&n&&r?u="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(u='Invalid request method "'+l.toUpperCase()+'"')),new Pi(e||500,a,new Error(u),!0)}function Bl(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,l]=t[n];if(kn(l))return{key:r,result:l}}}function $d(e){let t=typeof e=="string"?fn(e):e;return Dn(ae({},t,{hash:""}))}function Tv(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Dv(e){return Hd(e.result)&&vv.has(e.result.status)}function Zt(e){return e.type===te.deferred}function Ze(e){return e.type===te.error}function kn(e){return(e&&e.type)===te.redirect}function ac(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Mv(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 Hd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function zv(e){return mv.has(e.toLowerCase())}function dt(e){return pv.has(e.toLowerCase())}async function jv(e,t,n,r,l){let i=Object.entries(t);for(let o=0;o(m==null?void 0:m.route.id)===a);if(!s)continue;let d=r.find(m=>m.route.id===s.route.id),f=d!=null&&!Ad(d,s)&&(l&&l[s.route.id])!==void 0;Zt(u)&&f&&await Eu(u,n,!1).then(m=>{m&&(t[a]=m)})}}async function Ov(e,t,n){for(let r=0;r(s==null?void 0:s.route.id)===i)&&Zt(a)&&(Y(o,"Expected an AbortController for revalidating fetcher deferred result"),await Eu(a,o.signal,!0).then(s=>{s&&(t[l]=s)}))}}async function Eu(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:te.data,data:e.deferredData.unwrappedData}}catch(l){return{type:te.error,error:l}}return{type:te.data,data:e.deferredData.data}}}function ku(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Fr(e,t){let n=typeof t=="string"?fn(t).search:t.search;if(e[e.length-1].route.index&&ku(n||""))return e[e.length-1];let r=Fd(e);return r[r.length-1]}function uc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:i,json:o}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Ro(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 Fv(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 Tr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Iv(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Vt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Uv(e,t){try{let n=e.sessionStorage.getItem(Ud);if(n){let r=JSON.parse(n);for(let[l,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(l,new Set(i||[]))}}catch{}}function Av(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Ud,JSON.stringify(n))}catch(r){dr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.27.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),_.useCallback(function(s,d){if(d===void 0&&(d={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let f=xu(s,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Mt([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}function Vv(){let{matches:e}=_.useContext(dn),t=e[e.length-1];return t?t.params:{}}function Kd(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=_.useContext(jn),{matches:l}=_.useContext(dn),{pathname:i}=Yi(),o=JSON.stringify(wu(l,r.v7_relativeSplatPath));return _.useMemo(()=>xu(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Wv(e,t,n,r){vl()||Y(!1);let{navigator:l}=_.useContext(jn),{matches:i}=_.useContext(dn),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let s=Yi(),d;d=s;let f=d.pathname||"/",m=f;if(u!=="/"){let S=u.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=gn(e,{pathname:m});return Gv(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:Mt([u,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Mt([u,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r)}function Qv(){let e=bv(),t=Qi(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:l},n):null,null)}const Kv=_.createElement(Qv,null);class Yv extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?_.createElement(dn.Provider,{value:this.props.routeContext},_.createElement(Wd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xv(e){let{routeContext:t,match:n,children:r}=e,l=_.useContext(Ki);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(dn.Provider,{value:t},r)}function Gv(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Y(!1),o=o.slice(0,Math.min(o.length,d+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((d,f,m)=>{let w,E=!1,S=null,N=null;n&&(w=a&&f.route.id?a[f.route.id]:void 0,S=f.route.errorElement||Kv,u&&(s<0&&m===0?(t0("route-fallback"),E=!0,N=null):s===m&&(E=!0,N=f.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,m+1)),c=()=>{let v;return w?v=S:E?v=N:f.route.Component?v=_.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,_.createElement(Xv,{match:f,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?_.createElement(Yv,{location:n.location,revalidation:n.revalidation,component:S,error:w,children:c(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):c()},null)}var Yd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yd||{}),Li=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Li||{});function Zv(e){let t=_.useContext(Ki);return t||Y(!1),t}function Jv(e){let t=_.useContext(Vd);return t||Y(!1),t}function qv(e){let t=_.useContext(dn);return t||Y(!1),t}function Xd(e){let t=qv(),n=t.matches[t.matches.length-1];return n.route.id||Y(!1),n.route.id}function bv(){var e;let t=_.useContext(Wd),n=Jv(Li.UseRouteError),r=Xd(Li.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function e0(){let{router:e}=Zv(Yd.UseNavigateStable),t=Xd(Li.UseNavigateStable),n=_.useRef(!1);return Qd(()=>{n.current=!0}),_.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Ri({fromRouteId:t},i)))},[e,t])}const sc={};function t0(e,t,n){sc[e]||(sc[e]=!0)}function n0(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Se.Pop,navigator:i,static:o=!1,future:a}=e;vl()&&Y(!1);let u=t.replace(/^\/*/,"/"),s=_.useMemo(()=>({basename:u,navigator:i,static:o,future:Ri({v7_relativeSplatPath:!1},a)}),[u,a,i,o]);typeof r=="string"&&(r=fn(r));let{pathname:d="/",search:f="",hash:m="",state:w=null,key:E="default"}=r,S=_.useMemo(()=>{let N=vr(d,u);return N==null?null:{location:{pathname:N,search:f,hash:m,state:w,key:E},navigationType:l}},[u,d,f,m,w,E,l]);return S==null?null:_.createElement(jn.Provider,{value:s},_.createElement(Cu.Provider,{children:n,value:S}))}new Promise(()=>{});function r0(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.27.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function i0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function o0(e,t){return e.button===0&&(!t||t==="_self")&&!i0(e)}const a0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],u0="6";try{window.__reactRouterVersion=u0}catch{}function s0(e,t){return xv({basename:void 0,future:cl({},void 0,{v7_prependBasename:!0}),history:Wm({window:void 0}),hydrationData:c0(),routes:e,mapRouteProperties:r0,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function c0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=cl({},t,{errors:f0(t.errors)})),t}function f0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,l]of t)if(l&&l.__type==="RouteErrorResponse")n[r]=new Pi(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let i=window[l.__subType];if(typeof i=="function")try{let o=new i(l.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let i=new Error(l.message);i.stack="",n[r]=i}}else n[r]=l;return n}const d0=_.createContext({isTransitioning:!1}),p0=_.createContext(new Map),h0="startTransition",cc=Dp[h0],m0="flushSync",fc=Vm[m0];function v0(e){cc?cc(e):e()}function Dr(e){fc?fc(e):e()}class y0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function g0(e){let{fallbackElement:t,router:n,future:r}=e,[l,i]=_.useState(n.state),[o,a]=_.useState(),[u,s]=_.useState({isTransitioning:!1}),[d,f]=_.useState(),[m,w]=_.useState(),[E,S]=_.useState(),N=_.useRef(new Map),{v7_startTransition:p}=r||{},c=_.useCallback(R=>{p?v0(R):R()},[p]),v=_.useCallback((R,A)=>{let{deletedFetchers:U,flushSync:ee,viewTransitionOpts:se}=A;U.forEach(we=>N.current.delete(we)),R.fetchers.forEach((we,Ut)=>{we.data!==void 0&&N.current.set(Ut,we.data)});let ge=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!se||ge){ee?Dr(()=>i(R)):c(()=>i(R));return}if(ee){Dr(()=>{m&&(d&&d.resolve(),m.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:se.currentLocation,nextLocation:se.nextLocation})});let we=n.window.document.startViewTransition(()=>{Dr(()=>i(R))});we.finished.finally(()=>{Dr(()=>{f(void 0),w(void 0),a(void 0),s({isTransitioning:!1})})}),Dr(()=>w(we));return}m?(d&&d.resolve(),m.skipTransition(),S({state:R,currentLocation:se.currentLocation,nextLocation:se.nextLocation})):(a(R),s({isTransitioning:!0,flushSync:!1,currentLocation:se.currentLocation,nextLocation:se.nextLocation}))},[n.window,m,d,N,c]);_.useLayoutEffect(()=>n.subscribe(v),[n,v]),_.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new y0)},[u]),_.useEffect(()=>{if(d&&o&&n.window){let R=o,A=d.promise,U=n.window.document.startViewTransition(async()=>{c(()=>i(R)),await A});U.finished.finally(()=>{f(void 0),w(void 0),a(void 0),s({isTransitioning:!1})}),w(U)}},[c,o,d,n.window]),_.useEffect(()=>{d&&o&&l.location.key===o.location.key&&d.resolve()},[d,m,l.location,o]),_.useEffect(()=>{!u.isTransitioning&&E&&(a(E.state),s({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),S(void 0))},[u.isTransitioning,E]),_.useEffect(()=>{},[]);let k=_.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,A,U)=>n.navigate(R,{state:A,preventScrollReset:U==null?void 0:U.preventScrollReset}),replace:(R,A,U)=>n.navigate(R,{replace:!0,state:A,preventScrollReset:U==null?void 0:U.preventScrollReset})}),[n]),L=n.basename||"/",y=_.useMemo(()=>({router:n,navigator:k,static:!1,basename:L}),[n,k,L]),T=_.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return _.createElement(_.Fragment,null,_.createElement(Ki.Provider,{value:y},_.createElement(Vd.Provider,{value:l},_.createElement(p0.Provider,{value:N.current},_.createElement(d0.Provider,{value:u},_.createElement(n0,{basename:L,location:l.location,navigationType:l.historyAction,navigator:k,future:T},l.initialized||n.future.v7_partialHydration?_.createElement(w0,{routes:n.routes,future:n.future,state:l}):t))))),null)}const w0=_.memo(x0);function x0(e){let{routes:t,future:n,state:r}=e;return Wv(t,void 0,r,n)}const S0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",E0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k0=_.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:a,target:u,to:s,preventScrollReset:d,viewTransition:f}=t,m=l0(t,a0),{basename:w}=_.useContext(jn),E,S=!1;if(typeof s=="string"&&E0.test(s)&&(E=s,S0))try{let v=new URL(window.location.href),k=s.startsWith("//")?new URL(v.protocol+s):new URL(s),L=vr(k.pathname,w);k.origin===v.origin&&L!=null?s=L+k.search+k.hash:S=!0}catch{}let N=Bv(s,{relative:l}),p=C0(s,{replace:o,state:a,target:u,preventScrollReset:d,relative:l,viewTransition:f});function c(v){r&&r(v),v.defaultPrevented||p(v)}return _.createElement("a",cl({},m,{href:E||N,onClick:S||i?r:c,ref:n,target:u}))});var dc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(dc||(dc={}));var pc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(pc||(pc={}));function C0(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,u=$v(),s=Yi(),d=Kd(e,{relative:o});return _.useCallback(f=>{if(o0(f,n)){f.preventDefault();let m=r!==void 0?r:Dn(s)===Dn(d);u(e,{replace:m,state:l,preventScrollReset:i,relative:o,viewTransition:a})}},[s,u,d,r,l,n,e,i,o,a])}const Gd=({children:e})=>M.jsx("div",{className:"container",children:e});var Ne=[];for(var Lo=0;Lo<256;++Lo)Ne.push((Lo+256).toString(16).slice(1));function _0(e,t=0){return(Ne[e[t+0]]+Ne[e[t+1]]+Ne[e[t+2]]+Ne[e[t+3]]+"-"+Ne[e[t+4]]+Ne[e[t+5]]+"-"+Ne[e[t+6]]+Ne[e[t+7]]+"-"+Ne[e[t+8]]+Ne[e[t+9]]+"-"+Ne[e[t+10]]+Ne[e[t+11]]+Ne[e[t+12]]+Ne[e[t+13]]+Ne[e[t+14]]+Ne[e[t+15]]).toLowerCase()}var $l,P0=new Uint8Array(16);function R0(){if(!$l&&($l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $l(P0)}var L0=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const hc={randomUUID:L0};function mc(e,t,n){if(hc.randomUUID&&!t&&!e)return hc.randomUUID();e=e||{};var r=e.random||(e.rng||R0)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,_0(r)}const Zd=({buttonLink:e,size:t="small",children:n,disabled:r})=>M.jsx(k0,{to:r?"/":e,className:`${t==="small"?"py-3":"py-5"} px-4 bg-fillButtonAccentDefault text-center rounded-xl w-full text-[18px] text-white font-medium leading-[150%] ${r?"opacity-70 pointer-events-auto cursor-default":"cursor-pointer"}`,children:n}),vc=e=>e.split(" ")[0].split("-").reverse().join("."),yc=e=>e.split(" ")[1],N0=({params:e})=>{const[t,n]=_.useState(1),[r,l]=_.useState(1),[i,o]=_.useState(1),[a,u]=_.useState(),[s,d]=_.useState([]),[f,m]=_.useState(!1),[w,E]=_.useState("old"),S=async()=>{try{const p=await fetch(`https://sms.turkmentv.gov.tm/api/shop/messages-by-code?page=${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({unique_code:e,sort_by_dt_descending:w!=="old"})});if(!p.ok)throw new Error(`HTTP error! Status: ${p.status}`);const c=await p.json();m(!1),u(c),l(c.data.lot_sms_messages.meta.last_page),o(c.data.lot_sms_messages.meta.total),d(v=>t===1?[...c.data.lot_sms_messages.data]:[...v,...c.data.lot_sms_messages.data])}catch(p){console.error(p.toString()),m(!0)}};_.useEffect(()=>{S()},[t,w]);const N=p=>{E(p),n(1)};return a!=null&&a.data&&!f?M.jsxs("div",{className:"flex items-center flex-col gap-[40px] ",children:[M.jsx("h1",{className:"text-[60px] leading-[100%] text-textBlack font-bold text-center max-w-[900px] w-full",children:a==null?void 0:a.data.seller_name}),M.jsxs("div",{className:"flex flex-col items-end w-full gap-[20px] max-w-[900px]",children:[M.jsxs("div",{className:"flex flex-col items-end w-full gap-[10px]",children:[M.jsxs("div",{className:"table_sort flex gap-[10px] items-center",children:[M.jsx("button",{className:`block px-2 py-1 rounded-md ${w==="old"?"text-fillLinkActive font-bold cursor-default bg-fillTableHead pointer-events-none":"text-fillLinkRest"} hover:text-fillLinkHover hover:bg-fillTableHead text-base font-bold cursor-pointer`,onClick:()=>N("old"),children:"Oldest"}),M.jsx("button",{className:`block px-2 py-1 rounded-md ${w==="new"?"text-fillLinkActive font-bold cursor-default bg-fillTableHead pointer-events-none":"text-fillLinkRest"} hover:text-fillLinkHover hover:bg-fillTableHead text-base font-bold cursor-pointer`,onClick:()=>N("new"),children:"Newest"})]}),M.jsxs("div",{className:"table_body flex flex-col w-full rounded-[25px] overflow-hidden",children:[M.jsxs("div",{className:"table_head flex w-full justify-between bg-fillTableHead border border-b rounded-t-[25px] border-fillTableStrokeTableHead",children:[M.jsx("span",{className:"block text-textBlack py-[20px] px-[24px] w-[80px] text-base leading-[125%] font-semibold",children:"№"}),M.jsx("span",{className:"block text-textBlack py-[20px] px-[24px] w-[200px] text-base leading-[125%] font-semibold",children:"Telefon belgisi"}),M.jsx("span",{className:"block text-textBlack py-[20px] px-[24px] w-[230px] text-base leading-[125%] font-semibold",children:"Kod"}),M.jsx("span",{className:"block text-textBlack py-[20px] px-[24px] w-[180px] text-base leading-[125%] font-semibold",children:"Wagty"})]}),M.jsx("div",{className:"table_row_body flex flex-col w-full rounded-b-[25px]",children:s.map((p,c)=>w==="old"?M.jsxs("div",{className:`table_row flex w-full justify-between ${c%2===0?"bg-fillTableRow2":"bg-fillTableRow"} border border-b border-fillTableStrokeTableRow`,children:[M.jsx("span",{className:"block text-textDarkt py-[20px] px-[24px] w-[80px] text-base leading-[125%] font-normal",children:c+1}),M.jsx("span",{className:"block text-textDarkt py-[20px] px-[24px] w-[200px] text-base leading-[125%] font-normal",children:p.client}),M.jsx("span",{className:"block text-textDarkt py-[20px] px-[24px] w-[230px] text-base leading-[125%] font-normal",children:p.msg.toString()}),M.jsxs("div",{className:"flex flex-col py-[20px] px-[24px] w-[180px] leading-[125%] font-normal",children:[M.jsx("span",{className:"text-textDarkt text-base",children:vc(p.dt)}),M.jsx("span",{className:"text-textLight text-sm",children:yc(p.dt)})]})]},mc()):M.jsxs("div",{className:`table_row flex w-full justify-between ${c%2===0?"bg-fillTableRow2":"bg-fillTableRow"} border border-b border-fillTableStrokeTableRow`,children:[M.jsx("span",{className:"block text-textDarkt py-[20px] px-[24px] w-[80px] text-base leading-[125%] font-normal",children:i-c}),M.jsx("span",{className:"block text-textDarkt py-[20px] px-[24px] w-[200px] text-base leading-[125%] font-normal",children:p.client}),M.jsx("span",{className:"block text-textDarkt py-[20px] px-[24px] w-[230px] text-base leading-[125%] font-normal",children:p.msg}),M.jsxs("div",{className:"flex flex-col py-[20px] px-[24px] w-[180px] leading-[125%] font-normal",children:[M.jsx("span",{className:"text-textDarkt text-base",children:vc(p.dt)}),M.jsx("span",{className:"text-textLight text-sm",children:yc(p.dt)})]})]},mc()))})]})]}),t!==r?M.jsx("button",{className:"p-[20px] w-full text-white text-[18px] text-medium leading-[125%] bg-fillButtonAccentDefault rounded-[25px]",onClick:()=>n(p=>p+1),children:"Ýenede goş"}):null]})]}):f?M.jsx("div",{className:"h-full flex items-center justify-center text-2xl font-semibold text-textDarkt",children:M.jsxs("div",{className:"gap-5 flex flex-col w-[200px] items-center",children:[M.jsx("p",{children:"Kod nädogry"}),M.jsx(Zd,{size:"small",buttonLink:"/",children:"Yza"})]})}):M.jsx("div",{className:"h-full w-full flex items-center justify-center text-2xl font-semibold text-textDarkt",children:"Loading..."})},T0=_.createContext({}),Jd=({children:e})=>{const[t,n]=_.useState(),r=_.useMemo(()=>({lotNumber:t,setLotNumber:n}),[t,n]);return M.jsx(T0.Provider,{value:{LotNumberContext:r},children:e})},D0=()=>{let{lot_number:e}=Vv();return M.jsx("main",{className:"my-[100px]",children:M.jsx(Gd,{children:M.jsx(Jd,{children:M.jsx(N0,{params:e})})})})},M0=({id:e,placeholder:t,type:n,required:r,label:l})=>{const[i,o]=_.useState(!1);return M.jsxs("div",{className:"auth-input relative w-full flex flex-col gap-1",children:[l?M.jsx("label",{className:"leading-[150%] text-base font-semibold",htmlFor:e,children:l}):null,M.jsxs("div",{className:"w-full relative",children:[M.jsx("input",{type:n==="password"&&i?"text":n,required:r,name:e,id:e,placeholder:t,className:"text-[#000000] font-medium text-base bg-[#E6E6FA] rounded-[12px] px-[16px] py-[12px] w-full outline-none"}),n==="password"?M.jsxs(M.Fragment,{children:[M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"absolute right-5 top-[50%] -translate-y-[50%] transition-all opacity-100 cursor-pointer",style:i?{opacity:0,pointerEvents:"none"}:{opacity:1,pointerEvents:"all"},onClick:()=>o(!i),children:M.jsx("path",{d:"M12 17.5C8.2 17.5 4.8 15.4 3.2 12H1C2.7 16.4 7 19.5 12 19.5C17 19.5 21.3 16.4 23 12H20.8C19.2 15.4 15.8 17.5 12 17.5Z",fill:"#636370"})}),M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"absolute right-5 top-[50%] -translate-y-[50%] transition-all opacity-100 cursor-pointer",style:i?{opacity:1,pointerEvents:"all"}:{opacity:0,pointerEvents:"none"},onClick:()=>o(!i),children:M.jsx("path",{d:"M12 9C12.7956 9 13.5587 9.31607 14.1213 9.87868C14.6839 10.4413 15 11.2044 15 12C15 12.7956 14.6839 13.5587 14.1213 14.1213C13.5587 14.6839 12.7956 15 12 15C11.2044 15 10.4413 14.6839 9.87868 14.1213C9.31607 13.5587 9 12.7956 9 12C9 11.2044 9.31607 10.4413 9.87868 9.87868C10.4413 9.31607 11.2044 9 12 9ZM12 4.5C17 4.5 21.27 7.61 23 12C21.27 16.39 17 19.5 12 19.5C7 19.5 2.73 16.39 1 12C2.73 7.61 7 4.5 12 4.5ZM3.18 12C3.98825 13.6503 5.24331 15.0407 6.80248 16.0133C8.36165 16.9858 10.1624 17.5013 12 17.5013C13.8376 17.5013 15.6383 16.9858 17.1975 16.0133C18.7567 15.0407 20.0117 13.6503 20.82 12C20.0117 10.3497 18.7567 8.95925 17.1975 7.98675C15.6383 7.01424 13.8376 6.49868 12 6.49868C10.1624 6.49868 8.36165 7.01424 6.80248 7.98675C5.24331 8.95925 3.98825 10.3497 3.18 12Z",fill:"#636370"})})]}):null]})]})},z0=({label:e,password:t=!1,login:n=!0})=>{const[r,l]=_.useState("");return M.jsxs("form",{onSubmit:i=>i.preventDefault(),className:"p-[40px] flex flex-col gap-[40px] bg-fillLightBgLightContr rounded-[25px]",children:[M.jsx("h1",{className:"text-[40px] font-semibold leading-[100%]",children:e}),M.jsxs("div",{className:"w-[442px] flex flex-col gap-[30px]",children:[M.jsxs("div",{className:"flex flex-col w-full gap-[20px]",children:[n?M.jsx("input",{required:!0,name:"login",id:"Введите свой логин",placeholder:"kod",type:"text",value:r,onChange:i=>l(i.target.value),className:"text-[#000000] font-medium text-base bg-[#E6E6FA] rounded-[12px] px-[16px] py-[12px] w-full outline-none"}):null,t?M.jsx(M0,{label:"Пароль",id:"password",placeholder:"Введите свой пароль",type:"password"}):null]}),M.jsx(Zd,{buttonLink:`/lot/${r}`,size:"small",disabled:r.length!=6,children:"Giriş"})]})]})};function j0(){return M.jsx("main",{className:"min-h-screen py-6 flex items-center justify-center",children:M.jsx(Gd,{children:M.jsx("div",{className:"flex justify-center items-center",children:M.jsx(Jd,{children:M.jsx(z0,{label:"Koduňyzy giriziň"})})})})})}const O0=s0([{path:"/",children:[{path:"",element:M.jsx(j0,{})},{path:"lot/:lot_number",element:M.jsx(D0,{}),errorElement:M.jsx("p",{children:"ERROR"})}]}]);zd(document.getElementById("root")).render(M.jsx(_.StrictMode,{children:M.jsx(g0,{router:O0})}));