(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function jf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qn={},Vf={get exports(){return qn},set exports(e){qn=e}},Fl={},x={},Hf={get exports(){return x},set exports(e){x=e}},I={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var vr=Symbol.for("react.element"),Qf=Symbol.for("react.portal"),Wf=Symbol.for("react.fragment"),Kf=Symbol.for("react.strict_mode"),Yf=Symbol.for("react.profiler"),Gf=Symbol.for("react.provider"),Xf=Symbol.for("react.context"),Jf=Symbol.for("react.forward_ref"),Zf=Symbol.for("react.suspense"),qf=Symbol.for("react.memo"),bf=Symbol.for("react.lazy"),Hu=Symbol.iterator;function ed(e){return e===null||typeof e!="object"?null:(e=Hu&&e[Hu]||e["@@iterator"],typeof e=="function"?e:null)}var ra={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},la=Object.assign,oa={};function Nn(e,t,n){this.props=e,this.context=t,this.refs=oa,this.updater=n||ra}Nn.prototype.isReactComponent={};Nn.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")};Nn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ia(){}ia.prototype=Nn.prototype;function ji(e,t,n){this.props=e,this.context=t,this.refs=oa,this.updater=n||ra}var Vi=ji.prototype=new ia;Vi.constructor=ji;la(Vi,Nn.prototype);Vi.isPureReactComponent=!0;var Qu=Array.isArray,ua=Object.prototype.hasOwnProperty,Hi={current:null},sa={key:!0,ref:!0,__self:!0,__source:!0};function aa(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)ua.call(t,r)&&!sa.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,b=_[O];if(0>>1;O<_r;){var Tt=2*(O+1)-1,lo=_[Tt],Lt=Tt+1,Pr=_[Lt];if(0>l(lo,M))Ltl(Pr,lo)?(_[O]=Pr,_[Lt]=M,O=Lt):(_[O]=lo,_[Tt]=M,O=Tt);else if(Ltl(Pr,M))_[O]=Pr,_[Lt]=M,O=Lt;else break e}}return z}function l(_,z){var M=_.sortIndex-z.sortIndex;return M!==0?M:_.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],p=1,g=null,h=3,y=!1,m=!1,w=!1,T=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(_){for(var z=n(a);z!==null;){if(z.callback===null)r(a);else if(z.startTime<=_)r(a),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(a)}}function v(_){if(w=!1,d(_),!m)if(n(s)!==null)m=!0,Pn(S);else{var z=n(a);z!==null&&Tn(v,z.startTime-_)}}function S(_,z){m=!1,w&&(w=!1,f(N),N=-1),y=!0;var M=h;try{for(d(z),g=n(s);g!==null&&(!(g.expirationTime>z)||_&&!W());){var O=g.callback;if(typeof O=="function"){g.callback=null,h=g.priorityLevel;var b=O(g.expirationTime<=z);z=e.unstable_now(),typeof b=="function"?g.callback=b:g===n(s)&&r(s),d(z)}else r(s);g=n(s)}if(g!==null)var _r=!0;else{var Tt=n(a);Tt!==null&&Tn(v,Tt.startTime-z),_r=!1}return _r}finally{g=null,h=M,y=!1}}var k=!1,C=null,N=-1,F=5,R=-1;function W(){return!(e.unstable_now()-R_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(_){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var M=h;h=z;try{return _()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,z){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var M=h;h=_;try{return z()}finally{h=M}},e.unstable_scheduleCallback=function(_,z,M){var O=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0O?(_.sortIndex=M,t(a,_),n(s)===null&&_===n(a)&&(w?(f(N),N=-1):w=!0,Tn(v,M-O))):(_.sortIndex=b,t(s,_),m||y||(m=!0,Pn(S))),_},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(_){var z=h;return function(){var M=h;h=z;try{return _.apply(this,arguments)}finally{h=M}}}})(da);(function(e){e.exports=da})(dd);/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var pa=x,ke=Vo;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ho=Object.prototype.hasOwnProperty,pd=/^[: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]*$/,Ku={},Yu={};function hd(e){return Ho.call(Yu,e)?!0:Ho.call(Ku,e)?!1:pd.test(e)?Yu[e]=!0:(Ku[e]=!0,!1)}function md(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 gd(e,t,n,r){if(t===null||typeof t>"u"||md(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,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[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];le[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[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){le[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wi=/[\-:]([a-z])/g;function Ki(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(Wi,Ki);le[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(Wi,Ki);le[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(Wi,Ki);le[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yi(e,t,n,r){var l=le.hasOwnProperty(t)?le[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` `+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{uo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?An(e):""}function vd(e){switch(e.tag){case 5:return An(e.type);case 16:return An("Lazy");case 13:return An("Suspense");case 19:return An("SuspenseList");case 0:case 2:case 15:return e=so(e.type,!1),e;case 11:return e=so(e.type.render,!1),e;case 1:return e=so(e.type,!0),e;default:return""}}function Yo(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 Gt:return"Fragment";case Yt:return"Portal";case Qo:return"Profiler";case Gi:return"StrictMode";case Wo:return"Suspense";case Ko:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ga:return(e.displayName||"Context")+".Consumer";case ma:return(e._context.displayName||"Context")+".Provider";case Xi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ji:return t=e.displayName||null,t!==null?t:Yo(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return Yo(e(t))}catch{}}return null}function yd(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 Yo(t);case 8:return t===Gi?"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 Et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ya(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wd(e){var t=ya(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rr(e){e._valueTracker||(e._valueTracker=wd(e))}function wa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ya(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(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 Go(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Et(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 Sa(e,t){t=t.checked,t!=null&&Yi(e,"checked",t,!1)}function Xo(e,t){Sa(e,t);var n=Et(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jo(e,t.type,Et(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ju(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jo(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Bn=Array.isArray;function on(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=zr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function er(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jn={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},Sd=["Webkit","ms","Moz","O"];Object.keys(jn).forEach(function(e){Sd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jn[t]=jn[e]})});function Na(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jn.hasOwnProperty(e)&&jn[e]?(""+t).trim():t+"px"}function xa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Na(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Ed=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bo(e,t){if(t){if(Ed[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function ei(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ti=null;function Zi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ni=null,un=null,sn=null;function bu(e){if(e=Sr(e)){if(typeof ni!="function")throw Error(E(280));var t=e.stateNode;t&&(t=$l(t),ni(e.stateNode,e.type,t))}}function _a(e){un?sn?sn.push(e):sn=[e]:un=e}function Pa(){if(un){var e=un,t=sn;if(sn=un=null,bu(e),t)for(e=0;e>>=0,e===0?32:31-(Md(e)/Id|0)|0}var Mr=64,Ir=4194304;function $n(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 dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=$n(u):(o&=i,o!==0&&(r=$n(o)))}else i=n&~l,i!==0?r=$n(i):o!==0&&(r=$n(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function yr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ae(t),e[t]=n}function Ad(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=Hn),ss=String.fromCharCode(32),as=!1;function Ya(e,t){switch(e){case"keyup":return fp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ga(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xt=!1;function pp(e,t){switch(e){case"compositionend":return Ga(t);case"keypress":return t.which!==32?null:(as=!0,ss);case"textInput":return e=t.data,e===ss&&as?null:e;default:return null}}function hp(e,t){if(Xt)return e==="compositionend"||!ou&&Ya(e,t)?(e=Wa(),Zr=nu=ct=null,Xt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ps(n)}}function qa(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qa(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ba(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function iu(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 Cp(e){var t=ba(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qa(n.ownerDocument.documentElement,n)){if(r!==null&&iu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=hs(n,o);var i=hs(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Jt=null,si=null,Wn=null,ai=!1;function ms(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ai||Jt==null||Jt!==sl(r)||(r=Jt,"selectionStart"in r&&iu(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}),Wn&&ir(Wn,r)||(Wn=r,r=ml(si,"onSelect"),0bt||(e.current=mi[bt],mi[bt]=null,bt--)}function B(e,t){bt++,mi[bt]=e.current,e.current=t}var kt={},se=Nt(kt),me=Nt(!1),$t=kt;function hn(e,t){var n=e.type.contextTypes;if(!n)return kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ge(e){return e=e.childContextTypes,e!=null}function vl(){U(me),U(se)}function ks(e,t,n){if(se.current!==kt)throw Error(E(168));B(se,t),B(me,n)}function sc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(E(108,yd(e)||"Unknown",l));return Q({},n,r)}function yl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kt,$t=se.current,B(se,e),B(me,me.current),!0}function Cs(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=sc(e,t,$t),r.__reactInternalMemoizedMergedChildContext=e,U(me),U(se),B(se,e)):U(me),B(me,n)}var Ge=null,Ul=!1,Co=!1;function ac(e){Ge===null?Ge=[e]:Ge.push(e)}function Dp(e){Ul=!0,ac(e)}function xt(){if(!Co&&Ge!==null){Co=!0;var e=0,t=A;try{var n=Ge;for(A=1;e>=i,l-=i,Je=1<<32-Ae(t)+l|n<N?(F=C,C=null):F=C.sibling;var R=h(f,C,d[N],v);if(R===null){C===null&&(C=F);break}e&&C&&R.alternate===null&&t(f,C),c=o(R,c,N),k===null?S=R:k.sibling=R,k=R,C=F}if(N===d.length)return n(f,C),j&&zt(f,N),S;if(C===null){for(;NN?(F=C,C=null):F=C.sibling;var W=h(f,C,R.value,v);if(W===null){C===null&&(C=F);break}e&&C&&W.alternate===null&&t(f,C),c=o(W,c,N),k===null?S=W:k.sibling=W,k=W,C=F}if(R.done)return n(f,C),j&&zt(f,N),S;if(C===null){for(;!R.done;N++,R=d.next())R=g(f,R.value,v),R!==null&&(c=o(R,c,N),k===null?S=R:k.sibling=R,k=R);return j&&zt(f,N),S}for(C=r(f,C);!R.done;N++,R=d.next())R=y(C,f,N,R.value,v),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?N:R.key),c=o(R,c,N),k===null?S=R:k.sibling=R,k=R);return e&&C.forEach(function(ye){return t(f,ye)}),j&&zt(f,N),S}function T(f,c,d,v){if(typeof d=="object"&&d!==null&&d.type===Gt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case Lr:e:{for(var S=d.key,k=c;k!==null;){if(k.key===S){if(S=d.type,S===Gt){if(k.tag===7){n(f,k.sibling),c=l(k,d.props.children),c.return=f,f=c;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===it&&Rs(S)===k.type){n(f,k.sibling),c=l(k,d.props),c.ref=Fn(f,k,d),c.return=f,f=c;break e}n(f,k);break}else t(f,k);k=k.sibling}d.type===Gt?(c=Bt(d.props.children,f.mode,v,d.key),c.return=f,f=c):(v=ol(d.type,d.key,d.props,null,f.mode,v),v.ref=Fn(f,c,d),v.return=f,f=v)}return i(f);case Yt:e:{for(k=d.key;c!==null;){if(c.key===k)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(f,c.sibling),c=l(c,d.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=zo(d,f.mode,v),c.return=f,f=c}return i(f);case it:return k=d._init,T(f,c,k(d._payload),v)}if(Bn(d))return m(f,c,d,v);if(Ln(d))return w(f,c,d,v);Ur(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,d),c.return=f,f=c):(n(f,c),c=Ro(d,f.mode,v),c.return=f,f=c),i(f)):n(f,c)}return T}var gn=vc(!0),yc=vc(!1),Er={},We=Nt(Er),cr=Nt(Er),fr=Nt(Er);function Dt(e){if(e===Er)throw Error(E(174));return e}function mu(e,t){switch(B(fr,t),B(cr,e),B(We,Er),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qo(t,e)}U(We),B(We,t)}function vn(){U(We),U(cr),U(fr)}function wc(e){Dt(fr.current);var t=Dt(We.current),n=qo(t,e.type);t!==n&&(B(cr,e),B(We,n))}function gu(e){cr.current===e&&(U(We),U(cr))}var V=Nt(0);function Nl(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 No=[];function vu(){for(var e=0;en?n:4,e(!0);var r=xo.transition;xo.transition={};try{e(!1),t()}finally{A=n,xo.transition=r}}function Dc(){return ze().memoizedState}function $p(e,t,n){var r=wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Oc(e))Ac(t,n);else if(n=pc(e,t,n,r),n!==null){var l=ce();Be(n,e,r,l),Bc(n,t,r)}}function Up(e,t,n){var r=wt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oc(e))Ac(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,$e(u,i)){var s=t.interleaved;s===null?(l.next=l,pu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=pc(e,t,l,r),n!==null&&(l=ce(),Be(n,e,r,l),Bc(n,t,r))}}function Oc(e){var t=e.alternate;return e===H||t!==null&&t===H}function Ac(e,t){Kn=xl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bi(e,n)}}var _l={readContext:Re,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},jp={readContext:Re,useCallback:function(e,t){return je().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:Ms,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,tl(4194308,4,Rc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tl(4194308,4,e,t)},useInsertionEffect:function(e,t){return tl(4,2,e,t)},useMemo:function(e,t){var n=je();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=je();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=$p.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=je();return e={current:e},t.memoizedState=e},useState:zs,useDebugValue:ku,useDeferredValue:function(e){return je().memoizedState=e},useTransition:function(){var e=zs(!1),t=e[0];return e=Bp.bind(null,e[1]),je().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=je();if(j){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),te===null)throw Error(E(349));jt&30||kc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ms(Nc.bind(null,r,o,e),[e]),r.flags|=2048,hr(9,Cc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=je(),t=te.identifierPrefix;if(j){var n=Ze,r=Je;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=dr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ve]=t,e[ar]=r,Yc(e,t,!1,!1),t.stateNode=e;e:{switch(i=ei(n,r),n){case"dialog":$("cancel",e),$("close",e),l=r;break;case"iframe":case"object":case"embed":$("load",e),l=r;break;case"video":case"audio":for(l=0;lwn&&(t.flags|=128,r=!0,Dn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Nl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!j)return ie(t),null}else 2*Y()-o.renderingStartTime>wn&&n!==1073741824&&(t.flags|=128,r=!0,Dn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Y(),t.sibling=null,n=V.current,B(V,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return Tu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Xp(e,t){switch(su(t),t.tag){case 1:return ge(t.type)&&vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(),U(me),U(se),vu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gu(t),null;case 13:if(U(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(V),null;case 4:return vn(),null;case 10:return du(t.type._context),null;case 22:case 23:return Tu(),null;case 24:return null;default:return null}}var Vr=!1,ue=!1,Jp=typeof WeakSet=="function"?WeakSet:Set,P=null;function rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(e,t,r)}else n.current=null}function Pi(e,t,n){try{n()}catch(r){K(e,t,r)}}var js=!1;function Zp(e,t){if(ci=pl,e=ba(),iu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,p=0,g=e,h=null;t:for(;;){for(var y;g!==n||l!==0&&g.nodeType!==3||(u=i+l),g!==o||r!==0&&g.nodeType!==3||(s=i+r),g.nodeType===3&&(i+=g.nodeValue.length),(y=g.firstChild)!==null;)h=g,g=y;for(;;){if(g===e)break t;if(h===n&&++a===l&&(u=i),h===o&&++p===r&&(s=i),(y=g.nextSibling)!==null)break;g=h,h=g.parentNode}g=y}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(fi={focusedElem:e,selectionRange:n},pl=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var w=m.memoizedProps,T=m.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ie(t.type,w),T);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(E(163))}}catch(v){K(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return m=js,js=!1,m}function Yn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Pi(t,n,o)}l=l.next}while(l!==r)}}function Hl(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 Ti(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 Jc(e){var t=e.alternate;t!==null&&(e.alternate=null,Jc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ve],delete t[ar],delete t[hi],delete t[Ip],delete t[Fp])),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 Zc(e){return e.tag===5||e.tag===3||e.tag===4}function Vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(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 Li(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=gl));else if(r!==4&&(e=e.child,e!==null))for(Li(e,t,n),e=e.sibling;e!==null;)Li(e,t,n),e=e.sibling}function Ri(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(Ri(e,t,n),e=e.sibling;e!==null;)Ri(e,t,n),e=e.sibling}var ne=null,Fe=!1;function ot(e,t,n){for(n=n.child;n!==null;)qc(e,t,n),n=n.sibling}function qc(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(Dl,n)}catch{}switch(n.tag){case 5:ue||rn(n,t);case 6:var r=ne,l=Fe;ne=null,ot(e,t,n),ne=r,Fe=l,ne!==null&&(Fe?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(Fe?(e=ne,n=n.stateNode,e.nodeType===8?ko(e.parentNode,n):e.nodeType===1&&ko(e,n),lr(e)):ko(ne,n.stateNode));break;case 4:r=ne,l=Fe,ne=n.stateNode.containerInfo,Fe=!0,ot(e,t,n),ne=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Pi(n,t,i),l=l.next}while(l!==r)}ot(e,t,n);break;case 1:if(!ue&&(rn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){K(n,t,u)}ot(e,t,n);break;case 21:ot(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,ot(e,t,n),ue=r):ot(e,t,n);break;default:ot(e,t,n)}}function Hs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jp),t.forEach(function(r){var l=i0.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Me(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bp(r/1960))-r,10e?16:e,ft===null)var r=!1;else{if(e=ft,ft=null,Ll=0,D&6)throw Error(E(331));var l=D;for(D|=4,P=e.current;P!==null;){var o=P,i=o.child;if(P.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sY()-_u?At(e,0):xu|=n),ve(e,t)}function uf(e,t){t===0&&(e.mode&1?(t=Ir,Ir<<=1,!(Ir&130023424)&&(Ir=4194304)):t=1);var n=ce();e=nt(e,t),e!==null&&(yr(e,t,n),ve(e,n))}function o0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),uf(e,n)}function i0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),uf(e,n)}var sf;sf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||me.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,Yp(e,t,n);he=!!(e.flags&131072)}else he=!1,j&&t.flags&1048576&&cc(t,Sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nl(e,t),e=t.pendingProps;var l=hn(t,se.current);cn(t,n),l=wu(null,t,r,e,l,n);var o=Su();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ge(r)?(o=!0,yl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hu(t),l.updater=jl,t.stateNode=l,l._reactInternals=t,Si(t,r,e,n),t=Ci(null,t,r,!0,o,n)):(t.tag=0,j&&o&&uu(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=s0(r),e=Ie(r,e),l){case 0:t=ki(null,t,r,e,n);break e;case 1:t=Bs(null,t,r,e,n);break e;case 11:t=Os(null,t,r,e,n);break e;case 14:t=As(null,t,r,Ie(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),ki(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Bs(e,t,r,l,n);case 3:e:{if(Qc(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,l=o.element,hc(e,t),Cl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=yn(Error(E(423)),t),t=$s(e,t,r,n,l);break e}else if(r!==l){l=yn(Error(E(424)),t),t=$s(e,t,r,n,l);break e}else for(Se=gt(t.stateNode.containerInfo.firstChild),Ee=t,j=!0,De=null,n=yc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mn(),r===l){t=rt(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return wc(t),e===null&&vi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,di(r,l)?i=null:o!==null&&di(r,o)&&(t.flags|=32),Hc(e,t),ae(e,t,i,n),t.child;case 6:return e===null&&vi(t),null;case 13:return Wc(e,t,n);case 4:return mu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gn(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Os(e,t,r,l,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,B(El,r._currentValue),r._currentValue=i,o!==null)if($e(o.value,i)){if(o.children===l.children&&!me.current){t=rt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=be(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var p=a.pending;p===null?s.next=s:(s.next=p.next,p.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),yi(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(E(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),yi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,cn(t,n),l=Re(l),r=r(l),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,l=Ie(r,t.pendingProps),l=Ie(r.type,l),As(e,t,r,l,n);case 15:return jc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),nl(e,t),t.tag=1,ge(r)?(e=!0,yl(t)):e=!1,cn(t,n),gc(t,r,l),Si(t,r,l,n),Ci(null,t,r,!0,e,n);case 19:return Kc(e,t,n);case 22:return Vc(e,t,n)}throw Error(E(156,t.tag))};function af(e,t){return Fa(e,t)}function u0(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 Te(e,t,n,r){return new u0(e,t,n,r)}function Ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function s0(e){if(typeof e=="function")return Ru(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xi)return 11;if(e===Ji)return 14}return 2}function St(e,t){var n=e.alternate;return n===null?(n=Te(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 ol(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ru(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Gt:return Bt(n.children,l,o,t);case Gi:i=8,l|=8;break;case Qo:return e=Te(12,n,t,l|2),e.elementType=Qo,e.lanes=o,e;case Wo:return e=Te(13,n,t,l),e.elementType=Wo,e.lanes=o,e;case Ko:return e=Te(19,n,t,l),e.elementType=Ko,e.lanes=o,e;case va:return Wl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ma:i=10;break e;case ga:i=9;break e;case Xi:i=11;break e;case Ji:i=14;break e;case it:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Te(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Bt(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Wl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=va,e.lanes=n,e.stateNode={isHidden:!1},e}function Ro(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function zo(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function a0(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=co(0),this.expirationTimes=co(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=co(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,l,o,i,u,s){return e=new a0(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hu(o),e}function c0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Ce})(fd);var pf,Zs=jo;pf=Zs.createRoot,Zs.hydrateRoot;var m0=Object.defineProperty,g0=(e,t,n)=>t in e?m0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mo=(e,t,n)=>(g0(e,typeof t!="symbol"?t+"":t,n),n);let v0=class{constructor(){Mo(this,"current",this.detect()),Mo(this,"handoffState","pending"),Mo(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Jn=new v0,Jl=(e,t)=>{Jn.isServer?x.useEffect(e,t):x.useLayoutEffect(e,t)};function dn(e){let t=x.useRef(e);return Jl(()=>{t.current=e},[e]),t}function y0(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function kr(){let e=[],t={addEventListener(n,r,l,o){return n.addEventListener(r,l,o),t.add(()=>n.removeEventListener(r,l,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return y0(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,l){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:l}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=kr();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let l of e.splice(r,1))l()}},dispose(){for(let n of e.splice(0))n()}};return t}function hf(){let[e]=x.useState(kr);return x.useEffect(()=>()=>e.dispose(),[e]),e}let Ot=function(e){let t=dn(e);return Oe.useCallback((...n)=>t.current(...n),[t])};function mf(){let[e,t]=x.useState(Jn.isHandoffComplete);return e&&Jn.isHandoffComplete===!1&&t(!1),x.useEffect(()=>{e!==!0&&t(!0)},[e]),x.useEffect(()=>Jn.handoff(),[]),e}function He(e,t,...n){if(e in t){let l=t[e];return typeof l=="function"?l(...n):l}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(l=>`"${l}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,He),r}let w0=Symbol();function gf(...e){let t=x.useRef(e);x.useEffect(()=>{t.current=e},[e]);let n=Ot(r=>{for(let l of t.current)l!=null&&(typeof l=="function"?l(r):l.current=r)});return e.every(r=>r==null||r?.[w0])?void 0:n}function vf(...e){return e.filter(Boolean).join(" ")}var yf=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(yf||{}),qe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(qe||{});function wf({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:l,visible:o=!0,name:i}){let u=Sf(t,e);if(o)return Wr(u,n,r,i);let s=l??0;if(s&2){let{static:a=!1,...p}=u;if(a)return Wr(p,n,r,i)}if(s&1){let{unmount:a=!0,...p}=u;return He(a?0:1,{[0](){return null},[1](){return Wr({...p,hidden:!0,style:{display:"none"}},n,r,i)}})}return Wr(u,n,r,i)}function Wr(e,t={},n,r){var l;let{as:o=n,children:i,refName:u="ref",...s}=Io(e,["unmount","static"]),a=e.ref!==void 0?{[u]:e.ref}:{},p=typeof i=="function"?i(t):i;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let g={};if(t){let h=!1,y=[];for(let[m,w]of Object.entries(t))typeof w=="boolean"&&(h=!0),w===!0&&y.push(m);h&&(g["data-headlessui-state"]=y.join(" "))}if(o===x.Fragment&&Object.keys(qs(s)).length>0){if(!x.isValidElement(p)||Array.isArray(p)&&p.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(m=>` - ${m}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(` `)].join(` `));let h=vf((l=p.props)==null?void 0:l.className,s.className),y=h?{className:h}:{};return x.cloneElement(p,Object.assign({},Sf(p.props,qs(Io(s,["ref"]))),g,a,S0(p.ref,a.ref),y))}return x.createElement(o,Object.assign({},Io(s,["ref"]),o!==x.Fragment&&a,o!==x.Fragment&&g),p)}function S0(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Sf(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let l in r)l.startsWith("on")&&typeof r[l]=="function"?(n[l]!=null||(n[l]=[]),n[l].push(r[l])):t[l]=r[l];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](l,...o){let i=n[r];for(let u of i){if((l instanceof Event||l?.nativeEvent instanceof Event)&&l.defaultPrevented)return;u(l,...o)}}});return t}function Du(e){var t;return Object.assign(x.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function qs(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Io(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Ou=x.createContext(null);Ou.displayName="OpenClosedContext";var Xe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Xe||{});function Ef(){return x.useContext(Ou)}function E0({value:e,children:t}){return Oe.createElement(Ou.Provider,{value:e},t)}function kf(){let e=x.useRef(!1);return Jl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function k0(e=0){let[t,n]=x.useState(e),r=x.useCallback(u=>n(s=>s|u),[t]),l=x.useCallback(u=>Boolean(t&u),[t]),o=x.useCallback(u=>n(s=>s&~u),[n]),i=x.useCallback(u=>n(s=>s^u),[n]);return{flags:t,addFlag:r,hasFlag:l,removeFlag:o,toggleFlag:i}}function C0(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Fo(e,...t){e&&t.length>0&&e.classList.add(...t)}function Do(e,...t){e&&t.length>0&&e.classList.remove(...t)}function N0(e,t){let n=kr();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:l}=getComputedStyle(e),[o,i]=[r,l].map(s=>{let[a=0]=s.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,g)=>g-p);return a}),u=o+i;if(u!==0){n.group(a=>{a.setTimeout(()=>{t(),a.dispose()},u),a.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&a.dispose()})});let s=n.addEventListener(e,"transitionend",a=>{a.target===a.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function x0(e,t,n,r){let l=n?"enter":"leave",o=kr(),i=r!==void 0?C0(r):()=>{};l==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=He(l,{enter:()=>t.enter,leave:()=>t.leave}),s=He(l,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=He(l,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Do(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Fo(e,...u,...a),o.nextFrame(()=>{Do(e,...a),Fo(e,...s),N0(e,()=>(Do(e,...u),Fo(e,...t.entered),i()))}),o.dispose}function _0({container:e,direction:t,classes:n,onStart:r,onStop:l}){let o=kf(),i=hf(),u=dn(t);Jl(()=>{let s=kr();i.add(s.dispose);let a=e.current;if(a&&u.current!=="idle"&&o.current)return s.dispose(),r.current(u.current),s.add(x0(a,n.current,u.current==="enter",()=>{s.dispose(),l.current(u.current)})),s.dispose},[t])}function Rt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Zl=x.createContext(null);Zl.displayName="TransitionContext";var P0=(e=>(e.Visible="visible",e.Hidden="hidden",e))(P0||{});function T0(){let e=x.useContext(Zl);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function L0(){let e=x.useContext(ql);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let ql=x.createContext(null);ql.displayName="NestingContext";function bl(e){return"children"in e?bl(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Cf(e,t){let n=dn(e),r=x.useRef([]),l=kf(),o=hf(),i=Ot((y,m=qe.Hidden)=>{let w=r.current.findIndex(({el:T})=>T===y);w!==-1&&(He(m,{[qe.Unmount](){r.current.splice(w,1)},[qe.Hidden](){r.current[w].state="hidden"}}),o.microTask(()=>{var T;!bl(r)&&l.current&&((T=n.current)==null||T.call(n))}))}),u=Ot(y=>{let m=r.current.find(({el:w})=>w===y);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:y,state:"visible"}),()=>i(y,qe.Unmount)}),s=x.useRef([]),a=x.useRef(Promise.resolve()),p=x.useRef({enter:[],leave:[],idle:[]}),g=Ot((y,m,w)=>{s.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([T])=>T!==y)),t?.chains.current[m].push([y,new Promise(T=>{s.current.push(T)})]),t?.chains.current[m].push([y,new Promise(T=>{Promise.all(p.current[m].map(([f,c])=>c)).then(()=>T())})]),m==="enter"?a.current=a.current.then(()=>t?.wait.current).then(()=>w(m)):w(m)}),h=Ot((y,m,w)=>{Promise.all(p.current[m].splice(0).map(([T,f])=>f)).then(()=>{var T;(T=s.current.shift())==null||T()}).then(()=>w(m))});return x.useMemo(()=>({children:r,register:u,unregister:i,onStart:g,onStop:h,wait:a,chains:p}),[u,i,r,g,h,p,a])}function R0(){}let z0=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function bs(e){var t;let n={};for(let r of z0)n[r]=(t=e[r])!=null?t:R0;return n}function M0(e){let t=x.useRef(bs(e));return x.useEffect(()=>{t.current=bs(e)},[e]),t}let I0="div",Nf=yf.RenderStrategy;function F0(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:l,afterLeave:o,enter:i,enterFrom:u,enterTo:s,entered:a,leave:p,leaveFrom:g,leaveTo:h,...y}=e,m=x.useRef(null),w=gf(m,t),T=y.unmount?qe.Unmount:qe.Hidden,{show:f,appear:c,initial:d}=T0(),[v,S]=x.useState(f?"visible":"hidden"),k=L0(),{register:C,unregister:N}=k,F=x.useRef(null);x.useEffect(()=>C(m),[C,m]),x.useEffect(()=>{if(T===qe.Hidden&&m.current){if(f&&v!=="visible"){S("visible");return}return He(v,{hidden:()=>N(m),visible:()=>C(m)})}},[v,m,C,N,f,T]);let R=dn({enter:Rt(i),enterFrom:Rt(u),enterTo:Rt(s),entered:Rt(a),leave:Rt(p),leaveFrom:Rt(g),leaveTo:Rt(h)}),W=M0({beforeEnter:n,afterEnter:r,beforeLeave:l,afterLeave:o}),ye=mf();x.useEffect(()=>{if(ye&&v==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,v,ye]);let X=d&&!c,xr=(()=>!ye||X||F.current===f?"idle":f?"enter":"leave")(),Pt=k0(0),Pn=Ot(O=>He(O,{enter:()=>{Pt.addFlag(Xe.Opening),W.current.beforeEnter()},leave:()=>{Pt.addFlag(Xe.Closing),W.current.beforeLeave()},idle:()=>{}})),Tn=Ot(O=>He(O,{enter:()=>{Pt.removeFlag(Xe.Opening),W.current.afterEnter()},leave:()=>{Pt.removeFlag(Xe.Closing),W.current.afterLeave()},idle:()=>{}})),_=Cf(()=>{S("hidden"),N(m)},k);_0({container:m,classes:R,direction:xr,onStart:dn(O=>{_.onStart(m,O,Pn)}),onStop:dn(O=>{_.onStop(m,O,Tn),O==="leave"&&!bl(_)&&(S("hidden"),N(m))})}),x.useEffect(()=>{X&&(T===qe.Hidden?F.current=null:F.current=f)},[f,X,v]);let z=y,M={ref:w};return c&&f&&Jn.isServer&&(z={...z,className:vf(y.className,...R.current.enter,...R.current.enterFrom)}),Oe.createElement(ql.Provider,{value:_},Oe.createElement(E0,{value:He(v,{visible:Xe.Open,hidden:Xe.Closed})|Pt.flags},wf({ourProps:M,theirProps:z,defaultTag:I0,features:Nf,visible:v==="visible",name:"Transition.Child"})))}function D0(e,t){let{show:n,appear:r=!1,unmount:l,...o}=e,i=x.useRef(null),u=gf(i,t);mf();let s=Ef();if(n===void 0&&s!==null&&(n=(s&Xe.Open)===Xe.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[a,p]=x.useState(n?"visible":"hidden"),g=Cf(()=>{p("hidden")}),[h,y]=x.useState(!0),m=x.useRef([n]);Jl(()=>{h!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),y(!1))},[m,n]);let w=x.useMemo(()=>({show:n,appear:r,initial:h}),[n,r,h]);x.useEffect(()=>{if(n)p("visible");else if(!bl(g))p("hidden");else{let f=i.current;if(!f)return;let c=f.getBoundingClientRect();c.x===0&&c.y===0&&c.width===0&&c.height===0&&p("hidden")}},[n,g]);let T={unmount:l};return Oe.createElement(ql.Provider,{value:g},Oe.createElement(Zl.Provider,{value:w},wf({ourProps:{...T,as:x.Fragment,children:Oe.createElement(xf,{ref:u,...T,...o})},theirProps:{},defaultTag:x.Fragment,features:Nf,visible:a==="visible",name:"Transition"})))}function O0(e,t){let n=x.useContext(Zl)!==null,r=Ef()!==null;return Oe.createElement(Oe.Fragment,null,!n&&r?Oe.createElement(Di,{ref:t,...e}):Oe.createElement(xf,{ref:t,...e}))}let Di=Du(D0),xf=Du(F0),A0=Du(O0),B0=Object.assign(Di,{Child:A0,Root:Di});const il=x;function $0({title:e,titleId:t,...n},r){return il.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?il.createElement("title",{id:t},e):null,il.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))}const U0=il.forwardRef($0);var j0=U0;const ul=x;function V0({title:e,titleId:t,...n},r){return ul.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?ul.createElement("title",{id:t},e):null,ul.createElement("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"}))}const H0=ul.forwardRef(V0);var Q0=H0,Au=j0,W0=Q0,Cr={},K0=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},_f={},xe={};let Bu;const Y0=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];xe.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};xe.getSymbolTotalCodewords=function(t){return Y0[t]};xe.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};xe.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Bu=t};xe.isKanjiModeEnabled=function(){return typeof Bu<"u"};xe.toSJIS=function(t){return Bu(t)};var eo={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,l){if(e.isValid(r))return r;try{return t(r)}catch{return l}}})(eo);function Pf(){this.buffer=[],this.length=0}Pf.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var G0=Pf;function Nr(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Nr.prototype.set=function(e,t,n,r){const l=e*this.size+t;this.data[l]=n,r&&(this.reservedBit[l]=!0)};Nr.prototype.get=function(e,t){return this.data[e*this.size+t]};Nr.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Nr.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var X0=Nr,Tf={};(function(e){const t=xe.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const l=Math.floor(r/7)+2,o=t(r),i=o===145?26:Math.ceil((o-13)/(2*l-2))*2,u=[o-7];for(let s=1;s=0&&l<=7},e.from=function(l){return e.isValid(l)?parseInt(l,10):void 0},e.getPenaltyN1=function(l){const o=l.size;let i=0,u=0,s=0,a=null,p=null;for(let g=0;g=5&&(i+=t.N1+(u-5)),a=y,u=1),y=l.get(h,g),y===p?s++:(s>=5&&(i+=t.N1+(s-5)),p=y,s=1)}u>=5&&(i+=t.N1+(u-5)),s>=5&&(i+=t.N1+(s-5))}return i},e.getPenaltyN2=function(l){const o=l.size;let i=0;for(let u=0;u=10&&(u===1488||u===93)&&i++,s=s<<1&2047|l.get(p,a),p>=10&&(s===1488||s===93)&&i++}return i*t.N3},e.getPenaltyN4=function(l){let o=0;const i=l.data.length;for(let s=0;s=0;){const i=o[0];for(let s=0;s0){const o=new Uint8Array(this.degree);return o.set(r,l),o}return r};var Z0=$u,If={},_t={},Uu={};Uu.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var Ke={};const Ff="[0-9]+",q0="[A-Z $%*+\\-./:]+";let gr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";gr=gr.replace(/u/g,"\\u");const b0="(?:(?![A-Z0-9 $%*+\\-./:]|"+gr+`)(?:.|[\r ]))+`;Ke.KANJI=new RegExp(gr,"g");Ke.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Ke.BYTE=new RegExp(b0,"g");Ke.NUMERIC=new RegExp(Ff,"g");Ke.ALPHANUMERIC=new RegExp(q0,"g");const eh=new RegExp("^"+gr+"$"),th=new RegExp("^"+Ff+"$"),nh=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ke.testKanji=function(t){return eh.test(t)};Ke.testNumeric=function(t){return th.test(t)};Ke.testAlphanumeric=function(t){return nh.test(t)};(function(e){const t=Uu,n=Ke;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,i){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?o.ccBits[0]:i<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function r(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+l)}}e.from=function(o,i){if(e.isValid(o))return o;try{return r(o)}catch{return i}}})(_t);(function(e){const t=xe,n=to,r=eo,l=_t,o=Uu,i=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(i);function s(h,y,m){for(let w=1;w<=40;w++)if(y<=e.getCapacity(w,m,h))return w}function a(h,y){return l.getCharCountIndicator(h,y)+4}function p(h,y){let m=0;return h.forEach(function(w){const T=a(w.mode,y);m+=T+w.getBitsLength()}),m}function g(h,y){for(let m=1;m<=40;m++)if(p(h,m)<=e.getCapacity(m,y,l.MIXED))return m}e.from=function(y,m){return o.isValid(y)?parseInt(y,10):m},e.getCapacity=function(y,m,w){if(!o.isValid(y))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=l.BYTE);const T=t.getSymbolTotalCodewords(y),f=n.getTotalCodewordsCount(y,m),c=(T-f)*8;if(w===l.MIXED)return c;const d=c-a(w,y);switch(w){case l.NUMERIC:return Math.floor(d/10*3);case l.ALPHANUMERIC:return Math.floor(d/11*2);case l.KANJI:return Math.floor(d/13);case l.BYTE:default:return Math.floor(d/8)}},e.getBestVersionForData=function(y,m){let w;const T=r.from(m,r.M);if(Array.isArray(y)){if(y.length>1)return g(y,T);if(y.length===0)return 1;w=y[0]}else w=y;return s(w.mode,w.getLength(),T)},e.getEncodedBits=function(y){if(!o.isValid(y)||y<7)throw new Error("Invalid QR Code version");let m=y<<12;for(;t.getBCHDigit(m)-u>=0;)m^=i<=0;)l^=Of<0&&(r=this.data.substr(n),l=parseInt(r,10),t.put(l,o*3+1))};var oh=Sn;const ih=_t,Oo=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function En(e){this.mode=ih.ALPHANUMERIC,this.data=e}En.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};En.prototype.getLength=function(){return this.data.length};En.prototype.getBitsLength=function(){return En.getBitsLength(this.data.length)};En.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=Oo.indexOf(this.data[n])*45;r+=Oo.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(Oo.indexOf(this.data[n]),6)};var uh=En,sh=function(t){for(var n=[],r=t.length,l=0;l=55296&&o<=56319&&r>l+1){var i=t.charCodeAt(l+1);i>=56320&&i<=57343&&(o=(o-55296)*1024+i-56320+65536,l+=1)}if(o<128){n.push(o);continue}if(o<2048){n.push(o>>6|192),n.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){n.push(o>>12|224),n.push(o>>6&63|128),n.push(o&63|128);continue}if(o>=65536&&o<=1114111){n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const ah=sh,ch=_t;function kn(e){this.mode=ch.BYTE,typeof e=="string"&&(e=ah(e)),this.data=new Uint8Array(e)}kn.getBitsLength=function(t){return t*8};kn.prototype.getLength=function(){return this.data.length};kn.prototype.getBitsLength=function(){return kn.getBitsLength(this.data.length)};kn.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var hh=Cn,Ai={},mh={get exports(){return Ai},set exports(e){Ai=e}};(function(e){var t={single_source_shortest_paths:function(n,r,l){var o={},i={};i[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var s,a,p,g,h,y,m,w,T;!u.empty();){s=u.pop(),a=s.value,g=s.cost,h=n[a]||{};for(p in h)h.hasOwnProperty(p)&&(y=h[p],m=g+y,w=i[p],T=typeof i[p]>"u",(T||w>m)&&(i[p]=m,u.push(p,m),o[p]=a))}if(typeof l<"u"&&typeof i[l]>"u"){var f=["Could not find a path from ",r," to ",l,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var l=[],o=r;o;)l.push(o),n[o],o=n[o];return l.reverse(),l},find_path:function(n,r,l){var o=t.single_source_shortest_paths(n,r,l);return t.extract_shortest_path_from_predecessor_list(o,l)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,l={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(l[o]=r[o]);return l.queue=[],l.sorter=n.sorter||r.default_sorter,l},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var l={value:n,cost:r};this.queue.push(l),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(mh);(function(e){const t=_t,n=oh,r=uh,l=fh,o=hh,i=Ke,u=xe,s=Ai;function a(f){return unescape(encodeURIComponent(f)).length}function p(f,c,d){const v=[];let S;for(;(S=f.exec(d))!==null;)v.push({data:S[0],index:S.index,mode:c,length:S[0].length});return v}function g(f){const c=p(i.NUMERIC,t.NUMERIC,f),d=p(i.ALPHANUMERIC,t.ALPHANUMERIC,f);let v,S;return u.isKanjiModeEnabled()?(v=p(i.BYTE,t.BYTE,f),S=p(i.KANJI,t.KANJI,f)):(v=p(i.BYTE_KANJI,t.BYTE,f),S=[]),c.concat(d,v,S).sort(function(C,N){return C.index-N.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function h(f,c){switch(c){case t.NUMERIC:return n.getBitsLength(f);case t.ALPHANUMERIC:return r.getBitsLength(f);case t.KANJI:return o.getBitsLength(f);case t.BYTE:return l.getBitsLength(f)}}function y(f){return f.reduce(function(c,d){const v=c.length-1>=0?c[c.length-1]:null;return v&&v.mode===d.mode?(c[c.length-1].data+=d.data,c):(c.push(d),c)},[])}function m(f){const c=[];for(let d=0;d=0&&u<=6&&(s===0||s===6)||s>=0&&s<=6&&(u===0||u===6)||u>=2&&u<=4&&s>=2&&s<=4?e.set(o+u,i+s,!0,!0):e.set(o+u,i+s,!1,!0))}}function Nh(e){const t=e.size;for(let n=8;n>u&1)===1,e.set(l,o,i,!0),e.set(o,l,i,!0)}function $o(e,t,n){const r=e.size,l=Eh.getEncodedBits(t,n);let o,i;for(o=0;o<15;o++)i=(l>>o&1)===1,o<6?e.set(o,8,i,!0):o<8?e.set(o+1,8,i,!0):e.set(r-15+o,8,i,!0),o<8?e.set(8,r-o-1,i,!0):o<9?e.set(8,15-o-1+1,i,!0):e.set(8,15-o-1,i,!0);e.set(r-8,8,1,!0)}function Ph(e,t){const n=e.size;let r=-1,l=n-1,o=7,i=0;for(let u=n-1;u>0;u-=2)for(u===6&&u--;;){for(let s=0;s<2;s++)if(!e.isReserved(l,u-s)){let a=!1;i>>o&1)===1),e.set(l,u-s,a),o--,o===-1&&(i++,o=7)}if(l+=r,l<0||n<=l){l-=r,r=-r;break}}}function Th(e,t,n){const r=new gh;n.forEach(function(s){r.put(s.mode.bit,4),r.put(s.getLength(),kh.getCharCountIndicator(s.mode,e)),s.write(r)});const l=ro.getSymbolTotalCodewords(e),o=$i.getTotalCodewordsCount(e,t),i=(l-o)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const u=(i-r.getLengthInBits())/8;for(let s=0;s=7&&_h(s,t),Ph(s,i),isNaN(r)&&(r=Bi.getBestMask(s,$o.bind(null,s,n))),Bi.applyMask(r,s),$o(s,n,r),{modules:s,version:t,errorCorrectionLevel:n,maskPattern:r,segments:l}}_f.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=Ao.M,l,o;return typeof n<"u"&&(r=Ao.from(n.errorCorrectionLevel,Ao.M),l=Il.from(n.version),o=Bi.from(n.maskPattern),n.toSJISFunc&&ro.setToSJISFunction(n.toSJISFunc)),Rh(t,l,r,o)};var Bf={},ju={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const l=parseInt(r.join(""),16);return{r:l>>24&255,g:l>>16&255,b:l>>8&255,a:l&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const l=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:o,scale:o?4:i,margin:l,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,l){return l.width&&l.width>=r+l.margin*2?l.width/(r+l.margin*2):l.scale},e.getImageWidth=function(r,l){const o=e.getScale(r,l);return Math.floor((r+l.margin*2)*o)},e.qrToImageData=function(r,l,o){const i=l.modules.size,u=l.modules.data,s=e.getScale(i,o),a=Math.floor((i+o.margin*2)*s),p=o.margin*s,g=[o.color.light,o.color.dark];for(let h=0;h=p&&y>=p&&h"u"&&(!i||!i.getContext)&&(s=i,i=void 0),i||(a=r()),s=t.getOptions(s);const p=t.getImageWidth(o.modules.size,s),g=a.getContext("2d"),h=g.createImageData(p,p);return t.qrToImageData(h.data,o,s),n(g,a,p),g.putImageData(h,0,0),a},e.renderToDataURL=function(o,i,u){let s=u;typeof s>"u"&&(!i||!i.getContext)&&(s=i,i=void 0),s||(s={});const a=e.render(o,i,s),p=s.type||"image/png",g=s.rendererOpts||{};return a.toDataURL(p,g.quality)}})(Bf);var $f={};const zh=ju;function na(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function Uo(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function Mh(e,t,n){let r="",l=0,o=!1,i=0;for(let u=0;u0&&s>0&&e[u-1]||(r+=o?Uo("M",s+n,.5+a+n):Uo("m",l,0),l=0,o=!1),s+1':"",a="',p='viewBox="0 0 '+u+" "+u+'"',h=''+s+a+` `;return typeof r=="function"&&r(null,h),h};const Ih=K0,Ui=_f,Uf=Bf,Fh=$f;function Vu(e,t,n,r,l){const o=[].slice.call(arguments,1),i=o.length,u=typeof o[i-1]=="function";if(!u&&!Ih())throw new Error("Callback required as last argument");if(u){if(i<2)throw new Error("Too few arguments provided");i===2?(l=n,n=t,t=r=void 0):i===3&&(t.getContext&&typeof l>"u"?(l=r,r=void 0):(l=r,r=n,n=t,t=void 0))}else{if(i<1)throw new Error("Too few arguments provided");return i===1?(n=t,t=r=void 0):i===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(s,a){try{const p=Ui.create(n,r);s(e(p,t,r))}catch(p){a(p)}})}try{const s=Ui.create(n,r);l(null,e(s,t,r))}catch(s){l(s)}}Cr.create=Ui.create;Cr.toCanvas=Vu.bind(null,Uf.render);Cr.toDataURL=Vu.bind(null,Uf.renderToDataURL);Cr.toString=Vu.bind(null,function(e,t,n){return Fh.render(e,n)});const Dh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Oh(e){return typeof e=="string"&&Dh.test(e)}function Ah(){const[e,t]=x.useState(""),[n,r]=x.useState(!1),[l,o]=x.useState({ws0Rtt:!1});function i(s){t(s),r(!0)}function u(s){o(s)}return x.useEffect(()=>{if(n){console.log("useEffect---setShow");const s=setTimeout(()=>{r(!1)},1500);return()=>{clearTimeout(s)}}},[n]),q(fa,{children:[q("div",{className:"flex flex-col items-center h-screen",children:[L(Qh,{}),q("div",{className:"flex flex-col h-full ite",children:[L(jh,{text:e}),L(Bh,{handleV2Option:u}),L(Hh,{handleShare:i,v2option:l}),L($h,{}),L(Vh,{handleShare:i})]})]}),L(Uh,{show:n,setShow:r})]})}function Bh({handleV2Option:e}){const[t,n]=x.useState(!1);return q("fieldset",{className:"mt-2 border-dashed border-2 border-indigo-600",children:[L("legend",{className:"sr-only",children:"Notifications"}),L("div",{className:"space-y-5",children:q("div",{className:"relative flex items-start",children:[L("div",{className:"flex h-6 items-center",children:L("input",{id:"ws0rtt","aria-describedby":"comments-description",name:"ws0rtt",type:"checkbox",checked:t,onChange:r=>{n(!t),e({ws0Rtt:!t})},className:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600"})}),q("div",{className:"ml-3",children:[L("label",{htmlFor:"ws0rtt",className:"text-sm font-medium leading-6 text-gray-900",children:"WS 0RTT"}),L("p",{id:"comments-description",className:"text-sm text-gray-500",children:"Enable WS 0RTT"})]})]})})]})}function $h(){return L("div",{className:"p-4 rounded-md bg-yellow-50",children:q("div",{className:"flex",children:[L("div",{className:"flex-shrink-0",children:L(Au,{className:"w-5 h-5 text-yellow-400","aria-hidden":"true"})}),q("div",{className:"ml-3",children:[L("h3",{className:"text-sm font-medium text-yellow-800",children:"请注意!"}),L("div",{className:"mt-2 text-sm text-yellow-700",children:q("p",{children:["如果遇到连不上网的情况, 请查看/参考具体客户端的  ",L("a",{target:"_blank",href:"https://github.com/zizifn/edgetunnel#%E5%AE%A2%E6%88%B7%E7%AB%AF-v2rayn-%E9%85%8D%E7%BD%AE",className:"font-medium text-yellow-700 underline hover:text-yellow-600",children:"DNS 相关设置。"})]})})]})]})})}function Uh({show:e,setShow:t}){return L(fa,{children:L("div",{"aria-live":"assertive",className:"fixed inset-0 flex items-end px-4 py-6 pointer-events-none sm:items-start sm:p-6",children:L("div",{className:"flex flex-col items-center w-full space-y-4 sm:items-end",children:L(B0,{show:e,as:x.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:L("div",{className:"w-full max-w-sm overflow-hidden bg-white rounded-lg shadow-lg pointer-events-auto ring-1 ring-black ring-opacity-5",children:L("div",{className:"p-4",children:q("div",{className:"flex items-start",children:[L("div",{className:"flex-shrink-0",children:L(Au,{className:"w-6 h-6 text-red-700","aria-hidden":"true"})}),q("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[L("p",{className:"text-sm font-medium text-gray-900",children:"分享成功!"}),L("p",{className:"mt-1 text-sm text-red-500",children:"请不要随意泄露分享链接!!"})]}),L("div",{className:"flex flex-shrink-0 ml-4",children:q("button",{type:"button",className:"inline-flex text-gray-400 bg-white rounded-md hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:()=>{t(!1)},children:[L("span",{className:"sr-only",children:"Close"}),L(W0,{className:"w-5 h-5","aria-hidden":"true"})]})})]})})})})})})})}function jh({text:e}){const[t,n]=x.useState(""),[r,l]=x.useState(!1);x.useEffect(()=>{(async()=>{if(e){const i=await Cr.toDataURL(e);n(i)}})()},[e]);async function o(){await navigator.clipboard.writeText(e),l(!0),setTimeout(()=>{l(!1)},1500)}return q("div",{className:"flex flex-col border border-blue-300 overflow-hidden w-[500px] h-[420px] justify-start items-center",children:[L("img",{src:t,width:"350",height:"350",alt:"二维码",className:"border-spacing-1"}),q("div",{className:"flex flex-grow w-full bg-gray-200",children:[L("span",{className:"flex-grow break-normal overflow-scroll w-4/5",children:e}),q("div",{className:"w-6 h-6 ml-auto",children:[L("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",onClick:o,className:`w-6 h-6 hover:cursor-pointer hover:border hover:border-indigo-500 ${r?"hidden":"block"}`,children:L("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 006.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0015 2.25h-1.5a2.251 2.251 0 00-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 00-9-9z"})}),L("svg",{"aria-hidden":"true",height:"16",viewBox:"0 0 16 16",version:"1.1",className:`w-6 h-6 hover:border hover:border-indigo-500 ${r?"block bg-green-300":"hidden"}`,children:L("path",{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})})]})]})]})}function Vh({handleShare:e}){const[t,n]=x.useState("");return q("div",{className:"mt-4",children:[L("label",{htmlFor:"comment",className:"block text-sm font-medium text-gray-700",children:"随意要分享的内容."}),L("div",{className:"mt-1",children:L("textarea",{rows:4,name:"comment",id:"comment",className:"block w-full border border-gray-300 rounded-md shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm",value:t,onChange:r=>n(r.target.value)})}),L("div",{className:"flex justify-end mt-2",children:L("button",{onClick:()=>e(t),type:"submit",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-transparent rounded-md shadow-sm hover:border-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",children:"分享"})})]})}function Hh({handleShare:e,v2option:t}){function n(){return window.location.href}function r(){const l=new URL(window.location.href),o=l.pathname.split("/").find(Oh);let i="";return t.ws0Rtt&&(i=`${i}?ed=2048`),i&&(i=`&path=${encodeURIComponent(i)}`),`vless://${o}@${l.hostname}:443?encryption=none&security=tls&type=ws${i||""}#${l.hostname}`}return q("span",{className:"inline-flex self-center mt-4 rounded-md shadow-sm isolate",children:[L("button",{onClick:()=>e(n()),type:"button",className:"relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-l-md hover:border-indigo-500 focus:z-10 focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500",children:"分享本页"}),L("button",{onClick:()=>e(r()),type:"button",className:"relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:z-10 focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500",children:"分享 V2ray"})]})}function Qh(){return L("div",{className:"flex justify-center w-full p-4 rounded-md bg-red-50",children:q("div",{className:"flex",children:[L("div",{className:"flex-shrink-0",children:L(Au,{className:"w-5 h-5 text-red-700","aria-hidden":"true"})}),q("div",{className:"ml-3",children:[L("h3",{className:"text-sm font-medium text-red-700",children:"注意!!"}),L("div",{className:"mt-2 text-sm text-red-700",children:L("p",{children:"泄露本页面就等于泄露你的设置。"})})]})]})})}const Wh=pf(document.getElementById("root"));Wh.render(L(x.StrictMode,{children:L(Ah,{})}));