diff --git a/.gitignore b/.gitignore index bc9eb10..bcaa6d4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ .venv/ __pycache__/ *.mp4 +!clipcraft-web/e2e/fixtures/sample.mp4 clip_search/clips/ diff --git a/clipcraft-web/dist/assets/index-DOoTTw61.js b/clipcraft-web/dist/assets/index-DOoTTw61.js new file mode 100644 index 0000000..8fd39f5 --- /dev/null +++ b/clipcraft-web/dist/assets/index-DOoTTw61.js @@ -0,0 +1,28 @@ +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function s(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(l){if(l.ep)return;l.ep=!0;const c=s(l);fetch(l.href,c)}})();function Hy(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ql={exports:{}},As={},Jl={exports:{}},be={};var Lp;function Ky(){if(Lp)return be;Lp=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function C(R,V,ye){this.props=R,this.context=V,this.refs=E,this.updater=ye||k}C.prototype.isReactComponent={},C.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,V,"setState")},C.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function P(){}P.prototype=C.prototype;function M(R,V,ye){this.props=R,this.context=V,this.refs=E,this.updater=ye||k}var A=M.prototype=new P;A.constructor=M,S(A,C.prototype),A.isPureReactComponent=!0;var F=Array.isArray,I=Object.prototype.hasOwnProperty,H={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function B(R,V,ye){var W,le={},he=null,je=null;if(V!=null)for(W in V.ref!==void 0&&(je=V.ref),V.key!==void 0&&(he=""+V.key),V)I.call(V,W)&&!G.hasOwnProperty(W)&&(le[W]=V[W]);var we=arguments.length-2;if(we===1)le.children=ye;else if(1>>1,V=U[R];if(0>>1;Rl(le,Q))hel(je,le)?(U[R]=je,U[he]=Q,R=he):(U[R]=le,U[W]=Q,R=W);else if(hel(je,Q))U[R]=je,U[he]=Q,R=he;else break e}}return q}function l(U,q){var Q=U.sortIndex-q.sortIndex;return Q!==0?Q:U.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var m=[],x=[],g=1,y=null,w=3,k=!1,S=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(U){for(var q=s(x);q!==null;){if(q.callback===null)o(x);else if(q.startTime<=U)o(x),q.sortIndex=q.expirationTime,r(m,q);else break;q=s(x)}}function F(U){if(E=!1,A(U),!S)if(s(m)!==null)S=!0,ge(I);else{var q=s(x);q!==null&&ke(F,q.startTime-U)}}function I(U,q){S=!1,E&&(E=!1,P(B),B=-1),k=!0;var Q=w;try{for(A(q),y=s(m);y!==null&&(!(y.expirationTime>q)||U&&!X());){var R=y.callback;if(typeof R=="function"){y.callback=null,w=y.priorityLevel;var V=R(y.expirationTime<=q);q=t.unstable_now(),typeof V=="function"?y.callback=V:y===s(m)&&o(m),A(q)}else o(m);y=s(m)}if(y!==null)var ye=!0;else{var W=s(x);W!==null&&ke(F,W.startTime-q),ye=!1}return ye}finally{y=null,w=Q,k=!1}}var H=!1,G=null,B=-1,Z=5,Y=-1;function X(){return!(t.unstable_now()-YU||125R?(U.sortIndex=Q,r(x,U),s(m)===null&&U===s(x)&&(E?(P(B),B=-1):E=!0,ke(F,Q-R))):(U.sortIndex=V,r(m,U),S||k||(S=!0,ge(I))),U},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(U){var q=w;return function(){var Q=w;w=q;try{return U.apply(this,arguments)}finally{w=Q}}}})(eu)),eu}var Vp;function Jy(){return Vp||(Vp=1,ql.exports=Qy()),ql.exports}var zp;function Zy(){if(zp)return xt;zp=1;var t=Xu(),r=Jy();function s(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,x=/^[: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]*$/,g={},y={};function w(e){return m.call(y,e)?!0:m.call(g,e)?!1:x.test(e)?y[e]=!0:(g[e]=!0,!1)}function k(e,n,i,a){if(i!==null&&i.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function S(e,n,i,a){if(n===null||typeof n>"u"||k(e,n,i,a))return!0;if(a)return!1;if(i!==null)switch(i.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function E(e,n,i,a,d,p,v){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=d,this.mustUseProperty=i,this.propertyName=e,this.type=n,this.sanitizeURL=p,this.removeEmptyString=v}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];C[n]=new E(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new E(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){C[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function M(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 n=e.replace(P,M);C[n]=new E(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(P,M);C[n]=new E(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(P,M);C[n]=new E(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function A(e,n,i,a){var d=C.hasOwnProperty(n)?C[n]:null;(d!==null?d.type!==0:a||!(2j||d[v]!==p[j]){var N=` +`+d[v].replace(" at new "," at ");return e.displayName&&N.includes("")&&(N=N.replace("",e.displayName)),N}while(1<=v&&0<=j);break}}}finally{ye=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?V(e):""}function le(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1),e;case 11:return e=W(e.type.render,!1),e;case 1:return e=W(e.type,!0),e;default:return""}}function he(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 G:return"Fragment";case H:return"Portal";case Z:return"Profiler";case B:return"StrictMode";case ce:return"Suspense";case oe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X:return(e.displayName||"Context")+".Consumer";case Y:return(e._context.displayName||"Context")+".Provider";case ie:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ve:return n=e.displayName||null,n!==null?n:he(e.type)||"Memo";case ge:n=e._payload,e=e._init;try{return he(e(n))}catch{}}return null}function je(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(n);case 8:return n===B?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function we(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ne(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function tt(e){var n=Ne(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),a=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,p=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(v){a=""+v,p.call(this,v)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(v){a=""+v},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ti(e){e._valueTracker||(e._valueTracker=tt(e))}function Vc(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),a="";return e&&(a=Ne(e)?e.checked?"true":"false":e.value),e=a,e!==i?(n.setValue(e),!0):!1}function ni(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 ra(e,n){var i=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function zc(e,n){var i=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;i=we(n.value!=null?n.value:i),e._wrapperState={initialChecked:a,initialValue:i,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Oc(e,n){n=n.checked,n!=null&&A(e,"checked",n,!1)}function sa(e,n){Oc(e,n);var i=we(n.value),a=n.type;if(i!=null)a==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?ia(e,n.type,i):n.hasOwnProperty("defaultValue")&&ia(e,n.type,we(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Bc(e,n,i){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,i||n===e.value||(e.value=n),e.defaultValue=n}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function ia(e,n,i){(n!=="number"||ni(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Gr=Array.isArray;function lr(e,n,i,a){if(e=e.options,n){n={};for(var d=0;d"+n.valueOf().toString()+"",n=ri.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Yr(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var Xr={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},Xg=["Webkit","ms","Moz","O"];Object.keys(Xr).forEach(function(e){Xg.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Xr[n]=Xr[e]})});function Gc(e,n,i){return n==null||typeof n=="boolean"||n===""?"":i||typeof n!="number"||n===0||Xr.hasOwnProperty(e)&&Xr[e]?(""+n).trim():n+"px"}function Yc(e,n){e=e.style;for(var i in n)if(n.hasOwnProperty(i)){var a=i.indexOf("--")===0,d=Gc(i,n[i],a);i==="float"&&(i="cssFloat"),a?e.setProperty(i,d):e[i]=d}}var Qg=Q({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 la(e,n){if(n){if(Qg[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(s(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(s(61))}if(n.style!=null&&typeof n.style!="object")throw Error(s(62))}}function ua(e,n){if(e.indexOf("-")===-1)return typeof n.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 ca=null;function da(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fa=null,ur=null,cr=null;function Xc(e){if(e=xs(e)){if(typeof fa!="function")throw Error(s(280));var n=e.stateNode;n&&(n=Ei(n),fa(e.stateNode,e.type,n))}}function Qc(e){ur?cr?cr.push(e):cr=[e]:ur=e}function Jc(){if(ur){var e=ur,n=cr;if(cr=ur=null,Xc(e),n)for(e=0;e>>=0,e===0?32:31-(ax(e)/lx|0)|0}var li=64,ui=4194304;function qr(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 ci(e,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,d=e.suspendedLanes,p=e.pingedLanes,v=i&268435455;if(v!==0){var j=v&~d;j!==0?a=qr(j):(p&=v,p!==0&&(a=qr(p)))}else v=i&~d,v!==0?a=qr(v):p!==0&&(a=qr(p));if(a===0)return 0;if(n!==0&&n!==a&&(n&d)===0&&(d=a&-a,p=n&-n,d>=p||d===16&&(p&4194240)!==0))return n;if((a&4)!==0&&(a|=i&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=a;0i;i++)n.push(e);return n}function es(e,n,i){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-_t(n),e[n]=i}function fx(e,n){var i=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0=ls),Cd=" ",Ed=!1;function Nd(e,n){switch(e){case"keyup":return Ox.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pr=!1;function Ux(e,n){switch(e){case"compositionend":return Td(n);case"keypress":return n.which!==32?null:(Ed=!0,Cd);case"textInput":return e=n.data,e===Cd&&Ed?null:e;default:return null}}function $x(e,n){if(pr)return e==="compositionend"||!Ma&&Nd(e,n)?(e=vd(),mi=ja=yn=null,pr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:i,offset:n-e};e=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Dd(i)}}function Fd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Fd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Vd(){for(var e=window,n=ni();n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=ni(e.document)}return n}function La(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Zx(e){var n=Vd(),i=e.focusedElem,a=e.selectionRange;if(n!==i&&i&&i.ownerDocument&&Fd(i.ownerDocument.documentElement,i)){if(a!==null&&La(i)){if(n=a.start,e=a.end,e===void 0&&(e=n),"selectionStart"in i)i.selectionStart=n,i.selectionEnd=Math.min(e,i.value.length);else if(e=(n=i.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var d=i.textContent.length,p=Math.min(a.start,d);a=a.end===void 0?p:Math.min(a.end,d),!e.extend&&p>a&&(d=a,a=p,p=d),d=Id(i,p);var v=Id(i,a);d&&v&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==v.node||e.focusOffset!==v.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),e.removeAllRanges(),p>a?(e.addRange(n),e.extend(v.node,v.offset)):(n.setEnd(v.node,v.offset),e.addRange(n)))}}for(n=[],e=i;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,hr=null,_a=null,fs=null,Da=!1;function zd(e,n,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Da||hr==null||hr!==ni(a)||(a=hr,"selectionStart"in a&&La(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),fs&&ds(fs,a)||(fs=a,a=Si(_a,"onSelect"),0vr||(e.current=Ga[vr],Ga[vr]=null,vr--)}function Pe(e,n){vr++,Ga[vr]=e.current,e.current=n}var kn={},nt=bn(kn),ft=bn(!1),$n=kn;function wr(e,n){var i=e.type.contextTypes;if(!i)return kn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var d={},p;for(p in i)d[p]=n[p];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=d),d}function pt(e){return e=e.childContextTypes,e!=null}function Ni(){Re(ft),Re(nt)}function ef(e,n,i){if(nt.current!==kn)throw Error(s(168));Pe(nt,n),Pe(ft,i)}function tf(e,n,i){var a=e.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var d in a)if(!(d in n))throw Error(s(108,je(e)||"Unknown",d));return Q({},i,a)}function Ti(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kn,$n=nt.current,Pe(nt,e),Pe(ft,ft.current),!0}function nf(e,n,i){var a=e.stateNode;if(!a)throw Error(s(169));i?(e=tf(e,n,$n),a.__reactInternalMemoizedMergedChildContext=e,Re(ft),Re(nt),Pe(nt,e)):Re(ft),Pe(ft,i)}var on=null,Pi=!1,Ya=!1;function rf(e){on===null?on=[e]:on.push(e)}function cy(e){Pi=!0,rf(e)}function Sn(){if(!Ya&&on!==null){Ya=!0;var e=0,n=Ee;try{var i=on;for(Ee=1;e>=v,d-=v,an=1<<32-_t(n)+d|i<xe?(Xe=pe,pe=null):Xe=pe.sibling;var Ce=z(L,pe,_[xe],K);if(Ce===null){pe===null&&(pe=Xe);break}e&&pe&&Ce.alternate===null&&n(L,pe),T=p(Ce,T,xe),fe===null?se=Ce:fe.sibling=Ce,fe=Ce,pe=Xe}if(xe===_.length)return i(L,pe),Le&&Hn(L,xe),se;if(pe===null){for(;xe<_.length;xe++)pe=$(L,_[xe],K),pe!==null&&(T=p(pe,T,xe),fe===null?se=pe:fe.sibling=pe,fe=pe);return Le&&Hn(L,xe),se}for(pe=a(L,pe);xe<_.length;xe++)Xe=J(pe,L,xe,_[xe],K),Xe!==null&&(e&&Xe.alternate!==null&&pe.delete(Xe.key===null?xe:Xe.key),T=p(Xe,T,xe),fe===null?se=Xe:fe.sibling=Xe,fe=Xe);return e&&pe.forEach(function(An){return n(L,An)}),Le&&Hn(L,xe),se}function re(L,T,_,K){var se=q(_);if(typeof se!="function")throw Error(s(150));if(_=se.call(_),_==null)throw Error(s(151));for(var fe=se=null,pe=T,xe=T=0,Xe=null,Ce=_.next();pe!==null&&!Ce.done;xe++,Ce=_.next()){pe.index>xe?(Xe=pe,pe=null):Xe=pe.sibling;var An=z(L,pe,Ce.value,K);if(An===null){pe===null&&(pe=Xe);break}e&&pe&&An.alternate===null&&n(L,pe),T=p(An,T,xe),fe===null?se=An:fe.sibling=An,fe=An,pe=Xe}if(Ce.done)return i(L,pe),Le&&Hn(L,xe),se;if(pe===null){for(;!Ce.done;xe++,Ce=_.next())Ce=$(L,Ce.value,K),Ce!==null&&(T=p(Ce,T,xe),fe===null?se=Ce:fe.sibling=Ce,fe=Ce);return Le&&Hn(L,xe),se}for(pe=a(L,pe);!Ce.done;xe++,Ce=_.next())Ce=J(pe,L,xe,Ce.value,K),Ce!==null&&(e&&Ce.alternate!==null&&pe.delete(Ce.key===null?xe:Ce.key),T=p(Ce,T,xe),fe===null?se=Ce:fe.sibling=Ce,fe=Ce);return e&&pe.forEach(function(Wy){return n(L,Wy)}),Le&&Hn(L,xe),se}function Be(L,T,_,K){if(typeof _=="object"&&_!==null&&_.type===G&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case I:e:{for(var se=_.key,fe=T;fe!==null;){if(fe.key===se){if(se=_.type,se===G){if(fe.tag===7){i(L,fe.sibling),T=d(fe,_.props.children),T.return=L,L=T;break e}}else if(fe.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===ge&&cf(se)===fe.type){i(L,fe.sibling),T=d(fe,_.props),T.ref=ys(L,fe,_),T.return=L,L=T;break e}i(L,fe);break}else n(L,fe);fe=fe.sibling}_.type===G?(T=qn(_.props.children,L.mode,K,_.key),T.return=L,L=T):(K=ro(_.type,_.key,_.props,null,L.mode,K),K.ref=ys(L,T,_),K.return=L,L=K)}return v(L);case H:e:{for(fe=_.key;T!==null;){if(T.key===fe)if(T.tag===4&&T.stateNode.containerInfo===_.containerInfo&&T.stateNode.implementation===_.implementation){i(L,T.sibling),T=d(T,_.children||[]),T.return=L,L=T;break e}else{i(L,T);break}else n(L,T);T=T.sibling}T=Hl(_,L.mode,K),T.return=L,L=T}return v(L);case ge:return fe=_._init,Be(L,T,fe(_._payload),K)}if(Gr(_))return te(L,T,_,K);if(q(_))return re(L,T,_,K);Li(L,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,T!==null&&T.tag===6?(i(L,T.sibling),T=d(T,_),T.return=L,L=T):(i(L,T),T=Wl(_,L.mode,K),T.return=L,L=T),v(L)):i(L,T)}return Be}var jr=df(!0),ff=df(!1),_i=bn(null),Di=null,Cr=null,el=null;function tl(){el=Cr=Di=null}function nl(e){var n=_i.current;Re(_i),e._currentValue=n}function rl(e,n,i){for(;e!==null;){var a=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),e===i)break;e=e.return}}function Er(e,n){Di=e,el=Cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(ht=!0),e.firstContext=null)}function Tt(e){var n=e._currentValue;if(el!==e)if(e={context:e,memoizedValue:n,next:null},Cr===null){if(Di===null)throw Error(s(308));Cr=e,Di.dependencies={lanes:0,firstContext:e}}else Cr=Cr.next=e;return n}var Kn=null;function sl(e){Kn===null?Kn=[e]:Kn.push(e)}function pf(e,n,i,a){var d=n.interleaved;return d===null?(i.next=i,sl(n)):(i.next=d.next,d.next=i),n.interleaved=i,un(e,a)}function un(e,n){e.lanes|=n;var i=e.alternate;for(i!==null&&(i.lanes|=n),i=e,e=e.return;e!==null;)e.childLanes|=n,i=e.alternate,i!==null&&(i.childLanes|=n),i=e,e=e.return;return i.tag===3?i.stateNode:null}var jn=!1;function il(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hf(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function cn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Cn(e,n,i){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var d=a.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),a.pending=n,un(e,i)}return d=a.interleaved,d===null?(n.next=n,sl(a)):(n.next=d.next,d.next=n),a.interleaved=n,un(e,i)}function Ii(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194240)!==0)){var a=n.lanes;a&=e.pendingLanes,i|=a,n.lanes=i,va(e,i)}}function mf(e,n){var i=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var d=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var v={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};p===null?d=p=v:p=p.next=v,i=i.next}while(i!==null);p===null?d=p=n:p=p.next=n}else d=p=n;i={baseState:a.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:a.shared,effects:a.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}function Fi(e,n,i,a){var d=e.updateQueue;jn=!1;var p=d.firstBaseUpdate,v=d.lastBaseUpdate,j=d.shared.pending;if(j!==null){d.shared.pending=null;var N=j,D=N.next;N.next=null,v===null?p=D:v.next=D,v=N;var O=e.alternate;O!==null&&(O=O.updateQueue,j=O.lastBaseUpdate,j!==v&&(j===null?O.firstBaseUpdate=D:j.next=D,O.lastBaseUpdate=N))}if(p!==null){var $=d.baseState;v=0,O=D=N=null,j=p;do{var z=j.lane,J=j.eventTime;if((a&z)===z){O!==null&&(O=O.next={eventTime:J,lane:0,tag:j.tag,payload:j.payload,callback:j.callback,next:null});e:{var te=e,re=j;switch(z=n,J=i,re.tag){case 1:if(te=re.payload,typeof te=="function"){$=te.call(J,$,z);break e}$=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=re.payload,z=typeof te=="function"?te.call(J,$,z):te,z==null)break e;$=Q({},$,z);break e;case 2:jn=!0}}j.callback!==null&&j.lane!==0&&(e.flags|=64,z=d.effects,z===null?d.effects=[j]:z.push(j))}else J={eventTime:J,lane:z,tag:j.tag,payload:j.payload,callback:j.callback,next:null},O===null?(D=O=J,N=$):O=O.next=J,v|=z;if(j=j.next,j===null){if(j=d.shared.pending,j===null)break;z=j,j=z.next,z.next=null,d.lastBaseUpdate=z,d.shared.pending=null}}while(!0);if(O===null&&(N=$),d.baseState=N,d.firstBaseUpdate=D,d.lastBaseUpdate=O,n=d.shared.interleaved,n!==null){d=n;do v|=d.lane,d=d.next;while(d!==n)}else p===null&&(d.shared.lanes=0);Xn|=v,e.lanes=v,e.memoizedState=$}}function gf(e,n,i){if(e=n.effects,n.effects=null,e!==null)for(n=0;ni?i:4,e(!0);var a=cl.transition;cl.transition={};try{e(!1),n()}finally{Ee=i,cl.transition=a}}function Df(){return Pt().memoizedState}function hy(e,n,i){var a=Pn(e);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},If(e))Ff(n,i);else if(i=pf(e,n,i,a),i!==null){var d=lt();Ot(i,e,a,d),Vf(i,n,a)}}function my(e,n,i){var a=Pn(e),d={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(If(e))Ff(n,d);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var v=n.lastRenderedState,j=p(v,i);if(d.hasEagerState=!0,d.eagerState=j,Dt(j,v)){var N=n.interleaved;N===null?(d.next=d,sl(n)):(d.next=N.next,N.next=d),n.interleaved=d;return}}catch{}i=pf(e,n,d,a),i!==null&&(d=lt(),Ot(i,e,a,d),Vf(i,n,a))}}function If(e){var n=e.alternate;return e===Ie||n!==null&&n===Ie}function Ff(e,n){ks=Oi=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function Vf(e,n,i){if((i&4194240)!==0){var a=n.lanes;a&=e.pendingLanes,i|=a,n.lanes=i,va(e,i)}}var $i={readContext:Tt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},gy={readContext:Tt,useCallback:function(e,n){return Qt().memoizedState=[e,n===void 0?null:n],e},useContext:Tt,useEffect:Nf,useImperativeHandle:function(e,n,i){return i=i!=null?i.concat([e]):null,Bi(4194308,4,Mf.bind(null,n,e),i)},useLayoutEffect:function(e,n){return Bi(4194308,4,e,n)},useInsertionEffect:function(e,n){return Bi(4,2,e,n)},useMemo:function(e,n){var i=Qt();return n=n===void 0?null:n,e=e(),i.memoizedState=[e,n],e},useReducer:function(e,n,i){var a=Qt();return n=i!==void 0?i(n):n,a.memoizedState=a.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=hy.bind(null,Ie,e),[a.memoizedState,e]},useRef:function(e){var n=Qt();return e={current:e},n.memoizedState=e},useState:Cf,useDebugValue:xl,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=Cf(!1),n=e[0];return e=py.bind(null,e[1]),Qt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,i){var a=Ie,d=Qt();if(Le){if(i===void 0)throw Error(s(407));i=i()}else{if(i=n(),Ye===null)throw Error(s(349));(Yn&30)!==0||wf(a,n,i)}d.memoizedState=i;var p={value:i,getSnapshot:n};return d.queue=p,Nf(kf.bind(null,a,p,e),[e]),a.flags|=2048,Cs(9,bf.bind(null,a,p,i,n),void 0,null),i},useId:function(){var e=Qt(),n=Ye.identifierPrefix;if(Le){var i=ln,a=an;i=(a&~(1<<32-_t(a)-1)).toString(32)+i,n=":"+n+"R"+i,i=Ss++,0<\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=v.createElement(i,{is:a.is}):(e=v.createElement(i),i==="select"&&(v=e,a.multiple?v.multiple=!0:a.size&&(v.size=a.size))):e=v.createElementNS(e,i),e[Yt]=n,e[gs]=a,sp(e,n,!1,!1),n.stateNode=e;e:{switch(v=ua(i,a),i){case"dialog":Me("cancel",e),Me("close",e),d=a;break;case"iframe":case"object":case"embed":Me("load",e),d=a;break;case"video":case"audio":for(d=0;dRr&&(n.flags|=128,a=!0,Es(p,!1),n.lanes=4194304)}else{if(!a)if(e=Vi(v),e!==null){if(n.flags|=128,a=!0,i=e.updateQueue,i!==null&&(n.updateQueue=i,n.flags|=4),Es(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!Le)return st(n),null}else 2*Oe()-p.renderingStartTime>Rr&&i!==1073741824&&(n.flags|=128,a=!0,Es(p,!1),n.lanes=4194304);p.isBackwards?(v.sibling=n.child,n.child=v):(i=p.last,i!==null?i.sibling=v:n.child=v,p.last=v)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=Oe(),n.sibling=null,i=De.current,Pe(De,a?i&1|2:i&1),n):(st(n),null);case 22:case 23:return Bl(),a=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(St&1073741824)!==0&&(st(n),n.subtreeFlags&6&&(n.flags|=8192)):st(n),null;case 24:return null;case 25:return null}throw Error(s(156,n.tag))}function jy(e,n){switch(Qa(n),n.tag){case 1:return pt(n.type)&&Ni(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Nr(),Re(ft),Re(nt),ul(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return al(n),null;case 13:if(Re(De),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));Sr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Re(De),null;case 4:return Nr(),null;case 10:return nl(n.type._context),null;case 22:case 23:return Bl(),null;case 24:return null;default:return null}}var Gi=!1,it=!1,Cy=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Pr(e,n){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){Fe(e,n,a)}else i.current=null}function Pl(e,n,i){try{i()}catch(a){Fe(e,n,a)}}var ap=!1;function Ey(e,n){if(Ba=pi,e=Vd(),La(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var d=a.anchorOffset,p=a.focusNode;a=a.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var v=0,j=-1,N=-1,D=0,O=0,$=e,z=null;t:for(;;){for(var J;$!==i||d!==0&&$.nodeType!==3||(j=v+d),$!==p||a!==0&&$.nodeType!==3||(N=v+a),$.nodeType===3&&(v+=$.nodeValue.length),(J=$.firstChild)!==null;)z=$,$=J;for(;;){if($===e)break t;if(z===i&&++D===d&&(j=v),z===p&&++O===a&&(N=v),(J=$.nextSibling)!==null)break;$=z,z=$.parentNode}$=J}i=j===-1||N===-1?null:{start:j,end:N}}else i=null}i=i||{start:0,end:0}}else i=null;for(Ua={focusedElem:e,selectionRange:i},pi=!1,ee=n;ee!==null;)if(n=ee,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ee=e;else for(;ee!==null;){n=ee;try{var te=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var re=te.memoizedProps,Be=te.memoizedState,L=n.stateNode,T=L.getSnapshotBeforeUpdate(n.elementType===n.type?re:Ft(n.type,re),Be);L.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var _=n.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(K){Fe(n,n.return,K)}if(e=n.sibling,e!==null){e.return=n.return,ee=e;break}ee=n.return}return te=ap,ap=!1,te}function Ns(e,n,i){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&e)===e){var p=d.destroy;d.destroy=void 0,p!==void 0&&Pl(n,i,p)}d=d.next}while(d!==a)}}function Yi(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.create;i.destroy=a()}i=i.next}while(i!==n)}}function Ml(e){var n=e.ref;if(n!==null){var i=e.stateNode;e.tag,e=i,typeof n=="function"?n(e):n.current=e}}function lp(e){var n=e.alternate;n!==null&&(e.alternate=null,lp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Yt],delete n[gs],delete n[Ka],delete n[ly],delete n[uy])),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 up(e){return e.tag===5||e.tag===3||e.tag===4}function cp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||up(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 Rl(e,n,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?i.nodeType===8?i.parentNode.insertBefore(e,n):i.insertBefore(e,n):(i.nodeType===8?(n=i.parentNode,n.insertBefore(e,i)):(n=i,n.appendChild(e)),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ci));else if(a!==4&&(e=e.child,e!==null))for(Rl(e,n,i),e=e.sibling;e!==null;)Rl(e,n,i),e=e.sibling}function Al(e,n,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Al(e,n,i),e=e.sibling;e!==null;)Al(e,n,i),e=e.sibling}var Qe=null,Vt=!1;function En(e,n,i){for(i=i.child;i!==null;)dp(e,n,i),i=i.sibling}function dp(e,n,i){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(ai,i)}catch{}switch(i.tag){case 5:it||Pr(i,n);case 6:var a=Qe,d=Vt;Qe=null,En(e,n,i),Qe=a,Vt=d,Qe!==null&&(Vt?(e=Qe,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):Qe.removeChild(i.stateNode));break;case 18:Qe!==null&&(Vt?(e=Qe,i=i.stateNode,e.nodeType===8?Ha(e.parentNode,i):e.nodeType===1&&Ha(e,i),is(e)):Ha(Qe,i.stateNode));break;case 4:a=Qe,d=Vt,Qe=i.stateNode.containerInfo,Vt=!0,En(e,n,i),Qe=a,Vt=d;break;case 0:case 11:case 14:case 15:if(!it&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){d=a=a.next;do{var p=d,v=p.destroy;p=p.tag,v!==void 0&&((p&2)!==0||(p&4)!==0)&&Pl(i,n,v),d=d.next}while(d!==a)}En(e,n,i);break;case 1:if(!it&&(Pr(i,n),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(j){Fe(i,n,j)}En(e,n,i);break;case 21:En(e,n,i);break;case 22:i.mode&1?(it=(a=it)||i.memoizedState!==null,En(e,n,i),it=a):En(e,n,i);break;default:En(e,n,i)}}function fp(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Cy),n.forEach(function(a){var d=Dy.bind(null,e,a);i.has(a)||(i.add(a),a.then(d,d))})}}function zt(e,n){var i=n.deletions;if(i!==null)for(var a=0;ad&&(d=v),a&=~p}if(a=d,a=Oe()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Ty(a/1960))-a,10e?16:e,Tn===null)var a=!1;else{if(e=Tn,Tn=null,qi=0,(Se&6)!==0)throw Error(s(331));var d=Se;for(Se|=4,ee=e.current;ee!==null;){var p=ee,v=p.child;if((ee.flags&16)!==0){var j=p.deletions;if(j!==null){for(var N=0;NOe()-Dl?Jn(e,0):_l|=i),gt(e,n)}function Cp(e,n){n===0&&((e.mode&1)===0?n=1:(n=ui,ui<<=1,(ui&130023424)===0&&(ui=4194304)));var i=lt();e=un(e,n),e!==null&&(es(e,n,i),gt(e,i))}function _y(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Cp(e,i)}function Dy(e,n){var i=0;switch(e.tag){case 13:var a=e.stateNode,d=e.memoizedState;d!==null&&(i=d.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(s(314))}a!==null&&a.delete(n),Cp(e,i)}var Ep;Ep=function(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps||ft.current)ht=!0;else{if((e.lanes&i)===0&&(n.flags&128)===0)return ht=!1,ky(e,n,i);ht=(e.flags&131072)!==0}else ht=!1,Le&&(n.flags&1048576)!==0&&sf(n,Ri,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;Ki(e,n),e=n.pendingProps;var d=wr(n,nt.current);Er(n,i),d=fl(null,n,a,e,d,i);var p=pl();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pt(a)?(p=!0,Ti(n)):p=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,il(n),d.updater=Wi,n.stateNode=d,d._reactInternals=n,vl(n,a,e,i),n=Sl(null,n,a,!0,p,i)):(n.tag=0,Le&&p&&Xa(n),at(null,n,d,i),n=n.child),n;case 16:a=n.elementType;e:{switch(Ki(e,n),e=n.pendingProps,d=a._init,a=d(a._payload),n.type=a,d=n.tag=Fy(a),e=Ft(a,e),d){case 0:n=kl(null,n,a,e,i);break e;case 1:n=Zf(null,n,a,e,i);break e;case 11:n=Gf(null,n,a,e,i);break e;case 14:n=Yf(null,n,a,Ft(a.type,e),i);break e}throw Error(s(306,a,""))}return n;case 0:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Ft(a,d),kl(e,n,a,d,i);case 1:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Ft(a,d),Zf(e,n,a,d,i);case 3:e:{if(qf(n),e===null)throw Error(s(387));a=n.pendingProps,p=n.memoizedState,d=p.element,hf(e,n),Fi(n,a,null,i);var v=n.memoizedState;if(a=v.element,p.isDehydrated)if(p={element:a,isDehydrated:!1,cache:v.cache,pendingSuspenseBoundaries:v.pendingSuspenseBoundaries,transitions:v.transitions},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){d=Tr(Error(s(423)),n),n=ep(e,n,a,i,d);break e}else if(a!==d){d=Tr(Error(s(424)),n),n=ep(e,n,a,i,d);break e}else for(kt=wn(n.stateNode.containerInfo.firstChild),bt=n,Le=!0,It=null,i=ff(n,null,a,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Sr(),a===d){n=dn(e,n,i);break e}at(e,n,a,i)}n=n.child}return n;case 5:return xf(n),e===null&&Za(n),a=n.type,d=n.pendingProps,p=e!==null?e.memoizedProps:null,v=d.children,$a(a,d)?v=null:p!==null&&$a(a,p)&&(n.flags|=32),Jf(e,n),at(e,n,v,i),n.child;case 6:return e===null&&Za(n),null;case 13:return tp(e,n,i);case 4:return ol(n,n.stateNode.containerInfo),a=n.pendingProps,e===null?n.child=jr(n,null,a,i):at(e,n,a,i),n.child;case 11:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Ft(a,d),Gf(e,n,a,d,i);case 7:return at(e,n,n.pendingProps,i),n.child;case 8:return at(e,n,n.pendingProps.children,i),n.child;case 12:return at(e,n,n.pendingProps.children,i),n.child;case 10:e:{if(a=n.type._context,d=n.pendingProps,p=n.memoizedProps,v=d.value,Pe(_i,a._currentValue),a._currentValue=v,p!==null)if(Dt(p.value,v)){if(p.children===d.children&&!ft.current){n=dn(e,n,i);break e}}else for(p=n.child,p!==null&&(p.return=n);p!==null;){var j=p.dependencies;if(j!==null){v=p.child;for(var N=j.firstContext;N!==null;){if(N.context===a){if(p.tag===1){N=cn(-1,i&-i),N.tag=2;var D=p.updateQueue;if(D!==null){D=D.shared;var O=D.pending;O===null?N.next=N:(N.next=O.next,O.next=N),D.pending=N}}p.lanes|=i,N=p.alternate,N!==null&&(N.lanes|=i),rl(p.return,i,n),j.lanes|=i;break}N=N.next}}else if(p.tag===10)v=p.type===n.type?null:p.child;else if(p.tag===18){if(v=p.return,v===null)throw Error(s(341));v.lanes|=i,j=v.alternate,j!==null&&(j.lanes|=i),rl(v,i,n),v=p.sibling}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===n){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}at(e,n,d.children,i),n=n.child}return n;case 9:return d=n.type,a=n.pendingProps.children,Er(n,i),d=Tt(d),a=a(d),n.flags|=1,at(e,n,a,i),n.child;case 14:return a=n.type,d=Ft(a,n.pendingProps),d=Ft(a.type,d),Yf(e,n,a,d,i);case 15:return Xf(e,n,n.type,n.pendingProps,i);case 17:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Ft(a,d),Ki(e,n),n.tag=1,pt(a)?(e=!0,Ti(n)):e=!1,Er(n,i),Of(n,a,d),vl(n,a,d,i),Sl(null,n,a,!0,e,i);case 19:return rp(e,n,i);case 22:return Qf(e,n,i)}throw Error(s(156,n.tag))};function Np(e,n){return id(e,n)}function Iy(e,n,i,a){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,n,i,a){return new Iy(e,n,i,a)}function $l(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fy(e){if(typeof e=="function")return $l(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ie)return 11;if(e===ve)return 14}return 2}function Rn(e,n){var i=e.alternate;return i===null?(i=Rt(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function ro(e,n,i,a,d,p){var v=2;if(a=e,typeof e=="function")$l(e)&&(v=1);else if(typeof e=="string")v=5;else e:switch(e){case G:return qn(i.children,d,p,n);case B:v=8,d|=8;break;case Z:return e=Rt(12,i,n,d|2),e.elementType=Z,e.lanes=p,e;case ce:return e=Rt(13,i,n,d),e.elementType=ce,e.lanes=p,e;case oe:return e=Rt(19,i,n,d),e.elementType=oe,e.lanes=p,e;case ke:return so(i,d,p,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:v=10;break e;case X:v=9;break e;case ie:v=11;break e;case ve:v=14;break e;case ge:v=16,a=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return n=Rt(v,i,n,d),n.elementType=e,n.type=a,n.lanes=p,n}function qn(e,n,i,a){return e=Rt(7,e,a,n),e.lanes=i,e}function so(e,n,i,a){return e=Rt(22,e,a,n),e.elementType=ke,e.lanes=i,e.stateNode={isHidden:!1},e}function Wl(e,n,i){return e=Rt(6,e,null,n),e.lanes=i,e}function Hl(e,n,i){return n=Rt(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Vy(e,n,i,a,d){this.tag=n,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=ya(0),this.expirationTimes=ya(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ya(0),this.identifierPrefix=a,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Kl(e,n,i,a,d,p,v,j,N){return e=new Vy(e,n,i,j,N),n===1?(n=1,p===!0&&(n|=8)):n=0,p=Rt(3,null,null,n),e.current=p,p.stateNode=e,p.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},il(p),e}function zy(e,n,i){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Zl.exports=Zy(),Zl.exports}var Bp;function ev(){if(Bp)return fo;Bp=1;var t=qy();return fo.createRoot=t.createRoot,fo.hydrateRoot=t.hydrateRoot,fo}var tv=ev();var Up="popstate";function $p(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function nv(t={}){function r(o,l){let c=l.state?.masked,{pathname:f,search:h,hash:m}=c||o.location;return ku("",{pathname:f,search:h,hash:m},l.state&&l.state.usr||null,l.state&&l.state.key||"default",c?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function s(o,l){return typeof l=="string"?l:Us(l)}return sv(r,s,null,t)}function _e(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function Kt(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function rv(){return Math.random().toString(36).substring(2,10)}function Wp(t,r){return{usr:t.state,key:t.key,idx:r,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function ku(t,r,s=null,o,l){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?Br(r):r,state:s,key:r&&r.key||o||rv(),unstable_mask:l}}function Us({pathname:t="/",search:r="",hash:s=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function Br(t){let r={};if(t){let s=t.indexOf("#");s>=0&&(r.hash=t.substring(s),t=t.substring(0,s));let o=t.indexOf("?");o>=0&&(r.search=t.substring(o),t=t.substring(0,o)),t&&(r.pathname=t)}return r}function sv(t,r,s,o={}){let{window:l=document.defaultView,v5Compat:c=!1}=o,f=l.history,h="POP",m=null,x=g();x==null&&(x=0,f.replaceState({...f.state,idx:x},""));function g(){return(f.state||{idx:null}).idx}function y(){h="POP";let C=g(),P=C==null?null:C-x;x=C,m&&m({action:h,location:E.location,delta:P})}function w(C,P){h="PUSH";let M=$p(C)?C:ku(E.location,C,P);x=g()+1;let A=Wp(M,x),F=E.createHref(M.unstable_mask||M);try{f.pushState(A,"",F)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;l.location.assign(F)}c&&m&&m({action:h,location:E.location,delta:1})}function k(C,P){h="REPLACE";let M=$p(C)?C:ku(E.location,C,P);x=g();let A=Wp(M,x),F=E.createHref(M.unstable_mask||M);f.replaceState(A,"",F),c&&m&&m({action:h,location:E.location,delta:0})}function S(C){return iv(C)}let E={get action(){return h},get location(){return t(l,f)},listen(C){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(Up,y),m=C,()=>{l.removeEventListener(Up,y),m=null}},createHref(C){return r(l,C)},createURL:S,encodeLocation(C){let P=S(C);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:w,replace:k,go(C){return f.go(C)}};return E}function iv(t,r=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),_e(s,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:Us(t);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function Cm(t,r,s="/"){return ov(t,r,s,!1)}function ov(t,r,s,o){let l=typeof r=="string"?Br(r):r,c=pn(l.pathname||"/",s);if(c==null)return null;let f=Em(t);av(f);let h=null;for(let m=0;h==null&&m{let g={relativePath:x===void 0?f.path||"":x,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(o)&&m)return;_e(g.relativePath.startsWith(o),`Absolute route path "${g.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(o.length)}let y=$t([o,g.relativePath]),w=s.concat(g);f.children&&f.children.length>0&&(_e(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Em(f.children,r,w,y,m)),!(f.path==null&&!f.index)&&r.push({path:y,score:hv(y,f.index),routesMeta:w})};return t.forEach((f,h)=>{if(f.path===""||!f.path?.includes("?"))c(f,h);else for(let m of Nm(f.path))c(f,h,!0,m)}),r}function Nm(t){let r=t.split("/");if(r.length===0)return[];let[s,...o]=r,l=s.endsWith("?"),c=s.replace(/\?$/,"");if(o.length===0)return l?[c,""]:[c];let f=Nm(o.join("/")),h=[];return h.push(...f.map(m=>m===""?c:[c,m].join("/"))),l&&h.push(...f),h.map(m=>t.startsWith("/")&&m===""?"/":m)}function av(t){t.sort((r,s)=>r.score!==s.score?s.score-r.score:mv(r.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var lv=/^:[\w-]+$/,uv=3,cv=2,dv=1,fv=10,pv=-2,Hp=t=>t==="*";function hv(t,r){let s=t.split("/"),o=s.length;return s.some(Hp)&&(o+=pv),r&&(o+=cv),s.filter(l=>!Hp(l)).reduce((l,c)=>l+(lv.test(c)?uv:c===""?dv:fv),o)}function mv(t,r){return t.length===r.length&&t.slice(0,-1).every((o,l)=>o===r[l])?t[t.length-1]-r[r.length-1]:0}function gv(t,r,s=!1){let{routesMeta:o}=t,l={},c="/",f=[];for(let h=0;h{if(g==="*"){let S=h[w]||"";f=c.slice(0,c.length-S.length).replace(/(.)\/+$/,"$1")}const k=h[w];return y&&!k?x[g]=void 0:x[g]=(k||"").replace(/%2F/g,"/"),x},{}),pathname:c,pathnameBase:f,pattern:t}}function xv(t,r=!1,s=!0){Kt(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let o=[],l="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,m,x,g)=>{if(o.push({paramName:h,isOptional:m!=null}),m){let y=g.charAt(x+f.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(o.push({paramName:"*"}),l+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?l+="\\/*$":t!==""&&t!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,r?void 0:"i"),o]}function yv(t){try{return t.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Kt(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),t}}function pn(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let s=r.endsWith("/")?r.length-1:r.length,o=t.charAt(s);return o&&o!=="/"?null:t.slice(s)||"/"}var vv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function wv(t,r="/"){let{pathname:s,search:o="",hash:l=""}=typeof t=="string"?Br(t):t,c;return s?(s=Tm(s),s.startsWith("/")?c=Kp(s.substring(1),"/"):c=Kp(s,r)):c=r,{pathname:c,search:Sv(o),hash:jv(l)}}function Kp(t,r){let s=Lo(r).split("/");return t.split("/").forEach(l=>{l===".."?s.length>1&&s.pop():l!=="."&&s.push(l)}),s.length>1?s.join("/"):"/"}function tu(t,r,s,o){return`Cannot include a '${t}' character in a manually specified \`to.${r}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function bv(t){return t.filter((r,s)=>s===0||r.route.path&&r.route.path.length>0)}function Qu(t){let r=bv(t);return r.map((s,o)=>o===r.length-1?s.pathname:s.pathnameBase)}function Ko(t,r,s,o=!1){let l;typeof t=="string"?l=Br(t):(l={...t},_e(!l.pathname||!l.pathname.includes("?"),tu("?","pathname","search",l)),_e(!l.pathname||!l.pathname.includes("#"),tu("#","pathname","hash",l)),_e(!l.search||!l.search.includes("#"),tu("#","search","hash",l)));let c=t===""||l.pathname==="",f=c?"/":l.pathname,h;if(f==null)h=s;else{let y=r.length-1;if(!o&&f.startsWith("..")){let w=f.split("/");for(;w[0]==="..";)w.shift(),y-=1;l.pathname=w.join("/")}h=y>=0?r[y]:"/"}let m=wv(l,h),x=f&&f!=="/"&&f.endsWith("/"),g=(c||f===".")&&s.endsWith("/");return!m.pathname.endsWith("/")&&(x||g)&&(m.pathname+="/"),m}var Tm=t=>t.replace(/\/\/+/g,"/"),$t=t=>Tm(t.join("/")),Lo=t=>t.replace(/\/+$/,""),kv=t=>Lo(t).replace(/^\/*/,"/"),Sv=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,jv=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Cv=class{constructor(t,r,s,o=!1){this.status=t,this.statusText=r||"",this.internal=o,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Ev(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function Nv(t){let r=t.map(s=>s.route.path).filter(Boolean);return $t(r)||"/"}var Pm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Mm(t,r){let s=t;if(typeof s!="string"||!vv.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let o=s,l=!1;if(Pm)try{let c=new URL(window.location.href),f=s.startsWith("//")?new URL(c.protocol+s):new URL(s),h=pn(f.pathname,r);f.origin===c.origin&&h!=null?s=h+f.search+f.hash:l=!0}catch{Kt(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:l,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Rm=["POST","PUT","PATCH","DELETE"];new Set(Rm);var Tv=["GET",...Rm];new Set(Tv);var Ur=b.createContext(null);Ur.displayName="DataRouter";var Go=b.createContext(null);Go.displayName="DataRouterState";var Am=b.createContext(!1);function Pv(){return b.useContext(Am)}var Lm=b.createContext({isTransitioning:!1});Lm.displayName="ViewTransition";var Mv=b.createContext(new Map);Mv.displayName="Fetchers";var Rv=b.createContext(null);Rv.displayName="Await";var Ct=b.createContext(null);Ct.displayName="Navigation";var Xs=b.createContext(null);Xs.displayName="Location";var rn=b.createContext({outlet:null,matches:[],isDataRoute:!1});rn.displayName="Route";var Ju=b.createContext(null);Ju.displayName="RouteError";var _m="REACT_ROUTER_ERROR",Av="REDIRECT",Lv="ROUTE_ERROR_RESPONSE";function _v(t){if(t.startsWith(`${_m}:${Av}:{`))try{let r=JSON.parse(t.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function Dv(t){if(t.startsWith(`${_m}:${Lv}:{`))try{let r=JSON.parse(t.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new Cv(r.status,r.statusText,r.data)}catch{}}function Iv(t,{relative:r}={}){_e($r(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:o}=b.useContext(Ct),{hash:l,pathname:c,search:f}=Qs(t,{relative:r}),h=c;return s!=="/"&&(h=c==="/"?s:$t([s,c])),o.createHref({pathname:h,search:f,hash:l})}function $r(){return b.useContext(Xs)!=null}function yt(){return _e($r(),"useLocation() may be used only in the context of a component."),b.useContext(Xs).location}var Dm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Im(t){b.useContext(Ct).static||b.useLayoutEffect(t)}function Vn(){let{isDataRoute:t}=b.useContext(rn);return t?Xv():Fv()}function Fv(){_e($r(),"useNavigate() may be used only in the context of a component.");let t=b.useContext(Ur),{basename:r,navigator:s}=b.useContext(Ct),{matches:o}=b.useContext(rn),{pathname:l}=yt(),c=JSON.stringify(Qu(o)),f=b.useRef(!1);return Im(()=>{f.current=!0}),b.useCallback((m,x={})=>{if(Kt(f.current,Dm),!f.current)return;if(typeof m=="number"){s.go(m);return}let g=Ko(m,JSON.parse(c),l,x.relative==="path");t==null&&r!=="/"&&(g.pathname=g.pathname==="/"?r:$t([r,g.pathname])),(x.replace?s.replace:s.push)(g,x.state,x)},[r,s,c,l,t])}b.createContext(null);function Qs(t,{relative:r}={}){let{matches:s}=b.useContext(rn),{pathname:o}=yt(),l=JSON.stringify(Qu(s));return b.useMemo(()=>Ko(t,JSON.parse(l),o,r==="path"),[t,l,o,r])}function Vv(t,r){return Fm(t,r)}function Fm(t,r,s){_e($r(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=b.useContext(Ct),{matches:l}=b.useContext(rn),c=l[l.length-1],f=c?c.params:{},h=c?c.pathname:"/",m=c?c.pathnameBase:"/",x=c&&c.route;{let C=x&&x.path||"";zm(h,!x||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${h}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let g=yt(),y;if(r){let C=typeof r=="string"?Br(r):r;_e(m==="/"||C.pathname?.startsWith(m),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${C.pathname}" was given in the \`location\` prop.`),y=C}else y=g;let w=y.pathname||"/",k=w;if(m!=="/"){let C=m.replace(/^\//,"").split("/");k="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let S=Cm(t,{pathname:k});Kt(x||S!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Kt(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let E=$v(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},f,C.params),pathname:$t([m,o.encodeLocation?o.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?m:$t([m,o.encodeLocation?o.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),l,s);return r&&E?b.createElement(Xs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},E):E}function zv(){let t=Yv(),r=Ev(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),s=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:o},c={padding:"2px 4px",backgroundColor:o},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:c},"ErrorBoundary")," or"," ",b.createElement("code",{style:c},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},r),s?b.createElement("pre",{style:l},s):null,f)}var Ov=b.createElement(zv,null),Vm=class extends b.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){this.props.onError?this.props.onError(t,r):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const s=Dv(t.digest);s&&(t=s)}let r=t!==void 0?b.createElement(rn.Provider,{value:this.props.routeContext},b.createElement(Ju.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?b.createElement(Bv,{error:t},r):r}};Vm.contextType=Am;var nu=new WeakMap;function Bv({children:t,error:r}){let{basename:s}=b.useContext(Ct);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let o=_v(r.digest);if(o){let l=nu.get(r);if(l)throw l;let c=Mm(o.location,s);if(Pm&&!nu.get(r))if(c.isExternal||o.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:o.replace}));throw nu.set(r,f),f}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return t}function Uv({routeContext:t,match:r,children:s}){let o=b.useContext(Ur);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(rn.Provider,{value:t},s)}function $v(t,r=[],s){let o=s?.state;if(t==null){if(!o)return null;if(o.errors)t=o.matches;else if(r.length===0&&!o.initialized&&o.matches.length>0)t=o.matches;else return null}let l=t,c=o?.errors;if(c!=null){let g=l.findIndex(y=>y.route.id&&c?.[y.route.id]!==void 0);_e(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,g+1))}let f=!1,h=-1;if(s&&o){f=o.renderFallback;for(let g=0;g=0?l=l.slice(0,h+1):l=[l[0]];break}}}}let m=s?.onError,x=o&&m?(g,y)=>{m(g,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:Nv(o.matches),errorInfo:y})}:void 0;return l.reduceRight((g,y,w)=>{let k,S=!1,E=null,C=null;o&&(k=c&&y.route.id?c[y.route.id]:void 0,E=y.route.errorElement||Ov,f&&(h<0&&w===0?(zm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,C=null):h===w&&(S=!0,C=y.route.hydrateFallbackElement||null)));let P=r.concat(l.slice(0,w+1)),M=()=>{let A;return k?A=E:S?A=C:y.route.Component?A=b.createElement(y.route.Component,null):y.route.element?A=y.route.element:A=g,b.createElement(Uv,{match:y,routeContext:{outlet:g,matches:P,isDataRoute:o!=null},children:A})};return o&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?b.createElement(Vm,{location:o.location,revalidation:o.revalidation,component:E,error:k,children:M(),routeContext:{outlet:null,matches:P,isDataRoute:!0},onError:x}):M()},null)}function Zu(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wv(t){let r=b.useContext(Ur);return _e(r,Zu(t)),r}function Hv(t){let r=b.useContext(Go);return _e(r,Zu(t)),r}function Kv(t){let r=b.useContext(rn);return _e(r,Zu(t)),r}function qu(t){let r=Kv(t),s=r.matches[r.matches.length-1];return _e(s.route.id,`${t} can only be used on routes that contain a unique "id"`),s.route.id}function Gv(){return qu("useRouteId")}function Yv(){let t=b.useContext(Ju),r=Hv("useRouteError"),s=qu("useRouteError");return t!==void 0?t:r.errors?.[s]}function Xv(){let{router:t}=Wv("useNavigate"),r=qu("useNavigate"),s=b.useRef(!1);return Im(()=>{s.current=!0}),b.useCallback(async(l,c={})=>{Kt(s.current,Dm),s.current&&(typeof l=="number"?await t.navigate(l):await t.navigate(l,{fromRouteId:r,...c}))},[t,r])}var Gp={};function zm(t,r,s){!r&&!Gp[t]&&(Gp[t]=!0,Kt(!1,s))}b.memo(Qv);function Qv({routes:t,future:r,state:s,isStatic:o,onError:l}){return Fm(t,void 0,{state:s,isStatic:o,onError:l})}function ec({to:t,replace:r,state:s,relative:o}){_e($r()," may be used only in the context of a component.");let{static:l}=b.useContext(Ct);Kt(!l," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:c}=b.useContext(rn),{pathname:f}=yt(),h=Vn(),m=Ko(t,Qu(c),f,o==="path"),x=JSON.stringify(m);return b.useEffect(()=>{h(JSON.parse(x),{replace:r,state:s,relative:o})},[h,x,o,r,s]),null}function Zt(t){_e(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Jv({basename:t="/",children:r=null,location:s,navigationType:o="POP",navigator:l,static:c=!1,unstable_useTransitions:f}){_e(!$r(),"You cannot render a inside another . You should never have more than one in your app.");let h=t.replace(/^\/*/,"/"),m=b.useMemo(()=>({basename:h,navigator:l,static:c,unstable_useTransitions:f,future:{}}),[h,l,c,f]);typeof s=="string"&&(s=Br(s));let{pathname:x="/",search:g="",hash:y="",state:w=null,key:k="default",unstable_mask:S}=s,E=b.useMemo(()=>{let C=pn(x,h);return C==null?null:{location:{pathname:C,search:g,hash:y,state:w,key:k,unstable_mask:S},navigationType:o}},[h,x,g,y,w,k,o,S]);return Kt(E!=null,` is not able to match the URL "${x}${g}${y}" because it does not start with the basename, so the won't render anything.`),E==null?null:b.createElement(Ct.Provider,{value:m},b.createElement(Xs.Provider,{children:r,value:E}))}function Zv({children:t,location:r}){return Vv(Su(t),r)}function Su(t,r=[]){let s=[];return b.Children.forEach(t,(o,l)=>{if(!b.isValidElement(o))return;let c=[...r,l];if(o.type===b.Fragment){s.push.apply(s,Su(o.props.children,c));return}_e(o.type===Zt,`[${typeof o.type=="string"?o.type:o.type.name}] is not a component. All component children of must be a or `),_e(!o.props.index||!o.props.children,"An index route cannot have child routes.");let f={id:o.props.id||c.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(f.children=Su(o.props.children,c)),s.push(f)}),s}var vo="get",wo="application/x-www-form-urlencoded";function Yo(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function qv(t){return Yo(t)&&t.tagName.toLowerCase()==="button"}function e1(t){return Yo(t)&&t.tagName.toLowerCase()==="form"}function t1(t){return Yo(t)&&t.tagName.toLowerCase()==="input"}function n1(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function r1(t,r){return t.button===0&&(!r||r==="_self")&&!n1(t)}var po=null;function s1(){if(po===null)try{new FormData(document.createElement("form"),0),po=!1}catch{po=!0}return po}var i1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ru(t){return t!=null&&!i1.has(t)?(Kt(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${wo}"`),null):t}function o1(t,r){let s,o,l,c,f;if(e1(t)){let h=t.getAttribute("action");o=h?pn(h,r):null,s=t.getAttribute("method")||vo,l=ru(t.getAttribute("enctype"))||wo,c=new FormData(t)}else if(qv(t)||t1(t)&&(t.type==="submit"||t.type==="image")){let h=t.form;if(h==null)throw new Error('Cannot submit a