function id(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ca={exports:{}},Wl={},Pa={exports:{}},z={};/** * @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 Rr=Symbol.for("react.element"),ud=Symbol.for("react.portal"),sd=Symbol.for("react.fragment"),ad=Symbol.for("react.strict_mode"),cd=Symbol.for("react.profiler"),fd=Symbol.for("react.provider"),dd=Symbol.for("react.context"),pd=Symbol.for("react.forward_ref"),hd=Symbol.for("react.suspense"),md=Symbol.for("react.memo"),vd=Symbol.for("react.lazy"),Yu=Symbol.iterator;function gd(e){return e===null||typeof e!="object"?null:(e=Yu&&e[Yu]||e["@@iterator"],typeof e=="function"?e:null)}var _a={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ra=Object.assign,La={};function Mn(e,t,n){this.props=e,this.context=t,this.refs=La,this.updater=n||_a}Mn.prototype.isReactComponent={};Mn.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")};Mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Na(){}Na.prototype=Mn.prototype;function Vi(e,t,n){this.props=e,this.context=t,this.refs=La,this.updater=n||_a}var Hi=Vi.prototype=new Na;Hi.constructor=Vi;Ra(Hi,Mn.prototype);Hi.isPureReactComponent=!0;var Gu=Array.isArray,Oa=Object.prototype.hasOwnProperty,Qi={current:null},Ta={key:!0,ref:!0,__self:!0,__source:!0};function za(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Oa.call(t,r)&&!Ta.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,ne=C[Y];if(0>>1;Yl(fo,T))Utl(Dr,fo)?(C[Y]=Dr,C[Ut]=T,Y=Ut):(C[Y]=fo,C[jt]=T,Y=jt);else if(Utl(Dr,T))C[Y]=Dr,C[Ut]=T,Y=Ut;else break e}}return O}function l(C,O){var T=C.sortIndex-O.sortIndex;return T!==0?T:C.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],d=1,f=null,m=3,v=!1,g=!1,w=!1,S=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 h(C){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=C)r(a),O.sortIndex=O.expirationTime,t(s,O);else break;O=n(a)}}function y(C){if(w=!1,h(C),!g)if(n(s)!==null)g=!0,X(x);else{var O=n(a);O!==null&&te(y,O.startTime-C)}}function x(C,O){g=!1,w&&(w=!1,p(R),R=-1),v=!0;var T=m;try{for(h(O),f=n(s);f!==null&&(!(f.expirationTime>O)||C&&!A());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,m=f.priorityLevel;var ne=Y(f.expirationTime<=O);O=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(s)&&r(s),h(O)}else r(s);f=n(s)}if(f!==null)var Mr=!0;else{var jt=n(a);jt!==null&&te(y,jt.startTime-O),Mr=!1}return Mr}finally{f=null,m=T,v=!1}}var P=!1,_=null,R=-1,M=5,N=-1;function A(){return!(e.unstable_now()-NC||125Y?(C.sortIndex=T,t(a,C),n(s)===null&&C===n(a)&&(w?(p(R),R=-1):w=!0,te(y,T-Y))):(C.sortIndex=ne,t(s,C),g||v||(g=!0,X(x))),C},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(C){var O=m;return function(){var T=m;m=O;try{return C.apply(this,arguments)}finally{m=T}}}})(Ia);Aa.exports=Ia;var Od=Aa.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 Td=k,_e=Od;function E(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"),Vo=Object.prototype.hasOwnProperty,zd=/^[: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]*$/,qu={},bu={};function Md(e){return Vo.call(bu,e)?!0:Vo.call(qu,e)?!1:zd.test(e)?bu[e]=!0:(qu[e]=!0,!1)}function Dd(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 Fd(e,t,n,r){if(t===null||typeof t>"u"||Dd(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 me(e,t,n,r,l,o,i){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=o,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new me(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){ue[e]=new me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new me(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xi=/[\-:]([a-z])/g;function Yi(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(Xi,Yi);ue[t]=new me(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(Xi,Yi);ue[t]=new me(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(Xi,Yi);ue[t]=new me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new me(e,1,!1,e.toLowerCase(),null,!1,!1)});ue.xlinkHref=new me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ue[e]=new me(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gi(e,t,n,r){var l=ue.hasOwnProperty(t)?ue[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` `+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yn(e):""}function Ad(e){switch(e.tag){case 5:return Yn(e.type);case 16:return Yn("Lazy");case 13:return Yn("Suspense");case 19:return Yn("SuspenseList");case 0:case 2:case 15:return e=vo(e.type,!1),e;case 11:return e=vo(e.type.render,!1),e;case 1:return e=vo(e.type,!0),e;default:return""}}function Xo(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 on:return"Fragment";case ln:return"Portal";case Ho:return"Profiler";case Ji:return"StrictMode";case Qo:return"Suspense";case Ko:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $a:return(e.displayName||"Context")+".Consumer";case Ua:return(e._context.displayName||"Context")+".Provider";case Zi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qi:return t=e.displayName||null,t!==null?t:Xo(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return Xo(e(t))}catch{}}return null}function Id(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 Xo(t);case 8:return t===Ji?"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 Tt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jd(e){var t=Wa(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ir(e){e._valueTracker||(e._valueTracker=jd(e))}function Va(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dl(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 Yo(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ts(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tt(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 Ha(e,t){t=t.checked,t!=null&&Gi(e,"checked",t,!1)}function Go(e,t){Ha(e,t);var n=Tt(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")?Jo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jo(e,t.type,Tt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ns(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 Jo(e,t,n){(t!=="number"||dl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gn=Array.isArray;function gn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qn={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},Ud=["Webkit","ms","Moz","O"];Object.keys(qn).forEach(function(e){Ud.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qn[t]=qn[e]})});function Ya(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qn.hasOwnProperty(e)&&qn[e]?(""+t).trim():t+"px"}function Ga(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ya(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var $d=H({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 bo(e,t){if(t){if($d[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function ei(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 ti=null;function bi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ni=null,yn=null,wn=null;function os(e){if(e=Or(e)){if(typeof ni!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Xl(t),ni(e.stateNode,e.type,t))}}function Ja(e){yn?wn?wn.push(e):wn=[e]:yn=e}function Za(){if(yn){var e=yn,t=wn;if(wn=yn=null,os(e),t)for(e=0;e>>=0,e===0?32:31-(Zd(e)/qd|0)|0}var Ur=64,$r=4194304;function Jn(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 vl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Jn(u):(o&=i,o!==0&&(r=Jn(o)))}else i=n&~l,i!==0?r=Jn(i):o!==0&&(r=Jn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 Lr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$e(t),e[t]=n}function np(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=er),hs=" ",ms=!1;function gc(e,t){switch(e){case"keyup":return Op.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var un=!1;function zp(e,t){switch(e){case"compositionend":return yc(t);case"keypress":return t.which!==32?null:(ms=!0,hs);case"textInput":return e=t.data,e===hs&&ms?null:e;default:return null}}function Mp(e,t){if(un)return e==="compositionend"||!uu&&gc(e,t)?(e=mc(),nl=lu=wt=null,un=!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=ws(n)}}function kc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ec(){for(var e=window,t=dl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=dl(e.document)}return t}function su(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 Wp(e){var t=Ec(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kc(n.ownerDocument.documentElement,n)){if(r!==null&&su(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,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ss(n,o);var i=Ss(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,sn=null,si=null,nr=null,ai=!1;function xs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ai||sn==null||sn!==dl(r)||(r=sn,"selectionStart"in r&&su(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}),nr&&hr(nr,r)||(nr=r,r=wl(si,"onSelect"),0fn||(e.current=mi[fn],mi[fn]=null,fn--)}function I(e,t){fn++,mi[fn]=e.current,e.current=t}var zt={},fe=At(zt),ye=At(!1),Yt=zt;function Pn(e,t){var n=e.type.contextTypes;if(!n)return zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function we(e){return e=e.childContextTypes,e!=null}function xl(){U(ye),U(fe)}function Ls(e,t,n){if(fe.current!==zt)throw Error(E(168));I(fe,t),I(ye,n)}function zc(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(E(108,Id(e)||"Unknown",l));return H({},n,r)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zt,Yt=fe.current,I(fe,e),I(ye,ye.current),!0}function Ns(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=zc(e,t,Yt),r.__reactInternalMemoizedMergedChildContext=e,U(ye),U(fe),I(fe,e)):U(ye),I(ye,n)}var tt=null,Yl=!1,Oo=!1;function Mc(e){tt===null?tt=[e]:tt.push(e)}function eh(e){Yl=!0,Mc(e)}function It(){if(!Oo&&tt!==null){Oo=!0;var e=0,t=F;try{var n=tt;for(F=1;e>=i,l-=i,nt=1<<32-$e(t)+l|n<R?(M=_,_=null):M=_.sibling;var N=m(p,_,h[R],y);if(N===null){_===null&&(_=M);break}e&&_&&N.alternate===null&&t(p,_),c=o(N,c,R),P===null?x=N:P.sibling=N,P=N,_=M}if(R===h.length)return n(p,_),$&&Bt(p,R),x;if(_===null){for(;RR?(M=_,_=null):M=_.sibling;var A=m(p,_,N.value,y);if(A===null){_===null&&(_=M);break}e&&_&&A.alternate===null&&t(p,_),c=o(A,c,R),P===null?x=A:P.sibling=A,P=A,_=M}if(N.done)return n(p,_),$&&Bt(p,R),x;if(_===null){for(;!N.done;R++,N=h.next())N=f(p,N.value,y),N!==null&&(c=o(N,c,R),P===null?x=N:P.sibling=N,P=N);return $&&Bt(p,R),x}for(_=r(p,_);!N.done;R++,N=h.next())N=v(_,p,R,N.value,y),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?R:N.key),c=o(N,c,R),P===null?x=N:P.sibling=N,P=N);return e&&_.forEach(function(q){return t(p,q)}),$&&Bt(p,R),x}function S(p,c,h,y){if(typeof h=="object"&&h!==null&&h.type===on&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Ar:e:{for(var x=h.key,P=c;P!==null;){if(P.key===x){if(x=h.type,x===on){if(P.tag===7){n(p,P.sibling),c=l(P,h.props.children),c.return=p,p=c;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===mt&&zs(x)===P.type){n(p,P.sibling),c=l(P,h.props),c.ref=Qn(p,P,h),c.return=p,p=c;break e}n(p,P);break}else t(p,P);P=P.sibling}h.type===on?(c=Xt(h.props.children,p.mode,y,h.key),c.return=p,p=c):(y=cl(h.type,h.key,h.props,null,p.mode,y),y.ref=Qn(p,c,h),y.return=p,p=y)}return i(p);case ln:e:{for(P=h.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(p,c.sibling),c=l(c,h.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=jo(h,p.mode,y),c.return=p,p=c}return i(p);case mt:return P=h._init,S(p,c,P(h._payload),y)}if(Gn(h))return g(p,c,h,y);if($n(h))return w(p,c,h,y);Xr(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(p,c.sibling),c=l(c,h),c.return=p,p=c):(n(p,c),c=Io(h,p.mode,y),c.return=p,p=c),i(p)):n(p,c)}return S}var Rn=Ic(!0),jc=Ic(!1),Pl=At(null),_l=null,hn=null,du=null;function pu(){du=hn=_l=null}function hu(e){var t=Pl.current;U(Pl),e._currentValue=t}function yi(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 xn(e,t){_l=e,du=hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ge=!0),e.firstContext=null)}function De(e){var t=e._currentValue;if(du!==e)if(e={context:e,memoizedValue:t,next:null},hn===null){if(_l===null)throw Error(E(308));hn=e,_l.dependencies={lanes:0,firstContext:e}}else hn=hn.next=e;return t}var Ht=null;function mu(e){Ht===null?Ht=[e]:Ht.push(e)}function Uc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,mu(t)):(n.next=l.next,l.next=n),t.interleaved=n,ut(e,r)}function ut(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 vt=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $c(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 lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,ut(e,n)}return l=r.interleaved,l===null?(t.next=t,mu(r)):(t.next=l.next,l.next=t),r.interleaved=t,ut(e,n)}function ll(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,tu(e,n)}}function Ms(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,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 Rl(e,t,n,r){var l=e.updateQueue;vt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,u=d.lastBaseUpdate,u!==i&&(u===null?d.firstBaseUpdate=a:u.next=a,d.lastBaseUpdate=s))}if(o!==null){var f=l.baseState;i=0,d=a=s=null,u=o;do{var m=u.lane,v=u.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,w=u;switch(m=t,v=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){f=g.call(v,f,m);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,m=typeof g=="function"?g.call(v,f,m):g,m==null)break e;f=H({},f,m);break e;case 2:vt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else v={eventTime:v,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},d===null?(a=d=v,s=f):d=d.next=v,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(d===null&&(s=f),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=d,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Zt|=i,e.lanes=i,e.memoizedState=f}}function Ds(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=zo.transition;zo.transition={};try{e(!1),t()}finally{F=n,zo.transition=r}}function rf(){return Fe().memoizedState}function lh(e,t,n){var r=Lt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lf(e))of(t,n);else if(n=Uc(e,t,n,r),n!==null){var l=pe();Be(n,e,r,l),uf(n,t,r)}}function oh(e,t,n){var r=Lt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lf(e))of(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,We(u,i)){var s=t.interleaved;s===null?(l.next=l,mu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Uc(e,t,l,r),n!==null&&(l=pe(),Be(n,e,r,l),uf(n,t,r))}}function lf(e){var t=e.alternate;return e===W||t!==null&&t===W}function of(e,t){rr=Nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tu(e,n)}}var Ol={readContext:De,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},ih={readContext:De,useCallback:function(e,t){return Ke().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:As,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,il(4194308,4,qc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return il(4194308,4,e,t)},useInsertionEffect:function(e,t){return il(4,2,e,t)},useMemo:function(e,t){var n=Ke();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ke();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=lh.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Ke();return e={current:e},t.memoizedState=e},useState:Fs,useDebugValue:Cu,useDeferredValue:function(e){return Ke().memoizedState=e},useTransition:function(){var e=Fs(!1),t=e[0];return e=rh.bind(null,e[1]),Ke().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,l=Ke();if($){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),le===null)throw Error(E(349));Jt&30||Hc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,As(Kc.bind(null,r,o,e),[e]),r.flags|=2048,kr(9,Qc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ke(),t=le.identifierPrefix;if($){var n=rt,r=nt;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Sr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Xe]=t,e[gr]=r,gf(e,t,!1,!1),t.stateNode=e;e:{switch(i=ei(n,r),n){case"dialog":j("cancel",e),j("close",e),l=r;break;case"iframe":case"object":case"embed":j("load",e),l=r;break;case"video":case"audio":for(l=0;lOn&&(t.flags|=128,r=!0,Kn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ll(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return ae(t),null}else 2*G()-o.renderingStartTime>On&&n!==1073741824&&(t.flags|=128,r=!0,Kn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=G(),t.sibling=null,n=B.current,I(B,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return Ou(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xe&1073741824&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function hh(e,t){switch(cu(t),t.tag){case 1:return we(t.type)&&xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(),U(ye),U(fe),wu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yu(t),null;case 13:if(U(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));_n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(B),null;case 4:return Ln(),null;case 10:return hu(t.type._context),null;case 22:case 23:return Ou(),null;case 24:return null;default:return null}}var Gr=!1,ce=!1,mh=typeof WeakSet=="function"?WeakSet:Set,L=null;function mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(e,t,r)}else n.current=null}function Ri(e,t,n){try{n()}catch(r){K(e,t,r)}}var Xs=!1;function vh(e,t){if(ci=gl,e=Ec(),su(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,d=0,f=e,m=null;t:for(;;){for(var v;f!==n||l!==0&&f.nodeType!==3||(u=i+l),f!==o||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)m=f,f=v;for(;;){if(f===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++d===r&&(s=i),(v=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=v}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(fi={focusedElem:e,selectionRange:n},gl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,S=g.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ie(t.type,w),S);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(y){K(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=Xs,Xs=!1,g}function lr(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 o=l.destroy;l.destroy=void 0,o!==void 0&&Ri(t,n,o)}l=l.next}while(l!==r)}}function Zl(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 Li(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 Sf(e){var t=e.alternate;t!==null&&(e.alternate=null,Sf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[gr],delete t[hi],delete t[qp],delete t[bp])),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 xf(e){return e.tag===5||e.tag===3||e.tag===4}function Ys(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xf(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 Ni(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=Sl));else if(r!==4&&(e=e.child,e!==null))for(Ni(e,t,n),e=e.sibling;e!==null;)Ni(e,t,n),e=e.sibling}function Oi(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(Oi(e,t,n),e=e.sibling;e!==null;)Oi(e,t,n),e=e.sibling}var oe=null,je=!1;function ht(e,t,n){for(n=n.child;n!==null;)kf(e,t,n),n=n.sibling}function kf(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(Vl,n)}catch{}switch(n.tag){case 5:ce||mn(n,t);case 6:var r=oe,l=je;oe=null,ht(e,t,n),oe=r,je=l,oe!==null&&(je?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(je?(e=oe,n=n.stateNode,e.nodeType===8?No(e.parentNode,n):e.nodeType===1&&No(e,n),dr(e)):No(oe,n.stateNode));break;case 4:r=oe,l=je,oe=n.stateNode.containerInfo,je=!0,ht(e,t,n),oe=r,je=l;break;case 0:case 11:case 14:case 15:if(!ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ri(n,t,i),l=l.next}while(l!==r)}ht(e,t,n);break;case 1:if(!ce&&(mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){K(n,t,u)}ht(e,t,n);break;case 21:ht(e,t,n);break;case 22:n.mode&1?(ce=(r=ce)||n.memoizedState!==null,ht(e,t,n),ce=r):ht(e,t,n);break;default:ht(e,t,n)}}function Gs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mh),t.forEach(function(r){var l=Ph.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ae(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yh(r/1960))-r,10e?16:e,St===null)var r=!1;else{if(e=St,St=null,Ml=0,D&6)throw Error(E(331));var l=D;for(D|=4,L=e.current;L!==null;){var o=L,i=o.child;if(L.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sG()-Lu?Kt(e,0):Ru|=n),Se(e,t)}function Of(e,t){t===0&&(e.mode&1?(t=$r,$r<<=1,!($r&130023424)&&($r=4194304)):t=1);var n=pe();e=ut(e,t),e!==null&&(Lr(e,t,n),Se(e,n))}function Ch(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Of(e,n)}function Ph(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(E(314))}r!==null&&r.delete(t),Of(e,n)}var Tf;Tf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ge=!1,dh(e,t,n);ge=!!(e.flags&131072)}else ge=!1,$&&t.flags&1048576&&Dc(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ul(e,t),e=t.pendingProps;var l=Pn(t,fe.current);xn(t,n),l=xu(null,t,r,e,l,n);var o=ku();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,we(r)?(o=!0,kl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,vu(t),l.updater=Jl,t.stateNode=l,l._reactInternals=t,Si(t,r,e,n),t=Ei(null,t,r,!0,o,n)):(t.tag=0,$&&o&&au(t),de(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Rh(r),e=Ie(r,e),l){case 0:t=ki(null,t,r,e,n);break e;case 1:t=Hs(null,t,r,e,n);break e;case 11:t=Ws(null,t,r,e,n);break e;case 14:t=Vs(null,t,r,Ie(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),ki(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Hs(e,t,r,l,n);case 3:e:{if(hf(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,l=o.element,$c(e,t),Rl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Nn(Error(E(423)),t),t=Qs(e,t,r,n,l);break e}else if(r!==l){l=Nn(Error(E(424)),t),t=Qs(e,t,r,n,l);break e}else for(Ee=Pt(t.stateNode.containerInfo.firstChild),Ce=t,$=!0,Ue=null,n=jc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_n(),r===l){t=st(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return Bc(t),e===null&&gi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,di(r,l)?i=null:o!==null&&di(r,o)&&(t.flags|=32),pf(e,t),de(e,t,i,n),t.child;case 6:return e===null&&gi(t),null;case 13:return mf(e,t,n);case 4:return gu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Rn(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Ws(e,t,r,l,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,I(Pl,r._currentValue),r._currentValue=i,o!==null)if(We(o.value,i)){if(o.children===l.children&&!ye.current){t=st(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=lt(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),yi(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(E(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),yi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}de(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,xn(t,n),l=De(l),r=r(l),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,l=Ie(r,t.pendingProps),l=Ie(r.type,l),Vs(e,t,r,l,n);case 15:return ff(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),ul(e,t),t.tag=1,we(r)?(e=!0,kl(t)):e=!1,xn(t,n),sf(t,r,l),Si(t,r,l,n),Ei(null,t,r,!0,e,n);case 19:return vf(e,t,n);case 22:return df(e,t,n)}throw Error(E(156,t.tag))};function zf(e,t){return lc(e,t)}function _h(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 ze(e,t,n,r){return new _h(e,t,n,r)}function zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rh(e){if(typeof e=="function")return zu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zi)return 11;if(e===qi)return 14}return 2}function Nt(e,t){var n=e.alternate;return n===null?(n=ze(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 cl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")zu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case on:return Xt(n.children,l,o,t);case Ji:i=8,l|=8;break;case Ho:return e=ze(12,n,t,l|2),e.elementType=Ho,e.lanes=o,e;case Qo:return e=ze(13,n,t,l),e.elementType=Qo,e.lanes=o,e;case Ko:return e=ze(19,n,t,l),e.elementType=Ko,e.lanes=o,e;case Ba:return bl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ua:i=10;break e;case $a:i=9;break e;case Zi:i=11;break e;case qi:i=14;break e;case mt:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=ze(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Xt(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function bl(e,t,n,r){return e=ze(22,e,r,t),e.elementType=Ba,e.lanes=n,e.stateNode={isHidden:!1},e}function Io(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function jo(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lh(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=yo(0),this.expirationTimes=yo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,l,o,i,u,s){return e=new Lh(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vu(o),e}function Nh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Af)}catch(e){console.error(e)}}Af(),Fa.exports=Re;var Iu=Fa.exports;const Fv=Ea(Iu);var ra=Iu;Zu.createRoot=ra.createRoot,Zu.hydrateRoot=ra.hydrateRoot;/** * @remix-run/router v1.23.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ju(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fh(){return Math.random().toString(36).substr(2,8)}function oa(e,t){return{usr:e.state,key:e.key,idx:t}}function Fi(e,t,n,r){return n===void 0&&(n=null),Cr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?An(t):t,{state:n,key:t&&t.key||r||Fh()})}function Al(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 An(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 Ah(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=xt.Pop,s=null,a=d();a==null&&(a=0,i.replaceState(Cr({},i.state,{idx:a}),""));function d(){return(i.state||{idx:null}).idx}function f(){u=xt.Pop;let S=d(),p=S==null?null:S-a;a=S,s&&s({action:u,location:w.location,delta:p})}function m(S,p){u=xt.Push;let c=Fi(w.location,S,p);a=d()+1;let h=oa(c,a),y=w.createHref(c);try{i.pushState(h,"",y)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;l.location.assign(y)}o&&s&&s({action:u,location:w.location,delta:1})}function v(S,p){u=xt.Replace;let c=Fi(w.location,S,p);a=d();let h=oa(c,a),y=w.createHref(c);i.replaceState(h,"",y),o&&s&&s({action:u,location:w.location,delta:0})}function g(S){let p=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof S=="string"?S:Al(S);return c=c.replace(/ $/,"%20"),V(p,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,p)}let w={get action(){return u},get location(){return e(l,i)},listen(S){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(la,f),s=S,()=>{l.removeEventListener(la,f),s=null}},createHref(S){return t(l,S)},createURL:g,encodeLocation(S){let p=g(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:m,replace:v,go(S){return i.go(S)}};return w}var ia;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ia||(ia={}));function Ih(e,t,n){return n===void 0&&(n="/"),jh(e,t,n)}function jh(e,t,n,r){let l=typeof t=="string"?An(t):t,o=Tn(l.pathname||"/",n);if(o==null)return null;let i=If(e);Uh(i);let u=null,s=Jh(o);for(let a=0;u==null&&a{let s={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(V(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=Ot([r,s.relativePath]),d=n.concat(s);o.children&&o.children.length>0&&(V(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),If(o.children,t,d,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Kh(a,o.index),routesMeta:d})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))l(o,i);else for(let s of jf(o.path))l(o,i,s)}),t}function jf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=jf(r.join("/")),u=[];return u.push(...i.map(s=>s===""?o:[o,s].join("/"))),l&&u.push(...i),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Uh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Xh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $h=/^:[\w-]+$/,Bh=3,Wh=2,Vh=1,Hh=10,Qh=-2,ua=e=>e==="*";function Kh(e,t){let n=e.split("/"),r=n.length;return n.some(ua)&&(r+=Qh),t&&(r+=Wh),n.filter(l=>!ua(l)).reduce((l,o)=>l+($h.test(o)?Bh:o===""?Vh:Hh),r)}function Xh(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 Yh(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let u=0;u{let{paramName:m,isOptional:v}=d;if(m==="*"){let w=u[f]||"";i=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const g=u[f];return v&&!g?a[m]=void 0:a[m]=(g||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Gh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ju(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,(i,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Jh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ju(!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 Tn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Zh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qh=e=>Zh.test(e);function bh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?An(e):e,o;if(n)if(qh(n))o=n;else{if(n.includes("//")){let i=n;n=Uf(n),ju(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?o=sa(n.substring(1),"/"):o=sa(n,t)}else o=t;return{pathname:o,search:nm(r),hash:rm(l)}}function sa(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 Uo(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 em(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Uu(e,t){let n=em(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function $u(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=An(e):(l=Cr({},e),V(!l.pathname||!l.pathname.includes("?"),Uo("?","pathname","search",l)),V(!l.pathname||!l.pathname.includes("#"),Uo("#","pathname","hash",l)),V(!l.search||!l.search.includes("#"),Uo("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,u;if(i==null)u=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;l.pathname=m.join("/")}u=f>=0?t[f]:"/"}let s=bh(l,u),a=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(a||d)&&(s.pathname+="/"),s}const Uf=e=>e.replace(/\/\/+/g,"/"),Ot=e=>Uf(e.join("/")),tm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function lm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $f=["post","put","patch","delete"];new Set($f);const om=["get",...$f];new Set(om);/** * React Router v6.30.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),k.useCallback(function(a,d){if(d===void 0&&(d={}),!u.current)return;if(typeof a=="number"){r.go(a);return}let f=$u(a,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ot([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}const Hf=k.createContext(null);function Av(){return k.useContext(Hf)}function sm(e){let t=k.useContext(qe).outlet;return t&&k.createElement(Hf.Provider,{value:e},t)}function Iv(){let{matches:e}=k.useContext(qe),t=e[e.length-1];return t?t.params:{}}function io(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(dt),{matches:l}=k.useContext(qe),{pathname:o}=nn(),i=JSON.stringify(Uu(l,r.v7_relativeSplatPath));return k.useMemo(()=>$u(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function am(e,t){return cm(e,t)}function cm(e,t,n,r){In()||V(!1);let{navigator:l}=k.useContext(dt),{matches:o}=k.useContext(qe),i=o[o.length-1],u=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let a=nn(),d;if(t){var f;let S=typeof t=="string"?An(t):t;s==="/"||(f=S.pathname)!=null&&f.startsWith(s)||V(!1),d=S}else d=a;let m=d.pathname||"/",v=m;if(s!=="/"){let S=s.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=Ih(e,{pathname:v}),w=mm(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:Ot([s,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?s:Ot([s,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,n,r);return t&&w?k.createElement(oo.Provider,{value:{location:Pr({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:xt.Pop}},w):w}function fm(){let e=wm(),t=lm(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 k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:l},n):null,null)}const dm=k.createElement(fm,null);class pm extends k.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?k.createElement(qe.Provider,{value:this.props.routeContext},k.createElement(Wf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hm(e){let{routeContext:t,match:n,children:r}=e,l=k.useContext(lo);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(qe.Provider,{value:t},r)}function mm(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let d=i.findIndex(f=>f.route.id&&(u==null?void 0:u[f.route.id])!==void 0);d>=0||V(!1),i=i.slice(0,Math.min(i.length,d+1))}let s=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let v,g=!1,w=null,S=null;n&&(v=u&&f.route.id?u[f.route.id]:void 0,w=f.route.errorElement||dm,s&&(a<0&&m===0?(xm("route-fallback"),g=!0,S=null):a===m&&(g=!0,S=f.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,m+1)),c=()=>{let h;return v?h=w:g?h=S:f.route.Component?h=k.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=d,k.createElement(hm,{match:f,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?k.createElement(pm,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:c(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):c()},null)}var Qf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Qf||{}),Kf=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}(Kf||{});function vm(e){let t=k.useContext(lo);return t||V(!1),t}function gm(e){let t=k.useContext(Bf);return t||V(!1),t}function ym(e){let t=k.useContext(qe);return t||V(!1),t}function Xf(e){let t=ym(),n=t.matches[t.matches.length-1];return n.route.id||V(!1),n.route.id}function wm(){var e;let t=k.useContext(Wf),n=gm(),r=Xf();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Sm(){let{router:e}=vm(Qf.UseNavigateStable),t=Xf(Kf.UseNavigateStable),n=k.useRef(!1);return Vf(()=>{n.current=!0}),k.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Pr({fromRouteId:t},o)))},[e,t])}const aa={};function xm(e,t,n){aa[e]||(aa[e]=!0)}function km(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function jv(e){let{to:t,replace:n,state:r,relative:l}=e;In()||V(!1);let{future:o,static:i}=k.useContext(dt),{matches:u}=k.useContext(qe),{pathname:s}=nn(),a=Bu(),d=$u(t,Uu(u,o.v7_relativeSplatPath),s,l==="path"),f=JSON.stringify(d);return k.useEffect(()=>a(JSON.parse(f),{replace:n,state:r,relative:l}),[a,f,l,n,r]),null}function Uv(e){return sm(e.context)}function Em(e){V(!1)}function Cm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=xt.Pop,navigator:o,static:i=!1,future:u}=e;In()&&V(!1);let s=t.replace(/^\/*/,"/"),a=k.useMemo(()=>({basename:s,navigator:o,static:i,future:Pr({v7_relativeSplatPath:!1},u)}),[s,u,o,i]);typeof r=="string"&&(r=An(r));let{pathname:d="/",search:f="",hash:m="",state:v=null,key:g="default"}=r,w=k.useMemo(()=>{let S=Tn(d,s);return S==null?null:{location:{pathname:S,search:f,hash:m,state:v,key:g},navigationType:l}},[s,d,f,m,v,g,l]);return w==null?null:k.createElement(dt.Provider,{value:a},k.createElement(oo.Provider,{children:n,value:w}))}function $v(e){let{children:t,location:n}=e;return am(Ii(t),n)}new Promise(()=>{});function Ii(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,l)=>{if(!k.isValidElement(r))return;let o=[...t,l];if(r.type===k.Fragment){n.push.apply(n,Ii(r.props.children,o));return}r.type!==Em&&V(!1),!r.props.index||!r.props.children||V(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Ii(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.30.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(l=>[n,l]):[[n,r]])},[]))}function Rm(e,t){let n=ji(e);return t&&t.forEach((r,l)=>{n.has(l)||t.getAll(l).forEach(o=>{n.append(l,o)})}),n}const Lm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Nm=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Om="6";try{window.__reactRouterVersion=Om}catch{}const Tm=k.createContext({isTransitioning:!1}),zm="startTransition",ca=Ed[zm];function Bv(e){let{basename:t,children:n,future:r,window:l}=e,o=k.useRef();o.current==null&&(o.current=Dh({window:l,v5Compat:!0}));let i=o.current,[u,s]=k.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},d=k.useCallback(f=>{a&&ca?ca(()=>s(f)):s(f)},[s,a]);return k.useLayoutEffect(()=>i.listen(d),[i,d]),k.useEffect(()=>km(r),[r]),k.createElement(Cm,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}const Mm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fm=k.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:u,target:s,to:a,preventScrollReset:d,viewTransition:f}=t,m=Yf(t,Lm),{basename:v}=k.useContext(dt),g,w=!1;if(typeof a=="string"&&Dm.test(a)&&(g=a,Mm))try{let h=new URL(window.location.href),y=a.startsWith("//")?new URL(h.protocol+a):new URL(a),x=Tn(y.pathname,v);y.origin===h.origin&&x!=null?a=x+y.search+y.hash:w=!0}catch{}let S=im(a,{relative:l}),p=Im(a,{replace:i,state:u,target:s,preventScrollReset:d,relative:l,viewTransition:f});function c(h){r&&r(h),h.defaultPrevented||p(h)}return k.createElement("a",Il({},m,{href:g||S,onClick:w||o?r:c,ref:n,target:s}))}),Wv=k.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:o="",end:i=!1,style:u,to:s,viewTransition:a,children:d}=t,f=Yf(t,Nm),m=io(s,{relative:f.relative}),v=nn(),g=k.useContext(Bf),{navigator:w,basename:S}=k.useContext(dt),p=g!=null&&jm(m)&&a===!0,c=w.encodeLocation?w.encodeLocation(m).pathname:m.pathname,h=v.pathname,y=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;l||(h=h.toLowerCase(),y=y?y.toLowerCase():null,c=c.toLowerCase()),y&&S&&(y=Tn(y,S)||y);const x=c!=="/"&&c.endsWith("/")?c.length-1:c.length;let P=h===c||!i&&h.startsWith(c)&&h.charAt(x)==="/",_=y!=null&&(y===c||!i&&y.startsWith(c)&&y.charAt(c.length)==="/"),R={isActive:P,isPending:_,isTransitioning:p},M=P?r:void 0,N;typeof o=="function"?N=o(R):N=[o,P?"active":null,_?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let A=typeof u=="function"?u(R):u;return k.createElement(Fm,Il({},f,{"aria-current":M,className:N,ref:n,style:A,to:s,viewTransition:a}),typeof d=="function"?d(R):d)});var Ui;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ui||(Ui={}));var fa;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fa||(fa={}));function Am(e){let t=k.useContext(lo);return t||V(!1),t}function Im(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,viewTransition:u}=t===void 0?{}:t,s=Bu(),a=nn(),d=io(e,{relative:i});return k.useCallback(f=>{if(_m(f,n)){f.preventDefault();let m=r!==void 0?r:Al(a)===Al(d);s(e,{replace:m,state:l,preventScrollReset:o,relative:i,viewTransition:u})}},[a,s,d,r,l,n,e,o,i,u])}function Vv(e){let t=k.useRef(ji(e)),n=k.useRef(!1),r=nn(),l=k.useMemo(()=>Rm(r.search,n.current?null:t.current),[r.search]),o=Bu(),i=k.useCallback((u,s)=>{const a=ji(typeof u=="function"?u(l):u);n.current=!0,o("?"+a,s)},[o,l]);return[l,i]}function jm(e,t){t===void 0&&(t={});let n=k.useContext(Tm);n==null&&V(!1);let{basename:r}=Am(Ui.useViewTransitionState),l=io(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Tn(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Tn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ai(l.pathname,i)!=null||Ai(l.pathname,o)!=null}const Um=["top","right","bottom","left"],Mt=Math.min,ke=Math.max,jl=Math.round,qr=Math.floor,Ze=e=>({x:e,y:e}),$m={left:"right",right:"left",bottom:"top",top:"bottom"};function $i(e,t,n){return ke(e,Mt(t,n))}function at(e,t){return typeof e=="function"?e(t):e}function ct(e){return e.split("-")[0]}function jn(e){return e.split("-")[1]}function Wu(e){return e==="x"?"y":"x"}function Vu(e){return e==="y"?"height":"width"}function Ye(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Hu(e){return Wu(Ye(e))}function Bm(e,t,n){n===void 0&&(n=!1);const r=jn(e),l=Hu(e),o=Vu(l);let i=l==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Ul(i)),[i,Ul(i)]}function Wm(e){const t=Ul(e);return[Bi(e),t,Bi(t)]}function Bi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const da=["left","right"],pa=["right","left"],Vm=["top","bottom"],Hm=["bottom","top"];function Qm(e,t,n){switch(e){case"top":case"bottom":return n?t?pa:da:t?da:pa;case"left":case"right":return t?Vm:Hm;default:return[]}}function Km(e,t,n,r){const l=jn(e);let o=Qm(ct(e),n==="start",r);return l&&(o=o.map(i=>i+"-"+l),t&&(o=o.concat(o.map(Bi)))),o}function Ul(e){const t=ct(e);return $m[t]+e.slice(t.length)}function Xm(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gf(e){return typeof e!="number"?Xm(e):{top:e,right:e,bottom:e,left:e}}function $l(e){const{x:t,y:n,width:r,height:l}=e;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function ha(e,t,n){let{reference:r,floating:l}=e;const o=Ye(t),i=Hu(t),u=Vu(i),s=ct(t),a=o==="y",d=r.x+r.width/2-l.width/2,f=r.y+r.height/2-l.height/2,m=r[u]/2-l[u]/2;let v;switch(s){case"top":v={x:d,y:r.y-l.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-l.width,y:f};break;default:v={x:r.x,y:r.y}}switch(jn(t)){case"start":v[i]-=m*(n&&a?-1:1);break;case"end":v[i]+=m*(n&&a?-1:1);break}return v}async function Ym(e,t){var n;t===void 0&&(t={});const{x:r,y:l,platform:o,rects:i,elements:u,strategy:s}=e,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=at(t,e),g=Gf(v),S=u[m?f==="floating"?"reference":"floating":f],p=$l(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(S)))==null||n?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:a,rootBoundary:d,strategy:s})),c=f==="floating"?{x:r,y:l,width:i.floating.width,height:i.floating.height}:i.reference,h=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),y=await(o.isElement==null?void 0:o.isElement(h))?await(o.getScale==null?void 0:o.getScale(h))||{x:1,y:1}:{x:1,y:1},x=$l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:c,offsetParent:h,strategy:s}):c);return{top:(p.top-x.top+g.top)/y.y,bottom:(x.bottom-p.bottom+g.bottom)/y.y,left:(p.left-x.left+g.left)/y.x,right:(x.right-p.right+g.right)/y.x}}const Gm=50,Jm=async(e,t,n)=>{const{placement:r="bottom",strategy:l="absolute",middleware:o=[],platform:i}=n,u=i.detectOverflow?i:{...i,detectOverflow:Ym},s=await(i.isRTL==null?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:f}=ha(a,r,s),m=r,v=0;const g={};for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:l,rects:o,platform:i,elements:u,middlewareData:s}=t,{element:a,padding:d=0}=at(e,t)||{};if(a==null)return{};const f=Gf(d),m={x:n,y:r},v=Hu(l),g=Vu(v),w=await i.getDimensions(a),S=v==="y",p=S?"top":"left",c=S?"bottom":"right",h=S?"clientHeight":"clientWidth",y=o.reference[g]+o.reference[v]-m[v]-o.floating[g],x=m[v]-o.reference[v],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a));let _=P?P[h]:0;(!_||!await(i.isElement==null?void 0:i.isElement(P)))&&(_=u.floating[h]||o.floating[g]);const R=y/2-x/2,M=_/2-w[g]/2-1,N=Mt(f[p],M),A=Mt(f[c],M),q=N,J=_-w[g]-A,Q=_/2-w[g]/2+R,Ne=$i(q,Q,J),X=!s.arrow&&jn(l)!=null&&Q!==Ne&&o.reference[g]/2-(QQ<=0)){var A,q;const Q=(((A=o.flip)==null?void 0:A.index)||0)+1,Ne=_[Q];if(Ne&&(!(f==="alignment"?c!==Ye(Ne):!1)||N.every(C=>Ye(C.placement)===c?C.overflows[0]>0:!0)))return{data:{index:Q,overflows:N},reset:{placement:Ne}};let X=(q=N.filter(te=>te.overflows[0]<=0).sort((te,C)=>te.overflows[1]-C.overflows[1])[0])==null?void 0:q.placement;if(!X)switch(v){case"bestFit":{var J;const te=(J=N.filter(C=>{if(P){const O=Ye(C.placement);return O===c||O==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(O=>O>0).reduce((O,T)=>O+T,0)]).sort((C,O)=>C[1]-O[1])[0])==null?void 0:J[0];te&&(X=te);break}case"initialPlacement":X=u;break}if(l!==X)return{reset:{placement:X}}}return{}}}};function ma(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function va(e){return Um.some(t=>e[t]>=0)}const bm=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:l="referenceHidden",...o}=at(e,t);switch(l){case"referenceHidden":{const i=await r.detectOverflow(t,{...o,elementContext:"reference"}),u=ma(i,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:va(u)}}}case"escaped":{const i=await r.detectOverflow(t,{...o,altBoundary:!0}),u=ma(i,n.floating);return{data:{escapedOffsets:u,escaped:va(u)}}}default:return{}}}}},Jf=new Set(["left","top"]);async function ev(e,t){const{placement:n,platform:r,elements:l}=e,o=await(r.isRTL==null?void 0:r.isRTL(l.floating)),i=ct(n),u=jn(n),s=Ye(n)==="y",a=Jf.has(i)?-1:1,d=o&&s?-1:1,f=at(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&typeof g=="number"&&(v=u==="end"?g*-1:g),s?{x:v*d,y:m*a}:{x:m*a,y:v*d}}const tv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:l,y:o,placement:i,middlewareData:u}=t,s=await ev(t,e);return i===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:l+s.x,y:o+s.y,data:{...s,placement:i}}}}},nv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:l,platform:o}=t,{mainAxis:i=!0,crossAxis:u=!1,limiter:s={fn:p=>{let{x:c,y:h}=p;return{x:c,y:h}}},...a}=at(e,t),d={x:n,y:r},f=await o.detectOverflow(t,a),m=Ye(ct(l)),v=Wu(m);let g=d[v],w=d[m];if(i){const p=v==="y"?"top":"left",c=v==="y"?"bottom":"right",h=g+f[p],y=g-f[c];g=$i(h,g,y)}if(u){const p=m==="y"?"top":"left",c=m==="y"?"bottom":"right",h=w+f[p],y=w-f[c];w=$i(h,w,y)}const S=s.fn({...t,[v]:g,[m]:w});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[v]:i,[m]:u}}}}}},rv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:l,rects:o,middlewareData:i}=t,{offset:u=0,mainAxis:s=!0,crossAxis:a=!0}=at(e,t),d={x:n,y:r},f=Ye(l),m=Wu(f);let v=d[m],g=d[f];const w=at(u,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){const h=m==="y"?"height":"width",y=o.reference[m]-o.floating[h]+S.mainAxis,x=o.reference[m]+o.reference[h]-S.mainAxis;vx&&(v=x)}if(a){var p,c;const h=m==="y"?"width":"height",y=Jf.has(ct(l)),x=o.reference[f]-o.floating[h]+(y&&((p=i.offset)==null?void 0:p[f])||0)+(y?0:S.crossAxis),P=o.reference[f]+o.reference[h]+(y?0:((c=i.offset)==null?void 0:c[f])||0)-(y?S.crossAxis:0);gP&&(g=P)}return{[m]:v,[f]:g}}}},lv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:l,rects:o,platform:i,elements:u}=t,{apply:s=()=>{},...a}=at(e,t),d=await i.detectOverflow(t,a),f=ct(l),m=jn(l),v=Ye(l)==="y",{width:g,height:w}=o.floating;let S,p;f==="top"||f==="bottom"?(S=f,p=m===(await(i.isRTL==null?void 0:i.isRTL(u.floating))?"start":"end")?"left":"right"):(p=f,S=m==="end"?"top":"bottom");const c=w-d.top-d.bottom,h=g-d.left-d.right,y=Mt(w-d[S],c),x=Mt(g-d[p],h),P=!t.middlewareData.shift;let _=y,R=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=h),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=c),P&&!m){const N=ke(d.left,0),A=ke(d.right,0),q=ke(d.top,0),J=ke(d.bottom,0);v?R=g-2*(N!==0||A!==0?N+A:ke(d.left,d.right)):_=w-2*(q!==0||J!==0?q+J:ke(d.top,d.bottom))}await s({...t,availableWidth:R,availableHeight:_});const M=await i.getDimensions(u.floating);return g!==M.width||w!==M.height?{reset:{rects:!0}}:{}}}};function uo(){return typeof window<"u"}function Un(e){return Zf(e)?(e.nodeName||"").toLowerCase():"#document"}function Pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(Zf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zf(e){return uo()?e instanceof Node||e instanceof Pe(e).Node:!1}function Ve(e){return uo()?e instanceof Element||e instanceof Pe(e).Element:!1}function pt(e){return uo()?e instanceof HTMLElement||e instanceof Pe(e).HTMLElement:!1}function ga(e){return!uo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pe(e).ShadowRoot}function zr(e){const{overflow:t,overflowX:n,overflowY:r,display:l}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&l!=="inline"&&l!=="contents"}function ov(e){return/^(table|td|th)$/.test(Un(e))}function so(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const iv=/transform|translate|scale|rotate|perspective|filter/,uv=/paint|layout|strict|content/,$t=e=>!!e&&e!=="none";let $o;function Qu(e){const t=Ve(e)?He(e):e;return $t(t.transform)||$t(t.translate)||$t(t.scale)||$t(t.rotate)||$t(t.perspective)||!Ku()&&($t(t.backdropFilter)||$t(t.filter))||iv.test(t.willChange||"")||uv.test(t.contain||"")}function sv(e){let t=Dt(e);for(;pt(t)&&!zn(t);){if(Qu(t))return t;if(so(t))return null;t=Dt(t)}return null}function Ku(){return $o==null&&($o=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$o}function zn(e){return/^(html|body|#document)$/.test(Un(e))}function He(e){return Pe(e).getComputedStyle(e)}function ao(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dt(e){if(Un(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ga(e)&&e.host||be(e);return ga(t)?t.host:t}function qf(e){const t=Dt(e);return zn(t)?e.ownerDocument?e.ownerDocument.body:e.body:pt(t)&&zr(t)?t:qf(t)}function _r(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=qf(e),o=l===((r=e.ownerDocument)==null?void 0:r.body),i=Pe(l);if(o){const u=Wi(i);return t.concat(i,i.visualViewport||[],zr(l)?l:[],u&&n?_r(u):[])}else return t.concat(l,_r(l,[],n))}function Wi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bf(e){const t=He(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const l=pt(e),o=l?e.offsetWidth:n,i=l?e.offsetHeight:r,u=jl(n)!==o||jl(r)!==i;return u&&(n=o,r=i),{width:n,height:r,$:u}}function Xu(e){return Ve(e)?e:e.contextElement}function En(e){const t=Xu(e);if(!pt(t))return Ze(1);const n=t.getBoundingClientRect(),{width:r,height:l,$:o}=bf(t);let i=(o?jl(n.width):n.width)/r,u=(o?jl(n.height):n.height)/l;return(!i||!Number.isFinite(i))&&(i=1),(!u||!Number.isFinite(u))&&(u=1),{x:i,y:u}}const av=Ze(0);function ed(e){const t=Pe(e);return!Ku()||!t.visualViewport?av:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pe(e)?!1:t}function bt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),o=Xu(e);let i=Ze(1);t&&(r?Ve(r)&&(i=En(r)):i=En(e));const u=cv(o,n,r)?ed(o):Ze(0);let s=(l.left+u.x)/i.x,a=(l.top+u.y)/i.y,d=l.width/i.x,f=l.height/i.y;if(o){const m=Pe(o),v=r&&Ve(r)?Pe(r):r;let g=m,w=Wi(g);for(;w&&r&&v!==g;){const S=En(w),p=w.getBoundingClientRect(),c=He(w),h=p.left+(w.clientLeft+parseFloat(c.paddingLeft))*S.x,y=p.top+(w.clientTop+parseFloat(c.paddingTop))*S.y;s*=S.x,a*=S.y,d*=S.x,f*=S.y,s+=h,a+=y,g=Pe(w),w=Wi(g)}}return $l({width:d,height:f,x:s,y:a})}function co(e,t){const n=ao(e).scrollLeft;return t?t.left+n:bt(be(e)).left+n}function td(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-co(e,n),l=n.top+t.scrollTop;return{x:r,y:l}}function fv(e){let{elements:t,rect:n,offsetParent:r,strategy:l}=e;const o=l==="fixed",i=be(r),u=t?so(t.floating):!1;if(r===i||u&&o)return n;let s={scrollLeft:0,scrollTop:0},a=Ze(1);const d=Ze(0),f=pt(r);if((f||!f&&!o)&&((Un(r)!=="body"||zr(i))&&(s=ao(r)),f)){const v=bt(r);a=En(r),d.x=v.x+r.clientLeft,d.y=v.y+r.clientTop}const m=i&&!f&&!o?td(i,s):Ze(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-s.scrollTop*a.y+d.y+m.y}}function dv(e){return Array.from(e.getClientRects())}function pv(e){const t=be(e),n=ao(e),r=e.ownerDocument.body,l=ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+co(e);const u=-n.scrollTop;return He(r).direction==="rtl"&&(i+=ke(t.clientWidth,r.clientWidth)-l),{width:l,height:o,x:i,y:u}}const ya=25;function hv(e,t){const n=Pe(e),r=be(e),l=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,u=0,s=0;if(l){o=l.width,i=l.height;const d=Ku();(!d||d&&t==="fixed")&&(u=l.offsetLeft,s=l.offsetTop)}const a=co(r);if(a<=0){const d=r.ownerDocument,f=d.body,m=getComputedStyle(f),v=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-v);g<=ya&&(o-=g)}else a<=ya&&(o+=a);return{width:o,height:i,x:u,y:s}}function mv(e,t){const n=bt(e,!0,t==="fixed"),r=n.top+e.clientTop,l=n.left+e.clientLeft,o=pt(e)?En(e):Ze(1),i=e.clientWidth*o.x,u=e.clientHeight*o.y,s=l*o.x,a=r*o.y;return{width:i,height:u,x:s,y:a}}function wa(e,t,n){let r;if(t==="viewport")r=hv(e,n);else if(t==="document")r=pv(be(e));else if(Ve(t))r=mv(t,n);else{const l=ed(e);r={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return $l(r)}function nd(e,t){const n=Dt(e);return n===t||!Ve(n)||zn(n)?!1:He(n).position==="fixed"||nd(n,t)}function vv(e,t){const n=t.get(e);if(n)return n;let r=_r(e,[],!1).filter(u=>Ve(u)&&Un(u)!=="body"),l=null;const o=He(e).position==="fixed";let i=o?Dt(e):e;for(;Ve(i)&&!zn(i);){const u=He(i),s=Qu(i);!s&&u.position==="fixed"&&(l=null),(o?!s&&!l:!s&&u.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||zr(i)&&!s&&nd(e,i))?r=r.filter(d=>d!==i):l=u,i=Dt(i)}return t.set(e,r),r}function gv(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e;const i=[...n==="clippingAncestors"?so(t)?[]:vv(t,this._c):[].concat(n),r],u=wa(t,i[0],l);let s=u.top,a=u.right,d=u.bottom,f=u.left;for(let m=1;m{i(!1,1e-7)},1e3)}_===1&&!ld(a,e.getBoundingClientRect())&&i(),y=!1}try{n=new IntersectionObserver(x,{...h,root:l.ownerDocument})}catch{n=new IntersectionObserver(x,h)}n.observe(e)}return i(!0),o}function Hv(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,a=Xu(e),d=l||o?[...a?_r(a):[],...t?_r(t):[]]:[];d.forEach(p=>{l&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const f=a&&u?Ev(a,n):null;let m=-1,v=null;i&&(v=new ResizeObserver(p=>{let[c]=p;c&&c.target===a&&v&&t&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var h;(h=v)==null||h.observe(t)})),n()}),a&&!s&&v.observe(a),t&&v.observe(t));let g,w=s?bt(e):null;s&&S();function S(){const p=bt(e);w&&!ld(w,p)&&n(),w=p,g=requestAnimationFrame(S)}return n(),()=>{var p;d.forEach(c=>{l&&c.removeEventListener("scroll",n),o&&c.removeEventListener("resize",n)}),f==null||f(),(p=v)==null||p.disconnect(),v=null,s&&cancelAnimationFrame(g)}}const Cv=tv,Pv=nv,_v=qm,Rv=lv,Lv=bm,xa=Zm,Nv=rv,Ov=(e,t,n)=>{const r=new Map,l={platform:kv,...n},o={...l.platform,_c:r};return Jm(e,t,{...l,platform:o})};var Tv=typeof document<"u",zv=function(){},fl=Tv?k.useLayoutEffect:zv;function Bl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,l;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Bl(e[r],t[r]))return!1;return!0}if(l=Object.keys(e),n=l.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,l[r]))return!1;for(r=n;r--!==0;){const o=l[r];if(!(o==="_owner"&&e.$$typeof)&&!Bl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function od(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ka(e,t){const n=od(e);return Math.round(t*n)/n}function Wo(e){const t=k.useRef(e);return fl(()=>{t.current=e}),t}function Qv(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:o,floating:i}={},transform:u=!0,whileElementsMounted:s,open:a}=e,[d,f]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=k.useState(r);Bl(m,r)||v(r);const[g,w]=k.useState(null),[S,p]=k.useState(null),c=k.useCallback(C=>{C!==P.current&&(P.current=C,w(C))},[]),h=k.useCallback(C=>{C!==_.current&&(_.current=C,p(C))},[]),y=o||g,x=i||S,P=k.useRef(null),_=k.useRef(null),R=k.useRef(d),M=s!=null,N=Wo(s),A=Wo(l),q=Wo(a),J=k.useCallback(()=>{if(!P.current||!_.current)return;const C={placement:t,strategy:n,middleware:m};A.current&&(C.platform=A.current),Ov(P.current,_.current,C).then(O=>{const T={...O,isPositioned:q.current!==!1};Q.current&&!Bl(R.current,T)&&(R.current=T,Iu.flushSync(()=>{f(T)}))})},[m,t,n,A,q]);fl(()=>{a===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(C=>({...C,isPositioned:!1})))},[a]);const Q=k.useRef(!1);fl(()=>(Q.current=!0,()=>{Q.current=!1}),[]),fl(()=>{if(y&&(P.current=y),x&&(_.current=x),y&&x){if(N.current)return N.current(y,x,J);J()}},[y,x,J,N,M]);const Ne=k.useMemo(()=>({reference:P,floating:_,setReference:c,setFloating:h}),[c,h]),X=k.useMemo(()=>({reference:y,floating:x}),[y,x]),te=k.useMemo(()=>{const C={position:n,left:0,top:0};if(!X.floating)return C;const O=ka(X.floating,d.x),T=ka(X.floating,d.y);return u?{...C,transform:"translate("+O+"px, "+T+"px)",...od(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:T}},[n,u,X.floating,d.x,d.y]);return k.useMemo(()=>({...d,update:J,refs:Ne,elements:X,floatingStyles:te}),[d,J,Ne,X,te])}const Mv=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:l}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?xa({element:r.current,padding:l}).fn(n):{}:r?xa({element:r,padding:l}).fn(n):{}}}},Kv=(e,t)=>{const n=Cv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xv=(e,t)=>{const n=Pv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yv=(e,t)=>({fn:Nv(e).fn,options:[e,t]}),Gv=(e,t)=>{const n=_v(e);return{name:n.name,fn:n.fn,options:[e,t]}},Jv=(e,t)=>{const n=Rv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zv=(e,t)=>{const n=Lv(e);return{name:n.name,fn:n.fn,options:[e,t]}},qv=(e,t)=>{const n=Mv(e);return{name:n.name,fn:n.fn,options:[e,t]}};export{Bv as B,Fm as L,Wv as N,Uv as O,Ed as R,Iu as a,Jv as b,qv as c,Hv as d,Bu as e,Gv as f,nn as g,Zv as h,Vv as i,Dv as j,kd as k,Yv as l,Fv as m,$v as n,Kv as o,Em as p,jv as q,k as r,Xv as s,Zu as t,Qv as u,Av as v,Iv as w,Ea as x};