var uh=Object.create;var Fu=Object.defineProperty;var ch=Object.getOwnPropertyDescriptor;var fh=Object.getOwnPropertyNames;var dh=Object.getPrototypeOf,ph=Object.prototype.hasOwnProperty;var wn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var mh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fh(t))!ph.call(e,o)&&o!==n&&Fu(e,o,{get:()=>t[o],enumerable:!(r=ch(t,o))||r.enumerable});return e};var I=(e,t,n)=>(n=e!=null?uh(dh(e)):{},mh(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e));var Xu=wn(z=>{"use strict";var Nr=Symbol.for("react.element"),hh=Symbol.for("react.portal"),vh=Symbol.for("react.fragment"),gh=Symbol.for("react.strict_mode"),yh=Symbol.for("react.profiler"),wh=Symbol.for("react.provider"),Sh=Symbol.for("react.context"),xh=Symbol.for("react.forward_ref"),$h=Symbol.for("react.suspense"),Eh=Symbol.for("react.memo"),Ch=Symbol.for("react.lazy"),ju=Symbol.iterator;function kh(e){return e===null||typeof e!="object"?null:(e=ju&&e[ju]||e["@@iterator"],typeof e=="function"?e:null)}var Vu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bu=Object.assign,Wu={};function bn(e,t,n){this.props=e,this.context=t,this.refs=Wu,this.updater=n||Vu}bn.prototype.isReactComponent={};bn.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")};bn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Uu(){}Uu.prototype=bn.prototype;function Fi(e,t,n){this.props=e,this.context=t,this.refs=Wu,this.updater=n||Vu}var ji=Fi.prototype=new Uu;ji.constructor=Fi;Bu(ji,bn.prototype);ji.isPureReactComponent=!0;var bu=Array.isArray,Qu=Object.prototype.hasOwnProperty,bi={current:null},Ku={key:!0,ref:!0,__self:!0,__source:!0};function Yu(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)Qu.call(t,r)&&!Ku.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Nr,type:e,key:l,ref:i,props:o,_owner:bi.current}}function Ph(e,t){return{$$typeof:Nr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Hi(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nr}function _h(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hu=/\/+/g;function zi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_h(""+e.key):t.toString(36)}function zo(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Nr:case hh:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+zi(i,0):r,bu(o)?(n="",e!=null&&(n=e.replace(Hu,"$&/")+"/"),zo(o,t,n,"",function(u){return u})):o!=null&&(Hi(o)&&(o=Ph(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Hu,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",bu(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+zi(l,s);i+=zo(l,t,n,a,o)}else if(a=kh(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+zi(l,s++),i+=zo(l,t,n,a,o);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Ao(e,t,n){if(e==null)return e;var r=[],o=0;return zo(e,r,"","",function(l){return t.call(n,l,o++)}),r}function Rh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ne={current:null},Fo={transition:null},Th={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:Fo,ReactCurrentOwner:bi};z.Children={map:Ao,forEach:function(e,t,n){Ao(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ao(e,function(){t++}),t},toArray:function(e){return Ao(e,function(t){return t})||[]},only:function(e){if(!Hi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=bn;z.Fragment=vh;z.Profiler=yh;z.PureComponent=Fi;z.StrictMode=gh;z.Suspense=$h;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Th;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Bu({},e.props),o=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=bi.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)Qu.call(t,a)&&!Ku.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Nr,type:e.type,key:o,ref:l,props:r,_owner:i}};z.createContext=function(e){return e={$$typeof:Sh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wh,_context:e},e.Consumer=e};z.createElement=Yu;z.createFactory=function(e){var t=Yu.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:xh,render:e}};z.isValidElement=Hi;z.lazy=function(e){return{$$typeof:Ch,_payload:{_status:-1,_result:e},_init:Rh}};z.memo=function(e,t){return{$$typeof:Eh,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=Fo.transition;Fo.transition={};try{e()}finally{Fo.transition=t}};z.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};z.useCallback=function(e,t){return Ne.current.useCallback(e,t)};z.useContext=function(e){return Ne.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Ne.current.useDeferredValue(e)};z.useEffect=function(e,t){return Ne.current.useEffect(e,t)};z.useId=function(){return Ne.current.useId()};z.useImperativeHandle=function(e,t,n){return Ne.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Ne.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Ne.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Ne.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Ne.current.useReducer(e,t,n)};z.useRef=function(e){return Ne.current.useRef(e)};z.useState=function(e){return Ne.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Ne.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Ne.current.useTransition()};z.version="18.2.0"});var F=wn((Py,Gu)=>{"use strict";Gu.exports=Xu()});var ic=wn(K=>{"use strict";function Ui(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<jo(o,t))e[r]=t,e[n]=o,n=r;else break e}}function it(e){return e.length===0?null:e[0]}function Ho(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,l=o>>>1;r<l;){var i=2*(r+1)-1,s=e[i],a=i+1,u=e[a];if(0>jo(s,n))a<o&&0>jo(u,s)?(e[r]=u,e[a]=n,r=a):(e[r]=s,e[i]=n,r=i);else if(a<o&&0>jo(u,n))e[r]=u,e[a]=n,r=a;else break e}}return t}function jo(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Zu=performance,K.unstable_now=function(){return Zu.now()}):(Vi=Date,qu=Vi.now(),K.unstable_now=function(){return Vi.now()-qu});var Zu,Vi,qu,yt=[],Bt=[],Nh=1,Ze=null,xe=3,Vo=!1,Sn=!1,Lr=!1,tc=typeof setTimeout=="function"?setTimeout:null,nc=typeof clearTimeout=="function"?clearTimeout:null,Ju=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Qi(e){for(var t=it(Bt);t!==null;){if(t.callback===null)Ho(Bt);else if(t.startTime<=e)Ho(Bt),t.sortIndex=t.expirationTime,Ui(yt,t);else break;t=it(Bt)}}function Ki(e){if(Lr=!1,Qi(e),!Sn)if(it(yt)!==null)Sn=!0,Xi(Yi);else{var t=it(Bt);t!==null&&Gi(Ki,t.startTime-e)}}function Yi(e,t){Sn=!1,Lr&&(Lr=!1,nc(Dr),Dr=-1),Vo=!0;var n=xe;try{for(Qi(t),Ze=it(yt);Ze!==null&&(!(Ze.expirationTime>t)||e&&!lc());){var r=Ze.callback;if(typeof r=="function"){Ze.callback=null,xe=Ze.priorityLevel;var o=r(Ze.expirationTime<=t);t=K.unstable_now(),typeof o=="function"?Ze.callback=o:Ze===it(yt)&&Ho(yt),Qi(t)}else Ho(yt);Ze=it(yt)}if(Ze!==null)var l=!0;else{var i=it(Bt);i!==null&&Gi(Ki,i.startTime-t),l=!1}return l}finally{Ze=null,xe=n,Vo=!1}}var Bo=!1,bo=null,Dr=-1,rc=5,oc=-1;function lc(){return!(K.unstable_now()-oc<rc)}function Bi(){if(bo!==null){var e=K.unstable_now();oc=e;var t=!0;try{t=bo(!0,e)}finally{t?Or():(Bo=!1,bo=null)}}else Bo=!1}var Or;typeof Ju=="function"?Or=function(){Ju(Bi)}:typeof MessageChannel<"u"?(Wi=new MessageChannel,ec=Wi.port2,Wi.port1.onmessage=Bi,Or=function(){ec.postMessage(null)}):Or=function(){tc(Bi,0)};var Wi,ec;function Xi(e){bo=e,Bo||(Bo=!0,Or())}function Gi(e,t){Dr=tc(function(){e(K.unstable_now())},t)}K.unstable_IdlePriority=5;K.unstable_ImmediatePriority=1;K.unstable_LowPriority=4;K.unstable_NormalPriority=3;K.unstable_Profiling=null;K.unstable_UserBlockingPriority=2;K.unstable_cancelCallback=function(e){e.callback=null};K.unstable_continueExecution=function(){Sn||Vo||(Sn=!0,Xi(Yi))};K.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):rc=0<e?Math.floor(1e3/e):5};K.unstable_getCurrentPriorityLevel=function(){return xe};K.unstable_getFirstCallbackNode=function(){return it(yt)};K.unstable_next=function(e){switch(xe){case 1:case 2:case 3:var t=3;break;default:t=xe}var n=xe;xe=t;try{return e()}finally{xe=n}};K.unstable_pauseExecution=function(){};K.unstable_requestPaint=function(){};K.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=xe;xe=e;try{return t()}finally{xe=n}};K.unstable_scheduleCallback=function(e,t,n){var r=K.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:Nh++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,Ui(Bt,e),it(yt)===null&&e===it(Bt)&&(Lr?(nc(Dr),Dr=-1):Lr=!0,Gi(Ki,n-r))):(e.sortIndex=o,Ui(yt,e),Sn||Vo||(Sn=!0,Xi(Yi))),e};K.unstable_shouldYield=lc;K.unstable_wrapCallback=function(e){var t=xe;return function(){var n=xe;xe=t;try{return e.apply(this,arguments)}finally{xe=n}}}});var ac=wn((Ry,sc)=>{"use strict";sc.exports=ic()});var hp=wn(Ye=>{"use strict";var vf=F(),Qe=ac();function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var gf=new Set,to={};function Dn(e,t){sr(e,t),sr(e+"Capture",t)}function sr(e,t){for(to[e]=t,e=0;e<t.length;e++)gf.add(t[e])}var Ot=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ws=Object.prototype.hasOwnProperty,Oh=/^[: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]*$/,uc={},cc={};function Lh(e){return ws.call(cc,e)?!0:ws.call(uc,e)?!1:Oh.test(e)?cc[e]=!0:(uc[e]=!0,!1)}function Dh(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 Ih(e,t,n,r){if(t===null||typeof t>"u"||Dh(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 De(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new De(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){Se[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var fa=/[\-:]([a-z])/g;function da(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(fa,da);Se[t]=new De(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(fa,da);Se[t]=new De(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(fa,da);Se[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function pa(e,t,n,r){var o=Se.hasOwnProperty(t)?Se[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ih(t,n,o,r)&&(n=null),r||o===null?Lh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Mt=vf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wo=Symbol.for("react.element"),Bn=Symbol.for("react.portal"),Wn=Symbol.for("react.fragment"),ma=Symbol.for("react.strict_mode"),Ss=Symbol.for("react.profiler"),yf=Symbol.for("react.provider"),wf=Symbol.for("react.context"),ha=Symbol.for("react.forward_ref"),xs=Symbol.for("react.suspense"),$s=Symbol.for("react.suspense_list"),va=Symbol.for("react.memo"),Ut=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Sf=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var fc=Symbol.iterator;function Ir(e){return e===null||typeof e!="object"?null:(e=fc&&e[fc]||e["@@iterator"],typeof e=="function"?e:null)}var re=Object.assign,Zi;function Vr(e){if(Zi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zi=t&&t[1]||""}return`
`+Zi+e}var qi=!1;function Ji(e,t){if(!e||qi)return"";qi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),l=r.stack.split(`
`),i=o.length-1,s=l.length-1;1<=i&&0<=s&&o[i]!==l[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==l[s]){if(i!==1||s!==1)do if(i--,s--,0>s||o[i]!==l[s]){var a=`
`+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=s);break}}}finally{qi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vr(e):""}function Mh(e){switch(e.tag){case 5:return Vr(e.type);case 16:return Vr("Lazy");case 13:return Vr("Suspense");case 19:return Vr("SuspenseList");case 0:case 2:case 15:return e=Ji(e.type,!1),e;case 11:return e=Ji(e.type.render,!1),e;case 1:return e=Ji(e.type,!0),e;default:return""}}function Es(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 Wn:return"Fragment";case Bn:return"Portal";case Ss:return"Profiler";case ma:return"StrictMode";case xs:return"Suspense";case $s:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wf:return(e.displayName||"Context")+".Consumer";case yf:return(e._context.displayName||"Context")+".Provider";case ha:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case va:return t=e.displayName||null,t!==null?t:Es(e.type)||"Memo";case Ut:t=e._payload,e=e._init;try{return Es(e(t))}catch{}}return null}function Ah(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 Es(t);case 8:return t===ma?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zh(e){var t=xf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.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 Uo(e){e._valueTracker||(e._valueTracker=zh(e))}function $f(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wl(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 Cs(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function dc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ef(e,t){t=t.checked,t!=null&&pa(e,"checked",t,!1)}function ks(e,t){Ef(e,t);var n=ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ps(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ps(e,t.type,ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pc(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 Ps(e,t,n){(t!=="number"||wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Br=Array.isArray;function tr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ln(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function _s(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(Br(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ln(n)}}function Cf(e,t){var n=ln(t.value),r=ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function hc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function kf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Rs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?kf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Qo,Pf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Qo=Qo||document.createElement("div"),Qo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Qo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function no(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qr={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},Fh=["Webkit","ms","Moz","O"];Object.keys(Qr).forEach(function(e){Fh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qr[t]=Qr[e]})});function _f(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qr.hasOwnProperty(e)&&Qr[e]?(""+t).trim():t+"px"}function Rf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=_f(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var jh=re({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 Ts(e,t){if(t){if(jh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Ns(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 Os=null;function ga(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ls=null,nr=null,rr=null;function vc(e){if(e=xo(e)){if(typeof Ls!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Kl(t),Ls(e.stateNode,e.type,t))}}function Tf(e){nr?rr?rr.push(e):rr=[e]:nr=e}function Nf(){if(nr){var e=nr,t=rr;if(rr=nr=null,vc(e),t)for(e=0;e<t.length;e++)vc(t[e])}}function Of(e,t){return e(t)}function Lf(){}var es=!1;function Df(e,t,n){if(es)return e(t,n);es=!0;try{return Of(e,t,n)}finally{es=!1,(nr!==null||rr!==null)&&(Lf(),Nf())}}function ro(e,t){var n=e.stateNode;if(n===null)return null;var r=Kl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(P(231,t,typeof n));return n}var Ds=!1;if(Ot)try{Hn={},Object.defineProperty(Hn,"passive",{get:function(){Ds=!0}}),window.addEventListener("test",Hn,Hn),window.removeEventListener("test",Hn,Hn)}catch{Ds=!1}var Hn;function bh(e,t,n,r,o,l,i,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(m){this.onError(m)}}var Kr=!1,Sl=null,xl=!1,Is=null,Hh={onError:function(e){Kr=!0,Sl=e}};function Vh(e,t,n,r,o,l,i,s,a){Kr=!1,Sl=null,bh.apply(Hh,arguments)}function Bh(e,t,n,r,o,l,i,s,a){if(Vh.apply(this,arguments),Kr){if(Kr){var u=Sl;Kr=!1,Sl=null}else throw Error(P(198));xl||(xl=!0,Is=u)}}function In(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function If(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function gc(e){if(In(e)!==e)throw Error(P(188))}function Wh(e){var t=e.alternate;if(!t){if(t=In(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return gc(o),e;if(l===r)return gc(o),t;l=l.sibling}throw Error(P(188))}if(n.return!==r.return)n=o,r=l;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=l;break}if(s===r){i=!0,r=o,n=l;break}s=s.sibling}if(!i){for(s=l.child;s;){if(s===n){i=!0,n=l,r=o;break}if(s===r){i=!0,r=l,n=o;break}s=s.sibling}if(!i)throw Error(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function Mf(e){return e=Wh(e),e!==null?Af(e):null}function Af(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Af(e);if(t!==null)return t;e=e.sibling}return null}var zf=Qe.unstable_scheduleCallback,yc=Qe.unstable_cancelCallback,Uh=Qe.unstable_shouldYield,Qh=Qe.unstable_requestPaint,ie=Qe.unstable_now,Kh=Qe.unstable_getCurrentPriorityLevel,ya=Qe.unstable_ImmediatePriority,Ff=Qe.unstable_UserBlockingPriority,$l=Qe.unstable_NormalPriority,Yh=Qe.unstable_LowPriority,jf=Qe.unstable_IdlePriority,Bl=null,$t=null;function Xh(e){if($t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Bl,e,void 0,(e.current.flags&128)===128)}catch{}}var ft=Math.clz32?Math.clz32:qh,Gh=Math.log,Zh=Math.LN2;function qh(e){return e>>>=0,e===0?32:31-(Gh(e)/Zh|0)|0}var Ko=64,Yo=4194304;function Wr(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 El(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~o;s!==0?r=Wr(s):(l&=i,l!==0&&(r=Wr(l)))}else i=n&~o,i!==0?r=Wr(i):l!==0&&(r=Wr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ft(t),o=1<<n,r|=e[n],t&=~o;return r}function Jh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ev(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-ft(l),s=1<<i,a=o[i];a===-1?(!(s&n)||s&r)&&(o[i]=Jh(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function Ms(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bf(){var e=Ko;return Ko<<=1,!(Ko&4194240)&&(Ko=64),e}function ts(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=n}function tv(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<n;){var o=31-ft(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function wa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ft(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var V=0;function Hf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Vf,Sa,Bf,Wf,Uf,As=!1,Xo=[],Zt=null,qt=null,Jt=null,oo=new Map,lo=new Map,Kt=[],nv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function wc(e,t){switch(e){case"focusin":case"focusout":Zt=null;break;case"dragenter":case"dragleave":qt=null;break;case"mouseover":case"mouseout":Jt=null;break;case"pointerover":case"pointerout":oo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lo.delete(t.pointerId)}}function Mr(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=xo(t),t!==null&&Sa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function rv(e,t,n,r,o){switch(t){case"focusin":return Zt=Mr(Zt,e,t,n,r,o),!0;case"dragenter":return qt=Mr(qt,e,t,n,r,o),!0;case"mouseover":return Jt=Mr(Jt,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return oo.set(l,Mr(oo.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,lo.set(l,Mr(lo.get(l)||null,e,t,n,r,o)),!0}return!1}function Qf(e){var t=En(e.target);if(t!==null){var n=In(t);if(n!==null){if(t=n.tag,t===13){if(t=If(n),t!==null){e.blockedOn=t,Uf(e.priority,function(){Bf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ul(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Os=r,n.target.dispatchEvent(r),Os=null}else return t=xo(n),t!==null&&Sa(t),e.blockedOn=n,!1;t.shift()}return!0}function Sc(e,t,n){ul(e)&&n.delete(t)}function ov(){As=!1,Zt!==null&&ul(Zt)&&(Zt=null),qt!==null&&ul(qt)&&(qt=null),Jt!==null&&ul(Jt)&&(Jt=null),oo.forEach(Sc),lo.forEach(Sc)}function Ar(e,t){e.blockedOn===t&&(e.blockedOn=null,As||(As=!0,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,ov)))}function io(e){function t(o){return Ar(o,e)}if(0<Xo.length){Ar(Xo[0],e);for(var n=1;n<Xo.length;n++){var r=Xo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Zt!==null&&Ar(Zt,e),qt!==null&&Ar(qt,e),Jt!==null&&Ar(Jt,e),oo.forEach(t),lo.forEach(t),n=0;n<Kt.length;n++)r=Kt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Kt.length&&(n=Kt[0],n.blockedOn===null);)Qf(n),n.blockedOn===null&&Kt.shift()}var or=Mt.ReactCurrentBatchConfig,Cl=!0;function lv(e,t,n,r){var o=V,l=or.transition;or.transition=null;try{V=1,xa(e,t,n,r)}finally{V=o,or.transition=l}}function iv(e,t,n,r){var o=V,l=or.transition;or.transition=null;try{V=4,xa(e,t,n,r)}finally{V=o,or.transition=l}}function xa(e,t,n,r){if(Cl){var o=zs(e,t,n,r);if(o===null)as(e,t,r,kl,n),wc(e,r);else if(rv(o,e,t,n,r))r.stopPropagation();else if(wc(e,r),t&4&&-1<nv.indexOf(e)){for(;o!==null;){var l=xo(o);if(l!==null&&Vf(l),l=zs(e,t,n,r),l===null&&as(e,t,r,kl,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else as(e,t,r,null,n)}}var kl=null;function zs(e,t,n,r){if(kl=null,e=ga(r),e=En(e),e!==null)if(t=In(e),t===null)e=null;else if(n=t.tag,n===13){if(e=If(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return kl=e,null}function Kf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Kh()){case ya:return 1;case Ff:return 4;case $l:case Yh:return 16;case jf:return 536870912;default:return 16}default:return 16}}var Xt=null,$a=null,cl=null;function Yf(){if(cl)return cl;var e,t=$a,n=t.length,r,o="value"in Xt?Xt.value:Xt.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[l-r];r++);return cl=o.slice(e,1<r?1-r:void 0)}function fl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Go(){return!0}function xc(){return!1}function Ke(e){function t(n,r,o,l,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Go:xc,this.isPropagationStopped=xc,this}return re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Go)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Go)},persist:function(){},isPersistent:Go}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ea=Ke(mr),So=re({},mr,{view:0,detail:0}),sv=Ke(So),ns,rs,zr,Wl=re({},So,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ca,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zr&&(zr&&e.type==="mousemove"?(ns=e.screenX-zr.screenX,rs=e.screenY-zr.screenY):rs=ns=0,zr=e),ns)},movementY:function(e){return"movementY"in e?e.movementY:rs}}),$c=Ke(Wl),av=re({},Wl,{dataTransfer:0}),uv=Ke(av),cv=re({},So,{relatedTarget:0}),os=Ke(cv),fv=re({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),dv=Ke(fv),pv=re({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mv=Ke(pv),hv=re({},mr,{data:0}),Ec=Ke(hv),vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yv[e])?!!t[e]:!1}function Ca(){return wv}var Sv=re({},So,{key:function(e){if(e.key){var t=vv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ca,charCode:function(e){return e.type==="keypress"?fl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xv=Ke(Sv),$v=re({},Wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cc=Ke($v),Ev=re({},So,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ca}),Cv=Ke(Ev),kv=re({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pv=Ke(kv),_v=re({},Wl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rv=Ke(_v),Tv=[9,13,27,32],ka=Ot&&"CompositionEvent"in window,Yr=null;Ot&&"documentMode"in document&&(Yr=document.documentMode);var Nv=Ot&&"TextEvent"in window&&!Yr,Xf=Ot&&(!ka||Yr&&8<Yr&&11>=Yr),kc=String.fromCharCode(32),Pc=!1;function Gf(e,t){switch(e){case"keyup":return Tv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function Ov(e,t){switch(e){case"compositionend":return Zf(t);case"keypress":return t.which!==32?null:(Pc=!0,kc);case"textInput":return e=t.data,e===kc&&Pc?null:e;default:return null}}function Lv(e,t){if(Un)return e==="compositionend"||!ka&&Gf(e,t)?(e=Yf(),cl=$a=Xt=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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xf&&t.locale!=="ko"?null:t.data;default:return null}}var Dv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dv[e.type]:t==="textarea"}function qf(e,t,n,r){Tf(r),t=Pl(t,"onChange"),0<t.length&&(n=new Ea("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xr=null,so=null;function Iv(e){ud(e,0)}function Ul(e){var t=Yn(e);if($f(t))return e}function Mv(e,t){if(e==="change")return t}var Jf=!1;Ot&&(Ot?(qo="oninput"in document,qo||(ls=document.createElement("div"),ls.setAttribute("oninput","return;"),qo=typeof ls.oninput=="function"),Zo=qo):Zo=!1,Jf=Zo&&(!document.documentMode||9<document.documentMode));var Zo,qo,ls;function Rc(){Xr&&(Xr.detachEvent("onpropertychange",ed),so=Xr=null)}function ed(e){if(e.propertyName==="value"&&Ul(so)){var t=[];qf(t,so,e,ga(e)),Df(Iv,t)}}function Av(e,t,n){e==="focusin"?(Rc(),Xr=t,so=n,Xr.attachEvent("onpropertychange",ed)):e==="focusout"&&Rc()}function zv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ul(so)}function Fv(e,t){if(e==="click")return Ul(t)}function jv(e,t){if(e==="input"||e==="change")return Ul(t)}function bv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:bv;function ao(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ws.call(t,o)||!pt(e[o],t[o]))return!1}return!0}function Tc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nc(e,t){var n=Tc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=Tc(n)}}function td(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?td(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nd(){for(var e=window,t=wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wl(e.document)}return t}function Pa(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 Hv(e){var t=nd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&td(n.ownerDocument.documentElement,n)){if(r!==null&&Pa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Nc(n,l);var i=Nc(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Vv=Ot&&"documentMode"in document&&11>=document.documentMode,Qn=null,Fs=null,Gr=null,js=!1;function Oc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;js||Qn==null||Qn!==wl(r)||(r=Qn,"selectionStart"in r&&Pa(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}),Gr&&ao(Gr,r)||(Gr=r,r=Pl(Fs,"onSelect"),0<r.length&&(t=new Ea("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qn)))}function Jo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Kn={animationend:Jo("Animation","AnimationEnd"),animationiteration:Jo("Animation","AnimationIteration"),animationstart:Jo("Animation","AnimationStart"),transitionend:Jo("Transition","TransitionEnd")},is={},rd={};Ot&&(rd=document.createElement("div").style,"AnimationEvent"in window||(delete Kn.animationend.animation,delete Kn.animationiteration.animation,delete Kn.animationstart.animation),"TransitionEvent"in window||delete Kn.transitionend.transition);function Ql(e){if(is[e])return is[e];if(!Kn[e])return e;var t=Kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rd)return is[e]=t[n];return e}var od=Ql("animationend"),ld=Ql("animationiteration"),id=Ql("animationstart"),sd=Ql("transitionend"),ad=new Map,Lc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function an(e,t){ad.set(e,t),Dn(t,[e])}for(el=0;el<Lc.length;el++)tl=Lc[el],Dc=tl.toLowerCase(),Ic=tl[0].toUpperCase()+tl.slice(1),an(Dc,"on"+Ic);var tl,Dc,Ic,el;an(od,"onAnimationEnd");an(ld,"onAnimationIteration");an(id,"onAnimationStart");an("dblclick","onDoubleClick");an("focusin","onFocus");an("focusout","onBlur");an(sd,"onTransitionEnd");sr("onMouseEnter",["mouseout","mouseover"]);sr("onMouseLeave",["mouseout","mouseover"]);sr("onPointerEnter",["pointerout","pointerover"]);sr("onPointerLeave",["pointerout","pointerover"]);Dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Dn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Dn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ur));function Mc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Bh(r,t,void 0,e),e.currentTarget=null}function ud(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&o.isPropagationStopped())break e;Mc(o,s,u),l=a}else for(i=0;i<r.length;i++){if(s=r[i],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&o.isPropagationStopped())break e;Mc(o,s,u),l=a}}}if(xl)throw e=Is,xl=!1,Is=null,e}function Z(e,t){var n=t[Ws];n===void 0&&(n=t[Ws]=new Set);var r=e+"__bubble";n.has(r)||(cd(t,e,2,!1),n.add(r))}function ss(e,t,n){var r=0;t&&(r|=4),cd(n,e,r,t)}var nl="_reactListening"+Math.random().toString(36).slice(2);function uo(e){if(!e[nl]){e[nl]=!0,gf.forEach(function(n){n!=="selectionchange"&&(Bv.has(n)||ss(n,!1,e),ss(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nl]||(t[nl]=!0,ss("selectionchange",!1,t))}}function cd(e,t,n,r){switch(Kf(t)){case 1:var o=lv;break;case 4:o=iv;break;default:o=xa}n=o.bind(null,t,n,e),o=void 0,!Ds||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function as(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;i=i.return}for(;s!==null;){if(i=En(s),i===null)return;if(a=i.tag,a===5||a===6){r=l=i;continue e}s=s.parentNode}}r=r.return}Df(function(){var u=l,m=ga(n),p=[];e:{var v=ad.get(e);if(v!==void 0){var y=Ea,g=e;switch(e){case"keypress":if(fl(n)===0)break e;case"keydown":case"keyup":y=xv;break;case"focusin":g="focus",y=os;break;case"focusout":g="blur",y=os;break;case"beforeblur":case"afterblur":y=os;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=$c;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=uv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Cv;break;case od:case ld:case id:y=dv;break;case sd:y=Pv;break;case"scroll":y=sv;break;case"wheel":y=Rv;break;case"copy":case"cut":case"paste":y=mv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Cc}var h=(t&4)!==0,S=!h&&e==="scroll",f=h?v!==null?v+"Capture":null:v;h=[];for(var c=u,d;c!==null;){d=c;var w=d.stateNode;if(d.tag===5&&w!==null&&(d=w,f!==null&&(w=ro(c,f),w!=null&&h.push(co(c,w,d)))),S)break;c=c.return}0<h.length&&(v=new y(v,g,null,n,m),p.push({event:v,listeners:h}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",v&&n!==Os&&(g=n.relatedTarget||n.fromElement)&&(En(g)||g[Lt]))break e;if((y||v)&&(v=m.window===m?m:(v=m.ownerDocument)?v.defaultView||v.parentWindow:window,y?(g=n.relatedTarget||n.toElement,y=u,g=g?En(g):null,g!==null&&(S=In(g),g!==S||g.tag!==5&&g.tag!==6)&&(g=null)):(y=null,g=u),y!==g)){if(h=$c,w="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(h=Cc,w="onPointerLeave",f="onPointerEnter",c="pointer"),S=y==null?v:Yn(y),d=g==null?v:Yn(g),v=new h(w,c+"leave",y,n,m),v.target=S,v.relatedTarget=d,w=null,En(m)===u&&(h=new h(f,c+"enter",g,n,m),h.target=d,h.relatedTarget=S,w=h),S=w,y&&g)t:{for(h=y,f=g,c=0,d=h;d;d=Vn(d))c++;for(d=0,w=f;w;w=Vn(w))d++;for(;0<c-d;)h=Vn(h),c--;for(;0<d-c;)f=Vn(f),d--;for(;c--;){if(h===f||f!==null&&h===f.alternate)break t;h=Vn(h),f=Vn(f)}h=null}else h=null;y!==null&&Ac(p,v,y,h,!1),g!==null&&S!==null&&Ac(p,S,g,h,!0)}}e:{if(v=u?Yn(u):window,y=v.nodeName&&v.nodeName.toLowerCase(),y==="select"||y==="input"&&v.type==="file")var x=Mv;else if(_c(v))if(Jf)x=jv;else{x=zv;var C=Av}else(y=v.nodeName)&&y.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(x=Fv);if(x&&(x=x(e,u))){qf(p,x,n,m);break e}C&&C(e,v,u),e==="focusout"&&(C=v._wrapperState)&&C.controlled&&v.type==="number"&&Ps(v,"number",v.value)}switch(C=u?Yn(u):window,e){case"focusin":(_c(C)||C.contentEditable==="true")&&(Qn=C,Fs=u,Gr=null);break;case"focusout":Gr=Fs=Qn=null;break;case"mousedown":js=!0;break;case"contextmenu":case"mouseup":case"dragend":js=!1,Oc(p,n,m);break;case"selectionchange":if(Vv)break;case"keydown":case"keyup":Oc(p,n,m)}var k;if(ka)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Un?Gf(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Xf&&n.locale!=="ko"&&(Un||E!=="onCompositionStart"?E==="onCompositionEnd"&&Un&&(k=Yf()):(Xt=m,$a="value"in Xt?Xt.value:Xt.textContent,Un=!0)),C=Pl(u,E),0<C.length&&(E=new Ec(E,e,null,n,m),p.push({event:E,listeners:C}),k?E.data=k:(k=Zf(n),k!==null&&(E.data=k)))),(k=Nv?Ov(e,n):Lv(e,n))&&(u=Pl(u,"onBeforeInput"),0<u.length&&(m=new Ec("onBeforeInput","beforeinput",null,n,m),p.push({event:m,listeners:u}),m.data=k))}ud(p,t)})}function co(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=ro(e,n),l!=null&&r.unshift(co(e,l,o)),l=ro(e,t),l!=null&&r.push(co(e,l,o))),e=e.return}return r}function Vn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ac(e,t,n,r,o){for(var l=t._reactName,i=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=ro(n,l),a!=null&&i.unshift(co(n,a,s))):o||(a=ro(n,l),a!=null&&i.push(co(n,a,s)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Wv=/\r\n?/g,Uv=/\u0000|\uFFFD/g;function zc(e){return(typeof e=="string"?e:""+e).replace(Wv,`
`).replace(Uv,"")}function rl(e,t,n){if(t=zc(t),zc(e)!==t&&n)throw Error(P(425))}function _l(){}var bs=null,Hs=null;function Vs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bs=typeof setTimeout=="function"?setTimeout:void 0,Qv=typeof clearTimeout=="function"?clearTimeout:void 0,Fc=typeof Promise=="function"?Promise:void 0,Kv=typeof queueMicrotask=="function"?queueMicrotask:typeof Fc<"u"?function(e){return Fc.resolve(null).then(e).catch(Yv)}:Bs;function Yv(e){setTimeout(function(){throw e})}function us(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),io(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);io(t)}function en(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function jc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var hr=Math.random().toString(36).slice(2),xt="__reactFiber$"+hr,fo="__reactProps$"+hr,Lt="__reactContainer$"+hr,Ws="__reactEvents$"+hr,Xv="__reactListeners$"+hr,Gv="__reactHandles$"+hr;function En(e){var t=e[xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lt]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jc(e);e!==null;){if(n=e[xt])return n;e=jc(e)}return t}e=n,n=e.parentNode}return null}function xo(e){return e=e[xt]||e[Lt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Kl(e){return e[fo]||null}var Us=[],Xn=-1;function un(e){return{current:e}}function q(e){0>Xn||(e.current=Us[Xn],Us[Xn]=null,Xn--)}function Y(e,t){Xn++,Us[Xn]=e.current,e.current=t}var sn={},ke=un(sn),ze=un(!1),Rn=sn;function ar(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Fe(e){return e=e.childContextTypes,e!=null}function Rl(){q(ze),q(ke)}function bc(e,t,n){if(ke.current!==sn)throw Error(P(168));Y(ke,t),Y(ze,n)}function fd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(P(108,Ah(e)||"Unknown",o));return re({},n,r)}function Tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,Rn=ke.current,Y(ke,e),Y(ze,ze.current),!0}function Hc(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=fd(e,t,Rn),r.__reactInternalMemoizedMergedChildContext=e,q(ze),q(ke),Y(ke,e)):q(ze),Y(ze,n)}var _t=null,Yl=!1,cs=!1;function dd(e){_t===null?_t=[e]:_t.push(e)}function Zv(e){Yl=!0,dd(e)}function cn(){if(!cs&&_t!==null){cs=!0;var e=0,t=V;try{var n=_t;for(V=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}_t=null,Yl=!1}catch(o){throw _t!==null&&(_t=_t.slice(e+1)),zf(ya,cn),o}finally{V=t,cs=!1}}return null}var Gn=[],Zn=0,Nl=null,Ol=0,qe=[],Je=0,Tn=null,Rt=1,Tt="";function xn(e,t){Gn[Zn++]=Ol,Gn[Zn++]=Nl,Nl=e,Ol=t}function pd(e,t,n){qe[Je++]=Rt,qe[Je++]=Tt,qe[Je++]=Tn,Tn=e;var r=Rt;e=Tt;var o=32-ft(r)-1;r&=~(1<<o),n+=1;var l=32-ft(t)+o;if(30<l){var i=o-o%5;l=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Rt=1<<32-ft(t)+o|n<<o|r,Tt=l+e}else Rt=1<<l|n<<o|r,Tt=e}function _a(e){e.return!==null&&(xn(e,1),pd(e,1,0))}function Ra(e){for(;e===Nl;)Nl=Gn[--Zn],Gn[Zn]=null,Ol=Gn[--Zn],Gn[Zn]=null;for(;e===Tn;)Tn=qe[--Je],qe[Je]=null,Tt=qe[--Je],qe[Je]=null,Rt=qe[--Je],qe[Je]=null}var Ue=null,We=null,ee=!1,ct=null;function md(e,t){var n=et(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Vc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ue=e,We=en(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ue=e,We=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tn!==null?{id:Rt,overflow:Tt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=et(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ue=e,We=null,!0):!1;default:return!1}}function Qs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ks(e){if(ee){var t=We;if(t){var n=t;if(!Vc(e,t)){if(Qs(e))throw Error(P(418));t=en(n.nextSibling);var r=Ue;t&&Vc(e,t)?md(r,n):(e.flags=e.flags&-4097|2,ee=!1,Ue=e)}}else{if(Qs(e))throw Error(P(418));e.flags=e.flags&-4097|2,ee=!1,Ue=e}}}function Bc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ue=e}function ol(e){if(e!==Ue)return!1;if(!ee)return Bc(e),ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vs(e.type,e.memoizedProps)),t&&(t=We)){if(Qs(e))throw hd(),Error(P(418));for(;t;)md(e,t),t=en(t.nextSibling)}if(Bc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){We=en(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}We=null}}else We=Ue?en(e.stateNode.nextSibling):null;return!0}function hd(){for(var e=We;e;)e=en(e.nextSibling)}function ur(){We=Ue=null,ee=!1}function Ta(e){ct===null?ct=[e]:ct.push(e)}var qv=Mt.ReactCurrentBatchConfig;function at(e,t){if(e&&e.defaultProps){t=re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ll=un(null),Dl=null,qn=null,Na=null;function Oa(){Na=qn=Dl=null}function La(e){var t=Ll.current;q(Ll),e._currentValue=t}function Ys(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 lr(e,t){Dl=e,Na=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ae=!0),e.firstContext=null)}function nt(e){var t=e._currentValue;if(Na!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(Dl===null)throw Error(P(308));qn=e,Dl.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var Cn=null;function Da(e){Cn===null?Cn=[e]:Cn.push(e)}function vd(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Da(t)):(n.next=o.next,o.next=n),t.interleaved=n,Dt(e,r)}function Dt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qt=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gd(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 Nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Dt(e,n)}return o=r.interleaved,o===null?(t.next=t,Da(r)):(t.next=o.next,o.next=t),r.interleaved=t,Dt(e,n)}function dl(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,wa(e,n)}}function Wc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=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};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 Il(e,t,n,r){var o=e.updateQueue;Qt=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,i===null?l=u:i.next=u,i=a;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==i&&(s===null?m.firstBaseUpdate=u:s.next=u,m.lastBaseUpdate=a))}if(l!==null){var p=o.baseState;i=0,m=u=a=null,s=l;do{var v=s.lane,y=s.eventTime;if((r&v)===v){m!==null&&(m=m.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,h=s;switch(v=t,y=n,h.tag){case 1:if(g=h.payload,typeof g=="function"){p=g.call(y,p,v);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=h.payload,v=typeof g=="function"?g.call(y,p,v):g,v==null)break e;p=re({},p,v);break e;case 2:Qt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[s]:v.push(s))}else y={eventTime:y,lane:v,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(u=m=y,a=p):m=m.next=y,i|=v;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;v=s,s=v.next,v.next=null,o.lastBaseUpdate=v,o.shared.pending=null}}while(1);if(m===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=m,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);On|=i,e.lanes=i,e.memoizedState=p}}function Uc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(P(191,o));o.call(r)}}}var yd=new vf.Component().refs;function Xs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xl={isMounted:function(e){return(e=e._reactInternals)?In(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Le(),o=rn(e),l=Nt(r,o);l.payload=t,n!=null&&(l.callback=n),t=tn(e,l,o),t!==null&&(dt(t,e,o,r),dl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Le(),o=rn(e),l=Nt(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=tn(e,l,o),t!==null&&(dt(t,e,o,r),dl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),r=rn(e),o=Nt(n,r);o.tag=2,t!=null&&(o.callback=t),t=tn(e,o,r),t!==null&&(dt(t,e,r,n),dl(t,e,r))}};function Qc(e,t,n,r,o,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!ao(n,r)||!ao(o,l):!0}function wd(e,t,n){var r=!1,o=sn,l=t.contextType;return typeof l=="object"&&l!==null?l=nt(l):(o=Fe(t)?Rn:ke.current,r=t.contextTypes,l=(r=r!=null)?ar(e,o):sn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function Kc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xl.enqueueReplaceState(t,t.state,null)}function Gs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=yd,Ia(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=nt(l):(l=Fe(t)?Rn:ke.current,o.context=ar(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Xs(e,t,l,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Xl.enqueueReplaceState(o,o.state,null),Il(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Fr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(P(309));var r=n.stateNode}if(!r)throw Error(P(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(i){var s=o.refs;s===yd&&(s=o.refs={}),i===null?delete s[l]:s[l]=i},t._stringRef=l,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function ll(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yc(e){var t=e._init;return t(e._payload)}function Sd(e){function t(f,c){if(e){var d=f.deletions;d===null?(f.deletions=[c],f.flags|=16):d.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function o(f,c){return f=on(f,c),f.index=0,f.sibling=null,f}function l(f,c,d){return f.index=d,e?(d=f.alternate,d!==null?(d=d.index,d<c?(f.flags|=2,c):d):(f.flags|=2,c)):(f.flags|=1048576,c)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function s(f,c,d,w){return c===null||c.tag!==6?(c=gs(d,f.mode,w),c.return=f,c):(c=o(c,d),c.return=f,c)}function a(f,c,d,w){var x=d.type;return x===Wn?m(f,c,d.props.children,w,d.key):c!==null&&(c.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ut&&Yc(x)===c.type)?(w=o(c,d.props),w.ref=Fr(f,c,d),w.return=f,w):(w=yl(d.type,d.key,d.props,null,f.mode,w),w.ref=Fr(f,c,d),w.return=f,w)}function u(f,c,d,w){return c===null||c.tag!==4||c.stateNode.containerInfo!==d.containerInfo||c.stateNode.implementation!==d.implementation?(c=ys(d,f.mode,w),c.return=f,c):(c=o(c,d.children||[]),c.return=f,c)}function m(f,c,d,w,x){return c===null||c.tag!==7?(c=_n(d,f.mode,w,x),c.return=f,c):(c=o(c,d),c.return=f,c)}function p(f,c,d){if(typeof c=="string"&&c!==""||typeof c=="number")return c=gs(""+c,f.mode,d),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Wo:return d=yl(c.type,c.key,c.props,null,f.mode,d),d.ref=Fr(f,null,c),d.return=f,d;case Bn:return c=ys(c,f.mode,d),c.return=f,c;case Ut:var w=c._init;return p(f,w(c._payload),d)}if(Br(c)||Ir(c))return c=_n(c,f.mode,d,null),c.return=f,c;ll(f,c)}return null}function v(f,c,d,w){var x=c!==null?c.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return x!==null?null:s(f,c,""+d,w);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Wo:return d.key===x?a(f,c,d,w):null;case Bn:return d.key===x?u(f,c,d,w):null;case Ut:return x=d._init,v(f,c,x(d._payload),w)}if(Br(d)||Ir(d))return x!==null?null:m(f,c,d,w,null);ll(f,d)}return null}function y(f,c,d,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return f=f.get(d)||null,s(c,f,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Wo:return f=f.get(w.key===null?d:w.key)||null,a(c,f,w,x);case Bn:return f=f.get(w.key===null?d:w.key)||null,u(c,f,w,x);case Ut:var C=w._init;return y(f,c,d,C(w._payload),x)}if(Br(w)||Ir(w))return f=f.get(d)||null,m(c,f,w,x,null);ll(c,w)}return null}function g(f,c,d,w){for(var x=null,C=null,k=c,E=c=0,T=null;k!==null&&E<d.length;E++){k.index>E?(T=k,k=null):T=k.sibling;var R=v(f,k,d[E],w);if(R===null){k===null&&(k=T);break}e&&k&&R.alternate===null&&t(f,k),c=l(R,c,E),C===null?x=R:C.sibling=R,C=R,k=T}if(E===d.length)return n(f,k),ee&&xn(f,E),x;if(k===null){for(;E<d.length;E++)k=p(f,d[E],w),k!==null&&(c=l(k,c,E),C===null?x=k:C.sibling=k,C=k);return ee&&xn(f,E),x}for(k=r(f,k);E<d.length;E++)T=y(k,f,E,d[E],w),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?E:T.key),c=l(T,c,E),C===null?x=T:C.sibling=T,C=T);return e&&k.forEach(function(N){return t(f,N)}),ee&&xn(f,E),x}function h(f,c,d,w){var x=Ir(d);if(typeof x!="function")throw Error(P(150));if(d=x.call(d),d==null)throw Error(P(151));for(var C=x=null,k=c,E=c=0,T=null,R=d.next();k!==null&&!R.done;E++,R=d.next()){k.index>E?(T=k,k=null):T=k.sibling;var N=v(f,k,R.value,w);if(N===null){k===null&&(k=T);break}e&&k&&N.alternate===null&&t(f,k),c=l(N,c,E),C===null?x=N:C.sibling=N,C=N,k=T}if(R.done)return n(f,k),ee&&xn(f,E),x;if(k===null){for(;!R.done;E++,R=d.next())R=p(f,R.value,w),R!==null&&(c=l(R,c,E),C===null?x=R:C.sibling=R,C=R);return ee&&xn(f,E),x}for(k=r(f,k);!R.done;E++,R=d.next())R=y(k,f,E,R.value,w),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?E:R.key),c=l(R,c,E),C===null?x=R:C.sibling=R,C=R);return e&&k.forEach(function(j){return t(f,j)}),ee&&xn(f,E),x}function S(f,c,d,w){if(typeof d=="object"&&d!==null&&d.type===Wn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case Wo:e:{for(var x=d.key,C=c;C!==null;){if(C.key===x){if(x=d.type,x===Wn){if(C.tag===7){n(f,C.sibling),c=o(C,d.props.children),c.return=f,f=c;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ut&&Yc(x)===C.type){n(f,C.sibling),c=o(C,d.props),c.ref=Fr(f,C,d),c.return=f,f=c;break e}n(f,C);break}else t(f,C);C=C.sibling}d.type===Wn?(c=_n(d.props.children,f.mode,w,d.key),c.return=f,f=c):(w=yl(d.type,d.key,d.props,null,f.mode,w),w.ref=Fr(f,c,d),w.return=f,f=w)}return i(f);case Bn:e:{for(C=d.key;c!==null;){if(c.key===C)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=o(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=ys(d,f.mode,w),c.return=f,f=c}return i(f);case Ut:return C=d._init,S(f,c,C(d._payload),w)}if(Br(d))return g(f,c,d,w);if(Ir(d))return h(f,c,d,w);ll(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=o(c,d),c.return=f,f=c):(n(f,c),c=gs(d,f.mode,w),c.return=f,f=c),i(f)):n(f,c)}return S}var cr=Sd(!0),xd=Sd(!1),$o={},Et=un($o),po=un($o),mo=un($o);function kn(e){if(e===$o)throw Error(P(174));return e}function Ma(e,t){switch(Y(mo,t),Y(po,e),Y(Et,$o),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rs(t,e)}q(Et),Y(Et,t)}function fr(){q(Et),q(po),q(mo)}function $d(e){kn(mo.current);var t=kn(Et.current),n=Rs(t,e.type);t!==n&&(Y(po,e),Y(Et,n))}function Aa(e){po.current===e&&(q(Et),q(po))}var te=un(0);function Ml(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fs=[];function za(){for(var e=0;e<fs.length;e++)fs[e]._workInProgressVersionPrimary=null;fs.length=0}var pl=Mt.ReactCurrentDispatcher,ds=Mt.ReactCurrentBatchConfig,Nn=0,ne=null,me=null,ve=null,Al=!1,Zr=!1,ho=0,Jv=0;function $e(){throw Error(P(321))}function Fa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pt(e[n],t[n]))return!1;return!0}function ja(e,t,n,r,o,l){if(Nn=l,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pl.current=e===null||e.memoizedState===null?r0:o0,e=n(r,o),Zr){l=0;do{if(Zr=!1,ho=0,25<=l)throw Error(P(301));l+=1,ve=me=null,t.updateQueue=null,pl.current=l0,e=n(r,o)}while(Zr)}if(pl.current=zl,t=me!==null&&me.next!==null,Nn=0,ve=me=ne=null,Al=!1,t)throw Error(P(300));return e}function ba(){var e=ho!==0;return ho=0,e}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?ne.memoizedState=ve=e:ve=ve.next=e,ve}function rt(){if(me===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=me.next;var t=ve===null?ne.memoizedState:ve.next;if(t!==null)ve=t,me=e;else{if(e===null)throw Error(P(310));me=e,e={memoizedState:me.memoizedState,baseState:me.baseState,baseQueue:me.baseQueue,queue:me.queue,next:null},ve===null?ne.memoizedState=ve=e:ve=ve.next=e}return ve}function vo(e,t){return typeof t=="function"?t(e):t}function ps(e){var t=rt(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=me,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var i=o.next;o.next=l.next,l.next=i}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var s=i=null,a=null,u=l;do{var m=u.lane;if((Nn&m)===m)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:m,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=p,i=r):a=a.next=p,ne.lanes|=m,On|=m}u=u.next}while(u!==null&&u!==l);a===null?i=r:a.next=s,pt(r,t.memoizedState)||(Ae=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,ne.lanes|=l,On|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ms(e){var t=rt(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do l=e(l,i.action),i=i.next;while(i!==o);pt(l,t.memoizedState)||(Ae=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Ed(){}function Cd(e,t){var n=ne,r=rt(),o=t(),l=!pt(r.memoizedState,o);if(l&&(r.memoizedState=o,Ae=!0),r=r.queue,Ha(_d.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ve!==null&&ve.memoizedState.tag&1){if(n.flags|=2048,go(9,Pd.bind(null,n,r,o,t),void 0,null),ge===null)throw Error(P(349));Nn&30||kd(n,t,o)}return o}function kd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pd(e,t,n,r){t.value=n,t.getSnapshot=r,Rd(t)&&Td(e)}function _d(e,t,n){return n(function(){Rd(t)&&Td(e)})}function Rd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pt(e,n)}catch{return!0}}function Td(e){var t=Dt(e,1);t!==null&&dt(t,e,1,-1)}function Xc(e){var t=St();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},t.queue=e,e=e.dispatch=n0.bind(null,ne,e),[t.memoizedState,e]}function go(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Nd(){return rt().memoizedState}function ml(e,t,n,r){var o=St();ne.flags|=e,o.memoizedState=go(1|t,n,void 0,r===void 0?null:r)}function Gl(e,t,n,r){var o=rt();r=r===void 0?null:r;var l=void 0;if(me!==null){var i=me.memoizedState;if(l=i.destroy,r!==null&&Fa(r,i.deps)){o.memoizedState=go(t,n,l,r);return}}ne.flags|=e,o.memoizedState=go(1|t,n,l,r)}function Gc(e,t){return ml(8390656,8,e,t)}function Ha(e,t){return Gl(2048,8,e,t)}function Od(e,t){return Gl(4,2,e,t)}function Ld(e,t){return Gl(4,4,e,t)}function Dd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Id(e,t,n){return n=n!=null?n.concat([e]):null,Gl(4,4,Dd.bind(null,t,e),n)}function Va(){}function Md(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ad(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zd(e,t,n){return Nn&21?(pt(n,t)||(n=bf(),ne.lanes|=n,On|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ae=!0),e.memoizedState=n)}function e0(e,t){var n=V;V=n!==0&&4>n?n:4,e(!0);var r=ds.transition;ds.transition={};try{e(!1),t()}finally{V=n,ds.transition=r}}function Fd(){return rt().memoizedState}function t0(e,t,n){var r=rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jd(e))bd(t,n);else if(n=vd(e,t,n,r),n!==null){var o=Le();dt(n,e,r,o),Hd(n,t,r)}}function n0(e,t,n){var r=rn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jd(e))bd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,s=l(i,n);if(o.hasEagerState=!0,o.eagerState=s,pt(s,i)){var a=t.interleaved;a===null?(o.next=o,Da(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=vd(e,t,o,r),n!==null&&(o=Le(),dt(n,e,r,o),Hd(n,t,r))}}function jd(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function bd(e,t){Zr=Al=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wa(e,n)}}var zl={readContext:nt,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},r0={readContext:nt,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ml(4194308,4,Dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return ml(4,2,e,t)},useMemo:function(e,t){var n=St();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=St();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=t0.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:Xc,useDebugValue:Va,useDeferredValue:function(e){return St().memoizedState=e},useTransition:function(){var e=Xc(!1),t=e[0];return e=e0.bind(null,e[1]),St().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,o=St();if(ee){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),ge===null)throw Error(P(349));Nn&30||kd(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Gc(_d.bind(null,r,l,e),[e]),r.flags|=2048,go(9,Pd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=St(),t=ge.identifierPrefix;if(ee){var n=Tt,r=Rt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ho++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Jv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},o0={readContext:nt,useCallback:Md,useContext:nt,useEffect:Ha,useImperativeHandle:Id,useInsertionEffect:Od,useLayoutEffect:Ld,useMemo:Ad,useReducer:ps,useRef:Nd,useState:function(){return ps(vo)},useDebugValue:Va,useDeferredValue:function(e){var t=rt();return zd(t,me.memoizedState,e)},useTransition:function(){var e=ps(vo)[0],t=rt().memoizedState;return[e,t]},useMutableSource:Ed,useSyncExternalStore:Cd,useId:Fd,unstable_isNewReconciler:!1},l0={readContext:nt,useCallback:Md,useContext:nt,useEffect:Ha,useImperativeHandle:Id,useInsertionEffect:Od,useLayoutEffect:Ld,useMemo:Ad,useReducer:ms,useRef:Nd,useState:function(){return ms(vo)},useDebugValue:Va,useDeferredValue:function(e){var t=rt();return me===null?t.memoizedState=e:zd(t,me.memoizedState,e)},useTransition:function(){var e=ms(vo)[0],t=rt().memoizedState;return[e,t]},useMutableSource:Ed,useSyncExternalStore:Cd,useId:Fd,unstable_isNewReconciler:!1};function dr(e,t){try{var n="",r=t;do n+=Mh(r),r=r.return;while(r);var o=n}catch(l){o=`
Error generating stack: `+l.message+`
`+l.stack}return{value:e,source:t,stack:o,digest:null}}function hs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Zs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var i0=typeof WeakMap=="function"?WeakMap:Map;function Vd(e,t,n){n=Nt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jl||(jl=!0,sa=r),Zs(e,t)},n}function Bd(e,t,n){n=Nt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Zs(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Zs(e,t),typeof r!="function"&&(nn===null?nn=new Set([this]):nn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Zc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new i0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=S0.bind(null,e,t,n),t.then(e,e))}function qc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Jc(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nt(-1,1),t.tag=2,tn(n,t,1))),n.lanes|=1),e)}var s0=Mt.ReactCurrentOwner,Ae=!1;function Oe(e,t,n,r){t.child=e===null?xd(t,null,n,r):cr(t,e.child,n,r)}function ef(e,t,n,r,o){n=n.render;var l=t.ref;return lr(t,o),r=ja(e,t,n,r,l,o),n=ba(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,It(e,t,o)):(ee&&n&&_a(t),t.flags|=1,Oe(e,t,r,o),t.child)}function tf(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!Ga(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Wd(e,t,l,r,o)):(e=yl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:ao,n(i,r)&&e.ref===t.ref)return It(e,t,o)}return t.flags|=1,e=on(l,r),e.ref=t.ref,e.return=t,t.child=e}function Wd(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(ao(l,r)&&e.ref===t.ref)if(Ae=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(Ae=!0);else return t.lanes=e.lanes,It(e,t,o)}return qs(e,t,n,r,o)}function Ud(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(er,Be),Be|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(er,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,Y(er,Be),Be|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,Y(er,Be),Be|=r;return Oe(e,t,o,n),t.child}function Qd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qs(e,t,n,r,o){var l=Fe(n)?Rn:ke.current;return l=ar(t,l),lr(t,o),n=ja(e,t,n,r,l,o),r=ba(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,It(e,t,o)):(ee&&r&&_a(t),t.flags|=1,Oe(e,t,n,o),t.child)}function nf(e,t,n,r,o){if(Fe(n)){var l=!0;Tl(t)}else l=!1;if(lr(t,o),t.stateNode===null)hl(e,t),wd(t,n,r),Gs(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=nt(u):(u=Fe(n)?Rn:ke.current,u=ar(t,u));var m=n.getDerivedStateFromProps,p=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Kc(t,i,r,u),Qt=!1;var v=t.memoizedState;i.state=v,Il(t,r,i,o),a=t.memoizedState,s!==r||v!==a||ze.current||Qt?(typeof m=="function"&&(Xs(t,n,m,r),a=t.memoizedState),(s=Qt||Qc(t,n,s,r,v,a,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,gd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:at(t.type,s),i.props=u,p=t.pendingProps,v=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=nt(a):(a=Fe(n)?Rn:ke.current,a=ar(t,a));var y=n.getDerivedStateFromProps;(m=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==p||v!==a)&&Kc(t,i,r,a),Qt=!1,v=t.memoizedState,i.state=v,Il(t,r,i,o);var g=t.memoizedState;s!==p||v!==g||ze.current||Qt?(typeof y=="function"&&(Xs(t,n,y,r),g=t.memoizedState),(u=Qt||Qc(t,n,u,r,v,g,a)||!1)?(m||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,g,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,g,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),i.props=r,i.state=g,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return Js(e,t,n,r,l,o)}function Js(e,t,n,r,o,l){Qd(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Hc(t,n,!1),It(e,t,l);r=t.stateNode,s0.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=cr(t,e.child,null,l),t.child=cr(t,null,s,l)):Oe(e,t,s,l),t.memoizedState=r.state,o&&Hc(t,n,!0),t.child}function Kd(e){var t=e.stateNode;t.pendingContext?bc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bc(e,t.context,!1),Ma(e,t.containerInfo)}function rf(e,t,n,r,o){return ur(),Ta(o),t.flags|=256,Oe(e,t,n,r),t.child}var ea={dehydrated:null,treeContext:null,retryLane:0};function ta(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yd(e,t,n){var r=t.pendingProps,o=te.current,l=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Y(te,o&1),e===null)return Ks(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=Jl(i,r,0,null),e=_n(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ta(n),t.memoizedState=ea,e):Ba(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return a0(e,t,i,r,s,o,n);if(l){l=r.fallback,i=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=on(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?l=on(s,l):(l=_n(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?ta(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=ea,r}return l=e.child,e=l.sibling,r=on(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ba(e,t){return t=Jl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function il(e,t,n,r){return r!==null&&Ta(r),cr(t,e.child,null,n),e=Ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function a0(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=hs(Error(P(422))),il(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Jl({mode:"visible",children:r.children},o,0,null),l=_n(l,o,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&cr(t,e.child,null,i),t.child.memoizedState=ta(i),t.memoizedState=ea,l);if(!(t.mode&1))return il(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(P(419)),r=hs(l,r,void 0),il(e,t,i,r)}if(s=(i&e.childLanes)!==0,Ae||s){if(r=ge,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Dt(e,o),dt(r,e,o,-1))}return Xa(),r=hs(Error(P(421))),il(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=x0.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,We=en(o.nextSibling),Ue=t,ee=!0,ct=null,e!==null&&(qe[Je++]=Rt,qe[Je++]=Tt,qe[Je++]=Tn,Rt=e.id,Tt=e.overflow,Tn=t),t=Ba(t,r.children),t.flags|=4096,t)}function of(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ys(e.return,t,n)}function vs(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function Xd(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Oe(e,t,r.children,n),r=te.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&of(e,n,t);else if(e.tag===19)of(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Y(te,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ml(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),vs(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ml(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}vs(t,!0,n,null,l);break;case"together":vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function It(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=on(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=on(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function u0(e,t,n){switch(t.tag){case 3:Kd(t),ur();break;case 5:$d(t);break;case 1:Fe(t.type)&&Tl(t);break;case 4:Ma(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Y(Ll,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Y(te,te.current&1),t.flags|=128,null):n&t.child.childLanes?Yd(e,t,n):(Y(te,te.current&1),e=It(e,t,n),e!==null?e.sibling:null);Y(te,te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Xd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(te,te.current),r)break;return null;case 22:case 23:return t.lanes=0,Ud(e,t,n)}return It(e,t,n)}var Gd,na,Zd,qd;Gd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};na=function(){};Zd=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,kn(Et.current);var l=null;switch(n){case"input":o=Cs(e,o),r=Cs(e,r),l=[];break;case"select":o=re({},o,{value:void 0}),r=re({},r,{value:void 0}),l=[];break;case"textarea":o=_s(e,o),r=_s(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_l)}Ts(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(to.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=o?.[u],r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&s[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(to.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Z("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};qd=function(e,t,n,r){n!==r&&(t.flags|=4)};function jr(e,t){if(!ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ee(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function c0(e,t,n){var r=t.pendingProps;switch(Ra(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(t),null;case 1:return Fe(t.type)&&Rl(),Ee(t),null;case 3:return r=t.stateNode,fr(),q(ze),q(ke),za(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ol(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ct!==null&&(ca(ct),ct=null))),na(e,t),Ee(t),null;case 5:Aa(t);var o=kn(mo.current);if(n=t.type,e!==null&&t.stateNode!=null)Zd(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return Ee(t),null}if(e=kn(Et.current),ol(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[xt]=t,r[fo]=l,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(o=0;o<Ur.length;o++)Z(Ur[o],r);break;case"source":Z("error",r);break;case"img":case"image":case"link":Z("error",r),Z("load",r);break;case"details":Z("toggle",r);break;case"input":dc(r,l),Z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Z("invalid",r);break;case"textarea":mc(r,l),Z("invalid",r)}Ts(n,l),o=null;for(var i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&rl(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&rl(r.textContent,s,e),o=["children",""+s]):to.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&Z("scroll",r)}switch(n){case"input":Uo(r),pc(r,l,!0);break;case"textarea":Uo(r),hc(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=_l)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/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[xt]=t,e[fo]=r,Gd(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ns(n,r),n){case"dialog":Z("cancel",e),Z("close",e),o=r;break;case"iframe":case"object":case"embed":Z("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ur.length;o++)Z(Ur[o],e);o=r;break;case"source":Z("error",e),o=r;break;case"img":case"image":case"link":Z("error",e),Z("load",e),o=r;break;case"details":Z("toggle",e),o=r;break;case"input":dc(e,r),o=Cs(e,r),Z("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=re({},r,{value:void 0}),Z("invalid",e);break;case"textarea":mc(e,r),o=_s(e,r),Z("invalid",e);break;default:o=r}Ts(n,o),s=o;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?Rf(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Pf(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&no(e,a):typeof a=="number"&&no(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(to.hasOwnProperty(l)?a!=null&&l==="onScroll"&&Z("scroll",e):a!=null&&pa(e,l,a,i))}switch(n){case"input":Uo(e),pc(e,r,!1);break;case"textarea":Uo(e),hc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ln(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?tr(e,!!r.multiple,l,!1):r.defaultValue!=null&&tr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=_l)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ee(t),null;case 6:if(e&&t.stateNode!=null)qd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=kn(mo.current),kn(Et.current),ol(t)){if(r=t.stateNode,n=t.memoizedProps,r[xt]=t,(l=r.nodeValue!==n)&&(e=Ue,e!==null))switch(e.tag){case 3:rl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rl(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[xt]=t,t.stateNode=r}return Ee(t),null;case 13:if(q(te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ee&&We!==null&&t.mode&1&&!(t.flags&128))hd(),ur(),t.flags|=98560,l=!1;else if(l=ol(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(P(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(P(317));l[xt]=t}else ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ee(t),l=!1}else ct!==null&&(ca(ct),ct=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||te.current&1?he===0&&(he=3):Xa())),t.updateQueue!==null&&(t.flags|=4),Ee(t),null);case 4:return fr(),na(e,t),e===null&&uo(t.stateNode.containerInfo),Ee(t),null;case 10:return La(t.type._context),Ee(t),null;case 17:return Fe(t.type)&&Rl(),Ee(t),null;case 19:if(q(te),l=t.memoizedState,l===null)return Ee(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)jr(l,!1);else{if(he!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Ml(e),i!==null){for(t.flags|=128,jr(l,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,i=l.alternate,i===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Y(te,te.current&1|2),t.child}e=e.sibling}l.tail!==null&&ie()>pr&&(t.flags|=128,r=!0,jr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ml(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!ee)return Ee(t),null}else 2*ie()-l.renderingStartTime>pr&&n!==1073741824&&(t.flags|=128,r=!0,jr(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ie(),t.sibling=null,n=te.current,Y(te,r?n&1|2:n&1),t):(Ee(t),null);case 22:case 23:return Ya(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Be&1073741824&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function f0(e,t){switch(Ra(t),t.tag){case 1:return Fe(t.type)&&Rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(),q(ze),q(ke),za(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Aa(t),null;case 13:if(q(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(te),null;case 4:return fr(),null;case 10:return La(t.type._context),null;case 22:case 23:return Ya(),null;case 24:return null;default:return null}}var sl=!1,Ce=!1,d0=typeof WeakSet=="function"?WeakSet:Set,_=null;function Jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function ra(e,t,n){try{n()}catch(r){le(e,t,r)}}var lf=!1;function p0(e,t){if(bs=Cl,e=nd(),Pa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,s=-1,a=-1,u=0,m=0,p=e,v=null;t:for(;;){for(var y;p!==n||o!==0&&p.nodeType!==3||(s=i+o),p!==l||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(y=p.firstChild)!==null;)v=p,p=y;for(;;){if(p===e)break t;if(v===n&&++u===o&&(s=i),v===l&&++m===r&&(a=i),(y=p.nextSibling)!==null)break;p=v,v=p.parentNode}p=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hs={focusedElem:e,selectionRange:n},Cl=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;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 h=g.memoizedProps,S=g.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?h:at(t.type,h),S);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(w){le(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return g=lf,lf=!1,g}function qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&ra(t,n,l)}o=o.next}while(o!==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 oa(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 Jd(e){var t=e.alternate;t!==null&&(e.alternate=null,Jd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xt],delete t[fo],delete t[Ws],delete t[Xv],delete t[Gv])),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 ep(e){return e.tag===5||e.tag===3||e.tag===4}function sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ep(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 la(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=_l));else if(r!==4&&(e=e.child,e!==null))for(la(e,t,n),e=e.sibling;e!==null;)la(e,t,n),e=e.sibling}function ia(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(ia(e,t,n),e=e.sibling;e!==null;)ia(e,t,n),e=e.sibling}var ye=null,ut=!1;function Wt(e,t,n){for(n=n.child;n!==null;)tp(e,t,n),n=n.sibling}function tp(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Bl,n)}catch{}switch(n.tag){case 5:Ce||Jn(n,t);case 6:var r=ye,o=ut;ye=null,Wt(e,t,n),ye=r,ut=o,ye!==null&&(ut?(e=ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ye.removeChild(n.stateNode));break;case 18:ye!==null&&(ut?(e=ye,n=n.stateNode,e.nodeType===8?us(e.parentNode,n):e.nodeType===1&&us(e,n),io(e)):us(ye,n.stateNode));break;case 4:r=ye,o=ut,ye=n.stateNode.containerInfo,ut=!0,Wt(e,t,n),ye=r,ut=o;break;case 0:case 11:case 14:case 15:if(!Ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&ra(n,t,i),o=o.next}while(o!==r)}Wt(e,t,n);break;case 1:if(!Ce&&(Jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){le(n,t,s)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(Ce=(r=Ce)||n.memoizedState!==null,Wt(e,t,n),Ce=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function af(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new d0),t.forEach(function(r){var o=$0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function st(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:ye=s.stateNode,ut=!1;break e;case 3:ye=s.stateNode.containerInfo,ut=!0;break e;case 4:ye=s.stateNode.containerInfo,ut=!0;break e}s=s.return}if(ye===null)throw Error(P(160));tp(l,i,o),ye=null,ut=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){le(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)np(t,e),t=t.sibling}function np(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(st(t,e),wt(e),r&4){try{qr(3,e,e.return),Zl(3,e)}catch(h){le(e,e.return,h)}try{qr(5,e,e.return)}catch(h){le(e,e.return,h)}}break;case 1:st(t,e),wt(e),r&512&&n!==null&&Jn(n,n.return);break;case 5:if(st(t,e),wt(e),r&512&&n!==null&&Jn(n,n.return),e.flags&32){var o=e.stateNode;try{no(o,"")}catch(h){le(e,e.return,h)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,i=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&Ef(o,l),Ns(s,i);var u=Ns(s,l);for(i=0;i<a.length;i+=2){var m=a[i],p=a[i+1];m==="style"?Rf(o,p):m==="dangerouslySetInnerHTML"?Pf(o,p):m==="children"?no(o,p):pa(o,m,p,u)}switch(s){case"input":ks(o,l);break;case"textarea":Cf(o,l);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var y=l.value;y!=null?tr(o,!!l.multiple,y,!1):v!==!!l.multiple&&(l.defaultValue!=null?tr(o,!!l.multiple,l.defaultValue,!0):tr(o,!!l.multiple,l.multiple?[]:"",!1))}o[fo]=l}catch(h){le(e,e.return,h)}}break;case 6:if(st(t,e),wt(e),r&4){if(e.stateNode===null)throw Error(P(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(h){le(e,e.return,h)}}break;case 3:if(st(t,e),wt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{io(t.containerInfo)}catch(h){le(e,e.return,h)}break;case 4:st(t,e),wt(e);break;case 13:st(t,e),wt(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(Qa=ie())),r&4&&af(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(Ce=(u=Ce)||m,st(t,e),Ce=u):st(t,e),wt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!m&&e.mode&1)for(_=e,m=e.child;m!==null;){for(p=_=m;_!==null;){switch(v=_,y=v.child,v.tag){case 0:case 11:case 14:case 15:qr(4,v,v.return);break;case 1:Jn(v,v.return);var g=v.stateNode;if(typeof g.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(h){le(r,n,h)}}break;case 5:Jn(v,v.return);break;case 22:if(v.memoizedState!==null){cf(p);continue}}y!==null?(y.return=v,_=y):cf(p)}m=m.sibling}e:for(m=null,p=e;;){if(p.tag===5){if(m===null){m=p;try{o=p.stateNode,u?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=p.stateNode,a=p.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=_f("display",i))}catch(h){le(e,e.return,h)}}}else if(p.tag===6){if(m===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(h){le(e,e.return,h)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;m===p&&(m=null),p=p.return}m===p&&(m=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:st(t,e),wt(e),r&4&&af(e);break;case 21:break;default:st(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ep(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(no(o,""),r.flags&=-33);var l=sf(e);ia(e,l,o);break;case 3:case 4:var i=r.stateNode.containerInfo,s=sf(e);la(e,s,i);break;default:throw Error(P(161))}}catch(a){le(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function m0(e,t,n){_=e,rp(e,t,n)}function rp(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var o=_,l=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||sl;if(!i){var s=o.alternate,a=s!==null&&s.memoizedState!==null||Ce;s=sl;var u=Ce;if(sl=i,(Ce=a)&&!u)for(_=o;_!==null;)i=_,a=i.child,i.tag===22&&i.memoizedState!==null?ff(o):a!==null?(a.return=i,_=a):ff(o);for(;l!==null;)_=l,rp(l,t,n),l=l.sibling;_=o,sl=s,Ce=u}uf(e,t,n)}else o.subtreeFlags&8772&&l!==null?(l.return=o,_=l):uf(e,t,n)}}function uf(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ce||Zl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ce)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:at(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Uc(t,l,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Uc(t,i,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var m=u.memoizedState;if(m!==null){var p=m.dehydrated;p!==null&&io(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}Ce||t.flags&512&&oa(t)}catch(v){le(t,t.return,v)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function cf(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function ff(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zl(4,t)}catch(a){le(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){le(t,o,a)}}var l=t.return;try{oa(t)}catch(a){le(t,l,a)}break;case 5:var i=t.return;try{oa(t)}catch(a){le(t,i,a)}}}catch(a){le(t,t.return,a)}if(t===e){_=null;break}var s=t.sibling;if(s!==null){s.return=t.return,_=s;break}_=t.return}}var h0=Math.ceil,Fl=Mt.ReactCurrentDispatcher,Wa=Mt.ReactCurrentOwner,tt=Mt.ReactCurrentBatchConfig,H=0,ge=null,fe=null,we=0,Be=0,er=un(0),he=0,yo=null,On=0,ql=0,Ua=0,Jr=null,Me=null,Qa=0,pr=1/0,Pt=null,jl=!1,sa=null,nn=null,al=!1,Gt=null,bl=0,eo=0,aa=null,vl=-1,gl=0;function Le(){return H&6?ie():vl!==-1?vl:vl=ie()}function rn(e){return e.mode&1?H&2&&we!==0?we&-we:qv.transition!==null?(gl===0&&(gl=bf()),gl):(e=V,e!==0||(e=window.event,e=e===void 0?16:Kf(e.type)),e):1}function dt(e,t,n,r){if(50<eo)throw eo=0,aa=null,Error(P(185));wo(e,n,r),(!(H&2)||e!==ge)&&(e===ge&&(!(H&2)&&(ql|=n),he===4&&Yt(e,we)),je(e,r),n===1&&H===0&&!(t.mode&1)&&(pr=ie()+500,Yl&&cn()))}function je(e,t){var n=e.callbackNode;ev(e,t);var r=El(e,e===ge?we:0);if(r===0)n!==null&&yc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yc(n),t===1)e.tag===0?Zv(df.bind(null,e)):dd(df.bind(null,e)),Kv(function(){!(H&6)&&cn()}),n=null;else{switch(Hf(r)){case 1:n=ya;break;case 4:n=Ff;break;case 16:n=$l;break;case 536870912:n=jf;break;default:n=$l}n=fp(n,op.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function op(e,t){if(vl=-1,gl=0,H&6)throw Error(P(327));var n=e.callbackNode;if(ir()&&e.callbackNode!==n)return null;var r=El(e,e===ge?we:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Hl(e,r);else{t=r;var o=H;H|=2;var l=ip();(ge!==e||we!==t)&&(Pt=null,pr=ie()+500,Pn(e,t));do try{y0();break}catch(s){lp(e,s)}while(1);Oa(),Fl.current=l,H=o,fe!==null?t=0:(ge=null,we=0,t=he)}if(t!==0){if(t===2&&(o=Ms(e),o!==0&&(r=o,t=ua(e,o))),t===1)throw n=yo,Pn(e,0),Yt(e,r),je(e,ie()),n;if(t===6)Yt(e,r);else{if(o=e.current.alternate,!(r&30)&&!v0(o)&&(t=Hl(e,r),t===2&&(l=Ms(e),l!==0&&(r=l,t=ua(e,l))),t===1))throw n=yo,Pn(e,0),Yt(e,r),je(e,ie()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:$n(e,Me,Pt);break;case 3:if(Yt(e,r),(r&130023424)===r&&(t=Qa+500-ie(),10<t)){if(El(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Le(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Bs($n.bind(null,e,Me,Pt),t);break}$n(e,Me,Pt);break;case 4:if(Yt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-ft(r);l=1<<i,i=t[i],i>o&&(o=i),r&=~l}if(r=o,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*h0(r/1960))-r,10<r){e.timeoutHandle=Bs($n.bind(null,e,Me,Pt),r);break}$n(e,Me,Pt);break;case 5:$n(e,Me,Pt);break;default:throw Error(P(329))}}}return je(e,ie()),e.callbackNode===n?op.bind(null,e):null}function ua(e,t){var n=Jr;return e.current.memoizedState.isDehydrated&&(Pn(e,t).flags|=256),e=Hl(e,t),e!==2&&(t=Me,Me=n,t!==null&&ca(t)),e}function ca(e){Me===null?Me=e:Me.push.apply(Me,e)}function v0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],l=o.getSnapshot;o=o.value;try{if(!pt(l(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yt(e,t){for(t&=~Ua,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ft(t),r=1<<n;e[n]=-1,t&=~r}}function df(e){if(H&6)throw Error(P(327));ir();var t=El(e,0);if(!(t&1))return je(e,ie()),null;var n=Hl(e,t);if(e.tag!==0&&n===2){var r=Ms(e);r!==0&&(t=r,n=ua(e,r))}if(n===1)throw n=yo,Pn(e,0),Yt(e,t),je(e,ie()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$n(e,Me,Pt),je(e,ie()),null}function Ka(e,t){var n=H;H|=1;try{return e(t)}finally{H=n,H===0&&(pr=ie()+500,Yl&&cn())}}function Ln(e){Gt!==null&&Gt.tag===0&&!(H&6)&&ir();var t=H;H|=1;var n=tt.transition,r=V;try{if(tt.transition=null,V=1,e)return e()}finally{V=r,tt.transition=n,H=t,!(H&6)&&cn()}}function Ya(){Be=er.current,q(er)}function Pn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Qv(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(Ra(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Rl();break;case 3:fr(),q(ze),q(ke),za();break;case 5:Aa(r);break;case 4:fr();break;case 13:q(te);break;case 19:q(te);break;case 10:La(r.type._context);break;case 22:case 23:Ya()}n=n.return}if(ge=e,fe=e=on(e.current,null),we=Be=t,he=0,yo=null,Ua=ql=On=0,Me=Jr=null,Cn!==null){for(t=0;t<Cn.length;t++)if(n=Cn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var i=l.next;l.next=o,r.next=i}n.pending=r}Cn=null}return e}function lp(e,t){do{var n=fe;try{if(Oa(),pl.current=zl,Al){for(var r=ne.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Al=!1}if(Nn=0,ve=me=ne=null,Zr=!1,ho=0,Wa.current=null,n===null||n.return===null){he=1,yo=t,fe=null;break}e:{var l=e,i=n.return,s=n,a=t;if(t=we,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,m=s,p=m.tag;if(!(m.mode&1)&&(p===0||p===11||p===15)){var v=m.alternate;v?(m.updateQueue=v.updateQueue,m.memoizedState=v.memoizedState,m.lanes=v.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=qc(i);if(y!==null){y.flags&=-257,Jc(y,i,s,l,t),y.mode&1&&Zc(l,u,t),t=y,a=u;var g=t.updateQueue;if(g===null){var h=new Set;h.add(a),t.updateQueue=h}else g.add(a);break e}else{if(!(t&1)){Zc(l,u,t),Xa();break e}a=Error(P(426))}}else if(ee&&s.mode&1){var S=qc(i);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Jc(S,i,s,l,t),Ta(dr(a,s));break e}}l=a=dr(a,s),he!==4&&(he=2),Jr===null?Jr=[l]:Jr.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=Vd(l,a,t);Wc(l,f);break e;case 1:s=a;var c=l.type,d=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(nn===null||!nn.has(d)))){l.flags|=65536,t&=-t,l.lanes|=t;var w=Bd(l,s,t);Wc(l,w);break e}}l=l.return}while(l!==null)}ap(n)}catch(x){t=x,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function ip(){var e=Fl.current;return Fl.current=zl,e===null?zl:e}function Xa(){(he===0||he===3||he===2)&&(he=4),ge===null||!(On&268435455)&&!(ql&268435455)||Yt(ge,we)}function Hl(e,t){var n=H;H|=2;var r=ip();(ge!==e||we!==t)&&(Pt=null,Pn(e,t));do try{g0();break}catch(o){lp(e,o)}while(1);if(Oa(),H=n,Fl.current=r,fe!==null)throw Error(P(261));return ge=null,we=0,he}function g0(){for(;fe!==null;)sp(fe)}function y0(){for(;fe!==null&&!Uh();)sp(fe)}function sp(e){var t=cp(e.alternate,e,Be);e.memoizedProps=e.pendingProps,t===null?ap(e):fe=t,Wa.current=null}function ap(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=f0(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,fe=null;return}}else if(n=c0(n,t,Be),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);he===0&&(he=5)}function $n(e,t,n){var r=V,o=tt.transition;try{tt.transition=null,V=1,w0(e,t,n,r)}finally{tt.transition=o,V=r}return null}function w0(e,t,n,r){do ir();while(Gt!==null);if(H&6)throw Error(P(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(tv(e,l),e===ge&&(fe=ge=null,we=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||al||(al=!0,fp($l,function(){return ir(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=tt.transition,tt.transition=null;var i=V;V=1;var s=H;H|=4,Wa.current=null,p0(e,n),np(n,e),Hv(Hs),Cl=!!bs,Hs=bs=null,e.current=n,m0(n,e,o),Qh(),H=s,V=i,tt.transition=l}else e.current=n;if(al&&(al=!1,Gt=e,bl=o),l=e.pendingLanes,l===0&&(nn=null),Xh(n.stateNode,r),je(e,ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(jl)throw jl=!1,e=sa,sa=null,e;return bl&1&&e.tag!==0&&ir(),l=e.pendingLanes,l&1?e===aa?eo++:(eo=0,aa=e):eo=0,cn(),null}function ir(){if(Gt!==null){var e=Hf(bl),t=tt.transition,n=V;try{if(tt.transition=null,V=16>e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,bl=0,H&6)throw Error(P(331));var o=H;for(H|=4,_=e.current;_!==null;){var l=_,i=l.child;if(_.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(_=u;_!==null;){var m=_;switch(m.tag){case 0:case 11:case 15:qr(8,m,l)}var p=m.child;if(p!==null)p.return=m,_=p;else for(;_!==null;){m=_;var v=m.sibling,y=m.return;if(Jd(m),m===u){_=null;break}if(v!==null){v.return=y,_=v;break}_=y}}}var g=l.alternate;if(g!==null){var h=g.child;if(h!==null){g.child=null;do{var S=h.sibling;h.sibling=null,h=S}while(h!==null)}}_=l}}if(l.subtreeFlags&2064&&i!==null)i.return=l,_=i;else e:for(;_!==null;){if(l=_,l.flags&2048)switch(l.tag){case 0:case 11:case 15:qr(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,_=f;break e}_=l.return}}var c=e.current;for(_=c;_!==null;){i=_;var d=i.child;if(i.subtreeFlags&2064&&d!==null)d.return=i,_=d;else e:for(i=c;_!==null;){if(s=_,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Zl(9,s)}}catch(x){le(s,s.return,x)}if(s===i){_=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,_=w;break e}_=s.return}}if(H=o,cn(),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Bl,e)}catch{}r=!0}return r}finally{V=n,tt.transition=t}}return!1}function pf(e,t,n){t=dr(n,t),t=Vd(e,t,1),e=tn(e,t,1),t=Le(),e!==null&&(wo(e,1,t),je(e,t))}function le(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nn===null||!nn.has(r))){e=dr(n,e),e=Bd(t,e,1),t=tn(t,e,1),e=Le(),t!==null&&(wo(t,1,e),je(t,e));break}}t=t.return}}function S0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,ge===e&&(we&n)===n&&(he===4||he===3&&(we&130023424)===we&&500>ie()-Qa?Pn(e,0):Ua|=n),je(e,t)}function up(e,t){t===0&&(e.mode&1?(t=Yo,Yo<<=1,!(Yo&130023424)&&(Yo=4194304)):t=1);var n=Le();e=Dt(e,t),e!==null&&(wo(e,t,n),je(e,n))}function x0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),up(e,n)}function $0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),up(e,n)}var cp;cp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ze.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,u0(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,ee&&t.flags&1048576&&pd(t,Ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hl(e,t),e=t.pendingProps;var o=ar(t,ke.current);lr(t,n),o=ja(null,t,r,e,o,n);var l=ba();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(l=!0,Tl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ia(t),o.updater=Xl,t.stateNode=o,o._reactInternals=t,Gs(t,r,e,n),t=Js(null,t,r,!0,l,n)):(t.tag=0,ee&&l&&_a(t),Oe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=C0(r),e=at(r,e),o){case 0:t=qs(null,t,r,e,n);break e;case 1:t=nf(null,t,r,e,n);break e;case 11:t=ef(null,t,r,e,n);break e;case 14:t=tf(null,t,r,at(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:at(r,o),qs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:at(r,o),nf(e,t,r,o,n);case 3:e:{if(Kd(t),e===null)throw Error(P(387));r=t.pendingProps,l=t.memoizedState,o=l.element,gd(e,t),Il(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=dr(Error(P(423)),t),t=rf(e,t,r,n,o);break e}else if(r!==o){o=dr(Error(P(424)),t),t=rf(e,t,r,n,o);break e}else for(We=en(t.stateNode.containerInfo.firstChild),Ue=t,ee=!0,ct=null,n=xd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ur(),r===o){t=It(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return $d(t),e===null&&Ks(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Vs(r,o)?i=null:l!==null&&Vs(r,l)&&(t.flags|=32),Qd(e,t),Oe(e,t,i,n),t.child;case 6:return e===null&&Ks(t),null;case 13:return Yd(e,t,n);case 4:return Ma(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:at(r,o),ef(e,t,r,o,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,Y(Ll,r._currentValue),r._currentValue=i,l!==null)if(pt(l.value,i)){if(l.children===o.children&&!ze.current){t=It(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){i=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Nt(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var m=u.pending;m===null?a.next=a:(a.next=m.next,m.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ys(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(P(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ys(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Oe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,lr(t,n),o=nt(o),r=r(o),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,o=at(r,t.pendingProps),o=at(r.type,o),tf(e,t,r,o,n);case 15:return Wd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:at(r,o),hl(e,t),t.tag=1,Fe(r)?(e=!0,Tl(t)):e=!1,lr(t,n),wd(t,r,o),Gs(t,r,o,n),Js(null,t,r,!0,e,n);case 19:return Xd(e,t,n);case 22:return Ud(e,t,n)}throw Error(P(156,t.tag))};function fp(e,t){return zf(e,t)}function E0(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 et(e,t,n,r){return new E0(e,t,n,r)}function Ga(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C0(e){if(typeof e=="function")return Ga(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ha)return 11;if(e===va)return 14}return 2}function on(e,t){var n=e.alternate;return n===null?(n=et(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 yl(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")Ga(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Wn:return _n(n.children,o,l,t);case ma:i=8,o|=8;break;case Ss:return e=et(12,n,t,o|2),e.elementType=Ss,e.lanes=l,e;case xs:return e=et(13,n,t,o),e.elementType=xs,e.lanes=l,e;case $s:return e=et(19,n,t,o),e.elementType=$s,e.lanes=l,e;case Sf:return Jl(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yf:i=10;break e;case wf:i=9;break e;case ha:i=11;break e;case va:i=14;break e;case Ut:i=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=et(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function _n(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function Jl(e,t,n,r){return e=et(22,e,r,t),e.elementType=Sf,e.lanes=n,e.stateNode={isHidden:!1},e}function gs(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function ys(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function k0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ts(0),this.expirationTimes=ts(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ts(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Za(e,t,n,r,o,l,i,s,a){return e=new k0(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=et(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ia(l),e}function P0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function dp(e){if(!e)return sn;e=e._reactInternals;e:{if(In(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(Fe(n))return fd(e,n,t)}return t}function pp(e,t,n,r,o,l,i,s,a){return e=Za(n,r,!0,e,o,l,i,s,a),e.context=dp(null),n=e.current,r=Le(),o=rn(n),l=Nt(r,o),l.callback=t??null,tn(n,l,o),e.current.lanes=o,wo(e,o,r),je(e,r),e}function ei(e,t,n,r){var o=t.current,l=Le(),i=rn(o);return n=dp(n),t.context===null?t.context=n:t.pendingContext=n,t=Nt(l,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=tn(o,t,i),e!==null&&(dt(e,o,i,l),dl(e,o,i)),i}function Vl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qa(e,t){mf(e,t),(e=e.alternate)&&mf(e,t)}function _0(){return null}var mp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ja(e){this._internalRoot=e}ti.prototype.render=Ja.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));ei(e,t,null,null)};ti.prototype.unmount=Ja.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ln(function(){ei(null,e,null,null)}),t[Lt]=null}};function ti(e){this._internalRoot=e}ti.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kt.length&&t!==0&&t<Kt[n].priority;n++);Kt.splice(n,0,e),n===0&&Qf(e)}};function eu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ni(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hf(){}function R0(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var u=Vl(i);l.call(u)}}var i=pp(t,r,e,0,null,!1,!1,"",hf);return e._reactRootContainer=i,e[Lt]=i.current,uo(e.nodeType===8?e.parentNode:e),Ln(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Vl(a);s.call(u)}}var a=Za(e,0,!1,null,null,!1,!1,"",hf);return e._reactRootContainer=a,e[Lt]=a.current,uo(e.nodeType===8?e.parentNode:e),Ln(function(){ei(t,a,n,r)}),a}function ri(e,t,n,r,o){var l=n._reactRootContainer;if(l){var i=l;if(typeof o=="function"){var s=o;o=function(){var a=Vl(i);s.call(a)}}ei(t,i,e,o)}else i=R0(n,t,e,o,r);return Vl(i)}Vf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wr(t.pendingLanes);n!==0&&(wa(t,n|1),je(t,ie()),!(H&6)&&(pr=ie()+500,cn()))}break;case 13:Ln(function(){var r=Dt(e,1);if(r!==null){var o=Le();dt(r,e,1,o)}}),qa(e,1)}};Sa=function(e){if(e.tag===13){var t=Dt(e,134217728);if(t!==null){var n=Le();dt(t,e,134217728,n)}qa(e,134217728)}};Bf=function(e){if(e.tag===13){var t=rn(e),n=Dt(e,t);if(n!==null){var r=Le();dt(n,e,t,r)}qa(e,t)}};Wf=function(){return V};Uf=function(e,t){var n=V;try{return V=e,t()}finally{V=n}};Ls=function(e,t,n){switch(t){case"input":if(ks(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Kl(r);if(!o)throw Error(P(90));$f(r),ks(r,o)}}}break;case"textarea":Cf(e,n);break;case"select":t=n.value,t!=null&&tr(e,!!n.multiple,t,!1)}};Of=Ka;Lf=Ln;var T0={usingClientEntryPoint:!1,Events:[xo,Yn,Kl,Tf,Nf,Ka]},br={findFiberByHostInstance:En,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},N0={bundleType:br.bundleType,version:br.version,rendererPackageName:br.rendererPackageName,rendererConfig:br.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Mf(e),e===null?null:e.stateNode},findFiberByHostInstance:br.findFiberByHostInstance||_0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Hr=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Hr.isDisabled&&Hr.supportsFiber))try{Bl=Hr.inject(N0),$t=Hr}catch{}var Hr;Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T0;Ye.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!eu(t))throw Error(P(200));return P0(e,t,null,n)};Ye.createRoot=function(e,t){if(!eu(e))throw Error(P(299));var n=!1,r="",o=mp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Za(e,1,!1,null,null,n,!1,r,o),e[Lt]=t.current,uo(e.nodeType===8?e.parentNode:e),new Ja(t)};Ye.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=Mf(t),e=e===null?null:e.stateNode,e};Ye.flushSync=function(e){return Ln(e)};Ye.hydrate=function(e,t,n){if(!ni(t))throw Error(P(200));return ri(null,e,t,!0,n)};Ye.hydrateRoot=function(e,t,n){if(!eu(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",i=mp;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=pp(t,null,e,1,n??null,o,!1,l,i),e[Lt]=t.current,uo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ti(t)};Ye.render=function(e,t,n){if(!ni(t))throw Error(P(200));return ri(null,e,t,!1,n)};Ye.unmountComponentAtNode=function(e){if(!ni(e))throw Error(P(40));return e._reactRootContainer?(Ln(function(){ri(null,null,e,!1,function(){e._reactRootContainer=null,e[Lt]=null})}),!0):!1};Ye.unstable_batchedUpdates=Ka;Ye.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ni(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return ri(e,t,n,!1,r)};Ye.version="18.2.0-next-9e3b772b8-20220608"});var Eo=wn((Ny,gp)=>{"use strict";function vp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vp)}catch(e){console.error(e)}}vp(),gp.exports=hp()});var Im=wn((J1,Dm)=>{Dm.exports.isNode=!1});function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(this,arguments)}var $=I(F(),1),Au=I(Eo(),1);function tu(e,[t,n]){return Math.min(n,Math.max(t,e))}function de(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var ht=I(F(),1);var mt=I(F(),1);function vr(e,t=[]){let n=[];function r(l,i){let s=(0,mt.createContext)(i),a=n.length;n=[...n,i];function u(p){let{scope:v,children:y,...g}=p,h=v?.[e][a]||s,S=(0,mt.useMemo)(()=>g,Object.values(g));return(0,mt.createElement)(h.Provider,{value:S},y)}function m(p,v){let y=v?.[e][a]||s,g=(0,mt.useContext)(y);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${l}\``)}return u.displayName=l+"Provider",[u,m]}let o=()=>{let l=n.map(i=>(0,mt.createContext)(i));return function(s){let a=s?.[e]||l;return(0,mt.useMemo)(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,O0(o,...t)]}function O0(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){let i=r.reduce((s,{useScope:a,scopeName:u})=>{let p=a(l)[`__scope${u}`];return{...s,...p}},{});return(0,mt.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var yp=I(F(),1);function L0(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function nu(...e){return t=>e.forEach(n=>L0(n,t))}function se(...e){return(0,yp.useCallback)(nu(...e),e)}var oe=I(F(),1);var fn=(0,oe.forwardRef)((e,t)=>{let{children:n,...r}=e,o=oe.Children.toArray(n),l=o.find(I0);if(l){let i=l.props.children,s=o.map(a=>a===l?oe.Children.count(i)>1?oe.Children.only(null):(0,oe.isValidElement)(i)?i.props.children:null:a);return(0,oe.createElement)(ru,L({},r,{ref:t}),(0,oe.isValidElement)(i)?(0,oe.cloneElement)(i,void 0,s):null)}return(0,oe.createElement)(ru,L({},r,{ref:t}),n)});fn.displayName="Slot";var ru=(0,oe.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,oe.isValidElement)(n)?(0,oe.cloneElement)(n,{...M0(r,n.props),ref:t?nu(t,n.ref):n.ref}):oe.Children.count(n)>1?oe.Children.only(null):null});ru.displayName="SlotClone";var D0=({children:e})=>(0,oe.createElement)(oe.Fragment,null,e);function I0(e){return(0,oe.isValidElement)(e)&&e.type===D0}function M0(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...s)=>{l(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...l}:r==="className"&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function wp(e){let t=e+"CollectionProvider",[n,r]=vr(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{let{scope:g,children:h}=y,S=ht.default.useRef(null),f=ht.default.useRef(new Map).current;return ht.default.createElement(o,{scope:g,itemMap:f,collectionRef:S},h)},s=e+"CollectionSlot",a=ht.default.forwardRef((y,g)=>{let{scope:h,children:S}=y,f=l(s,h),c=se(g,f.collectionRef);return ht.default.createElement(fn,{ref:c},S)}),u=e+"CollectionItemSlot",m="data-radix-collection-item",p=ht.default.forwardRef((y,g)=>{let{scope:h,children:S,...f}=y,c=ht.default.useRef(null),d=se(g,c),w=l(u,h);return ht.default.useEffect(()=>(w.itemMap.set(c,{ref:c,...f}),()=>void w.itemMap.delete(c))),ht.default.createElement(fn,{[m]:"",ref:d},S)});function v(y){let g=l(e+"CollectionConsumer",y);return ht.default.useCallback(()=>{let S=g.collectionRef.current;if(!S)return[];let f=Array.from(S.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((w,x)=>f.indexOf(w.ref.current)-f.indexOf(x.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:a,ItemSlot:p},v,r]}var Co=I(F(),1),A0=(0,Co.createContext)(void 0);function Sp(e){let t=(0,Co.useContext)(A0);return e||t||"ltr"}var ae=I(F(),1);var gr=I(F(),1),xp=I(Eo(),1);var z0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],X=z0.reduce((e,t)=>{let n=(0,gr.forwardRef)((r,o)=>{let{asChild:l,...i}=r,s=l?fn:t;return(0,gr.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,gr.createElement)(s,L({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $p(e,t){e&&(0,xp.flushSync)(()=>e.dispatchEvent(t))}var yr=I(F(),1);function Ie(e){let t=(0,yr.useRef)(e);return(0,yr.useEffect)(()=>{t.current=e}),(0,yr.useMemo)(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}var Ep=I(F(),1);function Cp(e,t=globalThis?.document){let n=Ie(e);(0,Ep.useEffect)(()=>{let r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}var ou="dismissableLayer.update",F0="dismissableLayer.pointerDownOutside",j0="dismissableLayer.focusOutside",kp,b0=(0,ae.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_p=(0,ae.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,m=(0,ae.useContext)(b0),[p,v]=(0,ae.useState)(null),y=(n=p?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,g]=(0,ae.useState)({}),h=se(t,E=>v(E)),S=Array.from(m.layers),[f]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),c=S.indexOf(f),d=p?S.indexOf(p):-1,w=m.layersWithOutsidePointerEventsDisabled.size>0,x=d>=c,C=H0(E=>{let T=E.target,R=[...m.branches].some(N=>N.contains(T));!x||R||(l?.(E),s?.(E),E.defaultPrevented||a?.())},y),k=V0(E=>{let T=E.target;[...m.branches].some(N=>N.contains(T))||(i?.(E),s?.(E),E.defaultPrevented||a?.())},y);return Cp(E=>{d===m.layers.size-1&&(o?.(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},y),(0,ae.useEffect)(()=>{if(p)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(kp=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),Pp(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=kp)}},[p,y,r,m]),(0,ae.useEffect)(()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),Pp())},[p,m]),(0,ae.useEffect)(()=>{let E=()=>g({});return document.addEventListener(ou,E),()=>document.removeEventListener(ou,E)},[]),(0,ae.createElement)(X.div,L({},u,{ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:de(e.onFocusCapture,k.onFocusCapture),onBlurCapture:de(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:de(e.onPointerDownCapture,C.onPointerDownCapture)}))});function H0(e,t=globalThis?.document){let n=Ie(e),r=(0,ae.useRef)(!1),o=(0,ae.useRef)(()=>{});return(0,ae.useEffect)(()=>{let l=s=>{if(s.target&&!r.current){let u=function(){Rp(F0,n,a,{discrete:!0})},a={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function V0(e,t=globalThis?.document){let n=Ie(e),r=(0,ae.useRef)(!1);return(0,ae.useEffect)(()=>{let o=l=>{l.target&&!r.current&&Rp(j0,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pp(){let e=new CustomEvent(ou);document.dispatchEvent(e)}function Rp(e,t,n,{discrete:r}){let o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$p(o,l):o.dispatchEvent(l)}var Np=I(F(),1),lu=0;function Op(){(0,Np.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Tp()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Tp()),lu++,()=>{lu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),lu--}},[])}function Tp(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var be=I(F(),1);var iu="focusScope.autoFocusOnMount",su="focusScope.autoFocusOnUnmount",Lp={bubbles:!1,cancelable:!0};var Ap=(0,be.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...i}=e,[s,a]=(0,be.useState)(null),u=Ie(o),m=Ie(l),p=(0,be.useRef)(null),v=se(t,h=>a(h)),y=(0,be.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,be.useEffect)(()=>{if(r){let h=function(d){if(y.paused||!s)return;let w=d.target;s.contains(w)?p.current=w:dn(p.current,{select:!0})},S=function(d){if(y.paused||!s)return;let w=d.relatedTarget;w!==null&&(s.contains(w)||dn(p.current,{select:!0}))},f=function(d){let w=document.activeElement;for(let x of d)x.removedNodes.length>0&&(s!=null&&s.contains(w)||dn(s))};document.addEventListener("focusin",h),document.addEventListener("focusout",S);let c=new MutationObserver(f);return s&&c.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",S),c.disconnect()}}},[r,s,y.paused]),(0,be.useEffect)(()=>{if(s){Ip.add(y);let h=document.activeElement;if(!s.contains(h)){let f=new CustomEvent(iu,Lp);s.addEventListener(iu,u),s.dispatchEvent(f),f.defaultPrevented||(B0(Y0(zp(s)),{select:!0}),document.activeElement===h&&dn(s))}return()=>{s.removeEventListener(iu,u),setTimeout(()=>{let f=new CustomEvent(su,Lp);s.addEventListener(su,m),s.dispatchEvent(f),f.defaultPrevented||dn(h??document.body,{select:!0}),s.removeEventListener(su,m),Ip.remove(y)},0)}}},[s,u,m,y]);let g=(0,be.useCallback)(h=>{if(!n&&!r||y.paused)return;let S=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,f=document.activeElement;if(S&&f){let c=h.currentTarget,[d,w]=W0(c);d&&w?!h.shiftKey&&f===w?(h.preventDefault(),n&&dn(d,{select:!0})):h.shiftKey&&f===d&&(h.preventDefault(),n&&dn(w,{select:!0})):f===c&&h.preventDefault()}},[n,r,y.paused]);return(0,be.createElement)(X.div,L({tabIndex:-1},i,{ref:v,onKeyDown:g}))});function B0(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(dn(r,{select:t}),document.activeElement!==n)return}function W0(e){let t=zp(e),n=Dp(t,e),r=Dp(t.reverse(),e);return[n,r]}function zp(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Dp(e,t){for(let n of e)if(!U0(n,{upTo:t}))return n}function U0(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Q0(e){return e instanceof HTMLInputElement&&"select"in e}function dn(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Q0(e)&&t&&e.select()}}var Ip=K0();function K0(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Mp(e,t),e.unshift(t)},remove(t){var n;e=Mp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Mp(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Y0(e){return e.filter(t=>t.tagName!=="A")}var au=I(F(),1);var Fp=I(F(),1),Pe=globalThis?.document?Fp.useLayoutEffect:()=>{};var X0=au["useId".toString()]||(()=>{}),G0=0;function oi(e){let[t,n]=au.useState(X0());return Pe(()=>{e||n(r=>r??String(G0++))},[e]),e||(t?`radix-${t}`:"")}var ue=I(F(),1);function wr(e){return e.split("-")[1]}function fu(e){return e==="y"?"height":"width"}function At(e){return e.split("-")[0]}function zn(e){return["top","bottom"].includes(At(e))?"x":"y"}function jp(e,t,n){let{reference:r,floating:o}=e,l=r.x+r.width/2-o.width/2,i=r.y+r.height/2-o.height/2,s=zn(t),a=fu(s),u=r[a]/2-o[a]/2,m=s==="x",p;switch(At(t)){case"top":p={x:l,y:r.y-o.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:i};break;case"left":p={x:r.x-o.width,y:i};break;default:p={x:r.x,y:r.y}}switch(wr(t)){case"start":p[s]-=u*(n&&m?-1:1);break;case"end":p[s]+=u*(n&&m?-1:1)}return p}var Vp=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:i}=n,s=l.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:p}=jp(u,r,a),v=r,y={},g=0;for(let h=0;h<s.length;h++){let{name:S,fn:f}=s[h],{x:c,y:d,data:w,reset:x}=await f({x:m,y:p,initialPlacement:r,placement:v,strategy:o,middlewareData:y,rects:u,platform:i,elements:{reference:e,floating:t}});m=c??m,p=d??p,y={...y,[S]:{...y[S],...w}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(v=x.placement),x.rects&&(u=x.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:m,y:p}=jp(u,v,a)),h=-1)}return{x:m,y:p,placement:v,strategy:o,middlewareData:y}};function zt(e,t){return typeof e=="function"?e(t):e}function Bp(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function ko(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function An(e,t){var n;t===void 0&&(t={});let{x:r,y:o,platform:l,rects:i,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:v=!1,padding:y=0}=zt(t,e),g=Bp(y),h=s[v?p==="floating"?"reference":"floating":p],S=ko(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(h)))==null||n?h:h.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:m,strategy:a})),f=p==="floating"?{...i.floating,x:r,y:o}:i.reference,c=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),d=await(l.isElement==null?void 0:l.isElement(c))&&await(l.getScale==null?void 0:l.getScale(c))||{x:1,y:1},w=ko(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f,offsetParent:c,strategy:a}):f);return{top:(S.top-w.top+g.top)/d.y,bottom:(w.bottom-S.bottom+g.bottom)/d.y,left:(S.left-w.left+g.left)/d.x,right:(w.right-S.right+g.right)/d.x}}var Po=Math.min,Mn=Math.max;function cu(e,t,n){return Mn(e,Po(t,n))}var ii=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:l,platform:i,elements:s}=t,{element:a,padding:u=0}=zt(e,t)||{};if(a==null)return{};let m=Bp(u),p={x:n,y:r},v=zn(o),y=fu(v),g=await i.getDimensions(a),h=v==="y",S=h?"top":"left",f=h?"bottom":"right",c=h?"clientHeight":"clientWidth",d=l.reference[y]+l.reference[v]-p[v]-l.floating[y],w=p[v]-l.reference[v],x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a)),C=x?x[c]:0;C&&await(i.isElement==null?void 0:i.isElement(x))||(C=s.floating[c]||l.floating[y]);let k=d/2-w/2,E=C/2-g[y]/2-1,T=Po(m[S],E),R=Po(m[f],E),N=T,j=C-g[y]-R,M=C/2-g[y]/2+k,b=cu(N,M,j),A=wr(o)!=null&&M!=b&&l.reference[y]/2-(M<N?T:R)-g[y]/2<0?M<N?N-M:j-M:0;return{[v]:p[v]-A,data:{[v]:b,centerOffset:M-b+A}}}}),Wp=["top","right","bottom","left"],f1=Wp.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),Z0={left:"right",right:"left",bottom:"top",top:"bottom"};function li(e){return e.replace(/left|right|bottom|top/g,t=>Z0[t])}function q0(e,t,n){n===void 0&&(n=!1);let r=wr(e),o=zn(e),l=fu(o),i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=li(i)),{main:i,cross:li(i)}}var J0={start:"end",end:"start"};function uu(e){return e.replace(/start|end/g,t=>J0[t])}var si=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;let{placement:r,middlewareData:o,rects:l,initialPlacement:i,platform:s,elements:a}=t,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...h}=zt(e,t),S=At(r),f=At(i)===i,c=await(s.isRTL==null?void 0:s.isRTL(a.floating)),d=p||(f||!g?[li(i)]:function(N){let j=li(N);return[uu(N),j,uu(j)]}(i));p||y==="none"||d.push(...function(N,j,M,b){let A=wr(N),O=function(Q,ce,Ge){let gt=["left","right"],kt=["right","left"],Ht=["top","bottom"],yn=["bottom","top"];switch(Q){case"top":case"bottom":return Ge?ce?kt:gt:ce?gt:kt;case"left":case"right":return ce?Ht:yn;default:return[]}}(At(N),M==="start",b);return A&&(O=O.map(Q=>Q+"-"+A),j&&(O=O.concat(O.map(uu)))),O}(i,g,y,c));let w=[i,...d],x=await An(t,h),C=[],k=((n=o.flip)==null?void 0:n.overflows)||[];if(u&&C.push(x[S]),m){let{main:N,cross:j}=q0(r,l,c);C.push(x[N],x[j])}if(k=[...k,{placement:r,overflows:C}],!C.every(N=>N<=0)){var E,T;let N=(((E=o.flip)==null?void 0:E.index)||0)+1,j=w[N];if(j)return{data:{index:N,overflows:k},reset:{placement:j}};let M=(T=k.filter(b=>b.overflows[0]<=0).sort((b,A)=>b.overflows[1]-A.overflows[1])[0])==null?void 0:T.placement;if(!M)switch(v){case"bestFit":{var R;let b=(R=k.map(A=>[A.placement,A.overflows.filter(O=>O>0).reduce((O,Q)=>O+Q,0)]).sort((A,O)=>A[1]-O[1])[0])==null?void 0:R[0];b&&(M=b);break}case"initialPlacement":M=i}if(r!==M)return{reset:{placement:M}}}return{}}}};function bp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hp(e){return Wp.some(t=>e[t]>=0)}var ai=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=zt(e,t);switch(r){case"referenceHidden":{let l=bp(await An(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Hp(l)}}}case"escaped":{let l=bp(await An(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:l,escaped:Hp(l)}}}default:return{}}}}};var ui=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,o=await async function(l,i){let{placement:s,platform:a,elements:u}=l,m=await(a.isRTL==null?void 0:a.isRTL(u.floating)),p=At(s),v=wr(s),y=zn(s)==="x",g=["left","top"].includes(p)?-1:1,h=m&&y?-1:1,S=zt(i,l),{mainAxis:f,crossAxis:c,alignmentAxis:d}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...S};return v&&typeof d=="number"&&(c=v==="end"?-1*d:d),y?{x:c*h,y:f*g}:{x:f*g,y:c*h}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Up(e){return e==="x"?"y":"x"}var ci=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:s={fn:S=>{let{x:f,y:c}=S;return{x:f,y:c}}},...a}=zt(e,t),u={x:n,y:r},m=await An(t,a),p=zn(At(o)),v=Up(p),y=u[p],g=u[v];if(l){let S=p==="y"?"bottom":"right";y=cu(y+m[p==="y"?"top":"left"],y,y-m[S])}if(i){let S=v==="y"?"bottom":"right";g=cu(g+m[v==="y"?"top":"left"],g,g-m[S])}let h=s.fn({...t,[p]:y,[v]:g});return{...h,data:{x:h.x-n,y:h.y-r}}}}},fi=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:l,middlewareData:i}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=zt(e,t),m={x:n,y:r},p=zn(o),v=Up(p),y=m[p],g=m[v],h=zt(s,t),S=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){let d=p==="y"?"height":"width",w=l.reference[p]-l.floating[d]+S.mainAxis,x=l.reference[p]+l.reference[d]-S.mainAxis;y<w?y=w:y>x&&(y=x)}if(u){var f,c;let d=p==="y"?"width":"height",w=["top","left"].includes(At(o)),x=l.reference[v]-l.floating[d]+(w&&((f=i.offset)==null?void 0:f[v])||0)+(w?0:S.crossAxis),C=l.reference[v]+l.reference[d]+(w?0:((c=i.offset)==null?void 0:c[v])||0)-(w?S.crossAxis:0);g<x?g=x:g>C&&(g=C)}return{[p]:y,[v]:g}}}},di=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:r,platform:o,elements:l}=t,{apply:i=()=>{},...s}=zt(e,t),a=await An(t,s),u=At(n),m=wr(n),p=zn(n)==="x",{width:v,height:y}=r.floating,g,h;u==="top"||u==="bottom"?(g=u,h=m===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(h=u,g=m==="end"?"top":"bottom");let S=y-a[g],f=v-a[h],c=!t.middlewareData.shift,d=S,w=f;if(p){let C=v-a.left-a.right;w=m||c?Po(f,C):C}else{let C=y-a.top-a.bottom;d=m||c?Po(S,C):C}if(c&&!m){let C=Mn(a.left,0),k=Mn(a.right,0),E=Mn(a.top,0),T=Mn(a.bottom,0);p?w=v-2*(C!==0||k!==0?C+k:Mn(a.left,a.right)):d=y-2*(E!==0||T!==0?E+T:Mn(a.top,a.bottom))}await i({...t,availableWidth:w,availableHeight:d});let x=await o.getDimensions(l.floating);return v!==x.width||y!==x.height?{reset:{rects:!0}}:{}}}};function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ct(e){return Xe(e).getComputedStyle(e)}function Gp(e){return e instanceof Xe(e).Node}function pn(e){return Gp(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){return e instanceof HTMLElement||e instanceof Xe(e).HTMLElement}function Qp(e){return typeof ShadowRoot<"u"&&(e instanceof Xe(e).ShadowRoot||e instanceof ShadowRoot)}function _o(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ng(e){return["table","td","th"].includes(pn(e))}function du(e){let t=mu(),n=Ct(e);return n.transform!=="none"||n.perspective!=="none"||!!n.containerType&&n.containerType!=="normal"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function mu(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function hi(e){return["html","body","#document"].includes(pn(e))}var pu=Math.min,Sr=Math.max,mi=Math.round,pi=Math.floor,mn=e=>({x:e,y:e});function Zp(e){let t=Ct(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=vt(e),l=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=mi(n)!==l||mi(r)!==i;return s&&(n=l,r=i),{width:n,height:r,$:s}}function Ft(e){return e instanceof Element||e instanceof Xe(e).Element}function hu(e){return Ft(e)?e:e.contextElement}function xr(e){let t=hu(e);if(!vt(t))return mn(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:l}=Zp(t),i=(l?mi(n.width):n.width)/r,s=(l?mi(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}var rg=mn(0);function qp(e){let t=Xe(e);return mu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rg}function Fn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let o=e.getBoundingClientRect(),l=hu(e),i=mn(1);t&&(r?Ft(r)&&(i=xr(r)):i=xr(e));let s=function(v,y,g){return y===void 0&&(y=!1),!(!g||y&&g!==Xe(v))&&y}(l,n,r)?qp(l):mn(0),a=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,m=o.width/i.x,p=o.height/i.y;if(l){let v=Xe(l),y=r&&Ft(r)?Xe(r):r,g=v.frameElement;for(;g&&r&&y!==v;){let h=xr(g),S=g.getBoundingClientRect(),f=getComputedStyle(g),c=S.left+(g.clientLeft+parseFloat(f.paddingLeft))*h.x,d=S.top+(g.clientTop+parseFloat(f.paddingTop))*h.y;a*=h.x,u*=h.y,m*=h.x,p*=h.y,a+=c,u+=d,g=Xe(g).frameElement}}return ko({width:m,height:p,x:a,y:u})}function vi(e){return Ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jt(e){var t;return(t=(Gp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jp(e){return Fn(jt(e)).left+vi(e).scrollLeft}function $r(e){if(pn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Qp(e)&&e.host||jt(e);return Qp(t)?t.host:t}function em(e){let t=$r(e);return hi(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&_o(t)?t:em(t)}function Ro(e,t){var n;t===void 0&&(t=[]);let r=em(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),l=Xe(r);return o?t.concat(l,l.visualViewport||[],_o(r)?r:[]):t.concat(r,Ro(r))}function Kp(e,t,n){let r;if(t==="viewport")r=function(o,l){let i=Xe(o),s=jt(o),a=i.visualViewport,u=s.clientWidth,m=s.clientHeight,p=0,v=0;if(a){u=a.width,m=a.height;let y=mu();(!y||y&&l==="fixed")&&(p=a.offsetLeft,v=a.offsetTop)}return{width:u,height:m,x:p,y:v}}(e,n);else if(t==="document")r=function(o){let l=jt(o),i=vi(o),s=o.ownerDocument.body,a=Sr(l.scrollWidth,l.clientWidth,s.scrollWidth,s.clientWidth),u=Sr(l.scrollHeight,l.clientHeight,s.scrollHeight,s.clientHeight),m=-i.scrollLeft+Jp(o),p=-i.scrollTop;return Ct(s).direction==="rtl"&&(m+=Sr(l.clientWidth,s.clientWidth)-a),{width:a,height:u,x:m,y:p}}(jt(e));else if(Ft(t))r=function(o,l){let i=Fn(o,!0,l==="fixed"),s=i.top+o.clientTop,a=i.left+o.clientLeft,u=vt(o)?xr(o):mn(1);return{width:o.clientWidth*u.x,height:o.clientHeight*u.y,x:a*u.x,y:s*u.y}}(t,n);else{let o=qp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ko(r)}function tm(e,t){let n=$r(e);return!(n===t||!Ft(n)||hi(n))&&(Ct(n).position==="fixed"||tm(n,t))}function og(e,t,n){let r=vt(t),o=jt(t),l=n==="fixed",i=Fn(e,!0,l,t),s={scrollLeft:0,scrollTop:0},a=mn(0);if(r||!r&&!l)if((pn(t)!=="body"||_o(o))&&(s=vi(t)),vt(t)){let u=Fn(t,!0,l,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else o&&(a.x=Jp(o));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function Yp(e,t){return vt(e)&&Ct(e).position!=="fixed"?t?t(e):e.offsetParent:null}function Xp(e,t){let n=Xe(e);if(!vt(e))return n;let r=Yp(e,t);for(;r&&ng(r)&&Ct(r).position==="static";)r=Yp(r,t);return r&&(pn(r)==="html"||pn(r)==="body"&&Ct(r).position==="static"&&!du(r))?n:r||function(o){let l=$r(o);for(;vt(l)&&!hi(l);){if(du(l))return l;l=$r(l)}return null}(e)||n}var nm={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,o=vt(n),l=jt(n);if(n===l)return t;let i={scrollLeft:0,scrollTop:0},s=mn(1),a=mn(0);if((o||!o&&r!=="fixed")&&((pn(n)!=="body"||_o(l))&&(i=vi(n)),vt(n))){let u=Fn(n);s=xr(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+a.x,y:t.y*s.y-i.scrollTop*s.y+a.y}},getDocumentElement:jt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,l=[...n==="clippingAncestors"?function(a,u){let m=u.get(a);if(m)return m;let p=Ro(a).filter(h=>Ft(h)&&pn(h)!=="body"),v=null,y=Ct(a).position==="fixed",g=y?$r(a):a;for(;Ft(g)&&!hi(g);){let h=Ct(g),S=du(g);S||h.position!=="fixed"||(v=null),(y?!S&&!v:!S&&h.position==="static"&&v&&["absolute","fixed"].includes(v.position)||_o(g)&&!S&&tm(a,g))?p=p.filter(f=>f!==g):v=h,g=$r(g)}return u.set(a,p),p}(t,this._c):[].concat(n),r],i=l[0],s=l.reduce((a,u)=>{let m=Kp(t,u,o);return a.top=Sr(m.top,a.top),a.right=pu(m.right,a.right),a.bottom=pu(m.bottom,a.bottom),a.left=Sr(m.left,a.left),a},Kp(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Xp,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e,o=this.getOffsetParent||Xp,l=this.getDimensions;return{reference:og(t,await o(n),r),floating:{x:0,y:0,...await l(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return Zp(e)},getScale:xr,isElement:Ft,isRTL:function(e){return getComputedStyle(e).direction==="rtl"}};function vu(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=hu(e),m=o||l?[...u?Ro(u):[],...Ro(t)]:[];m.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),l&&S.addEventListener("resize",n)});let p=u&&s?function(S,f){let c,d=null,w=jt(S);function x(){clearTimeout(c),d&&d.disconnect(),d=null}return function C(k,E){k===void 0&&(k=!1),E===void 0&&(E=1),x();let{left:T,top:R,width:N,height:j}=S.getBoundingClientRect();if(k||f(),!N||!j)return;let M={rootMargin:-pi(R)+"px "+-pi(w.clientWidth-(T+N))+"px "+-pi(w.clientHeight-(R+j))+"px "+-pi(T)+"px",threshold:Sr(0,pu(1,E))||1},b=!0;function A(O){let Q=O[0].intersectionRatio;if(Q!==E){if(!b)return C();Q?C(!1,Q):c=setTimeout(()=>{C(!1,1e-7)},100)}b=!1}try{d=new IntersectionObserver(A,{...M,root:w.ownerDocument})}catch{d=new IntersectionObserver(A,M)}d.observe(S)}(!0),x}(u,n):null,v,y=-1,g=null;i&&(g=new ResizeObserver(S=>{let[f]=S;f&&f.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let h=a?Fn(e):null;return a&&function S(){let f=Fn(e);!h||f.x===h.x&&f.y===h.y&&f.width===h.width&&f.height===h.height||n(),h=f,v=requestAnimationFrame(S)}(),n(),()=>{m.forEach(S=>{o&&S.removeEventListener("scroll",n),l&&S.removeEventListener("resize",n)}),p&&p(),g&&g.disconnect(),g=null,a&&cancelAnimationFrame(v)}}var gu=(e,t,n)=>{let r=new Map,o={platform:nm,...n},l={...o.platform,_c:r};return Vp(e,t,{...o,platform:l})};var pe=I(F()),wi=I(F()),lm=I(Eo()),im=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){let{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ii({element:r.current,padding:o}).fn(n):{}:r?ii({element:r,padding:o}).fn(n):{}}}},gi=typeof document<"u"?wi.useLayoutEffect:wi.useEffect;function yi(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,o;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(!yi(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){let l=o[r];if(!(l==="_owner"&&e.$$typeof)&&!yi(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function sm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rm(e,t){let n=sm(e);return Math.round(t*n)/n}function om(e){let t=pe.useRef(e);return gi(()=>{t.current=e}),t}function am(e){e===void 0&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:i}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[m,p]=pe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,y]=pe.useState(r);yi(v,r)||y(r);let[g,h]=pe.useState(null),[S,f]=pe.useState(null),c=pe.useCallback(O=>{O!=C.current&&(C.current=O,h(O))},[h]),d=pe.useCallback(O=>{O!==k.current&&(k.current=O,f(O))},[f]),w=l||g,x=i||S,C=pe.useRef(null),k=pe.useRef(null),E=pe.useRef(m),T=om(a),R=om(o),N=pe.useCallback(()=>{if(!C.current||!k.current)return;let O={placement:t,strategy:n,middleware:v};R.current&&(O.platform=R.current),gu(C.current,k.current,O).then(Q=>{let ce={...Q,isPositioned:!0};j.current&&!yi(E.current,ce)&&(E.current=ce,lm.flushSync(()=>{p(ce)}))})},[v,t,n,R]);gi(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[u]);let j=pe.useRef(!1);gi(()=>(j.current=!0,()=>{j.current=!1}),[]),gi(()=>{if(w&&(C.current=w),x&&(k.current=x),w&&x){if(T.current)return T.current(w,x,N);N()}},[w,x,N,T]);let M=pe.useMemo(()=>({reference:C,floating:k,setReference:c,setFloating:d}),[c,d]),b=pe.useMemo(()=>({reference:w,floating:x}),[w,x]),A=pe.useMemo(()=>{let O={position:n,left:0,top:0};if(!b.floating)return O;let Q=rm(b.floating,m.x),ce=rm(b.floating,m.y);return s?{...O,transform:"translate("+Q+"px, "+ce+"px)",...sm(b.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:ce}},[n,s,b.floating,m.x,m.y]);return pe.useMemo(()=>({...m,update:N,refs:M,elements:b,floatingStyles:A}),[m,N,M,b,A])}var To=I(F(),1);var lg=(0,To.forwardRef)((e,t)=>{let{children:n,width:r=10,height:o=5,...l}=e;return(0,To.createElement)(X.svg,L({},l,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,To.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),um=lg;var cm=I(F(),1);function fm(e){let[t,n]=(0,cm.useState)(void 0);return Pe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let l=o[0],i,s;if("borderBoxSize"in l){let a=l.borderBoxSize,u=Array.isArray(a)?a[0]:a;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dm="Popper",[pm,yu]=vr(dm),[ig,mm]=pm(dm),sg=e=>{let{__scopePopper:t,children:n}=e,[r,o]=(0,ue.useState)(null);return(0,ue.createElement)(ig,{scope:t,anchor:r,onAnchorChange:o},n)},ag="PopperAnchor",ug=(0,ue.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=mm(ag,n),i=(0,ue.useRef)(null),s=se(t,i);return(0,ue.useEffect)(()=>{l.onAnchorChange(r?.current||i.current)}),r?null:(0,ue.createElement)(X.div,L({},o,{ref:s}))}),hm="PopperContent",[cg,fg]=pm(hm),dg=(0,ue.forwardRef)((e,t)=>{var n,r,o,l,i,s,a,u;let{__scopePopper:m,side:p="bottom",sideOffset:v=0,align:y="center",alignOffset:g=0,arrowPadding:h=0,collisionBoundary:S=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:d=!1,avoidCollisions:w=!0,onPlaced:x,...C}=e,k=mm(hm,m),[E,T]=(0,ue.useState)(null),R=se(t,Te=>T(Te)),[N,j]=(0,ue.useState)(null),M=fm(N),b=(n=M?.width)!==null&&n!==void 0?n:0,A=(r=M?.height)!==null&&r!==void 0?r:0,O=p+(y!=="center"?"-"+y:""),Q=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},ce=Array.isArray(S)?S:[S],Ge=ce.length>0,gt={padding:Q,boundary:ce.filter(vg),altBoundary:Ge},{refs:kt,floatingStyles:Ht,placement:yn,isPositioned:ot,middlewareData:lt}=am({strategy:"fixed",placement:O,whileElementsMounted:vu,elements:{reference:k.anchor},middleware:[ui({mainAxis:v+A,alignmentAxis:g}),w&&ci({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?fi():void 0,...gt}),w&&si({...gt}),di({...gt,apply:({elements:Te,rects:_r,availableWidth:Rr,availableHeight:Tr})=>{let{width:sh,height:ah}=_r.reference,Mo=Te.floating.style;Mo.setProperty("--radix-popper-available-width",`${Rr}px`),Mo.setProperty("--radix-popper-available-height",`${Tr}px`),Mo.setProperty("--radix-popper-anchor-width",`${sh}px`),Mo.setProperty("--radix-popper-anchor-height",`${ah}px`)}}),N&&im({element:N,padding:h}),gg({arrowWidth:b,arrowHeight:A}),d&&ai({strategy:"referenceHidden"})]}),[Vt,D]=vm(yn),B=Ie(x);Pe(()=>{ot&&B?.()},[ot,B]);let Re=(o=lt.arrow)===null||o===void 0?void 0:o.x,G=(l=lt.arrow)===null||l===void 0?void 0:l.y,W=((i=lt.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[U,Ve]=(0,ue.useState)();return Pe(()=>{E&&Ve(window.getComputedStyle(E).zIndex)},[E]),(0,ue.createElement)("div",{ref:kt.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ht,transform:ot?Ht.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(s=lt.transformOrigin)===null||s===void 0?void 0:s.x,(a=lt.transformOrigin)===null||a===void 0?void 0:a.y].join(" ")},dir:e.dir},(0,ue.createElement)(cg,{scope:m,placedSide:Vt,onArrowChange:j,arrowX:Re,arrowY:G,shouldHideArrow:W},(0,ue.createElement)(X.div,L({"data-side":Vt,"data-align":D},C,{ref:R,style:{...C.style,animation:ot?void 0:"none",opacity:(u=lt.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),pg="PopperArrow",mg={top:"bottom",right:"left",bottom:"top",left:"right"},hg=(0,ue.forwardRef)(function(t,n){let{__scopePopper:r,...o}=t,l=fg(pg,r),i=mg[l.placedSide];return(0,ue.createElement)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0}},(0,ue.createElement)(um,L({},o,{ref:n,style:{...o.style,display:"block"}})))});function vg(e){return e!==null}var gg=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,l,i;let{placement:s,rects:a,middlewareData:u}=t,p=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,v=p?0:e.arrowWidth,y=p?0:e.arrowHeight,[g,h]=vm(s),S={start:"0%",center:"50%",end:"100%"}[h],f=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+v/2,c=((l=(i=u.arrow)===null||i===void 0?void 0:i.y)!==null&&l!==void 0?l:0)+y/2,d="",w="";return g==="bottom"?(d=p?S:`${f}px`,w=`${-y}px`):g==="top"?(d=p?S:`${f}px`,w=`${a.floating.height+y}px`):g==="right"?(d=`${-y}px`,w=p?S:`${c}px`):g==="left"&&(d=`${a.floating.width+y}px`,w=p?S:`${c}px`),{data:{x:d,y:w}}}});function vm(e){let[t,n="center"]=e.split("-");return[t,n]}var gm=sg,ym=ug,wm=dg,Sm=hg;var Si=I(F(),1),xm=I(Eo(),1);var $m=(0,Si.forwardRef)((e,t)=>{var n;let{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?xm.default.createPortal((0,Si.createElement)(X.div,L({},o,{ref:t})),r):null});var hn=I(F(),1);function wu({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=yg({defaultProp:t,onChange:n}),l=e!==void 0,i=l?e:r,s=Ie(n),a=(0,hn.useCallback)(u=>{if(l){let p=typeof u=="function"?u(e):u;p!==e&&s(p)}else o(u)},[l,e,o,s]);return[i,a]}function yg({defaultProp:e,onChange:t}){let n=(0,hn.useState)(e),[r]=n,o=(0,hn.useRef)(r),l=Ie(t);return(0,hn.useEffect)(()=>{o.current!==r&&(l(r),o.current=r)},[r,o,l]),n}var xi=I(F(),1);function Em(e){let t=(0,xi.useRef)({value:e,previous:e});return(0,xi.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var $i=I(F(),1);var Cm=(0,$i.forwardRef)((e,t)=>(0,$i.createElement)(X.span,L({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var wg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Er=new WeakMap,Ei=new WeakMap,Ci={},Su=0,km=function(e){return e&&(e.host||km(e.parentNode))},Sg=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=km(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},xg=function(e,t,n,r){var o=Sg(t,Array.isArray(e)?e:[e]);Ci[n]||(Ci[n]=new WeakMap);var l=Ci[n],i=[],s=new Set,a=new Set(o),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};o.forEach(u);var m=function(p){!p||a.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))m(v);else{var y=v.getAttribute(r),g=y!==null&&y!=="false",h=(Er.get(v)||0)+1,S=(l.get(v)||0)+1;Er.set(v,h),l.set(v,S),i.push(v),h===1&&g&&Ei.set(v,!0),S===1&&v.setAttribute(n,"true"),g||v.setAttribute(r,"true")}})};return m(t),s.clear(),Su++,function(){i.forEach(function(p){var v=Er.get(p)-1,y=l.get(p)-1;Er.set(p,v),l.set(p,y),v||(Ei.has(p)||p.removeAttribute(r),Ei.delete(p)),y||p.removeAttribute(n)}),Su--,Su||(Er=new WeakMap,Er=new WeakMap,Ei=new WeakMap,Ci={})}},Pm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||wg(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),xg(r,o,n,"aria-hidden")):function(){return null}};var He=function(){return He=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},He.apply(this,arguments)};function ki(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function _m(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,l;r<o;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var Oi=I(F());var _e=I(F());var Rm="right-scroll-bar-position",Tm="width-before-scroll-bar";function Nm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var Om=I(F());function Lm(e,t){var n=(0,Om.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function xu(e,t){return Lm(t||null,function(n){return e.forEach(function(r){return Nm(r,n)})})}var Cg=I(F());var Mm=I(F());var $g=I(Im());function kg(e){return e}function Pg(e,t){t===void 0&&(t=kg);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var i=t(l,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(l){for(r=!0;n.length;){var i=n;n=[],i.forEach(l)}n={push:function(s){return l(s)},filter:function(){return n}}},assignMedium:function(l){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(l),i=n}var a=function(){var m=i;i=[],m.forEach(l)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(m){i.push(m),u()},filter:function(m){return i=i.filter(m),n}}}};return o}function $u(e){e===void 0&&(e={});var t=Pg(null);return t.options=He({async:!0,ssr:!1},e),t}var Pi=I(F()),_i=I(F());var Am=I(F()),zm=function(e){var t=e.sideCar,n=ki(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Am.createElement(r,He({},n))};zm.isSideCarExport=!0;function Eu(e,t){return e.useMedium(t),zm}var Ri=$u();var Cu=function(){},No=_e.forwardRef(function(e,t){var n=_e.useRef(null),r=_e.useState({onScrollCapture:Cu,onWheelCapture:Cu,onTouchMoveCapture:Cu}),o=r[0],l=r[1],i=e.forwardProps,s=e.children,a=e.className,u=e.removeScrollBar,m=e.enabled,p=e.shards,v=e.sideCar,y=e.noIsolation,g=e.inert,h=e.allowPinchZoom,S=e.as,f=S===void 0?"div":S,c=ki(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),d=v,w=xu([n,t]),x=He(He({},c),o);return _e.createElement(_e.Fragment,null,m&&_e.createElement(d,{sideCar:Ri,removeScrollBar:u,shards:p,noIsolation:y,inert:g,setCallbacks:l,allowPinchZoom:!!h,lockRef:n}),i?_e.cloneElement(_e.Children.only(s),He(He({},x),{ref:w})):_e.createElement(f,He({},x,{className:a,ref:w}),s))});No.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};No.classNames={fullWidth:Tm,zeroRight:Rm};var J=I(F());var Ti=I(F());var bm=I(F());var Fm;var jm=function(){if(Fm)return Fm;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _g(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jm();return t&&e.setAttribute("nonce",t),e}function Rg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ku=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_g())&&(Rg(t,n),Tg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var Pu=function(){var e=ku();return function(t,n){bm.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}};var Oo=function(){var e=Pu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t};var Lo="right-scroll-bar-position",Do="width-before-scroll-bar",_u="with-scroll-bars-hidden",Ru="--removed-body-scroll-bar-size";var Ng={left:0,top:0,right:0,gap:0},Tu=function(e){return parseInt(e||"",10)||0},Og=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Tu(n),Tu(r),Tu(o)]},Nu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ng;var t=Og(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}};var Lg=Oo(),Dg=function(e,t,n,r){var o=e.left,l=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
.`.concat(_u,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(l,`px;
padding-right: `).concat(i,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Lo,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(Do,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(Lo," .").concat(Lo,` {
right: 0 `).concat(r,`;
}
.`).concat(Do," .").concat(Do,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(Ru,": ").concat(s,`px;
}
`)},Ou=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,l=Ti.useMemo(function(){return Nu(o)},[o]);return Ti.createElement(Lg,{styles:Dg(l,!t,o,n?"":"!important")})};var Lu=!1;if(typeof window<"u")try{Io=Object.defineProperty({},"passive",{get:function(){return Lu=!0,!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{Lu=!1}var Io,jn=Lu?{passive:!1}:!1;var Ig=function(e){return e.tagName==="TEXTAREA"},Hm=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ig(e)&&n[t]==="visible")},Mg=function(e){return Hm(e,"overflowY")},Ag=function(e){return Hm(e,"overflowX")},Du=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Vm(e,n);if(r){var o=Bm(e,n),l=o[1],i=o[2];if(l>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},zg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Fg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vm=function(e,t){return e==="v"?Mg(t):Ag(t)},Bm=function(e,t){return e==="v"?zg(t):Fg(t)},jg=function(e,t){return e==="h"&&t==="rtl"?-1:1},Wm=function(e,t,n,r,o){var l=jg(e,window.getComputedStyle(t).direction),i=l*r,s=n.target,a=t.contains(s),u=!1,m=i>0,p=0,v=0;do{var y=Bm(e,s),g=y[0],h=y[1],S=y[2],f=h-S-l*g;(g||f)&&Vm(e,s)&&(p+=f,v+=g),s=s.parentNode}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(m&&(o&&p===0||!o&&i>p)||!m&&(o&&v===0||!o&&-i>v))&&(u=!0),u};var Ni=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Um=function(e){return[e.deltaX,e.deltaY]},Qm=function(e){return e&&"current"in e?e.current:e},bg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hg=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Vg=0,Cr=[];function Km(e){var t=J.useRef([]),n=J.useRef([0,0]),r=J.useRef(),o=J.useState(Vg++)[0],l=J.useState(function(){return Oo()})[0],i=J.useRef(e);J.useEffect(function(){i.current=e},[e]),J.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=_m([e.lockRef.current],(e.shards||[]).map(Qm),!0).filter(Boolean);return h.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=J.useCallback(function(h,S){if("touches"in h&&h.touches.length===2)return!i.current.allowPinchZoom;var f=Ni(h),c=n.current,d="deltaX"in h?h.deltaX:c[0]-f[0],w="deltaY"in h?h.deltaY:c[1]-f[1],x,C=h.target,k=Math.abs(d)>Math.abs(w)?"h":"v";if("touches"in h&&k==="h"&&C.type==="range")return!1;var E=Du(k,C);if(!E)return!0;if(E?x=k:(x=k==="v"?"h":"v",E=Du(k,C)),!E)return!1;if(!r.current&&"changedTouches"in h&&(d||w)&&(r.current=x),!x)return!0;var T=r.current||x;return Wm(T,S,h,T==="h"?d:w,!0)},[]),a=J.useCallback(function(h){var S=h;if(!(!Cr.length||Cr[Cr.length-1]!==l)){var f="deltaY"in S?Um(S):Ni(S),c=t.current.filter(function(x){return x.name===S.type&&x.target===S.target&&bg(x.delta,f)})[0];if(c&&c.should){S.cancelable&&S.preventDefault();return}if(!c){var d=(i.current.shards||[]).map(Qm).filter(Boolean).filter(function(x){return x.contains(S.target)}),w=d.length>0?s(S,d[0]):!i.current.noIsolation;w&&S.cancelable&&S.preventDefault()}}},[]),u=J.useCallback(function(h,S,f,c){var d={name:h,delta:S,target:f,should:c};t.current.push(d),setTimeout(function(){t.current=t.current.filter(function(w){return w!==d})},1)},[]),m=J.useCallback(function(h){n.current=Ni(h),r.current=void 0},[]),p=J.useCallback(function(h){u(h.type,Um(h),h.target,s(h,e.lockRef.current))},[]),v=J.useCallback(function(h){u(h.type,Ni(h),h.target,s(h,e.lockRef.current))},[]);J.useEffect(function(){return Cr.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",a,jn),document.addEventListener("touchmove",a,jn),document.addEventListener("touchstart",m,jn),function(){Cr=Cr.filter(function(h){return h!==l}),document.removeEventListener("wheel",a,jn),document.removeEventListener("touchmove",a,jn),document.removeEventListener("touchstart",m,jn)}},[]);var y=e.removeScrollBar,g=e.inert;return J.createElement(J.Fragment,null,g?J.createElement(l,{styles:Hg(o)}):null,y?J.createElement(Ou,{gapMode:"margin"}):null)}var Ym=Eu(Ri,Km);var Xm=Oi.forwardRef(function(e,t){return Oi.createElement(No,He({},e,{ref:t,sideCar:Ym}))});Xm.classNames=No.classNames;var Iu=Xm;var Bg=[" ","Enter","ArrowUp","ArrowDown"],Wg=[" ","Enter"],Di="Select",[Ii,Mi,Ug]=wp(Di),[Pr,zS]=vr(Di,[Ug,yu]),Ai=yu(),[Qg,vn]=Pr(Di),[Kg,Yg]=Pr(Di),Xg=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:i,defaultValue:s,onValueChange:a,dir:u,name:m,autoComplete:p,disabled:v,required:y}=e,g=Ai(t),[h,S]=(0,$.useState)(null),[f,c]=(0,$.useState)(null),[d,w]=(0,$.useState)(!1),x=Sp(u),[C=!1,k]=wu({prop:r,defaultProp:o,onChange:l}),[E,T]=wu({prop:i,defaultProp:s,onChange:a}),R=(0,$.useRef)(null),N=h?!!h.closest("form"):!0,[j,M]=(0,$.useState)(new Set),b=Array.from(j).map(A=>A.props.value).join(";");return(0,$.createElement)(gm,g,(0,$.createElement)(Qg,{required:y,scope:t,trigger:h,onTriggerChange:S,valueNode:f,onValueNodeChange:c,valueNodeHasChildren:d,onValueNodeHasChildrenChange:w,contentId:oi(),value:E,onValueChange:T,open:C,onOpenChange:k,dir:x,triggerPointerDownPosRef:R,disabled:v},(0,$.createElement)(Ii.Provider,{scope:t},(0,$.createElement)(Kg,{scope:e.__scopeSelect,onNativeOptionAdd:(0,$.useCallback)(A=>{M(O=>new Set(O).add(A))},[]),onNativeOptionRemove:(0,$.useCallback)(A=>{M(O=>{let Q=new Set(O);return Q.delete(A),Q})},[])},n)),N?(0,$.createElement)(oh,{key:b,"aria-hidden":!0,required:y,tabIndex:-1,name:m,autoComplete:p,value:E,onChange:A=>T(A.target.value),disabled:v},E===void 0?(0,$.createElement)("option",{value:""}):null,Array.from(j)):null))},Gg="SelectTrigger",Zg=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,l=Ai(n),i=vn(Gg,n),s=i.disabled||r,a=se(t,i.onTriggerChange),u=Mi(n),[m,p,v]=lh(g=>{let h=u().filter(c=>!c.disabled),S=h.find(c=>c.value===i.value),f=ih(h,g,S);f!==void 0&&i.onValueChange(f.value)}),y=()=>{s||(i.onOpenChange(!0),v())};return(0,$.createElement)(ym,L({asChild:!0},l),(0,$.createElement)(X.button,L({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":i.value===void 0?"":void 0},o,{ref:a,onClick:de(o.onClick,g=>{g.currentTarget.focus()}),onPointerDown:de(o.onPointerDown,g=>{let h=g.target;h.hasPointerCapture(g.pointerId)&&h.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(y(),i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:de(o.onKeyDown,g=>{let h=m.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p(g.key),!(h&&g.key===" ")&&Bg.includes(g.key)&&(y(),g.preventDefault())})})))}),qg="SelectValue",Jg=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:l,placeholder:i,...s}=e,a=vn(qg,n),{onValueNodeHasChildrenChange:u}=a,m=l!==void 0,p=se(t,a.onValueNodeChange);return Pe(()=>{u(m)},[u,m]),(0,$.createElement)(X.span,L({},s,{ref:p,style:{pointerEvents:"none"}}),a.value===void 0&&i!==void 0?i:l)});var ey=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,$.createElement)(X.span,L({"aria-hidden":!0},o,{ref:t}),r||"\u25BC")});var ty=e=>(0,$.createElement)($m,L({asChild:!0},e)),kr="SelectContent",ny=(0,$.forwardRef)((e,t)=>{let n=vn(kr,e.__scopeSelect),[r,o]=(0,$.useState)();if(Pe(()=>{o(new DocumentFragment)},[]),!n.open){let l=r;return l?(0,Au.createPortal)((0,$.createElement)(th,{scope:e.__scopeSelect},(0,$.createElement)(Ii.Slot,{scope:e.__scopeSelect},(0,$.createElement)("div",null,e.children))),l):null}return(0,$.createElement)(ry,L({},e,{ref:t}))}),bt=10,[th,gn]=Pr(kr);var ry=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:i,side:s,sideOffset:a,align:u,alignOffset:m,arrowPadding:p,collisionBoundary:v,collisionPadding:y,sticky:g,hideWhenDetached:h,avoidCollisions:S,...f}=e,c=vn(kr,n),[d,w]=(0,$.useState)(null),[x,C]=(0,$.useState)(null),k=se(t,D=>w(D)),[E,T]=(0,$.useState)(null),[R,N]=(0,$.useState)(null),j=Mi(n),[M,b]=(0,$.useState)(!1),A=(0,$.useRef)(!1);(0,$.useEffect)(()=>{if(d)return Pm(d)},[d]),Op();let O=(0,$.useCallback)(D=>{let[B,...Re]=j().map(U=>U.ref.current),[G]=Re.slice(-1),W=document.activeElement;for(let U of D)if(U===W||(U?.scrollIntoView({block:"nearest"}),U===B&&x&&(x.scrollTop=0),U===G&&x&&(x.scrollTop=x.scrollHeight),U?.focus(),document.activeElement!==W))return},[j,x]),Q=(0,$.useCallback)(()=>O([E,d]),[O,E,d]);(0,$.useEffect)(()=>{M&&Q()},[M,Q]);let{onOpenChange:ce,triggerPointerDownPosRef:Ge}=c;(0,$.useEffect)(()=>{if(d){let D={x:0,y:0},B=G=>{var W,U,Ve,Te;D={x:Math.abs(Math.round(G.pageX)-((W=(U=Ge.current)===null||U===void 0?void 0:U.x)!==null&&W!==void 0?W:0)),y:Math.abs(Math.round(G.pageY)-((Ve=(Te=Ge.current)===null||Te===void 0?void 0:Te.y)!==null&&Ve!==void 0?Ve:0))}},Re=G=>{D.x<=10&&D.y<=10?G.preventDefault():d.contains(G.target)||ce(!1),document.removeEventListener("pointermove",B),Ge.current=null};return Ge.current!==null&&(document.addEventListener("pointermove",B),document.addEventListener("pointerup",Re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",Re,{capture:!0})}}},[d,ce,Ge]),(0,$.useEffect)(()=>{let D=()=>ce(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[ce]);let[gt,kt]=lh(D=>{let B=j().filter(W=>!W.disabled),Re=B.find(W=>W.ref.current===document.activeElement),G=ih(B,D,Re);G&&setTimeout(()=>G.ref.current.focus())}),Ht=(0,$.useCallback)((D,B,Re)=>{let G=!A.current&&!Re;(c.value!==void 0&&c.value===B||G)&&(T(D),G&&(A.current=!0))},[c.value]),yn=(0,$.useCallback)(()=>d?.focus(),[d]),ot=(0,$.useCallback)((D,B,Re)=>{let G=!A.current&&!Re;(c.value!==void 0&&c.value===B||G)&&N(D)},[c.value]),lt=r==="popper"?Gm:oy,Vt=lt===Gm?{side:s,sideOffset:a,align:u,alignOffset:m,arrowPadding:p,collisionBoundary:v,collisionPadding:y,sticky:g,hideWhenDetached:h,avoidCollisions:S}:{};return(0,$.createElement)(th,{scope:n,content:d,viewport:x,onViewportChange:C,itemRefCallback:Ht,selectedItem:E,onItemLeave:yn,itemTextRefCallback:ot,focusSelectedItem:Q,selectedItemText:R,position:r,isPositioned:M,searchRef:gt},(0,$.createElement)(Iu,{as:fn,allowPinchZoom:!0},(0,$.createElement)(Ap,{asChild:!0,trapped:c.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:de(o,D=>{var B;(B=c.trigger)===null||B===void 0||B.focus({preventScroll:!0}),D.preventDefault()})},(0,$.createElement)(_p,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>c.onOpenChange(!1)},(0,$.createElement)(lt,L({role:"listbox",id:c.contentId,"data-state":c.open?"open":"closed",dir:c.dir,onContextMenu:D=>D.preventDefault()},f,Vt,{onPlaced:()=>b(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...f.style},onKeyDown:de(f.onKeyDown,D=>{let B=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!B&&D.key.length===1&&kt(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let G=j().filter(W=>!W.disabled).map(W=>W.ref.current);if(["ArrowUp","End"].includes(D.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){let W=D.target,U=G.indexOf(W);G=G.slice(U+1)}setTimeout(()=>O(G)),D.preventDefault()}})}))))))});var oy=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,l=vn(kr,n),i=gn(kr,n),[s,a]=(0,$.useState)(null),[u,m]=(0,$.useState)(null),p=se(t,k=>m(k)),v=Mi(n),y=(0,$.useRef)(!1),g=(0,$.useRef)(!0),{viewport:h,selectedItem:S,selectedItemText:f,focusSelectedItem:c}=i,d=(0,$.useCallback)(()=>{if(l.trigger&&l.valueNode&&s&&u&&h&&S&&f){let k=l.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),T=l.valueNode.getBoundingClientRect(),R=f.getBoundingClientRect();if(l.dir!=="rtl"){let W=R.left-E.left,U=T.left-W,Ve=k.left-U,Te=k.width+Ve,_r=Math.max(Te,E.width),Rr=window.innerWidth-bt,Tr=tu(U,[bt,Rr-_r]);s.style.minWidth=Te+"px",s.style.left=Tr+"px"}else{let W=E.right-R.right,U=window.innerWidth-T.right-W,Ve=window.innerWidth-k.right-U,Te=k.width+Ve,_r=Math.max(Te,E.width),Rr=window.innerWidth-bt,Tr=tu(U,[bt,Rr-_r]);s.style.minWidth=Te+"px",s.style.right=Tr+"px"}let N=v(),j=window.innerHeight-bt*2,M=h.scrollHeight,b=window.getComputedStyle(u),A=parseInt(b.borderTopWidth,10),O=parseInt(b.paddingTop,10),Q=parseInt(b.borderBottomWidth,10),ce=parseInt(b.paddingBottom,10),Ge=A+O+M+ce+Q,gt=Math.min(S.offsetHeight*5,Ge),kt=window.getComputedStyle(h),Ht=parseInt(kt.paddingTop,10),yn=parseInt(kt.paddingBottom,10),ot=k.top+k.height/2-bt,lt=j-ot,Vt=S.offsetHeight/2,D=S.offsetTop+Vt,B=A+O+D,Re=Ge-B;if(B<=ot){let W=S===N[N.length-1].ref.current;s.style.bottom="0px";let U=u.clientHeight-h.offsetTop-h.offsetHeight,Ve=Math.max(lt,Vt+(W?yn:0)+U+Q),Te=B+Ve;s.style.height=Te+"px"}else{let W=S===N[0].ref.current;s.style.top="0px";let Ve=Math.max(ot,A+h.offsetTop+(W?Ht:0)+Vt)+Re;s.style.height=Ve+"px",h.scrollTop=B-ot+h.offsetTop}s.style.margin=`${bt}px 0`,s.style.minHeight=gt+"px",s.style.maxHeight=j+"px",r?.(),requestAnimationFrame(()=>y.current=!0)}},[v,l.trigger,l.valueNode,s,u,h,S,f,l.dir,r]);Pe(()=>d(),[d]);let[w,x]=(0,$.useState)();Pe(()=>{u&&x(window.getComputedStyle(u).zIndex)},[u]);let C=(0,$.useCallback)(k=>{k&&g.current===!0&&(d(),c?.(),g.current=!1)},[d,c]);return(0,$.createElement)(ly,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:y,onScrollButtonChange:C},(0,$.createElement)("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w}},(0,$.createElement)(X.div,L({},o,{ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))});var Gm=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=bt,...l}=e,i=Ai(n);return(0,$.createElement)(wm,L({},i,l,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[ly,zu]=Pr(kr,{}),Zm="SelectViewport",iy=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=gn(Zm,n),l=zu(Zm,n),i=se(t,o.onViewportChange),s=(0,$.useRef)(0);return(0,$.createElement)($.Fragment,null,(0,$.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,$.createElement)(Ii.Slot,{scope:n},(0,$.createElement)(X.div,L({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:de(r.onScroll,a=>{let u=a.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=l;if(p!=null&&p.current&&m){let v=Math.abs(s.current-u.scrollTop);if(v>0){let y=window.innerHeight-bt*2,g=parseFloat(m.style.minHeight),h=parseFloat(m.style.height),S=Math.max(g,h);if(S<y){let f=S+v,c=Math.min(y,f),d=f-c;m.style.height=c+"px",m.style.bottom==="0px"&&(u.scrollTop=d>0?d:0,m.style.justifyContent="flex-end")}}}s.current=u.scrollTop})}))))}),sy="SelectGroup",[ay,uy]=Pr(sy),cy=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=oi();return(0,$.createElement)(ay,{scope:n,id:o},(0,$.createElement)(X.div,L({role:"group","aria-labelledby":o},r,{ref:t})))}),fy="SelectLabel",dy=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=uy(fy,n);return(0,$.createElement)(X.div,L({id:o.id},r,{ref:t}))}),Mu="SelectItem",[py,nh]=Pr(Mu),my=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...i}=e,s=vn(Mu,n),a=gn(Mu,n),u=s.value===r,[m,p]=(0,$.useState)(l??""),[v,y]=(0,$.useState)(!1),g=se(t,f=>{var c;return(c=a.itemRefCallback)===null||c===void 0?void 0:c.call(a,f,r,o)}),h=oi(),S=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};return(0,$.createElement)(py,{scope:n,value:r,disabled:o,textId:h,isSelected:u,onItemTextChange:(0,$.useCallback)(f=>{p(c=>{var d;return c||((d=f?.textContent)!==null&&d!==void 0?d:"").trim()})},[])},(0,$.createElement)(Ii.ItemSlot,{scope:n,value:r,disabled:o,textValue:m},(0,$.createElement)(X.div,L({role:"option","aria-labelledby":h,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},i,{ref:g,onFocus:de(i.onFocus,()=>y(!0)),onBlur:de(i.onBlur,()=>y(!1)),onPointerUp:de(i.onPointerUp,S),onPointerMove:de(i.onPointerMove,f=>{if(o){var c;(c=a.onItemLeave)===null||c===void 0||c.call(a)}else f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:de(i.onPointerLeave,f=>{if(f.currentTarget===document.activeElement){var c;(c=a.onItemLeave)===null||c===void 0||c.call(a)}}),onKeyDown:de(i.onKeyDown,f=>{var c;((c=a.searchRef)===null||c===void 0?void 0:c.current)!==""&&f.key===" "||(Wg.includes(f.key)&&S(),f.key===" "&&f.preventDefault())})}))))}),Li="SelectItemText",hy=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,className:r,style:o,...l}=e,i=vn(Li,n),s=gn(Li,n),a=nh(Li,n),u=Yg(Li,n),[m,p]=(0,$.useState)(null),v=se(t,f=>p(f),a.onItemTextChange,f=>{var c;return(c=s.itemTextRefCallback)===null||c===void 0?void 0:c.call(s,f,a.value,a.disabled)}),y=m?.textContent,g=(0,$.useMemo)(()=>(0,$.createElement)("option",{key:a.value,value:a.value,disabled:a.disabled},y),[a.disabled,a.value,y]),{onNativeOptionAdd:h,onNativeOptionRemove:S}=u;return Pe(()=>(h(g),()=>S(g)),[h,S,g]),(0,$.createElement)($.Fragment,null,(0,$.createElement)(X.span,L({id:a.textId},l,{ref:v})),a.isSelected&&i.valueNode&&!i.valueNodeHasChildren?(0,Au.createPortal)(l.children,i.valueNode):null)}),vy="SelectItemIndicator",gy=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e;return nh(vy,n).isSelected?(0,$.createElement)(X.span,L({"aria-hidden":!0},r,{ref:t})):null}),qm="SelectScrollUpButton",yy=(0,$.forwardRef)((e,t)=>{let n=gn(qm,e.__scopeSelect),r=zu(qm,e.__scopeSelect),[o,l]=(0,$.useState)(!1),i=se(t,r.onScrollButtonChange);return Pe(()=>{if(n.viewport&&n.isPositioned){let a=function(){let u=s.scrollTop>0;l(u)},s=n.viewport;return a(),s.addEventListener("scroll",a),()=>s.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?(0,$.createElement)(rh,L({},e,{ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop-a.offsetHeight)}})):null}),Jm="SelectScrollDownButton",wy=(0,$.forwardRef)((e,t)=>{let n=gn(Jm,e.__scopeSelect),r=zu(Jm,e.__scopeSelect),[o,l]=(0,$.useState)(!1),i=se(t,r.onScrollButtonChange);return Pe(()=>{if(n.viewport&&n.isPositioned){let a=function(){let u=s.scrollHeight-s.clientHeight,m=Math.ceil(s.scrollTop)<u;l(m)},s=n.viewport;return a(),s.addEventListener("scroll",a),()=>s.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?(0,$.createElement)(rh,L({},e,{ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop+a.offsetHeight)}})):null}),rh=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,l=gn("SelectScrollButton",n),i=(0,$.useRef)(null),s=Mi(n),a=(0,$.useCallback)(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return(0,$.useEffect)(()=>()=>a(),[a]),Pe(()=>{var u;let m=s().find(p=>p.ref.current===document.activeElement);m==null||(u=m.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[s]),(0,$.createElement)(X.div,L({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:de(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:de(o.onPointerMove,()=>{var u;(u=l.onItemLeave)===null||u===void 0||u.call(l),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:de(o.onPointerLeave,()=>{a()})}))});var Sy=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,$.createElement)(X.div,L({"aria-hidden":!0},r,{ref:t}))}),eh="SelectArrow",xy=(0,$.forwardRef)((e,t)=>{let{__scopeSelect:n,...r}=e,o=Ai(n),l=vn(eh,n),i=gn(eh,n);return l.open&&i.position==="popper"?(0,$.createElement)(Sm,L({},o,r,{ref:t})):null}),oh=(0,$.forwardRef)((e,t)=>{let{value:n,...r}=e,o=(0,$.useRef)(null),l=se(t,o),i=Em(n);return(0,$.useEffect)(()=>{let s=o.current,a=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==n&&m){let p=new Event("change",{bubbles:!0});m.call(s,n),s.dispatchEvent(p)}},[i,n]),(0,$.createElement)(Cm,{asChild:!0},(0,$.createElement)("select",L({},r,{ref:l,defaultValue:n})))});oh.displayName="BubbleSelect";function lh(e){let t=Ie(e),n=(0,$.useRef)(""),r=(0,$.useRef)(0),o=(0,$.useCallback)(i=>{let s=n.current+i;t(s),function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(s)},[t]),l=(0,$.useCallback)(()=>{n.current="",window.clearTimeout(r.current)},[]);return(0,$.useEffect)(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function ih(e,t,n){let o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,l=n?e.indexOf(n):-1,i=$y(e,Math.max(l,0));o.length===1&&(i=i.filter(u=>u!==n));let a=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function $y(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var FS=Xg,jS=Zg,bS=Jg,HS=ey,VS=ty,BS=ny,WS=iy,US=cy,QS=dy,KS=my,YS=hy,XS=gy,GS=yy,ZS=wy,qS=Sy,JS=xy;export{JS as Arrow,BS as Content,US as Group,HS as Icon,KS as Item,XS as ItemIndicator,YS as ItemText,QS as Label,VS as Portal,FS as Root,ZS as ScrollDownButton,GS as ScrollUpButton,Xg as Select,xy as SelectArrow,ny as SelectContent,cy as SelectGroup,ey as SelectIcon,my as SelectItem,gy as SelectItemIndicator,hy as SelectItemText,dy as SelectLabel,ty as SelectPortal,wy as SelectScrollDownButton,yy as SelectScrollUpButton,Sy as SelectSeparator,Zg as SelectTrigger,Jg as SelectValue,iy as SelectViewport,qS as Separator,jS as Trigger,bS as Value,WS as Viewport,zS as createSelectScope};
/**
* @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.
*/
/**
* @license React
* scheduler.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.
*/
/**
* @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.
*/
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.