From 50ce98bc2c4426550c3d663512e6dfd1f5e35155 Mon Sep 17 00:00:00 2001 From: "krisztian.maurer" <krisztian.maurer@metrix.co.hu> Date: Fri, 5 Jan 2024 19:51:06 +0100 Subject: [PATCH] Updates --- CNAME | 1 - assets/{index-ngW5ZSdz.js => index-Ev6EW-Tf.js} | 2 +- index.html | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 CNAME rename assets/{index-ngW5ZSdz.js => index-Ev6EW-Tf.js} (98%) diff --git a/CNAME b/CNAME deleted file mode 100644 index a690715..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -canvasbeats.com \ No newline at end of file diff --git a/assets/index-ngW5ZSdz.js b/assets/index-Ev6EW-Tf.js similarity index 98% rename from assets/index-ngW5ZSdz.js rename to assets/index-Ev6EW-Tf.js index 1a9acec..49d12a3 100644 --- a/assets/index-ngW5ZSdz.js +++ b/assets/index-Ev6EW-Tf.js @@ -37,4 +37,4 @@ `+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zn(e):""}function Qc(e){switch(e.tag){case 5:return zn(e.type);case 16:return zn("Lazy");case 13:return zn("Suspense");case 19:return zn("SuspenseList");case 0:case 2:case 15:return e=Rl(e.type,!1),e;case 11:return e=Rl(e.type.render,!1),e;case 1:return e=Rl(e.type,!0),e;default:return""}}function oo(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 Qt:return"Fragment";case Ht:return"Portal";case no:return"Profiler";case ni:return"StrictMode";case ro:return"Suspense";case lo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gs:return(e.displayName||"Context")+".Consumer";case ms:return(e._context.displayName||"Context")+".Provider";case ri:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case li:return t=e.displayName||null,t!==null?t:oo(e.type)||"Memo";case rt:t=e._payload,e=e._init;try{return oo(e(t))}catch{}}return null}function Kc(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 oo(t);case 8:return t===ni?"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 vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ys(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yc(e){var t=ys(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 pr(e){e._valueTracker||(e._valueTracker=Yc(e))}function ws(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ys(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vr(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 io(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zi(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vt(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 ks(e,t){t=t.checked,t!=null&&ti(e,"checked",t,!1)}function uo(e,t){ks(e,t);var n=vt(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")?so(e,t.type,n):t.hasOwnProperty("defaultValue")&&so(e,t.type,vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ji(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 so(e,t,n){(t!=="number"||Vr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var jn=Array.isArray;function nn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+vt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function ao(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(jn(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vt(n)}}function Ss(e,t){var n=vt(t.value),r=vt(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 bi(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xs(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 co(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xs(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hr,Cs=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hr=hr||document.createElement("div"),hr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function An(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ln={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},Xc=["Webkit","ms","Moz","O"];Object.keys(Ln).forEach(function(e){Xc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ln[t]=Ln[e]})});function Es(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ln.hasOwnProperty(e)&&Ln[e]?(""+t).trim():t+"px"}function _s(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Es(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Gc=K({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 fo(e,t){if(t){if(Gc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function po(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 ho=null;function oi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mo=null,rn=null,ln=null;function eu(e){if(e=ur(e)){if(typeof mo!="function")throw Error(k(280));var t=e.stateNode;t&&(t=ml(t),mo(e.stateNode,e.type,t))}}function Ps(e){rn?ln?ln.push(e):ln=[e]:rn=e}function Ns(){if(rn){var e=rn,t=ln;if(ln=rn=null,eu(e),t)for(e=0;e<t.length;e++)eu(t[e])}}function zs(e,t){return e(t)}function js(){}var Tl=!1;function Rs(e,t,n){if(Tl)return e(t,n);Tl=!0;try{return zs(e,t,n)}finally{Tl=!1,(rn!==null||ln!==null)&&(js(),Ns())}}function Wn(e,t){var n=e.stateNode;if(n===null)return null;var r=ml(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(k(231,t,typeof n));return n}var go=!1;if(Je)try{var Sn={};Object.defineProperty(Sn,"passive",{get:function(){go=!0}}),window.addEventListener("test",Sn,Sn),window.removeEventListener("test",Sn,Sn)}catch{go=!1}function Zc(e,t,n,r,l,o,i,u,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(g){this.onError(g)}}var In=!1,$r=null,Ar=!1,vo=null,Jc={onError:function(e){In=!0,$r=e}};function qc(e,t,n,r,l,o,i,u,s){In=!1,$r=null,Zc.apply(Jc,arguments)}function bc(e,t,n,r,l,o,i,u,s){if(qc.apply(this,arguments),In){if(In){var c=$r;In=!1,$r=null}else throw Error(k(198));Ar||(Ar=!0,vo=c)}}function Vt(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 Ts(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 tu(e){if(Vt(e)!==e)throw Error(k(188))}function ef(e){var t=e.alternate;if(!t){if(t=Vt(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return tu(l),e;if(o===r)return tu(l),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,u=l.child;u;){if(u===n){i=!0,n=l,r=o;break}if(u===r){i=!0,r=l,n=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===n){i=!0,n=o,r=l;break}if(u===r){i=!0,r=o,n=l;break}u=u.sibling}if(!i)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function Ls(e){return e=ef(e),e!==null?Is(e):null}function Is(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Is(e);if(t!==null)return t;e=e.sibling}return null}var Fs=Ce.unstable_scheduleCallback,nu=Ce.unstable_cancelCallback,tf=Ce.unstable_shouldYield,nf=Ce.unstable_requestPaint,G=Ce.unstable_now,rf=Ce.unstable_getCurrentPriorityLevel,ii=Ce.unstable_ImmediatePriority,Ms=Ce.unstable_UserBlockingPriority,Wr=Ce.unstable_NormalPriority,lf=Ce.unstable_LowPriority,Os=Ce.unstable_IdlePriority,fl=null,We=null;function of(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(fl,e,void 0,(e.current.flags&128)===128)}catch{}}var Oe=Math.clz32?Math.clz32:af,uf=Math.log,sf=Math.LN2;function af(e){return e>>>=0,e===0?32:31-(uf(e)/sf|0)|0}var mr=64,gr=4194304;function Rn(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 Hr(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=Rn(u):(o&=i,o!==0&&(r=Rn(o)))}else i=n&~l,i!==0?r=Rn(i):o!==0&&(r=Rn(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;0<t;)n=31-Oe(t),l=1<<n,r|=e[n],t&=~l;return r}function cf(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 ff(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Oe(o),u=1<<i,s=l[i];s===-1?(!(u&n)||u&r)&&(l[i]=cf(u,t)):s<=t&&(e.expiredLanes|=u),o&=~u}}function yo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ds(){var e=mr;return mr<<=1,!(mr&4194240)&&(mr=64),e}function Ll(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function or(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oe(t),e[t]=n}function df(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 l=31-Oe(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function ui(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Oe(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var O=0;function Us(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Bs,si,Vs,$s,As,wo=!1,vr=[],at=null,ct=null,ft=null,Hn=new Map,Qn=new Map,ot=[],pf="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 ru(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":ct=null;break;case"mouseover":case"mouseout":ft=null;break;case"pointerover":case"pointerout":Hn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qn.delete(t.pointerId)}}function xn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=ur(t),t!==null&&si(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function hf(e,t,n,r,l){switch(t){case"focusin":return at=xn(at,e,t,n,r,l),!0;case"dragenter":return ct=xn(ct,e,t,n,r,l),!0;case"mouseover":return ft=xn(ft,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return Hn.set(o,xn(Hn.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Qn.set(o,xn(Qn.get(o)||null,e,t,n,r,l)),!0}return!1}function Ws(e){var t=jt(e.target);if(t!==null){var n=Vt(t);if(n!==null){if(t=n.tag,t===13){if(t=Ts(n),t!==null){e.blockedOn=t,As(e.priority,function(){Vs(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 Rr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ko(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ho=r,n.target.dispatchEvent(r),ho=null}else return t=ur(n),t!==null&&si(t),e.blockedOn=n,!1;t.shift()}return!0}function lu(e,t,n){Rr(e)&&n.delete(t)}function mf(){wo=!1,at!==null&&Rr(at)&&(at=null),ct!==null&&Rr(ct)&&(ct=null),ft!==null&&Rr(ft)&&(ft=null),Hn.forEach(lu),Qn.forEach(lu)}function Cn(e,t){e.blockedOn===t&&(e.blockedOn=null,wo||(wo=!0,Ce.unstable_scheduleCallback(Ce.unstable_NormalPriority,mf)))}function Kn(e){function t(l){return Cn(l,e)}if(0<vr.length){Cn(vr[0],e);for(var n=1;n<vr.length;n++){var r=vr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(at!==null&&Cn(at,e),ct!==null&&Cn(ct,e),ft!==null&&Cn(ft,e),Hn.forEach(t),Qn.forEach(t),n=0;n<ot.length;n++)r=ot[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ot.length&&(n=ot[0],n.blockedOn===null);)Ws(n),n.blockedOn===null&&ot.shift()}var on=tt.ReactCurrentBatchConfig,Qr=!0;function gf(e,t,n,r){var l=O,o=on.transition;on.transition=null;try{O=1,ai(e,t,n,r)}finally{O=l,on.transition=o}}function vf(e,t,n,r){var l=O,o=on.transition;on.transition=null;try{O=4,ai(e,t,n,r)}finally{O=l,on.transition=o}}function ai(e,t,n,r){if(Qr){var l=ko(e,t,n,r);if(l===null)Al(e,t,r,Kr,n),ru(e,r);else if(hf(l,e,t,n,r))r.stopPropagation();else if(ru(e,r),t&4&&-1<pf.indexOf(e)){for(;l!==null;){var o=ur(l);if(o!==null&&Bs(o),o=ko(e,t,n,r),o===null&&Al(e,t,r,Kr,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Al(e,t,r,null,n)}}var Kr=null;function ko(e,t,n,r){if(Kr=null,e=oi(r),e=jt(e),e!==null)if(t=Vt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ts(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 Kr=e,null}function Hs(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(rf()){case ii:return 1;case Ms:return 4;case Wr:case lf:return 16;case Os:return 536870912;default:return 16}default:return 16}}var ut=null,ci=null,Tr=null;function Qs(){if(Tr)return Tr;var e,t=ci,n=t.length,r,l="value"in ut?ut.value:ut.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return Tr=l.slice(e,1<r?1-r:void 0)}function Lr(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 yr(){return!0}function ou(){return!1}function _e(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?yr:ou,this.isPropagationStopped=ou,this}return K(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=yr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=yr)},persist:function(){},isPersistent:yr}),t}var vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fi=_e(vn),ir=K({},vn,{view:0,detail:0}),yf=_e(ir),Il,Fl,En,dl=K({},ir,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:di,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!==En&&(En&&e.type==="mousemove"?(Il=e.screenX-En.screenX,Fl=e.screenY-En.screenY):Fl=Il=0,En=e),Il)},movementY:function(e){return"movementY"in e?e.movementY:Fl}}),iu=_e(dl),wf=K({},dl,{dataTransfer:0}),kf=_e(wf),Sf=K({},ir,{relatedTarget:0}),Ml=_e(Sf),xf=K({},vn,{animationName:0,elapsedTime:0,pseudoElement:0}),Cf=_e(xf),Ef=K({},vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_f=_e(Ef),Pf=K({},vn,{data:0}),uu=_e(Pf),Nf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zf={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"},jf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jf[e])?!!t[e]:!1}function di(){return Rf}var Tf=K({},ir,{key:function(e){if(e.key){var t=Nf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:di,charCode:function(e){return e.type==="keypress"?Lr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lf=_e(Tf),If=K({},dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),su=_e(If),Ff=K({},ir,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:di}),Mf=_e(Ff),Of=K({},vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Df=_e(Of),Uf=K({},dl,{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}),Bf=_e(Uf),Vf=[9,13,27,32],pi=Je&&"CompositionEvent"in window,Fn=null;Je&&"documentMode"in document&&(Fn=document.documentMode);var $f=Je&&"TextEvent"in window&&!Fn,Ks=Je&&(!pi||Fn&&8<Fn&&11>=Fn),au=" ",cu=!1;function Ys(e,t){switch(e){case"keyup":return Vf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kt=!1;function Af(e,t){switch(e){case"compositionend":return Xs(t);case"keypress":return t.which!==32?null:(cu=!0,au);case"textInput":return e=t.data,e===au&&cu?null:e;default:return null}}function Wf(e,t){if(Kt)return e==="compositionend"||!pi&&Ys(e,t)?(e=Qs(),Tr=ci=ut=null,Kt=!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 Ks&&t.locale!=="ko"?null:t.data;default:return null}}var Hf={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 fu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hf[e.type]:t==="textarea"}function Gs(e,t,n,r){Ps(r),t=Yr(t,"onChange"),0<t.length&&(n=new fi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mn=null,Yn=null;function Qf(e){ia(e,0)}function pl(e){var t=Gt(e);if(ws(t))return e}function Kf(e,t){if(e==="change")return t}var Zs=!1;if(Je){var Ol;if(Je){var Dl="oninput"in document;if(!Dl){var du=document.createElement("div");du.setAttribute("oninput","return;"),Dl=typeof du.oninput=="function"}Ol=Dl}else Ol=!1;Zs=Ol&&(!document.documentMode||9<document.documentMode)}function pu(){Mn&&(Mn.detachEvent("onpropertychange",Js),Yn=Mn=null)}function Js(e){if(e.propertyName==="value"&&pl(Yn)){var t=[];Gs(t,Yn,e,oi(e)),Rs(Qf,t)}}function Yf(e,t,n){e==="focusin"?(pu(),Mn=t,Yn=n,Mn.attachEvent("onpropertychange",Js)):e==="focusout"&&pu()}function Xf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pl(Yn)}function Gf(e,t){if(e==="click")return pl(t)}function Zf(e,t){if(e==="input"||e==="change")return pl(t)}function Jf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ue=typeof Object.is=="function"?Object.is:Jf;function Xn(e,t){if(Ue(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 l=n[r];if(!to.call(t,l)||!Ue(e[l],t[l]))return!1}return!0}function hu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mu(e,t){var n=hu(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=hu(n)}}function qs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bs(){for(var e=window,t=Vr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vr(e.document)}return t}function hi(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 qf(e){var t=bs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qs(n.ownerDocument.documentElement,n)){if(r!==null&&hi(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=mu(n,o);var i=mu(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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var bf=Je&&"documentMode"in document&&11>=document.documentMode,Yt=null,So=null,On=null,xo=!1;function gu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xo||Yt==null||Yt!==Vr(r)||(r=Yt,"selectionStart"in r&&hi(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}),On&&Xn(On,r)||(On=r,r=Yr(So,"onSelect"),0<r.length&&(t=new fi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Yt)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xt={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Ul={},ea={};Je&&(ea=document.createElement("div").style,"AnimationEvent"in window||(delete Xt.animationend.animation,delete Xt.animationiteration.animation,delete Xt.animationstart.animation),"TransitionEvent"in window||delete Xt.transitionend.transition);function hl(e){if(Ul[e])return Ul[e];if(!Xt[e])return e;var t=Xt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ea)return Ul[e]=t[n];return e}var ta=hl("animationend"),na=hl("animationiteration"),ra=hl("animationstart"),la=hl("transitionend"),oa=new Map,vu="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 wt(e,t){oa.set(e,t),Bt(t,[e])}for(var Bl=0;Bl<vu.length;Bl++){var Vl=vu[Bl],ed=Vl.toLowerCase(),td=Vl[0].toUpperCase()+Vl.slice(1);wt(ed,"on"+td)}wt(ta,"onAnimationEnd");wt(na,"onAnimationIteration");wt(ra,"onAnimationStart");wt("dblclick","onDoubleClick");wt("focusin","onFocus");wt("focusout","onBlur");wt(la,"onTransitionEnd");an("onMouseEnter",["mouseout","mouseover"]);an("onMouseLeave",["mouseout","mouseover"]);an("onPointerEnter",["pointerout","pointerover"]);an("onPointerLeave",["pointerout","pointerover"]);Bt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Bt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Bt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Bt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tn="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(" "),nd=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tn));function yu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,bc(r,t,void 0,e),e.currentTarget=null}function ia(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],s=u.instance,c=u.currentTarget;if(u=u.listener,s!==o&&l.isPropagationStopped())break e;yu(l,u,c),o=s}else for(i=0;i<r.length;i++){if(u=r[i],s=u.instance,c=u.currentTarget,u=u.listener,s!==o&&l.isPropagationStopped())break e;yu(l,u,c),o=s}}}if(Ar)throw e=vo,Ar=!1,vo=null,e}function U(e,t){var n=t[No];n===void 0&&(n=t[No]=new Set);var r=e+"__bubble";n.has(r)||(ua(t,e,2,!1),n.add(r))}function $l(e,t,n){var r=0;t&&(r|=4),ua(n,e,r,t)}var kr="_reactListening"+Math.random().toString(36).slice(2);function Gn(e){if(!e[kr]){e[kr]=!0,hs.forEach(function(n){n!=="selectionchange"&&(nd.has(n)||$l(n,!1,e),$l(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[kr]||(t[kr]=!0,$l("selectionchange",!1,t))}}function ua(e,t,n,r){switch(Hs(t)){case 1:var l=gf;break;case 4:l=vf;break;default:l=ai}n=l.bind(null,t,n,e),l=void 0,!go||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Al(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===l||s.nodeType===8&&s.parentNode===l))return;i=i.return}for(;u!==null;){if(i=jt(u),i===null)return;if(s=i.tag,s===5||s===6){r=o=i;continue e}u=u.parentNode}}r=r.return}Rs(function(){var c=o,g=oi(n),m=[];e:{var p=oa.get(e);if(p!==void 0){var w=fi,S=e;switch(e){case"keypress":if(Lr(n)===0)break e;case"keydown":case"keyup":w=Lf;break;case"focusin":S="focus",w=Ml;break;case"focusout":S="blur",w=Ml;break;case"beforeblur":case"afterblur":w=Ml;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":w=iu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=kf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Mf;break;case ta:case na:case ra:w=Cf;break;case la:w=Df;break;case"scroll":w=yf;break;case"wheel":w=Bf;break;case"copy":case"cut":case"paste":w=_f;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=su}var x=(t&4)!==0,R=!x&&e==="scroll",f=x?p!==null?p+"Capture":null:p;x=[];for(var a=c,d;a!==null;){d=a;var y=d.stateNode;if(d.tag===5&&y!==null&&(d=y,f!==null&&(y=Wn(a,f),y!=null&&x.push(Zn(a,y,d)))),R)break;a=a.return}0<x.length&&(p=new w(p,S,null,n,g),m.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",p&&n!==ho&&(S=n.relatedTarget||n.fromElement)&&(jt(S)||S[qe]))break e;if((w||p)&&(p=g.window===g?g:(p=g.ownerDocument)?p.defaultView||p.parentWindow:window,w?(S=n.relatedTarget||n.toElement,w=c,S=S?jt(S):null,S!==null&&(R=Vt(S),S!==R||S.tag!==5&&S.tag!==6)&&(S=null)):(w=null,S=c),w!==S)){if(x=iu,y="onMouseLeave",f="onMouseEnter",a="mouse",(e==="pointerout"||e==="pointerover")&&(x=su,y="onPointerLeave",f="onPointerEnter",a="pointer"),R=w==null?p:Gt(w),d=S==null?p:Gt(S),p=new x(y,a+"leave",w,n,g),p.target=R,p.relatedTarget=d,y=null,jt(g)===c&&(x=new x(f,a+"enter",S,n,g),x.target=d,x.relatedTarget=R,y=x),R=y,w&&S)t:{for(x=w,f=S,a=0,d=x;d;d=Wt(d))a++;for(d=0,y=f;y;y=Wt(y))d++;for(;0<a-d;)x=Wt(x),a--;for(;0<d-a;)f=Wt(f),d--;for(;a--;){if(x===f||f!==null&&x===f.alternate)break t;x=Wt(x),f=Wt(f)}x=null}else x=null;w!==null&&wu(m,p,w,x,!1),S!==null&&R!==null&&wu(m,R,S,x,!0)}}e:{if(p=c?Gt(c):window,w=p.nodeName&&p.nodeName.toLowerCase(),w==="select"||w==="input"&&p.type==="file")var C=Kf;else if(fu(p))if(Zs)C=Zf;else{C=Xf;var P=Yf}else(w=p.nodeName)&&w.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=Gf);if(C&&(C=C(e,c))){Gs(m,C,n,g);break e}P&&P(e,p,c),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&so(p,"number",p.value)}switch(P=c?Gt(c):window,e){case"focusin":(fu(P)||P.contentEditable==="true")&&(Yt=P,So=c,On=null);break;case"focusout":On=So=Yt=null;break;case"mousedown":xo=!0;break;case"contextmenu":case"mouseup":case"dragend":xo=!1,gu(m,n,g);break;case"selectionchange":if(bf)break;case"keydown":case"keyup":gu(m,n,g)}var z;if(pi)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Kt?Ys(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Ks&&n.locale!=="ko"&&(Kt||N!=="onCompositionStart"?N==="onCompositionEnd"&&Kt&&(z=Qs()):(ut=g,ci="value"in ut?ut.value:ut.textContent,Kt=!0)),P=Yr(c,N),0<P.length&&(N=new uu(N,e,null,n,g),m.push({event:N,listeners:P}),z?N.data=z:(z=Xs(n),z!==null&&(N.data=z)))),(z=$f?Af(e,n):Wf(e,n))&&(c=Yr(c,"onBeforeInput"),0<c.length&&(g=new uu("onBeforeInput","beforeinput",null,n,g),m.push({event:g,listeners:c}),g.data=z))}ia(m,t)})}function Zn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Wn(e,n),o!=null&&r.unshift(Zn(e,o,l)),o=Wn(e,t),o!=null&&r.push(Zn(e,o,l))),e=e.return}return r}function Wt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wu(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var u=n,s=u.alternate,c=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&c!==null&&(u=c,l?(s=Wn(n,o),s!=null&&i.unshift(Zn(n,s,u))):l||(s=Wn(n,o),s!=null&&i.push(Zn(n,s,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var rd=/\r\n?/g,ld=/\u0000|\uFFFD/g;function ku(e){return(typeof e=="string"?e:""+e).replace(rd,` `).replace(ld,"")}function Sr(e,t,n){if(t=ku(t),ku(e)!==t&&n)throw Error(k(425))}function Xr(){}var Co=null,Eo=null;function _o(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 Po=typeof setTimeout=="function"?setTimeout:void 0,od=typeof clearTimeout=="function"?clearTimeout:void 0,Su=typeof Promise=="function"?Promise:void 0,id=typeof queueMicrotask=="function"?queueMicrotask:typeof Su<"u"?function(e){return Su.resolve(null).then(e).catch(ud)}:Po;function ud(e){setTimeout(function(){throw e})}function Wl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Kn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Kn(t)}function dt(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 xu(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 yn=Math.random().toString(36).slice(2),Ae="__reactFiber$"+yn,Jn="__reactProps$"+yn,qe="__reactContainer$"+yn,No="__reactEvents$"+yn,sd="__reactListeners$"+yn,ad="__reactHandles$"+yn;function jt(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qe]||n[Ae]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xu(e);e!==null;){if(n=e[Ae])return n;e=xu(e)}return t}e=n,n=e.parentNode}return null}function ur(e){return e=e[Ae]||e[qe],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function ml(e){return e[Jn]||null}var zo=[],Zt=-1;function kt(e){return{current:e}}function B(e){0>Zt||(e.current=zo[Zt],zo[Zt]=null,Zt--)}function D(e,t){Zt++,zo[Zt]=e.current,e.current=t}var yt={},se=kt(yt),ge=kt(!1),Ft=yt;function cn(e,t){var n=e.type.contextTypes;if(!n)return yt;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 ve(e){return e=e.childContextTypes,e!=null}function Gr(){B(ge),B(se)}function Cu(e,t,n){if(se.current!==yt)throw Error(k(168));D(se,t),D(ge,n)}function sa(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(k(108,Kc(e)||"Unknown",l));return K({},n,r)}function Zr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yt,Ft=se.current,D(se,e),D(ge,ge.current),!0}function Eu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=sa(e,t,Ft),r.__reactInternalMemoizedMergedChildContext=e,B(ge),B(se),D(se,e)):B(ge),D(ge,n)}var Ye=null,gl=!1,Hl=!1;function aa(e){Ye===null?Ye=[e]:Ye.push(e)}function cd(e){gl=!0,aa(e)}function St(){if(!Hl&&Ye!==null){Hl=!0;var e=0,t=O;try{var n=Ye;for(O=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ye=null,gl=!1}catch(l){throw Ye!==null&&(Ye=Ye.slice(e+1)),Fs(ii,St),l}finally{O=t,Hl=!1}}return null}var Jt=[],qt=0,Jr=null,qr=0,Pe=[],Ne=0,Mt=null,Xe=1,Ge="";function Nt(e,t){Jt[qt++]=qr,Jt[qt++]=Jr,Jr=e,qr=t}function ca(e,t,n){Pe[Ne++]=Xe,Pe[Ne++]=Ge,Pe[Ne++]=Mt,Mt=e;var r=Xe;e=Ge;var l=32-Oe(r)-1;r&=~(1<<l),n+=1;var o=32-Oe(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,Xe=1<<32-Oe(t)+l|n<<l|r,Ge=o+e}else Xe=1<<o|n<<l|r,Ge=e}function mi(e){e.return!==null&&(Nt(e,1),ca(e,1,0))}function gi(e){for(;e===Jr;)Jr=Jt[--qt],Jt[qt]=null,qr=Jt[--qt],Jt[qt]=null;for(;e===Mt;)Mt=Pe[--Ne],Pe[Ne]=null,Ge=Pe[--Ne],Pe[Ne]=null,Xe=Pe[--Ne],Pe[Ne]=null}var xe=null,Se=null,$=!1,Me=null;function fa(e,t){var n=ze(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 _u(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,xe=e,Se=dt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xe=e,Se=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Mt!==null?{id:Xe,overflow:Ge}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xe=e,Se=null,!0):!1;default:return!1}}function jo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ro(e){if($){var t=Se;if(t){var n=t;if(!_u(e,t)){if(jo(e))throw Error(k(418));t=dt(n.nextSibling);var r=xe;t&&_u(e,t)?fa(r,n):(e.flags=e.flags&-4097|2,$=!1,xe=e)}}else{if(jo(e))throw Error(k(418));e.flags=e.flags&-4097|2,$=!1,xe=e}}}function Pu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xe=e}function xr(e){if(e!==xe)return!1;if(!$)return Pu(e),$=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!_o(e.type,e.memoizedProps)),t&&(t=Se)){if(jo(e))throw da(),Error(k(418));for(;t;)fa(e,t),t=dt(t.nextSibling)}if(Pu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Se=dt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Se=null}}else Se=xe?dt(e.stateNode.nextSibling):null;return!0}function da(){for(var e=Se;e;)e=dt(e.nextSibling)}function fn(){Se=xe=null,$=!1}function vi(e){Me===null?Me=[e]:Me.push(e)}var fd=tt.ReactCurrentBatchConfig;function Ie(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var br=kt(null),el=null,bt=null,yi=null;function wi(){yi=bt=el=null}function ki(e){var t=br.current;B(br),e._currentValue=t}function To(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 un(e,t){el=e,yi=bt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function Re(e){var t=e._currentValue;if(yi!==e)if(e={context:e,memoizedValue:t,next:null},bt===null){if(el===null)throw Error(k(308));bt=e,el.dependencies={lanes:0,firstContext:e}}else bt=bt.next=e;return t}var Rt=null;function Si(e){Rt===null?Rt=[e]:Rt.push(e)}function pa(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Si(t)):(n.next=l.next,l.next=n),t.interleaved=n,be(e,r)}function be(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 lt=!1;function xi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ha(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 Ze(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,be(e,n)}return l=r.interleaved,l===null?(t.next=t,Si(r)):(t.next=l.next,l.next=t),r.interleaved=t,be(e,n)}function Ir(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,ui(e,n)}}function Nu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tl(e,t,n,r){var l=e.updateQueue;lt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,i===null?o=c:i.next=c,i=s;var g=e.alternate;g!==null&&(g=g.updateQueue,u=g.lastBaseUpdate,u!==i&&(u===null?g.firstBaseUpdate=c:u.next=c,g.lastBaseUpdate=s))}if(o!==null){var m=l.baseState;i=0,g=c=s=null,u=o;do{var p=u.lane,w=u.eventTime;if((r&p)===p){g!==null&&(g=g.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var S=e,x=u;switch(p=t,w=n,x.tag){case 1:if(S=x.payload,typeof S=="function"){m=S.call(w,m,p);break e}m=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,p=typeof S=="function"?S.call(w,m,p):S,p==null)break e;m=K({},m,p);break e;case 2:lt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[u]:p.push(u))}else w={eventTime:w,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},g===null?(c=g=w,s=m):g=g.next=w,i|=p;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;p=u,u=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(g===null&&(s=m),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=g,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Dt|=i,e.lanes=i,e.memoizedState=m}}function zu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(k(191,l));l.call(r)}}}var ma=new ps.Component().refs;function Lo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vl={isMounted:function(e){return(e=e._reactInternals)?Vt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ce(),l=mt(e),o=Ze(r,l);o.payload=t,n!=null&&(o.callback=n),t=pt(e,o,l),t!==null&&(De(t,e,l,r),Ir(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ce(),l=mt(e),o=Ze(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=pt(e,o,l),t!==null&&(De(t,e,l,r),Ir(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ce(),r=mt(e),l=Ze(n,r);l.tag=2,t!=null&&(l.callback=t),t=pt(e,l,r),t!==null&&(De(t,e,r,n),Ir(t,e,r))}};function ju(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Xn(n,r)||!Xn(l,o):!0}function ga(e,t,n){var r=!1,l=yt,o=t.contextType;return typeof o=="object"&&o!==null?o=Re(o):(l=ve(t)?Ft:se.current,r=t.contextTypes,o=(r=r!=null)?cn(e,l):yt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ru(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&&vl.enqueueReplaceState(t,t.state,null)}function Io(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=ma,xi(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Re(o):(o=ve(t)?Ft:se.current,l.context=cn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Lo(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&vl.enqueueReplaceState(l,l.state,null),tl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function _n(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(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var u=l.refs;u===ma&&(u=l.refs={}),i===null?delete u[o]:u[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function Cr(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Tu(e){var t=e._init;return t(e._payload)}function va(e){function t(f,a){if(e){var d=f.deletions;d===null?(f.deletions=[a],f.flags|=16):d.push(a)}}function n(f,a){if(!e)return null;for(;a!==null;)t(f,a),a=a.sibling;return null}function r(f,a){for(f=new Map;a!==null;)a.key!==null?f.set(a.key,a):f.set(a.index,a),a=a.sibling;return f}function l(f,a){return f=gt(f,a),f.index=0,f.sibling=null,f}function o(f,a,d){return f.index=d,e?(d=f.alternate,d!==null?(d=d.index,d<a?(f.flags|=2,a):d):(f.flags|=2,a)):(f.flags|=1048576,a)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,a,d,y){return a===null||a.tag!==6?(a=Jl(d,f.mode,y),a.return=f,a):(a=l(a,d),a.return=f,a)}function s(f,a,d,y){var C=d.type;return C===Qt?g(f,a,d.props.children,y,d.key):a!==null&&(a.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rt&&Tu(C)===a.type)?(y=l(a,d.props),y.ref=_n(f,a,d),y.return=f,y):(y=Br(d.type,d.key,d.props,null,f.mode,y),y.ref=_n(f,a,d),y.return=f,y)}function c(f,a,d,y){return a===null||a.tag!==4||a.stateNode.containerInfo!==d.containerInfo||a.stateNode.implementation!==d.implementation?(a=ql(d,f.mode,y),a.return=f,a):(a=l(a,d.children||[]),a.return=f,a)}function g(f,a,d,y,C){return a===null||a.tag!==7?(a=It(d,f.mode,y,C),a.return=f,a):(a=l(a,d),a.return=f,a)}function m(f,a,d){if(typeof a=="string"&&a!==""||typeof a=="number")return a=Jl(""+a,f.mode,d),a.return=f,a;if(typeof a=="object"&&a!==null){switch(a.$$typeof){case dr:return d=Br(a.type,a.key,a.props,null,f.mode,d),d.ref=_n(f,null,a),d.return=f,d;case Ht:return a=ql(a,f.mode,d),a.return=f,a;case rt:var y=a._init;return m(f,y(a._payload),d)}if(jn(a)||kn(a))return a=It(a,f.mode,d,null),a.return=f,a;Cr(f,a)}return null}function p(f,a,d,y){var C=a!==null?a.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return C!==null?null:u(f,a,""+d,y);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case dr:return d.key===C?s(f,a,d,y):null;case Ht:return d.key===C?c(f,a,d,y):null;case rt:return C=d._init,p(f,a,C(d._payload),y)}if(jn(d)||kn(d))return C!==null?null:g(f,a,d,y,null);Cr(f,d)}return null}function w(f,a,d,y,C){if(typeof y=="string"&&y!==""||typeof y=="number")return f=f.get(d)||null,u(a,f,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case dr:return f=f.get(y.key===null?d:y.key)||null,s(a,f,y,C);case Ht:return f=f.get(y.key===null?d:y.key)||null,c(a,f,y,C);case rt:var P=y._init;return w(f,a,d,P(y._payload),C)}if(jn(y)||kn(y))return f=f.get(d)||null,g(a,f,y,C,null);Cr(a,y)}return null}function S(f,a,d,y){for(var C=null,P=null,z=a,N=a=0,A=null;z!==null&&N<d.length;N++){z.index>N?(A=z,z=null):A=z.sibling;var L=p(f,z,d[N],y);if(L===null){z===null&&(z=A);break}e&&z&&L.alternate===null&&t(f,z),a=o(L,a,N),P===null?C=L:P.sibling=L,P=L,z=A}if(N===d.length)return n(f,z),$&&Nt(f,N),C;if(z===null){for(;N<d.length;N++)z=m(f,d[N],y),z!==null&&(a=o(z,a,N),P===null?C=z:P.sibling=z,P=z);return $&&Nt(f,N),C}for(z=r(f,z);N<d.length;N++)A=w(z,f,N,d[N],y),A!==null&&(e&&A.alternate!==null&&z.delete(A.key===null?N:A.key),a=o(A,a,N),P===null?C=A:P.sibling=A,P=A);return e&&z.forEach(function(pe){return t(f,pe)}),$&&Nt(f,N),C}function x(f,a,d,y){var C=kn(d);if(typeof C!="function")throw Error(k(150));if(d=C.call(d),d==null)throw Error(k(151));for(var P=C=null,z=a,N=a=0,A=null,L=d.next();z!==null&&!L.done;N++,L=d.next()){z.index>N?(A=z,z=null):A=z.sibling;var pe=p(f,z,L.value,y);if(pe===null){z===null&&(z=A);break}e&&z&&pe.alternate===null&&t(f,z),a=o(pe,a,N),P===null?C=pe:P.sibling=pe,P=pe,z=A}if(L.done)return n(f,z),$&&Nt(f,N),C;if(z===null){for(;!L.done;N++,L=d.next())L=m(f,L.value,y),L!==null&&(a=o(L,a,N),P===null?C=L:P.sibling=L,P=L);return $&&Nt(f,N),C}for(z=r(f,z);!L.done;N++,L=d.next())L=w(z,f,N,L.value,y),L!==null&&(e&&L.alternate!==null&&z.delete(L.key===null?N:L.key),a=o(L,a,N),P===null?C=L:P.sibling=L,P=L);return e&&z.forEach(function(xt){return t(f,xt)}),$&&Nt(f,N),C}function R(f,a,d,y){if(typeof d=="object"&&d!==null&&d.type===Qt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case dr:e:{for(var C=d.key,P=a;P!==null;){if(P.key===C){if(C=d.type,C===Qt){if(P.tag===7){n(f,P.sibling),a=l(P,d.props.children),a.return=f,f=a;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rt&&Tu(C)===P.type){n(f,P.sibling),a=l(P,d.props),a.ref=_n(f,P,d),a.return=f,f=a;break e}n(f,P);break}else t(f,P);P=P.sibling}d.type===Qt?(a=It(d.props.children,f.mode,y,d.key),a.return=f,f=a):(y=Br(d.type,d.key,d.props,null,f.mode,y),y.ref=_n(f,a,d),y.return=f,f=y)}return i(f);case Ht:e:{for(P=d.key;a!==null;){if(a.key===P)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=ql(d,f.mode,y),a.return=f,f=a}return i(f);case rt:return P=d._init,R(f,a,P(d._payload),y)}if(jn(d))return S(f,a,d,y);if(kn(d))return x(f,a,d,y);Cr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,d),a.return=f,f=a):(n(f,a),a=Jl(d,f.mode,y),a.return=f,f=a),i(f)):n(f,a)}return R}var dn=va(!0),ya=va(!1),sr={},He=kt(sr),qn=kt(sr),bn=kt(sr);function Tt(e){if(e===sr)throw Error(k(174));return e}function Ci(e,t){switch(D(bn,t),D(qn,e),D(He,sr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:co(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=co(t,e)}B(He),D(He,t)}function pn(){B(He),B(qn),B(bn)}function wa(e){Tt(bn.current);var t=Tt(He.current),n=co(t,e.type);t!==n&&(D(qn,e),D(He,n))}function Ei(e){qn.current===e&&(B(He),B(qn))}var H=kt(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 Ql=[];function _i(){for(var e=0;e<Ql.length;e++)Ql[e]._workInProgressVersionPrimary=null;Ql.length=0}var Fr=tt.ReactCurrentDispatcher,Kl=tt.ReactCurrentBatchConfig,Ot=0,Q=null,q=null,ee=null,rl=!1,Dn=!1,er=0,dd=0;function oe(){throw Error(k(321))}function Pi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ue(e[n],t[n]))return!1;return!0}function Ni(e,t,n,r,l,o){if(Ot=o,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fr.current=e===null||e.memoizedState===null?gd:vd,e=n(r,l),Dn){o=0;do{if(Dn=!1,er=0,25<=o)throw Error(k(301));o+=1,ee=q=null,t.updateQueue=null,Fr.current=yd,e=n(r,l)}while(Dn)}if(Fr.current=ll,t=q!==null&&q.next!==null,Ot=0,ee=q=Q=null,rl=!1,t)throw Error(k(300));return e}function zi(){var e=er!==0;return er=0,e}function $e(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ee===null?Q.memoizedState=ee=e:ee=ee.next=e,ee}function Te(){if(q===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=q.next;var t=ee===null?Q.memoizedState:ee.next;if(t!==null)ee=t,q=e;else{if(e===null)throw Error(k(310));q=e,e={memoizedState:q.memoizedState,baseState:q.baseState,baseQueue:q.baseQueue,queue:q.queue,next:null},ee===null?Q.memoizedState=ee=e:ee=ee.next=e}return ee}function tr(e,t){return typeof t=="function"?t(e):t}function Yl(e){var t=Te(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=q,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var u=i=null,s=null,c=o;do{var g=c.lane;if((Ot&g)===g)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var m={lane:g,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(u=s=m,i=r):s=s.next=m,Q.lanes|=g,Dt|=g}c=c.next}while(c!==null&&c!==o);s===null?i=r:s.next=u,Ue(r,t.memoizedState)||(me=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,Q.lanes|=o,Dt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Xl(e){var t=Te(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);Ue(o,t.memoizedState)||(me=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ka(){}function Sa(e,t){var n=Q,r=Te(),l=t(),o=!Ue(r.memoizedState,l);if(o&&(r.memoizedState=l,me=!0),r=r.queue,ji(Ea.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ee!==null&&ee.memoizedState.tag&1){if(n.flags|=2048,nr(9,Ca.bind(null,n,r,l,t),void 0,null),te===null)throw Error(k(349));Ot&30||xa(n,t,l)}return l}function xa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ca(e,t,n,r){t.value=n,t.getSnapshot=r,_a(t)&&Pa(e)}function Ea(e,t,n){return n(function(){_a(t)&&Pa(e)})}function _a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ue(e,n)}catch{return!0}}function Pa(e){var t=be(e,1);t!==null&&De(t,e,1,-1)}function Lu(e){var t=$e();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:e},t.queue=e,e=e.dispatch=md.bind(null,Q,e),[t.memoizedState,e]}function nr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.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 Na(){return Te().memoizedState}function Mr(e,t,n,r){var l=$e();Q.flags|=e,l.memoizedState=nr(1|t,n,void 0,r===void 0?null:r)}function yl(e,t,n,r){var l=Te();r=r===void 0?null:r;var o=void 0;if(q!==null){var i=q.memoizedState;if(o=i.destroy,r!==null&&Pi(r,i.deps)){l.memoizedState=nr(t,n,o,r);return}}Q.flags|=e,l.memoizedState=nr(1|t,n,o,r)}function Iu(e,t){return Mr(8390656,8,e,t)}function ji(e,t){return yl(2048,8,e,t)}function za(e,t){return yl(4,2,e,t)}function ja(e,t){return yl(4,4,e,t)}function Ra(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 Ta(e,t,n){return n=n!=null?n.concat([e]):null,yl(4,4,Ra.bind(null,t,e),n)}function Ri(){}function La(e,t){var n=Te();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ia(e,t){var n=Te();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Fa(e,t,n){return Ot&21?(Ue(n,t)||(n=Ds(),Q.lanes|=n,Dt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,me=!0),e.memoizedState=n)}function pd(e,t){var n=O;O=n!==0&&4>n?n:4,e(!0);var r=Kl.transition;Kl.transition={};try{e(!1),t()}finally{O=n,Kl.transition=r}}function Ma(){return Te().memoizedState}function hd(e,t,n){var r=mt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Oa(e))Da(t,n);else if(n=pa(e,t,n,r),n!==null){var l=ce();De(n,e,r,l),Ua(n,t,r)}}function md(e,t,n){var r=mt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oa(e))Da(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,Ue(u,i)){var s=t.interleaved;s===null?(l.next=l,Si(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=pa(e,t,l,r),n!==null&&(l=ce(),De(n,e,r,l),Ua(n,t,r))}}function Oa(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Da(e,t){Dn=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ua(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ui(e,n)}}var ll={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},gd={readContext:Re,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:Iu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,Ra.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=$e();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$e();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=hd.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:Lu,useDebugValue:Ri,useDeferredValue:function(e){return $e().memoizedState=e},useTransition:function(){var e=Lu(!1),t=e[0];return e=pd.bind(null,e[1]),$e().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,l=$e();if($){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),te===null)throw Error(k(349));Ot&30||xa(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Iu(Ea.bind(null,r,o,e),[e]),r.flags|=2048,nr(9,Ca.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$e(),t=te.identifierPrefix;if($){var n=Ge,r=Xe;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=er++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=dd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},vd={readContext:Re,useCallback:La,useContext:Re,useEffect:ji,useImperativeHandle:Ta,useInsertionEffect:za,useLayoutEffect:ja,useMemo:Ia,useReducer:Yl,useRef:Na,useState:function(){return Yl(tr)},useDebugValue:Ri,useDeferredValue:function(e){var t=Te();return Fa(t,q.memoizedState,e)},useTransition:function(){var e=Yl(tr)[0],t=Te().memoizedState;return[e,t]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ma,unstable_isNewReconciler:!1},yd={readContext:Re,useCallback:La,useContext:Re,useEffect:ji,useImperativeHandle:Ta,useInsertionEffect:za,useLayoutEffect:ja,useMemo:Ia,useReducer:Xl,useRef:Na,useState:function(){return Xl(tr)},useDebugValue:Ri,useDeferredValue:function(e){var t=Te();return q===null?t.memoizedState=e:Fa(t,q.memoizedState,e)},useTransition:function(){var e=Xl(tr)[0],t=Te().memoizedState;return[e,t]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ma,unstable_isNewReconciler:!1};function hn(e,t){try{var n="",r=t;do n+=Qc(r),r=r.return;while(r);var l=n}catch(o){l=` Error generating stack: `+o.message+` -`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Gl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wd=typeof WeakMap=="function"?WeakMap:Map;function Ba(e,t,n){n=Ze(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){il||(il=!0,Ho=r),Fo(e,t)},n}function Va(e,t,n){n=Ze(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Fo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Fo(e,t),typeof r!="function"&&(ht===null?ht=new Set([this]):ht.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Fu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wd;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Id.bind(null,e,t,n),t.then(e,e))}function Mu(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 Ou(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=Ze(-1,1),t.tag=2,pt(n,t,1))),n.lanes|=1),e)}var kd=tt.ReactCurrentOwner,me=!1;function ae(e,t,n,r){t.child=e===null?ya(t,null,n,r):dn(t,e.child,n,r)}function Du(e,t,n,r,l){n=n.render;var o=t.ref;return un(t,l),r=Ni(e,t,n,r,o,l),n=zi(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):($&&n&&mi(t),t.flags|=1,ae(e,t,r,l),t.child)}function Uu(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Ui(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$a(e,t,o,r,l)):(e=Br(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Xn,n(i,r)&&e.ref===t.ref)return et(e,t,l)}return t.flags|=1,e=gt(o,r),e.ref=t.ref,e.return=t,t.child=e}function $a(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Xn(o,r)&&e.ref===t.ref)if(me=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(me=!0);else return t.lanes=e.lanes,et(e,t,l)}return Mo(e,t,n,r,l)}function Aa(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},D(tn,ke),ke|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,D(tn,ke),ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,D(tn,ke),ke|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,D(tn,ke),ke|=r;return ae(e,t,l,n),t.child}function Wa(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mo(e,t,n,r,l){var o=ve(n)?Ft:se.current;return o=cn(t,o),un(t,l),n=Ni(e,t,n,r,o,l),r=zi(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):($&&r&&mi(t),t.flags|=1,ae(e,t,n,l),t.child)}function Bu(e,t,n,r,l){if(ve(n)){var o=!0;Zr(t)}else o=!1;if(un(t,l),t.stateNode===null)Or(e,t),ga(t,n,r),Io(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Re(c):(c=ve(n)?Ft:se.current,c=cn(t,c));var g=n.getDerivedStateFromProps,m=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==c)&&Ru(t,i,r,c),lt=!1;var p=t.memoizedState;i.state=p,tl(t,r,i,l),s=t.memoizedState,u!==r||p!==s||ge.current||lt?(typeof g=="function"&&(Lo(t,n,g,r),s=t.memoizedState),(u=lt||ju(t,n,u,r,p,s,c))?(m||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=s),i.props=r,i.state=s,i.context=c,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ha(e,t),u=t.memoizedProps,c=t.type===t.elementType?u:Ie(t.type,u),i.props=c,m=t.pendingProps,p=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Re(s):(s=ve(n)?Ft:se.current,s=cn(t,s));var w=n.getDerivedStateFromProps;(g=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==m||p!==s)&&Ru(t,i,r,s),lt=!1,p=t.memoizedState,i.state=p,tl(t,r,i,l);var S=t.memoizedState;u!==m||p!==S||ge.current||lt?(typeof w=="function"&&(Lo(t,n,w,r),S=t.memoizedState),(c=lt||ju(t,n,c,r,p,S,s)||!1)?(g||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=s,r=c):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Oo(e,t,n,r,o,l)}function Oo(e,t,n,r,l,o){Wa(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Eu(t,n,!1),et(e,t,o);r=t.stateNode,kd.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=dn(t,e.child,null,o),t.child=dn(t,null,u,o)):ae(e,t,u,o),t.memoizedState=r.state,l&&Eu(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?Cu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cu(e,t.context,!1),Ci(e,t.containerInfo)}function Vu(e,t,n,r,l){return fn(),vi(l),t.flags|=256,ae(e,t,n,r),t.child}var Do={dehydrated:null,treeContext:null,retryLane:0};function Uo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qa(e,t,n){var r=t.pendingProps,l=H.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),D(H,l&1),e===null)return Ro(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,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Sl(i,r,0,null),e=It(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Uo(n),t.memoizedState=Do,e):Ti(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return Sd(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=gt(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=gt(u,o):(o=It(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Uo(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Do,r}return o=e.child,e=o.sibling,r=gt(o,{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 Ti(e,t){return t=Sl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Er(e,t,n,r){return r!==null&&vi(r),dn(t,e.child,null,n),e=Ti(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sd(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Gl(Error(k(422))),Er(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Sl({mode:"visible",children:r.children},l,0,null),o=It(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&dn(t,e.child,null,i),t.child.memoizedState=Uo(i),t.memoizedState=Do,o);if(!(t.mode&1))return Er(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(k(419)),r=Gl(o,r,void 0),Er(e,t,i,r)}if(u=(i&e.childLanes)!==0,me||u){if(r=te,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,be(e,l),De(r,e,l,-1))}return Di(),r=Gl(Error(k(421))),Er(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Fd.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Se=dt(l.nextSibling),xe=t,$=!0,Me=null,e!==null&&(Pe[Ne++]=Xe,Pe[Ne++]=Ge,Pe[Ne++]=Mt,Xe=e.id,Ge=e.overflow,Mt=t),t=Ti(t,r.children),t.flags|=4096,t)}function $u(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),To(e.return,t,n)}function Zl(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Ka(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ae(e,t,r.children,n),r=H.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&&$u(e,n,t);else if(e.tag===19)$u(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(D(H,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&nl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Zl(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&nl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Zl(t,!0,n,null,o);break;case"together":Zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Or(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=gt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xd(e,t,n){switch(t.tag){case 3:Ha(t),fn();break;case 5:wa(t);break;case 1:ve(t.type)&&Zr(t);break;case 4:Ci(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;D(br,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(D(H,H.current&1),t.flags|=128,null):n&t.child.childLanes?Qa(e,t,n):(D(H,H.current&1),e=et(e,t,n),e!==null?e.sibling:null);D(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ka(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),D(H,H.current),r)break;return null;case 22:case 23:return t.lanes=0,Aa(e,t,n)}return et(e,t,n)}var Ya,Bo,Xa,Ga;Ya=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}};Bo=function(){};Xa=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Tt(He.current);var o=null;switch(n){case"input":l=io(e,l),r=io(e,r),o=[];break;case"select":l=K({},l,{value:void 0}),r=K({},r,{value:void 0}),o=[];break;case"textarea":l=ao(e,l),r=ao(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xr)}fo(n,r);var i;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var u=l[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&($n.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var s=r[c];if(u=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(s!=null||u!=null))if(c==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&($n.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&U("scroll",e),o||u===s||(o=[])):(o=o||[]).push(c,s))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Ga=function(e,t,n,r){n!==r&&(t.flags|=4)};function Pn(e,t){if(!$)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 ie(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Cd(e,t,n){var r=t.pendingProps;switch(gi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(t),null;case 1:return ve(t.type)&&Gr(),ie(t),null;case 3:return r=t.stateNode,pn(),B(ge),B(se),_i(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Me!==null&&(Yo(Me),Me=null))),Bo(e,t),ie(t),null;case 5:Ei(t);var l=Tt(bn.current);if(n=t.type,e!==null&&t.stateNode!=null)Xa(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ie(t),null}if(e=Tt(He.current),xr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ae]=t,r[Jn]=o,e=(t.mode&1)!==0,n){case"dialog":U("cancel",r),U("close",r);break;case"iframe":case"object":case"embed":U("load",r);break;case"video":case"audio":for(l=0;l<Tn.length;l++)U(Tn[l],r);break;case"source":U("error",r);break;case"img":case"image":case"link":U("error",r),U("load",r);break;case"details":U("toggle",r);break;case"input":Zi(r,o),U("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},U("invalid",r);break;case"textarea":qi(r,o),U("invalid",r)}fo(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&Sr(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&Sr(r.textContent,u,e),l=["children",""+u]):$n.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&U("scroll",r)}switch(n){case"input":pr(r),Ji(r,o,!0);break;case"textarea":pr(r),bi(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Xr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xs(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[Ae]=t,e[Jn]=r,Ya(e,t,!1,!1),t.stateNode=e;e:{switch(i=po(n,r),n){case"dialog":U("cancel",e),U("close",e),l=r;break;case"iframe":case"object":case"embed":U("load",e),l=r;break;case"video":case"audio":for(l=0;l<Tn.length;l++)U(Tn[l],e);l=r;break;case"source":U("error",e),l=r;break;case"img":case"image":case"link":U("error",e),U("load",e),l=r;break;case"details":U("toggle",e),l=r;break;case"input":Zi(e,r),l=io(e,r),U("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=K({},r,{value:void 0}),U("invalid",e);break;case"textarea":qi(e,r),l=ao(e,r),U("invalid",e);break;default:l=r}fo(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var s=u[o];o==="style"?_s(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Cs(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&An(e,s):typeof s=="number"&&An(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&($n.hasOwnProperty(o)?s!=null&&o==="onScroll"&&U("scroll",e):s!=null&&ti(e,o,s,i))}switch(n){case"input":pr(e),Ji(e,r,!1);break;case"textarea":pr(e),bi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?nn(e,!!r.multiple,o,!1):r.defaultValue!=null&&nn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Xr)}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 ie(t),null;case 6:if(e&&t.stateNode!=null)Ga(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=Tt(bn.current),Tt(He.current),xr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(o=r.nodeValue!==n)&&(e=xe,e!==null))switch(e.tag){case 3:Sr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Sr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return ie(t),null;case 13:if(B(H),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($&&Se!==null&&t.mode&1&&!(t.flags&128))da(),fn(),t.flags|=98560,o=!1;else if(o=xr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[Ae]=t}else fn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ie(t),o=!1}else Me!==null&&(Yo(Me),Me=null),o=!0;if(!o)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||H.current&1?b===0&&(b=3):Di())),t.updateQueue!==null&&(t.flags|=4),ie(t),null);case 4:return pn(),Bo(e,t),e===null&&Gn(t.stateNode.containerInfo),ie(t),null;case 10:return ki(t.type._context),ie(t),null;case 17:return ve(t.type)&&Gr(),ie(t),null;case 19:if(B(H),o=t.memoizedState,o===null)return ie(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Pn(o,!1);else{if(b!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=nl(e),i!==null){for(t.flags|=128,Pn(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return D(H,H.current&1|2),t.child}e=e.sibling}o.tail!==null&&G()>mn&&(t.flags|=128,r=!0,Pn(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),Pn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return ie(t),null}else 2*G()-o.renderingStartTime>mn&&n!==1073741824&&(t.flags|=128,r=!0,Pn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=G(),t.sibling=null,n=H.current,D(H,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return Oi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Ed(e,t){switch(gi(t),t.tag){case 1:return ve(t.type)&&Gr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pn(),B(ge),B(se),_i(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ei(t),null;case 13:if(B(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(H),null;case 4:return pn(),null;case 10:return ki(t.type._context),null;case 22:case 23:return Oi(),null;case 24:return null;default:return null}}var _r=!1,ue=!1,_d=typeof WeakSet=="function"?WeakSet:Set,_=null;function en(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function Vo(e,t,n){try{n()}catch(r){Y(e,t,r)}}var Au=!1;function Pd(e,t){if(Co=Qr,e=bs(),hi(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,c=0,g=0,m=e,p=null;t:for(;;){for(var w;m!==n||l!==0&&m.nodeType!==3||(u=i+l),m!==o||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(w=m.firstChild)!==null;)p=m,m=w;for(;;){if(m===e)break t;if(p===n&&++c===l&&(u=i),p===o&&++g===r&&(s=i),(w=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=w}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eo={focusedElem:e,selectionRange:n},Qr=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var x=S.memoizedProps,R=S.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ie(t.type,x),R);f.__reactInternalSnapshotBeforeUpdate=a}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(k(163))}}catch(y){Y(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return S=Au,Au=!1,S}function Un(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&&Vo(t,n,o)}l=l.next}while(l!==r)}}function wl(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 $o(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 Za(e){var t=e.alternate;t!==null&&(e.alternate=null,Za(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[Jn],delete t[No],delete t[sd],delete t[ad])),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 Ja(e){return e.tag===5||e.tag===3||e.tag===4}function Wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ja(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 Ao(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=Xr));else if(r!==4&&(e=e.child,e!==null))for(Ao(e,t,n),e=e.sibling;e!==null;)Ao(e,t,n),e=e.sibling}function Wo(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(Wo(e,t,n),e=e.sibling;e!==null;)Wo(e,t,n),e=e.sibling}var ne=null,Fe=!1;function nt(e,t,n){for(n=n.child;n!==null;)qa(e,t,n),n=n.sibling}function qa(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(fl,n)}catch{}switch(n.tag){case 5:ue||en(n,t);case 6:var r=ne,l=Fe;ne=null,nt(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?Wl(e.parentNode,n):e.nodeType===1&&Wl(e,n),Kn(e)):Wl(ne,n.stateNode));break;case 4:r=ne,l=Fe,ne=n.stateNode.containerInfo,Fe=!0,nt(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)&&Vo(n,t,i),l=l.next}while(l!==r)}nt(e,t,n);break;case 1:if(!ue&&(en(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Y(n,t,u)}nt(e,t,n);break;case 21:nt(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,nt(e,t,n),ue=r):nt(e,t,n);break;default:nt(e,t,n)}}function Hu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _d),t.forEach(function(r){var l=Md.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,u=i;e:for(;u!==null;){switch(u.tag){case 5:ne=u.stateNode,Fe=!1;break e;case 3:ne=u.stateNode.containerInfo,Fe=!0;break e;case 4:ne=u.stateNode.containerInfo,Fe=!0;break e}u=u.return}if(ne===null)throw Error(k(160));qa(o,i,l),ne=null,Fe=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(c){Y(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ba(t,e),t=t.sibling}function ba(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Le(t,e),Ve(e),r&4){try{Un(3,e,e.return),wl(3,e)}catch(x){Y(e,e.return,x)}try{Un(5,e,e.return)}catch(x){Y(e,e.return,x)}}break;case 1:Le(t,e),Ve(e),r&512&&n!==null&&en(n,n.return);break;case 5:if(Le(t,e),Ve(e),r&512&&n!==null&&en(n,n.return),e.flags&32){var l=e.stateNode;try{An(l,"")}catch(x){Y(e,e.return,x)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&ks(l,o),po(u,i);var c=po(u,o);for(i=0;i<s.length;i+=2){var g=s[i],m=s[i+1];g==="style"?_s(l,m):g==="dangerouslySetInnerHTML"?Cs(l,m):g==="children"?An(l,m):ti(l,g,m,c)}switch(u){case"input":uo(l,o);break;case"textarea":Ss(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var w=o.value;w!=null?nn(l,!!o.multiple,w,!1):p!==!!o.multiple&&(o.defaultValue!=null?nn(l,!!o.multiple,o.defaultValue,!0):nn(l,!!o.multiple,o.multiple?[]:"",!1))}l[Jn]=o}catch(x){Y(e,e.return,x)}}break;case 6:if(Le(t,e),Ve(e),r&4){if(e.stateNode===null)throw Error(k(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(x){Y(e,e.return,x)}}break;case 3:if(Le(t,e),Ve(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kn(t.containerInfo)}catch(x){Y(e,e.return,x)}break;case 4:Le(t,e),Ve(e);break;case 13:Le(t,e),Ve(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Fi=G())),r&4&&Hu(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(c=ue)||g,Le(t,e),ue=c):Le(t,e),Ve(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!g&&e.mode&1)for(_=e,g=e.child;g!==null;){for(m=_=g;_!==null;){switch(p=_,w=p.child,p.tag){case 0:case 11:case 14:case 15:Un(4,p,p.return);break;case 1:en(p,p.return);var S=p.stateNode;if(typeof S.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(x){Y(r,n,x)}}break;case 5:en(p,p.return);break;case 22:if(p.memoizedState!==null){Ku(m);continue}}w!==null?(w.return=p,_=w):Ku(m)}g=g.sibling}e:for(g=null,m=e;;){if(m.tag===5){if(g===null){g=m;try{l=m.stateNode,c?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=m.stateNode,s=m.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=Es("display",i))}catch(x){Y(e,e.return,x)}}}else if(m.tag===6){if(g===null)try{m.stateNode.nodeValue=c?"":m.memoizedProps}catch(x){Y(e,e.return,x)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;g===m&&(g=null),m=m.return}g===m&&(g=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Le(t,e),Ve(e),r&4&&Hu(e);break;case 21:break;default:Le(t,e),Ve(e)}}function Ve(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ja(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(An(l,""),r.flags&=-33);var o=Wu(e);Wo(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,u=Wu(e);Ao(e,u,i);break;default:throw Error(k(161))}}catch(s){Y(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nd(e,t,n){_=e,ec(e)}function ec(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var l=_,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||_r;if(!i){var u=l.alternate,s=u!==null&&u.memoizedState!==null||ue;u=_r;var c=ue;if(_r=i,(ue=s)&&!c)for(_=l;_!==null;)i=_,s=i.child,i.tag===22&&i.memoizedState!==null?Yu(l):s!==null?(s.return=i,_=s):Yu(l);for(;o!==null;)_=o,ec(o),o=o.sibling;_=l,_r=u,ue=c}Qu(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,_=o):Qu(e)}}function Qu(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:ue||wl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ie(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&zu(t,o,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}zu(t,i,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var g=c.memoizedState;if(g!==null){var m=g.dehydrated;m!==null&&Kn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}ue||t.flags&512&&$o(t)}catch(p){Y(t,t.return,p)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function Ku(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 Yu(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wl(4,t)}catch(s){Y(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){Y(t,l,s)}}var o=t.return;try{$o(t)}catch(s){Y(t,o,s)}break;case 5:var i=t.return;try{$o(t)}catch(s){Y(t,i,s)}}}catch(s){Y(t,t.return,s)}if(t===e){_=null;break}var u=t.sibling;if(u!==null){u.return=t.return,_=u;break}_=t.return}}var zd=Math.ceil,ol=tt.ReactCurrentDispatcher,Li=tt.ReactCurrentOwner,je=tt.ReactCurrentBatchConfig,M=0,te=null,J=null,re=0,ke=0,tn=kt(0),b=0,rr=null,Dt=0,kl=0,Ii=0,Bn=null,he=null,Fi=0,mn=1/0,Ke=null,il=!1,Ho=null,ht=null,Pr=!1,st=null,ul=0,Vn=0,Qo=null,Dr=-1,Ur=0;function ce(){return M&6?G():Dr!==-1?Dr:Dr=G()}function mt(e){return e.mode&1?M&2&&re!==0?re&-re:fd.transition!==null?(Ur===0&&(Ur=Ds()),Ur):(e=O,e!==0||(e=window.event,e=e===void 0?16:Hs(e.type)),e):1}function De(e,t,n,r){if(50<Vn)throw Vn=0,Qo=null,Error(k(185));or(e,n,r),(!(M&2)||e!==te)&&(e===te&&(!(M&2)&&(kl|=n),b===4&&it(e,re)),ye(e,r),n===1&&M===0&&!(t.mode&1)&&(mn=G()+500,gl&&St()))}function ye(e,t){var n=e.callbackNode;ff(e,t);var r=Hr(e,e===te?re:0);if(r===0)n!==null&&nu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nu(n),t===1)e.tag===0?cd(Xu.bind(null,e)):aa(Xu.bind(null,e)),id(function(){!(M&6)&&St()}),n=null;else{switch(Us(r)){case 1:n=ii;break;case 4:n=Ms;break;case 16:n=Wr;break;case 536870912:n=Os;break;default:n=Wr}n=sc(n,tc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tc(e,t){if(Dr=-1,Ur=0,M&6)throw Error(k(327));var n=e.callbackNode;if(sn()&&e.callbackNode!==n)return null;var r=Hr(e,e===te?re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=sl(e,r);else{t=r;var l=M;M|=2;var o=rc();(te!==e||re!==t)&&(Ke=null,mn=G()+500,Lt(e,t));do try{Td();break}catch(u){nc(e,u)}while(!0);wi(),ol.current=o,M=l,J!==null?t=0:(te=null,re=0,t=b)}if(t!==0){if(t===2&&(l=yo(e),l!==0&&(r=l,t=Ko(e,l))),t===1)throw n=rr,Lt(e,0),it(e,r),ye(e,G()),n;if(t===6)it(e,r);else{if(l=e.current.alternate,!(r&30)&&!jd(l)&&(t=sl(e,r),t===2&&(o=yo(e),o!==0&&(r=o,t=Ko(e,o))),t===1))throw n=rr,Lt(e,0),it(e,r),ye(e,G()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:zt(e,he,Ke);break;case 3:if(it(e,r),(r&130023424)===r&&(t=Fi+500-G(),10<t)){if(Hr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ce(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Po(zt.bind(null,e,he,Ke),t);break}zt(e,he,Ke);break;case 4:if(it(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-Oe(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zd(r/1960))-r,10<r){e.timeoutHandle=Po(zt.bind(null,e,he,Ke),r);break}zt(e,he,Ke);break;case 5:zt(e,he,Ke);break;default:throw Error(k(329))}}}return ye(e,G()),e.callbackNode===n?tc.bind(null,e):null}function Ko(e,t){var n=Bn;return e.current.memoizedState.isDehydrated&&(Lt(e,t).flags|=256),e=sl(e,t),e!==2&&(t=he,he=n,t!==null&&Yo(t)),e}function Yo(e){he===null?he=e:he.push.apply(he,e)}function jd(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 l=n[r],o=l.getSnapshot;l=l.value;try{if(!Ue(o(),l))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 it(e,t){for(t&=~Ii,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Oe(t),r=1<<n;e[n]=-1,t&=~r}}function Xu(e){if(M&6)throw Error(k(327));sn();var t=Hr(e,0);if(!(t&1))return ye(e,G()),null;var n=sl(e,t);if(e.tag!==0&&n===2){var r=yo(e);r!==0&&(t=r,n=Ko(e,r))}if(n===1)throw n=rr,Lt(e,0),it(e,t),ye(e,G()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zt(e,he,Ke),ye(e,G()),null}function Mi(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(mn=G()+500,gl&&St())}}function Ut(e){st!==null&&st.tag===0&&!(M&6)&&sn();var t=M;M|=1;var n=je.transition,r=O;try{if(je.transition=null,O=1,e)return e()}finally{O=r,je.transition=n,M=t,!(M&6)&&St()}}function Oi(){ke=tn.current,B(tn)}function Lt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,od(n)),J!==null)for(n=J.return;n!==null;){var r=n;switch(gi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gr();break;case 3:pn(),B(ge),B(se),_i();break;case 5:Ei(r);break;case 4:pn();break;case 13:B(H);break;case 19:B(H);break;case 10:ki(r.type._context);break;case 22:case 23:Oi()}n=n.return}if(te=e,J=e=gt(e.current,null),re=ke=t,b=0,rr=null,Ii=kl=Dt=0,he=Bn=null,Rt!==null){for(t=0;t<Rt.length;t++)if(n=Rt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}Rt=null}return e}function nc(e,t){do{var n=J;try{if(wi(),Fr.current=ll,rl){for(var r=Q.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}rl=!1}if(Ot=0,ee=q=Q=null,Dn=!1,er=0,Li.current=null,n===null||n.return===null){b=1,rr=t,J=null;break}e:{var o=e,i=n.return,u=n,s=t;if(t=re,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,g=u,m=g.tag;if(!(g.mode&1)&&(m===0||m===11||m===15)){var p=g.alternate;p?(g.updateQueue=p.updateQueue,g.memoizedState=p.memoizedState,g.lanes=p.lanes):(g.updateQueue=null,g.memoizedState=null)}var w=Mu(i);if(w!==null){w.flags&=-257,Ou(w,i,u,o,t),w.mode&1&&Fu(o,c,t),t=w,s=c;var S=t.updateQueue;if(S===null){var x=new Set;x.add(s),t.updateQueue=x}else S.add(s);break e}else{if(!(t&1)){Fu(o,c,t),Di();break e}s=Error(k(426))}}else if($&&u.mode&1){var R=Mu(i);if(R!==null){!(R.flags&65536)&&(R.flags|=256),Ou(R,i,u,o,t),vi(hn(s,u));break e}}o=s=hn(s,u),b!==4&&(b=2),Bn===null?Bn=[o]:Bn.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Ba(o,s,t);Nu(o,f);break e;case 1:u=s;var a=o.type,d=o.stateNode;if(!(o.flags&128)&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ht===null||!ht.has(d)))){o.flags|=65536,t&=-t,o.lanes|=t;var y=Va(o,u,t);Nu(o,y);break e}}o=o.return}while(o!==null)}oc(n)}catch(C){t=C,J===n&&n!==null&&(J=n=n.return);continue}break}while(!0)}function rc(){var e=ol.current;return ol.current=ll,e===null?ll:e}function Di(){(b===0||b===3||b===2)&&(b=4),te===null||!(Dt&268435455)&&!(kl&268435455)||it(te,re)}function sl(e,t){var n=M;M|=2;var r=rc();(te!==e||re!==t)&&(Ke=null,Lt(e,t));do try{Rd();break}catch(l){nc(e,l)}while(!0);if(wi(),M=n,ol.current=r,J!==null)throw Error(k(261));return te=null,re=0,b}function Rd(){for(;J!==null;)lc(J)}function Td(){for(;J!==null&&!tf();)lc(J)}function lc(e){var t=uc(e.alternate,e,ke);e.memoizedProps=e.pendingProps,t===null?oc(e):J=t,Li.current=null}function oc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ed(n,t),n!==null){n.flags&=32767,J=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{b=6,J=null;return}}else if(n=Cd(n,t,ke),n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);b===0&&(b=5)}function zt(e,t,n){var r=O,l=je.transition;try{je.transition=null,O=1,Ld(e,t,n,r)}finally{je.transition=l,O=r}return null}function Ld(e,t,n,r){do sn();while(st!==null);if(M&6)throw Error(k(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(df(e,o),e===te&&(J=te=null,re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pr||(Pr=!0,sc(Wr,function(){return sn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=je.transition,je.transition=null;var i=O;O=1;var u=M;M|=4,Li.current=null,Pd(e,n),ba(n,e),qf(Eo),Qr=!!Co,Eo=Co=null,e.current=n,Nd(n),nf(),M=u,O=i,je.transition=o}else e.current=n;if(Pr&&(Pr=!1,st=e,ul=l),o=e.pendingLanes,o===0&&(ht=null),of(n.stateNode),ye(e,G()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(il)throw il=!1,e=Ho,Ho=null,e;return ul&1&&e.tag!==0&&sn(),o=e.pendingLanes,o&1?e===Qo?Vn++:(Vn=0,Qo=e):Vn=0,St(),null}function sn(){if(st!==null){var e=Us(ul),t=je.transition,n=O;try{if(je.transition=null,O=16>e?16:e,st===null)var r=!1;else{if(e=st,st=null,ul=0,M&6)throw Error(k(331));var l=M;for(M|=4,_=e.current;_!==null;){var o=_,i=o.child;if(_.flags&16){var u=o.deletions;if(u!==null){for(var s=0;s<u.length;s++){var c=u[s];for(_=c;_!==null;){var g=_;switch(g.tag){case 0:case 11:case 15:Un(8,g,o)}var m=g.child;if(m!==null)m.return=g,_=m;else for(;_!==null;){g=_;var p=g.sibling,w=g.return;if(Za(g),g===c){_=null;break}if(p!==null){p.return=w,_=p;break}_=w}}}var S=o.alternate;if(S!==null){var x=S.child;if(x!==null){S.child=null;do{var R=x.sibling;x.sibling=null,x=R}while(x!==null)}}_=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,_=i;else e:for(;_!==null;){if(o=_,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Un(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,_=f;break e}_=o.return}}var a=e.current;for(_=a;_!==null;){i=_;var d=i.child;if(i.subtreeFlags&2064&&d!==null)d.return=i,_=d;else e:for(i=a;_!==null;){if(u=_,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:wl(9,u)}}catch(C){Y(u,u.return,C)}if(u===i){_=null;break e}var y=u.sibling;if(y!==null){y.return=u.return,_=y;break e}_=u.return}}if(M=l,St(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(fl,e)}catch{}r=!0}return r}finally{O=n,je.transition=t}}return!1}function Gu(e,t,n){t=hn(n,t),t=Ba(e,t,1),e=pt(e,t,1),t=ce(),e!==null&&(or(e,1,t),ye(e,t))}function Y(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ht===null||!ht.has(r))){e=hn(n,e),e=Va(t,e,1),t=pt(t,e,1),e=ce(),t!==null&&(or(t,1,e),ye(t,e));break}}t=t.return}}function Id(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ce(),e.pingedLanes|=e.suspendedLanes&n,te===e&&(re&n)===n&&(b===4||b===3&&(re&130023424)===re&&500>G()-Fi?Lt(e,0):Ii|=n),ye(e,t)}function ic(e,t){t===0&&(e.mode&1?(t=gr,gr<<=1,!(gr&130023424)&&(gr=4194304)):t=1);var n=ce();e=be(e,t),e!==null&&(or(e,t,n),ye(e,n))}function Fd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ic(e,n)}function Md(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(k(314))}r!==null&&r.delete(t),ic(e,n)}var uc;uc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ge.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,xd(e,t,n);me=!!(e.flags&131072)}else me=!1,$&&t.flags&1048576&&ca(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Or(e,t),e=t.pendingProps;var l=cn(t,se.current);un(t,n),l=Ni(null,t,r,e,l,n);var o=zi();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,ve(r)?(o=!0,Zr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,xi(t),l.updater=vl,t.stateNode=l,l._reactInternals=t,Io(t,r,e,n),t=Oo(null,t,r,!0,o,n)):(t.tag=0,$&&o&&mi(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Or(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Dd(r),e=Ie(r,e),l){case 0:t=Mo(null,t,r,e,n);break e;case 1:t=Bu(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Uu(null,t,r,Ie(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Mo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Bu(e,t,r,l,n);case 3:e:{if(Ha(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,ha(e,t),tl(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=hn(Error(k(423)),t),t=Vu(e,t,r,n,l);break e}else if(r!==l){l=hn(Error(k(424)),t),t=Vu(e,t,r,n,l);break e}else for(Se=dt(t.stateNode.containerInfo.firstChild),xe=t,$=!0,Me=null,n=ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fn(),r===l){t=et(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return wa(t),e===null&&Ro(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,_o(r,l)?i=null:o!==null&&_o(r,o)&&(t.flags|=32),Wa(e,t),ae(e,t,i,n),t.child;case 6:return e===null&&Ro(t),null;case 13:return Qa(e,t,n);case 4:return Ci(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dn(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),Du(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,D(br,r._currentValue),r._currentValue=i,o!==null)if(Ue(o.value,i)){if(o.children===l.children&&!ge.current){t=et(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=Ze(-1,n&-n),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var g=c.pending;g===null?s.next=s:(s.next=g.next,g.next=s),c.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),To(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(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),To(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,un(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),Uu(e,t,r,l,n);case 15:return $a(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Or(e,t),t.tag=1,ve(r)?(e=!0,Zr(t)):e=!1,un(t,n),ga(t,r,l),Io(t,r,l,n),Oo(null,t,r,!0,e,n);case 19:return Ka(e,t,n);case 22:return Aa(e,t,n)}throw Error(k(156,t.tag))};function sc(e,t){return Fs(e,t)}function Od(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(e,t,n,r){return new Od(e,t,n,r)}function Ui(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dd(e){if(typeof e=="function")return Ui(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ri)return 11;if(e===li)return 14}return 2}function gt(e,t){var n=e.alternate;return n===null?(n=ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Br(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ui(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Qt:return It(n.children,l,o,t);case ni:i=8,l|=8;break;case no:return e=ze(12,n,t,l|2),e.elementType=no,e.lanes=o,e;case ro:return e=ze(13,n,t,l),e.elementType=ro,e.lanes=o,e;case lo:return e=ze(19,n,t,l),e.elementType=lo,e.lanes=o,e;case vs:return Sl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ms:i=10;break e;case gs:i=9;break e;case ri:i=11;break e;case li:i=14;break e;case rt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=ze(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function It(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function Sl(e,t,n,r){return e=ze(22,e,r,t),e.elementType=vs,e.lanes=n,e.stateNode={isHidden:!1},e}function Jl(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function ql(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ud(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=Ll(0),this.expirationTimes=Ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ll(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bi(e,t,n,r,l,o,i,u,s){return e=new Ud(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xi(o),e}function Bd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ht,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ac(e){if(!e)return yt;e=e._reactInternals;e:{if(Vt(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(ve(n))return sa(e,n,t)}return t}function cc(e,t,n,r,l,o,i,u,s){return e=Bi(n,r,!0,e,l,o,i,u,s),e.context=ac(null),n=e.current,r=ce(),l=mt(n),o=Ze(r,l),o.callback=t??null,pt(n,o,l),e.current.lanes=l,or(e,l,r),ye(e,r),e}function xl(e,t,n,r){var l=t.current,o=ce(),i=mt(l);return n=ac(n),t.context===null?t.context=n:t.pendingContext=n,t=Ze(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pt(l,t,i),e!==null&&(De(e,l,i,o),Ir(e,l,i)),i}function al(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 Zu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vi(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}function Vd(){return null}var fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function $i(e){this._internalRoot=e}Cl.prototype.render=$i.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));xl(e,t,null,null)};Cl.prototype.unmount=$i.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ut(function(){xl(null,e,null,null)}),t[qe]=null}};function Cl(e){this._internalRoot=e}Cl.prototype.unstable_scheduleHydration=function(e){if(e){var t=$s();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ot.length&&t!==0&&t<ot[n].priority;n++);ot.splice(n,0,e),n===0&&Ws(e)}};function Ai(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function El(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ju(){}function $d(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var c=al(i);o.call(c)}}var i=cc(t,r,e,0,null,!1,!1,"",Ju);return e._reactRootContainer=i,e[qe]=i.current,Gn(e.nodeType===8?e.parentNode:e),Ut(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var c=al(s);u.call(c)}}var s=Bi(e,0,!1,null,null,!1,!1,"",Ju);return e._reactRootContainer=s,e[qe]=s.current,Gn(e.nodeType===8?e.parentNode:e),Ut(function(){xl(t,s,n,r)}),s}function _l(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var u=l;l=function(){var s=al(i);u.call(s)}}xl(t,i,e,l)}else i=$d(n,t,e,l,r);return al(i)}Bs=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rn(t.pendingLanes);n!==0&&(ui(t,n|1),ye(t,G()),!(M&6)&&(mn=G()+500,St()))}break;case 13:Ut(function(){var r=be(e,1);if(r!==null){var l=ce();De(r,e,1,l)}}),Vi(e,1)}};si=function(e){if(e.tag===13){var t=be(e,134217728);if(t!==null){var n=ce();De(t,e,134217728,n)}Vi(e,134217728)}};Vs=function(e){if(e.tag===13){var t=mt(e),n=be(e,t);if(n!==null){var r=ce();De(n,e,t,r)}Vi(e,t)}};$s=function(){return O};As=function(e,t){var n=O;try{return O=e,t()}finally{O=n}};mo=function(e,t,n){switch(t){case"input":if(uo(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 l=ml(r);if(!l)throw Error(k(90));ws(r),uo(r,l)}}}break;case"textarea":Ss(e,n);break;case"select":t=n.value,t!=null&&nn(e,!!n.multiple,t,!1)}};zs=Mi;js=Ut;var Ad={usingClientEntryPoint:!1,Events:[ur,Gt,ml,Ps,Ns,Mi]},Nn={findFiberByHostInstance:jt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Wd={bundleType:Nn.bundleType,version:Nn.version,rendererPackageName:Nn.rendererPackageName,rendererConfig:Nn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ls(e),e===null?null:e.stateNode},findFiberByHostInstance:Nn.findFiberByHostInstance||Vd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nr.isDisabled&&Nr.supportsFiber)try{fl=Nr.inject(Wd),We=Nr}catch{}}Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ad;Ee.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ai(t))throw Error(k(200));return Bd(e,t,null,n)};Ee.createRoot=function(e,t){if(!Ai(e))throw Error(k(299));var n=!1,r="",l=fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Bi(e,1,!1,null,null,n,!1,r,l),e[qe]=t.current,Gn(e.nodeType===8?e.parentNode:e),new $i(t)};Ee.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=Ls(t),e=e===null?null:e.stateNode,e};Ee.flushSync=function(e){return Ut(e)};Ee.hydrate=function(e,t,n){if(!El(t))throw Error(k(200));return _l(null,e,t,!0,n)};Ee.hydrateRoot=function(e,t,n){if(!Ai(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=fc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=cc(t,null,e,1,n??null,l,!1,o,i),e[qe]=t.current,Gn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Cl(t)};Ee.render=function(e,t,n){if(!El(t))throw Error(k(200));return _l(null,e,t,!1,n)};Ee.unmountComponentAtNode=function(e){if(!El(e))throw Error(k(40));return e._reactRootContainer?(Ut(function(){_l(null,null,e,!1,function(){e._reactRootContainer=null,e[qe]=null})}),!0):!1};Ee.unstable_batchedUpdates=Mi;Ee.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!El(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return _l(e,t,n,!1,r)};Ee.version="18.2.0-next-9e3b772b8-20220608";function dc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dc)}catch(e){console.error(e)}}dc(),cs.exports=Ee;var Hd=cs.exports,pc,qu=Hd;pc=qu.createRoot,qu.hydrateRoot;const Qd=(e,t,n)=>{const r=(n.fontSize+t*n.maxSizeMultiplier/255).toFixed(2);e.font=`${r}px ${n.selectedFont}`;const o=e.measureText(n.textInput).width,i=parseInt(r),u=n.x-o/2,s=n.y+i/2;e.strokeStyle=n.borderColor,e.lineWidth=n.borderThickness,e.strokeText(n.textInput,u,s),e.fillStyle=n.fontColor,e.fillText(n.textInput,u,s)},hc=(e,t,n,r,l=!1)=>({x:Math.random()*e.width,y:l?Math.random()*e.height:e.height+Math.random()*100,size:t,xDelta:(Math.random()-.5)*2,ySpeed:n,color:r}),Kd=(e,t)=>{const n=[];for(let r=0;r<t.numberOfCircles;r++)n.push(hc(e,t.circleSize,t.circleSpeed,t.circleColor,!0));return n},Yd=(e,t,n,r,l)=>{const o=r.reduce((u,s)=>u+s)/r.length;let i=4;l.zigzagSmoothness>5?i+=o/512*l.beatSpeedUp:i+=o/255*l.beatSpeedUp,t.forEach(u=>{u.y-=i,u.x+=u.xDelta*l.zigzagSmoothness,e.beginPath(),e.arc(u.x,u.y,l.circleSize,0,Math.PI*2),e.fillStyle=l.circleColor,e.fill(),Math.random()<.1&&(u.xDelta=-u.xDelta),u.y+u.size<0&&Object.assign(u,hc(e.canvas,u.size,u.ySpeed,u.color,!1))})},Xo=new Image;let mc=!1;const Xd=e=>{Xo.src=e,Xo.onload=()=>{mc=!0}},Gd=(e,t,n,r,l,o)=>{if(!mc)return;r=1,l.getByteFrequencyData(o);const i=o.reduce((c,g)=>c+g)/o.length,u=1+i/512*r,s=Math.min(i/512*(r/10),Math.PI/4);e.save(),e.translate(t.width/2,t.height/2),e.rotate(s),e.scale(u,u),e.drawImage(Xo,-t.width/2,-t.height/2,t.width,t.height),e.restore()},Zd=(e,t,n,r,l)=>{const{shakeIntensity:o,backgroundImage:i}=l;n.getByteFrequencyData(r);const u=r.reduce((c,g)=>c+g)/r.length,s=o*(u/255);Gd(e,t,i,s,n,r)};async function Jd(e){const t=Object.assign({},e);if(console.log("type: ",t.background.backgroundImage,typeof t.background.backgroundImage,t.background.backgroundImage instanceof Blob),t.background.backgroundImage!==""){const r=await fetch(t.background.backgroundImage).then(o=>o.blob()),l=await bd(r);t.background.backgroundImage=l}const n=JSON.stringify(t);localStorage.setItem("save",n)}function qd(){const e=localStorage.getItem("save"),t=JSON.parse(e||"{}");if(typeof t.background.backgroundImage=="string"&&t.background.backgroundImage!==""){const n=ep(t.background.backgroundImage),r=URL.createObjectURL(n);t.background.backgroundImage=r}return t}function bd(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=n,r.readAsDataURL(e)})}function ep(e){const t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);const l=new Uint8Array(r);return new Blob([l],{type:n})}const tp=""+new URL("volume-dlmpgZt1.svg",import.meta.url).href,np=({audioRef:e})=>{var m;const[t,n]=I.useState(!1),[r,l]=I.useState(0),[o,i]=I.useState(1),u=()=>{e.current&&(t?e.current.pause():e.current.play(),n(!t))},s=p=>{const w=parseInt(p.target.value);e.current.currentTime=w,l(w)},c=p=>{const w=parseFloat(p.target.value);e.current.volume=w,i(w)};I.useEffect(()=>{const p=setInterval(()=>{e.current&&t&&l(e.current.currentTime)},1e3);return()=>clearInterval(p)},[t,e]);const g=p=>{const w=Math.floor(p/60),S=Math.floor(p%60);return`${w}:${S<10?"0":""}${S}`};return h.jsxs("div",{className:"audio-controls",children:[h.jsx("button",{onClick:u,children:t?"Pause":"Play"}),h.jsxs("div",{className:"time-slider",children:[h.jsx("span",{className:"current-time",children:g(r)}),h.jsx("input",{type:"range",style:{width:"100%"},min:"0",max:((m=e.current)==null?void 0:m.duration)||100,value:r,onChange:s})]}),h.jsx("img",{src:tp,alt:"Description of SVG",width:25,height:25})," ",h.jsx("input",{type:"range",min:"0",max:"1",step:"0.01",value:o,onChange:c})]})},bl=""+new URL("music-1upaPx3E.mp3",import.meta.url).href;function bu(e){return e*(1024*1024)}function eo(e,t){const r=e*1024*1024*t/8,l=r/1024**3;return l>=1?`${l.toFixed(2)} GB`:`${(r/1048576).toFixed(2)} MB`}const rp=({audioRef:e,canvasRef:t,settings:n})=>{const[r,l]=I.useState(!1),[o,i]=I.useState(0),[u,s]=I.useState(0),c=I.useRef(null),g=I.useRef([]),m=I.useRef(null);I.useEffect(()=>{g.current=[],i(0),s(0)},[r]);const p=()=>{if(e.current&&t.current){const R=e.current.captureStream(60),f=t.current.captureStream(60),a=new MediaStream([...f.getTracks(),...R.getTracks()]),d=n.current.bitRateInMb||4;c.current=new MediaRecorder(a,{mimeType:"video/webm; codecs=vp9",videoBitsPerSecond:bu(d),bitsPerSecond:bu(d)}),g.current=[],i(0),c.current.ondataavailable=y=>{y.data.size>0&&(g.current.push(y.data),i(C=>C+y.data.size))},c.current.start(1e3),l(!0),m.current=setInterval(()=>{e.current&&e.current.duration&&s(e.current.currentTime/e.current.duration*100)},1e3),e.current.onended=()=>{c.current&&c.current.state==="recording"&&w()},e.current.play()}},w=()=>{c.current&&(c.current.stop(),clearInterval(m.current),l(!1),S())},S=()=>{const R=new Blob(g.current,{type:"video/webm"}),f=URL.createObjectURL(R),a=document.createElement("a");a.href=f,a.download="recording.webm",document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(f)},100)};I.useEffect(()=>{!r&&g.current.length>0&&S()},[r]);const x=R=>R>=1e6?`${(R/1e6).toFixed(2)} MB`:R>=1e3?`${(R/1e3).toFixed(2)} KB`:`${R} bytes`;return h.jsxs("div",{className:"recorder-controls",children:[h.jsx("button",{onClick:r?w:p,children:r?"Stop Recording":"Start Recording"}),r&&h.jsxs(h.Fragment,{children:[h.jsxs("p",{children:["Current File Size: ",x(o)]}),h.jsxs("p",{children:["Audio Progress: ",u.toFixed(2),"%"]})]})]})},lp=(e,t,n,r)=>{const l=r.circle.imageX,o=r.circle.imageY;let i=r.circle.baseRadius;for(let u=0;u<t;u++){const s=n[u];r.circle.image?(e.save(),e.beginPath(),e.arc(l,o,i,0,Math.PI*2),e.closePath(),e.clip(),e.drawImage(r.circle.image,l-i,o-i,i*2,i*2),e.restore()):(e.fillStyle=r.circle.color,e.beginPath(),e.arc(l,o,i,0,Math.PI*2),e.fill());const c=Math.PI*2/t,g=s*r.bars.lengthMultiplier;e.fillStyle=r.bars.color(u),e.save(),e.translate(l,o),e.rotate(u*c),e.fillRect(0,i,c*r.bars.widthMultiplier,g),e.restore(),i+=s/r.circle.growthFactor}},op=(e,t,n,r)=>{const l=r.numBars??n.length;r.useFullWidth&&(r.barWidth=(e.canvas.width-r.spacing*(l+1))/l);const o=r.xPos!==void 0?e.canvas.width*(r.xPos/100):r.spacing,i=r.yPos!==void 0?e.canvas.height*(r.yPos/100):e.canvas.height,u=l*r.barWidth+(l-1)*r.spacing,s=o-u/2;for(let c=0;c<l;c++){const g=r.beatMultiplier*(r.numBars?n[c*Math.floor(t/l)]:n[c]);e.fillStyle=r.barColor;const m=s+c*(r.barWidth+r.spacing);switch(r.barStyle){case"top":e.fillRect(m,i-g,r.barWidth,g);break;case"bottom":e.fillRect(m,i,r.barWidth,g);break;case"both":default:e.fillRect(m,i-g/2,r.barWidth,g);break}}},ip=()=>{var _t,Wi;const[e,t]=I.useState(null),[n,r]=I.useState(!1),l=I.useRef(null),o=I.useRef(new Audio),i=I.useRef(null),u=I.useRef(null),s=I.useRef(null),c=I.useRef(null),g={"420p":{width:640,height:420},HD:{width:1280,height:720},FullHD:{width:1920,height:1080},"2K":{width:2560,height:1440}},m=I.useRef({simpleBar:!0,circleBar:!1,backgroundCircles:!0,text:!0}),p=I.useRef({maxSizeMultiplier:55,smoothness:100,borderColor:"#000000",borderThickness:1,fontSize:20,fontColor:"#000000",textInput:"Sample Text",selectedFont:"Arial",x:g.FullHD.width/2,y:g.FullHD.height/4}),w=I.useRef({circleSize:10,circleSpeed:1,circleColor:"#d3d3d3",numberOfCircles:5,beatSpeedUp:12,zigzagSmoothness:1}),S=I.useRef({barStyle:"top",spacing:11,barLength:1,barWidth:22,beatMultiplier:2,barColor:"white",numBars:11,useFullWidth:!0,xPos:50,yPos:100}),x=I.useRef({backgroundColor:"#f59292",backgroundImage:"",shakeIntensity:0}),R=I.useRef({bitRateInMb:6}),f=I.useRef({circle:{baseRadius:22,growthFactor:222,color:"#006400",imageX:g.FullHD.width/2,imageY:g.FullHD.height/2},bars:{widthMultiplier:155,lengthMultiplier:2,color:v=>`rgb(${v*2}, ${200-v*2}, ${50+v*2})`}}),a=v=>{const{name:V,value:Z}=v.target,[we,Pt]=V.split(".");f.current[we][Pt]=isNaN(Z)?Z:Number(Z)},[d,y]=I.useState("color"),C=v=>{y(v.target.value)},[P,z]=I.useState({text:!1,font:!1,circle:!1,background:!1,render:!1,musicVisualization:!1,simpleBar:!1}),N=v=>{z(V=>({...V,[v]:!V[v]}))},A=v=>{const V=v.target.files;V&&V[0]&&new FontFace("CustomFont",`url(${URL.createObjectURL(V[0])})`).load().then(we=>{document.fonts.add(we),p.current.selectedFont="CustomFont"}).catch(we=>console.error("Error loading font:",we))},L=v=>{p.current.selectedFont=v.target.value},pe=async()=>{try{const V=await(await fetch(bl)).blob();return new File([V],"defaultMusic.mp3",{type:"audio/mpeg"})}catch(v){return console.error("Error fetching default audio file:",v),null}},xt=async v=>{const V=v.target.files;if(V){const Z=URL.createObjectURL(V[0]);o.current.src=Z,t(V[0])}else{console.log("set file");const Z=await pe();o.current.src=bl,t(null),t(Z)}setTimeout(()=>{console.log(R.current.bitRateInMb,o.current.duration),X(eo(R.current.bitRateInMb,o.current.duration))},222)},Ct=()=>{Jd({text:p.current,background:x.current,circle:w.current})},ar=()=>{const v=qd();w.current=v.circle,x.current=v.background,p.current=v.text},Pl=async()=>{if(!e){console.log("set file");const v=await pe();o.current.src=bl,t(null),t(v)}if(!i.current){i.current=new AudioContext;const v=i.current.createMediaElementSource(o.current);u.current=i.current.createAnalyser(),v.connect(u.current),u.current.connect(i.current.destination)}o.current.playbackRate=1,o.current.play().then(()=>{if(r(!0),u.current){u.current.fftSize=256;const v=u.current.frequencyBinCount;s.current=new Uint8Array(v),wn()}}).catch(v=>console.error("Error playing audio:",v))};let $t=[];l.current&&($t=Kd(l.current,w.current));const wn=()=>{if(!l.current||!l.current||!u.current||!s.current)return;const v=l.current.getContext("2d");if(!v)return;const V=()=>{x.current.backgroundImage!==null&&x.current.backgroundImage!==""?Zd(v,l.current,u.current,s.current,x.current):(v.clearRect(0,0,l.current.width,l.current.height),v.fillStyle=x.current.backgroundColor,v.fillRect(0,0,l.current.width,l.current.height)),m.current.backgroundCircles&&Yd(v,$t,u.current,s.current,w.current);const Z=u.current.frequencyBinCount,we=s.current;u.current.getByteFrequencyData(we);const Pt=we.reduce((cr,gc)=>cr+gc)/we.length;m.current.simpleBar&&op(v,Z,we,S.current),m.current.circleBar&&lp(v,Z,we,f.current),m.current.text&&Qd(v,Pt,p.current),c.current=requestAnimationFrame(V)};V()},E=v=>{if(!v.target.files){console.warn("no file selected");return}const V=v.target.files[0],Z=URL.createObjectURL(V);Xd(Z),x.current.backgroundImage=Z};I.useEffect(()=>()=>{c.current&&cancelAnimationFrame(c.current),i.current&&i.current.close()},[]);const[j,T]=I.useState("FullHD"),[W,X]=I.useState("");I.useEffect(()=>{const v=l.current;if(v&&g[j]){const{width:V,height:Z}=g[j];v.width=V,v.height=Z}},[j]);const At=v=>{if(!v.target.files){console.warn("no file selected");return}const V=v.target.files[0];if(V){const Z=new FileReader;Z.onload=we=>{var cr;const Pt=new Image;Pt.onload=()=>{f.current.circle.image=Pt},Pt.src=(cr=we.target)==null?void 0:cr.result},Z.readAsDataURL(V)}},Qe=v=>{T(v.target.value)},Et=((_t=l.current)==null?void 0:_t.width)||0,Be=((Wi=l.current)==null?void 0:Wi.height)||0;return h.jsxs("div",{className:"container",children:[h.jsxs("div",{style:{textAlign:"right",margin:"10px"},children:[h.jsx("button",{onClick:Ct,children:"Save"}),h.jsx("button",{onClick:ar,style:{margin:"5px"},children:"Load"})]}),h.jsxs("div",{className:"control-group",children:["Audio file: ",h.jsx("input",{type:"file",onChange:xt,accept:"audio/*"}),h.jsx("div",{className:"container",children:h.jsx(np,{audioRef:o})}),h.jsx("button",{onClick:Pl,children:"Start & visualize"})]}),h.jsx("div",{className:"group-header",onClick:()=>N("render"),children:"Render / Export"}),P.render&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Canvas Resolution:",h.jsx("select",{value:j,onChange:Qe,children:Object.keys(g).map(v=>h.jsx("option",{value:v,children:v},v))})]}),h.jsxs("label",{children:["Bitrate:",h.jsx("input",{type:"number",defaultValue:"6",onChange:v=>{R.current.bitRateInMb=parseFloat(v.target.value),console.log(eo(R.current.bitRateInMb,o.current.duration)),X(eo(R.current.bitRateInMb,o.current.duration))}}),"MB"]}),h.jsx("hr",{}),"Estimated video file size is: ",W,h.jsx("label",{children:e&&h.jsx(rp,{audioRef:o,settings:R,canvasRef:l},e.name)})]}),h.jsx("div",{className:"group-header",onClick:()=>N("text"),children:"Text Settings"}),P.text&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Text:",h.jsx("input",{type:"text",defaultValue:"Sample Text",onChange:v=>p.current.textInput=v.target.value})]}),h.jsxs("label",{children:["Text X Coordinate:",h.jsx("input",{type:"range",name:"text.x",min:"0",max:Et,defaultValue:"0",onChange:v=>p.current.x=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Text Y Coordinate:",h.jsx("input",{type:"range",name:"text.y",min:"0",max:Be,defaultValue:"0",onChange:v=>p.current.y=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Max Size Multiplier:",h.jsx("input",{type:"number",defaultValue:"55",onChange:v=>p.current.maxSizeMultiplier=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["Border Color:",h.jsx("input",{type:"color",defaultValue:"#000000",onChange:v=>p.current.borderColor=v.target.value})]}),h.jsxs("label",{children:["Border Thickness:",h.jsx("input",{type:"number",defaultValue:"1",onChange:v=>p.current.borderThickness=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Font Size:",h.jsx("input",{type:"number",defaultValue:"20",onChange:v=>p.current.fontSize=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Font Color:",h.jsx("input",{type:"color",defaultValue:"#000000",onChange:v=>p.current.fontColor=v.target.value})]}),h.jsx("div",{className:"group-header",onClick:()=>N("font"),children:"Font Settings"}),P.font&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Font:",h.jsx("select",{onChange:L,children:["Arial","Verdana","Times New Roman","Georgia","Courier New"].map(v=>h.jsx("option",{value:v,children:v},v))})]}),h.jsxs("label",{children:["or upload a font file:",h.jsx("input",{type:"file",onChange:A,accept:".ttf, .otf"})]})]})]}),h.jsx("div",{className:"group-header",onClick:()=>N("musicVisualization"),children:"Circle with bars Settings"}),P.musicVisualization&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Circle Base Radius:",h.jsx("input",{type:"number",name:"circle.baseRadius",defaultValue:f.current.circle.baseRadius,onChange:a})]}),h.jsxs("label",{children:["Circle Growth Factor:",h.jsx("input",{type:"number",name:"circle.growthFactor",defaultValue:f.current.circle.growthFactor,onChange:a})]}),h.jsxs("label",{children:["Circle Color:",h.jsx("input",{type:"color",name:"circle.color",defaultValue:f.current.circle.color,onChange:a})]}),h.jsxs("label",{children:["Circle Image:",h.jsx("input",{type:"file",onChange:At,accept:"image/*"})]}),h.jsxs("label",{children:["X Coordinate:",h.jsx("input",{type:"range",name:"circle.imageX",min:"0",max:Et,defaultValue:Et/2,onChange:a})]}),h.jsxs("label",{children:["Y Coordinate:",h.jsx("input",{type:"range",name:"circle.imageY",min:"0",max:Be,defaultValue:f.current.circle.imageY,onChange:a})]}),h.jsxs("label",{children:["Bars Width Multiplier:",h.jsx("input",{type:"number",name:"bars.widthMultiplier",defaultValue:f.current.bars.widthMultiplier,onChange:a})]}),h.jsxs("label",{children:["Bars Length Multiplier:",h.jsx("input",{type:"number",name:"bars.lengthMultiplier",defaultValue:f.current.bars.lengthMultiplier,onChange:a})]})]}),h.jsx("div",{className:"group-header",onClick:()=>N("circle"),children:"Circle Settings"}),P.circle&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Number of Circles:",h.jsx("input",{type:"number",defaultValue:"11",onChange:v=>{w.current.numberOfCircles=parseInt(v.target.value)}})]}),h.jsxs("label",{children:["Circle Size:",h.jsx("input",{type:"number",defaultValue:"12",onChange:v=>w.current.circleSize=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["beat speed up factor:",h.jsx("input",{type:"number",defaultValue:"12",onChange:v=>w.current.beatSpeedUp=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["Circle Speed:",h.jsx("input",{type:"number",defaultValue:"11",onChange:v=>w.current.circleSpeed=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["Circle Color:",h.jsx("input",{type:"color",defaultValue:"Red",onChange:v=>w.current.circleColor=v.target.value})]})]}),h.jsx("div",{className:"group-header",onClick:()=>N("simpleBar"),children:"Simple Bar Settings"}),P.simpleBar&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Bar Style:",h.jsxs("select",{defaultValue:"bottom",onChange:v=>S.current.barStyle=v.target.value,children:[h.jsx("option",{value:"top",children:"Top"}),h.jsx("option",{value:"bottom",children:"Bottom"}),h.jsx("option",{value:"both",children:"Both"})]})]}),h.jsxs("label",{children:["Spacing:",h.jsx("input",{type:"number",defaultValue:"11",onChange:v=>S.current.spacing=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Bar Width:",h.jsx("input",{type:"number",defaultValue:"22",onChange:v=>S.current.barWidth=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Beat Multiplier:",h.jsx("input",{type:"number",defaultValue:"2",onChange:v=>S.current.beatMultiplier=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["Bar Color:",h.jsx("input",{type:"color",defaultValue:"#ffffff",onChange:v=>S.current.barColor=v.target.value})]}),h.jsxs("label",{children:["Number of Bars:",h.jsx("input",{type:"number",defaultValue:"11",onChange:v=>S.current.numBars=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Use Full Width:",h.jsx("input",{type:"checkbox",defaultChecked:!0,onChange:v=>S.current.useFullWidth=v.target.checked})]}),h.jsxs("label",{children:["X Position (%):",h.jsx("input",{type:"range",min:"0",max:"100",defaultValue:"50",onChange:v=>S.current.xPos=parseInt(v.target.value)}),S.current.xPos,"%"]}),h.jsxs("label",{children:["Y Position (%):",h.jsx("input",{type:"range",min:"0",max:"100",defaultValue:"50",onChange:v=>S.current.yPos=parseInt(v.target.value)}),S.current.yPos,"%"]})]}),h.jsx("div",{className:"group-header",onClick:()=>N("background"),children:"Background settings"}),P.background&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Type:",h.jsxs("select",{value:d,onChange:C,children:[h.jsx("option",{value:"color",children:"Color"}),h.jsx("option",{value:"image",children:"Image"})]})]}),d==="color"&&h.jsxs("label",{children:["Color:",h.jsx("input",{type:"color",value:x.current.backgroundColor,onChange:v=>x.current.backgroundColor=v.target.value})]}),d==="image"&&h.jsxs("label",{children:["Image:",h.jsx("input",{type:"file",onChange:E,accept:"image/*"})]})]}),h.jsxs("div",{className:"visuals-settings",children:[h.jsxs("label",{children:["Enable Simple Bar:",h.jsx("input",{type:"checkbox",defaultChecked:m.current.simpleBar,onChange:v=>m.current.simpleBar=v.target.checked})]}),h.jsxs("label",{children:["Enable Circle Bar:",h.jsx("input",{type:"checkbox",defaultChecked:m.current.circleBar,onChange:v=>m.current.circleBar=v.target.checked})]}),h.jsxs("label",{children:["Enable Background Circles:",h.jsx("input",{type:"checkbox",defaultChecked:m.current.backgroundCircles,onChange:v=>m.current.backgroundCircles=v.target.checked})]}),h.jsxs("label",{children:["Enable Text:",h.jsx("input",{type:"checkbox",defaultChecked:m.current.text,onChange:v=>m.current.text=v.target.checked})]})]}),h.jsx("canvas",{ref:l,style:{width:"80%",height:"auto"},width:"1920",height:"1080"}),h.jsx("audio",{ref:o,crossOrigin:"anonymous"})]})},up=document.getElementById("root"),sp=pc(up);sp.render(h.jsx(Ic.StrictMode,{children:h.jsx(ip,{})})); +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Gl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wd=typeof WeakMap=="function"?WeakMap:Map;function Ba(e,t,n){n=Ze(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){il||(il=!0,Ho=r),Fo(e,t)},n}function Va(e,t,n){n=Ze(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Fo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Fo(e,t),typeof r!="function"&&(ht===null?ht=new Set([this]):ht.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Fu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wd;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Id.bind(null,e,t,n),t.then(e,e))}function Mu(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 Ou(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=Ze(-1,1),t.tag=2,pt(n,t,1))),n.lanes|=1),e)}var kd=tt.ReactCurrentOwner,me=!1;function ae(e,t,n,r){t.child=e===null?ya(t,null,n,r):dn(t,e.child,n,r)}function Du(e,t,n,r,l){n=n.render;var o=t.ref;return un(t,l),r=Ni(e,t,n,r,o,l),n=zi(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):($&&n&&mi(t),t.flags|=1,ae(e,t,r,l),t.child)}function Uu(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Ui(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$a(e,t,o,r,l)):(e=Br(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Xn,n(i,r)&&e.ref===t.ref)return et(e,t,l)}return t.flags|=1,e=gt(o,r),e.ref=t.ref,e.return=t,t.child=e}function $a(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Xn(o,r)&&e.ref===t.ref)if(me=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(me=!0);else return t.lanes=e.lanes,et(e,t,l)}return Mo(e,t,n,r,l)}function Aa(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},D(tn,ke),ke|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,D(tn,ke),ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,D(tn,ke),ke|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,D(tn,ke),ke|=r;return ae(e,t,l,n),t.child}function Wa(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mo(e,t,n,r,l){var o=ve(n)?Ft:se.current;return o=cn(t,o),un(t,l),n=Ni(e,t,n,r,o,l),r=zi(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,et(e,t,l)):($&&r&&mi(t),t.flags|=1,ae(e,t,n,l),t.child)}function Bu(e,t,n,r,l){if(ve(n)){var o=!0;Zr(t)}else o=!1;if(un(t,l),t.stateNode===null)Or(e,t),ga(t,n,r),Io(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Re(c):(c=ve(n)?Ft:se.current,c=cn(t,c));var g=n.getDerivedStateFromProps,m=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==c)&&Ru(t,i,r,c),lt=!1;var p=t.memoizedState;i.state=p,tl(t,r,i,l),s=t.memoizedState,u!==r||p!==s||ge.current||lt?(typeof g=="function"&&(Lo(t,n,g,r),s=t.memoizedState),(u=lt||ju(t,n,u,r,p,s,c))?(m||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=s),i.props=r,i.state=s,i.context=c,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ha(e,t),u=t.memoizedProps,c=t.type===t.elementType?u:Ie(t.type,u),i.props=c,m=t.pendingProps,p=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Re(s):(s=ve(n)?Ft:se.current,s=cn(t,s));var w=n.getDerivedStateFromProps;(g=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==m||p!==s)&&Ru(t,i,r,s),lt=!1,p=t.memoizedState,i.state=p,tl(t,r,i,l);var S=t.memoizedState;u!==m||p!==S||ge.current||lt?(typeof w=="function"&&(Lo(t,n,w,r),S=t.memoizedState),(c=lt||ju(t,n,c,r,p,S,s)||!1)?(g||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=s,r=c):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Oo(e,t,n,r,o,l)}function Oo(e,t,n,r,l,o){Wa(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Eu(t,n,!1),et(e,t,o);r=t.stateNode,kd.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=dn(t,e.child,null,o),t.child=dn(t,null,u,o)):ae(e,t,u,o),t.memoizedState=r.state,l&&Eu(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?Cu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cu(e,t.context,!1),Ci(e,t.containerInfo)}function Vu(e,t,n,r,l){return fn(),vi(l),t.flags|=256,ae(e,t,n,r),t.child}var Do={dehydrated:null,treeContext:null,retryLane:0};function Uo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qa(e,t,n){var r=t.pendingProps,l=H.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),D(H,l&1),e===null)return Ro(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,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Sl(i,r,0,null),e=It(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Uo(n),t.memoizedState=Do,e):Ti(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return Sd(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=gt(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=gt(u,o):(o=It(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Uo(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Do,r}return o=e.child,e=o.sibling,r=gt(o,{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 Ti(e,t){return t=Sl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Er(e,t,n,r){return r!==null&&vi(r),dn(t,e.child,null,n),e=Ti(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sd(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Gl(Error(k(422))),Er(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Sl({mode:"visible",children:r.children},l,0,null),o=It(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&dn(t,e.child,null,i),t.child.memoizedState=Uo(i),t.memoizedState=Do,o);if(!(t.mode&1))return Er(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(k(419)),r=Gl(o,r,void 0),Er(e,t,i,r)}if(u=(i&e.childLanes)!==0,me||u){if(r=te,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,be(e,l),De(r,e,l,-1))}return Di(),r=Gl(Error(k(421))),Er(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Fd.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Se=dt(l.nextSibling),xe=t,$=!0,Me=null,e!==null&&(Pe[Ne++]=Xe,Pe[Ne++]=Ge,Pe[Ne++]=Mt,Xe=e.id,Ge=e.overflow,Mt=t),t=Ti(t,r.children),t.flags|=4096,t)}function $u(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),To(e.return,t,n)}function Zl(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Ka(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ae(e,t,r.children,n),r=H.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&&$u(e,n,t);else if(e.tag===19)$u(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(D(H,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&nl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Zl(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&nl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Zl(t,!0,n,null,o);break;case"together":Zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Or(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=gt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xd(e,t,n){switch(t.tag){case 3:Ha(t),fn();break;case 5:wa(t);break;case 1:ve(t.type)&&Zr(t);break;case 4:Ci(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;D(br,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(D(H,H.current&1),t.flags|=128,null):n&t.child.childLanes?Qa(e,t,n):(D(H,H.current&1),e=et(e,t,n),e!==null?e.sibling:null);D(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ka(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),D(H,H.current),r)break;return null;case 22:case 23:return t.lanes=0,Aa(e,t,n)}return et(e,t,n)}var Ya,Bo,Xa,Ga;Ya=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}};Bo=function(){};Xa=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Tt(He.current);var o=null;switch(n){case"input":l=io(e,l),r=io(e,r),o=[];break;case"select":l=K({},l,{value:void 0}),r=K({},r,{value:void 0}),o=[];break;case"textarea":l=ao(e,l),r=ao(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xr)}fo(n,r);var i;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var u=l[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&($n.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var s=r[c];if(u=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(s!=null||u!=null))if(c==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&($n.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&U("scroll",e),o||u===s||(o=[])):(o=o||[]).push(c,s))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Ga=function(e,t,n,r){n!==r&&(t.flags|=4)};function Pn(e,t){if(!$)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 ie(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Cd(e,t,n){var r=t.pendingProps;switch(gi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(t),null;case 1:return ve(t.type)&&Gr(),ie(t),null;case 3:return r=t.stateNode,pn(),B(ge),B(se),_i(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Me!==null&&(Yo(Me),Me=null))),Bo(e,t),ie(t),null;case 5:Ei(t);var l=Tt(bn.current);if(n=t.type,e!==null&&t.stateNode!=null)Xa(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ie(t),null}if(e=Tt(He.current),xr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ae]=t,r[Jn]=o,e=(t.mode&1)!==0,n){case"dialog":U("cancel",r),U("close",r);break;case"iframe":case"object":case"embed":U("load",r);break;case"video":case"audio":for(l=0;l<Tn.length;l++)U(Tn[l],r);break;case"source":U("error",r);break;case"img":case"image":case"link":U("error",r),U("load",r);break;case"details":U("toggle",r);break;case"input":Zi(r,o),U("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},U("invalid",r);break;case"textarea":qi(r,o),U("invalid",r)}fo(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&Sr(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&Sr(r.textContent,u,e),l=["children",""+u]):$n.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&U("scroll",r)}switch(n){case"input":pr(r),Ji(r,o,!0);break;case"textarea":pr(r),bi(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Xr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xs(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[Ae]=t,e[Jn]=r,Ya(e,t,!1,!1),t.stateNode=e;e:{switch(i=po(n,r),n){case"dialog":U("cancel",e),U("close",e),l=r;break;case"iframe":case"object":case"embed":U("load",e),l=r;break;case"video":case"audio":for(l=0;l<Tn.length;l++)U(Tn[l],e);l=r;break;case"source":U("error",e),l=r;break;case"img":case"image":case"link":U("error",e),U("load",e),l=r;break;case"details":U("toggle",e),l=r;break;case"input":Zi(e,r),l=io(e,r),U("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=K({},r,{value:void 0}),U("invalid",e);break;case"textarea":qi(e,r),l=ao(e,r),U("invalid",e);break;default:l=r}fo(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var s=u[o];o==="style"?_s(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Cs(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&An(e,s):typeof s=="number"&&An(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&($n.hasOwnProperty(o)?s!=null&&o==="onScroll"&&U("scroll",e):s!=null&&ti(e,o,s,i))}switch(n){case"input":pr(e),Ji(e,r,!1);break;case"textarea":pr(e),bi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?nn(e,!!r.multiple,o,!1):r.defaultValue!=null&&nn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Xr)}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 ie(t),null;case 6:if(e&&t.stateNode!=null)Ga(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=Tt(bn.current),Tt(He.current),xr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(o=r.nodeValue!==n)&&(e=xe,e!==null))switch(e.tag){case 3:Sr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Sr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return ie(t),null;case 13:if(B(H),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($&&Se!==null&&t.mode&1&&!(t.flags&128))da(),fn(),t.flags|=98560,o=!1;else if(o=xr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[Ae]=t}else fn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ie(t),o=!1}else Me!==null&&(Yo(Me),Me=null),o=!0;if(!o)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||H.current&1?b===0&&(b=3):Di())),t.updateQueue!==null&&(t.flags|=4),ie(t),null);case 4:return pn(),Bo(e,t),e===null&&Gn(t.stateNode.containerInfo),ie(t),null;case 10:return ki(t.type._context),ie(t),null;case 17:return ve(t.type)&&Gr(),ie(t),null;case 19:if(B(H),o=t.memoizedState,o===null)return ie(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Pn(o,!1);else{if(b!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=nl(e),i!==null){for(t.flags|=128,Pn(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return D(H,H.current&1|2),t.child}e=e.sibling}o.tail!==null&&G()>mn&&(t.flags|=128,r=!0,Pn(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),Pn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return ie(t),null}else 2*G()-o.renderingStartTime>mn&&n!==1073741824&&(t.flags|=128,r=!0,Pn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=G(),t.sibling=null,n=H.current,D(H,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return Oi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Ed(e,t){switch(gi(t),t.tag){case 1:return ve(t.type)&&Gr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pn(),B(ge),B(se),_i(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ei(t),null;case 13:if(B(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(H),null;case 4:return pn(),null;case 10:return ki(t.type._context),null;case 22:case 23:return Oi(),null;case 24:return null;default:return null}}var _r=!1,ue=!1,_d=typeof WeakSet=="function"?WeakSet:Set,_=null;function en(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function Vo(e,t,n){try{n()}catch(r){Y(e,t,r)}}var Au=!1;function Pd(e,t){if(Co=Qr,e=bs(),hi(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,c=0,g=0,m=e,p=null;t:for(;;){for(var w;m!==n||l!==0&&m.nodeType!==3||(u=i+l),m!==o||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(w=m.firstChild)!==null;)p=m,m=w;for(;;){if(m===e)break t;if(p===n&&++c===l&&(u=i),p===o&&++g===r&&(s=i),(w=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=w}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eo={focusedElem:e,selectionRange:n},Qr=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var x=S.memoizedProps,R=S.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ie(t.type,x),R);f.__reactInternalSnapshotBeforeUpdate=a}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(k(163))}}catch(y){Y(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return S=Au,Au=!1,S}function Un(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&&Vo(t,n,o)}l=l.next}while(l!==r)}}function wl(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 $o(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 Za(e){var t=e.alternate;t!==null&&(e.alternate=null,Za(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[Jn],delete t[No],delete t[sd],delete t[ad])),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 Ja(e){return e.tag===5||e.tag===3||e.tag===4}function Wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ja(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 Ao(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=Xr));else if(r!==4&&(e=e.child,e!==null))for(Ao(e,t,n),e=e.sibling;e!==null;)Ao(e,t,n),e=e.sibling}function Wo(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(Wo(e,t,n),e=e.sibling;e!==null;)Wo(e,t,n),e=e.sibling}var ne=null,Fe=!1;function nt(e,t,n){for(n=n.child;n!==null;)qa(e,t,n),n=n.sibling}function qa(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(fl,n)}catch{}switch(n.tag){case 5:ue||en(n,t);case 6:var r=ne,l=Fe;ne=null,nt(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?Wl(e.parentNode,n):e.nodeType===1&&Wl(e,n),Kn(e)):Wl(ne,n.stateNode));break;case 4:r=ne,l=Fe,ne=n.stateNode.containerInfo,Fe=!0,nt(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)&&Vo(n,t,i),l=l.next}while(l!==r)}nt(e,t,n);break;case 1:if(!ue&&(en(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Y(n,t,u)}nt(e,t,n);break;case 21:nt(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,nt(e,t,n),ue=r):nt(e,t,n);break;default:nt(e,t,n)}}function Hu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _d),t.forEach(function(r){var l=Md.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Le(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,u=i;e:for(;u!==null;){switch(u.tag){case 5:ne=u.stateNode,Fe=!1;break e;case 3:ne=u.stateNode.containerInfo,Fe=!0;break e;case 4:ne=u.stateNode.containerInfo,Fe=!0;break e}u=u.return}if(ne===null)throw Error(k(160));qa(o,i,l),ne=null,Fe=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(c){Y(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ba(t,e),t=t.sibling}function ba(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Le(t,e),Ve(e),r&4){try{Un(3,e,e.return),wl(3,e)}catch(x){Y(e,e.return,x)}try{Un(5,e,e.return)}catch(x){Y(e,e.return,x)}}break;case 1:Le(t,e),Ve(e),r&512&&n!==null&&en(n,n.return);break;case 5:if(Le(t,e),Ve(e),r&512&&n!==null&&en(n,n.return),e.flags&32){var l=e.stateNode;try{An(l,"")}catch(x){Y(e,e.return,x)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&ks(l,o),po(u,i);var c=po(u,o);for(i=0;i<s.length;i+=2){var g=s[i],m=s[i+1];g==="style"?_s(l,m):g==="dangerouslySetInnerHTML"?Cs(l,m):g==="children"?An(l,m):ti(l,g,m,c)}switch(u){case"input":uo(l,o);break;case"textarea":Ss(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var w=o.value;w!=null?nn(l,!!o.multiple,w,!1):p!==!!o.multiple&&(o.defaultValue!=null?nn(l,!!o.multiple,o.defaultValue,!0):nn(l,!!o.multiple,o.multiple?[]:"",!1))}l[Jn]=o}catch(x){Y(e,e.return,x)}}break;case 6:if(Le(t,e),Ve(e),r&4){if(e.stateNode===null)throw Error(k(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(x){Y(e,e.return,x)}}break;case 3:if(Le(t,e),Ve(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kn(t.containerInfo)}catch(x){Y(e,e.return,x)}break;case 4:Le(t,e),Ve(e);break;case 13:Le(t,e),Ve(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Fi=G())),r&4&&Hu(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(c=ue)||g,Le(t,e),ue=c):Le(t,e),Ve(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!g&&e.mode&1)for(_=e,g=e.child;g!==null;){for(m=_=g;_!==null;){switch(p=_,w=p.child,p.tag){case 0:case 11:case 14:case 15:Un(4,p,p.return);break;case 1:en(p,p.return);var S=p.stateNode;if(typeof S.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(x){Y(r,n,x)}}break;case 5:en(p,p.return);break;case 22:if(p.memoizedState!==null){Ku(m);continue}}w!==null?(w.return=p,_=w):Ku(m)}g=g.sibling}e:for(g=null,m=e;;){if(m.tag===5){if(g===null){g=m;try{l=m.stateNode,c?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=m.stateNode,s=m.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=Es("display",i))}catch(x){Y(e,e.return,x)}}}else if(m.tag===6){if(g===null)try{m.stateNode.nodeValue=c?"":m.memoizedProps}catch(x){Y(e,e.return,x)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;g===m&&(g=null),m=m.return}g===m&&(g=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Le(t,e),Ve(e),r&4&&Hu(e);break;case 21:break;default:Le(t,e),Ve(e)}}function Ve(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ja(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(An(l,""),r.flags&=-33);var o=Wu(e);Wo(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,u=Wu(e);Ao(e,u,i);break;default:throw Error(k(161))}}catch(s){Y(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nd(e,t,n){_=e,ec(e)}function ec(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var l=_,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||_r;if(!i){var u=l.alternate,s=u!==null&&u.memoizedState!==null||ue;u=_r;var c=ue;if(_r=i,(ue=s)&&!c)for(_=l;_!==null;)i=_,s=i.child,i.tag===22&&i.memoizedState!==null?Yu(l):s!==null?(s.return=i,_=s):Yu(l);for(;o!==null;)_=o,ec(o),o=o.sibling;_=l,_r=u,ue=c}Qu(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,_=o):Qu(e)}}function Qu(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:ue||wl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ie(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&zu(t,o,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}zu(t,i,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var g=c.memoizedState;if(g!==null){var m=g.dehydrated;m!==null&&Kn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}ue||t.flags&512&&$o(t)}catch(p){Y(t,t.return,p)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function Ku(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 Yu(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wl(4,t)}catch(s){Y(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){Y(t,l,s)}}var o=t.return;try{$o(t)}catch(s){Y(t,o,s)}break;case 5:var i=t.return;try{$o(t)}catch(s){Y(t,i,s)}}}catch(s){Y(t,t.return,s)}if(t===e){_=null;break}var u=t.sibling;if(u!==null){u.return=t.return,_=u;break}_=t.return}}var zd=Math.ceil,ol=tt.ReactCurrentDispatcher,Li=tt.ReactCurrentOwner,je=tt.ReactCurrentBatchConfig,M=0,te=null,J=null,re=0,ke=0,tn=kt(0),b=0,rr=null,Dt=0,kl=0,Ii=0,Bn=null,he=null,Fi=0,mn=1/0,Ke=null,il=!1,Ho=null,ht=null,Pr=!1,st=null,ul=0,Vn=0,Qo=null,Dr=-1,Ur=0;function ce(){return M&6?G():Dr!==-1?Dr:Dr=G()}function mt(e){return e.mode&1?M&2&&re!==0?re&-re:fd.transition!==null?(Ur===0&&(Ur=Ds()),Ur):(e=O,e!==0||(e=window.event,e=e===void 0?16:Hs(e.type)),e):1}function De(e,t,n,r){if(50<Vn)throw Vn=0,Qo=null,Error(k(185));or(e,n,r),(!(M&2)||e!==te)&&(e===te&&(!(M&2)&&(kl|=n),b===4&&it(e,re)),ye(e,r),n===1&&M===0&&!(t.mode&1)&&(mn=G()+500,gl&&St()))}function ye(e,t){var n=e.callbackNode;ff(e,t);var r=Hr(e,e===te?re:0);if(r===0)n!==null&&nu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nu(n),t===1)e.tag===0?cd(Xu.bind(null,e)):aa(Xu.bind(null,e)),id(function(){!(M&6)&&St()}),n=null;else{switch(Us(r)){case 1:n=ii;break;case 4:n=Ms;break;case 16:n=Wr;break;case 536870912:n=Os;break;default:n=Wr}n=sc(n,tc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tc(e,t){if(Dr=-1,Ur=0,M&6)throw Error(k(327));var n=e.callbackNode;if(sn()&&e.callbackNode!==n)return null;var r=Hr(e,e===te?re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=sl(e,r);else{t=r;var l=M;M|=2;var o=rc();(te!==e||re!==t)&&(Ke=null,mn=G()+500,Lt(e,t));do try{Td();break}catch(u){nc(e,u)}while(!0);wi(),ol.current=o,M=l,J!==null?t=0:(te=null,re=0,t=b)}if(t!==0){if(t===2&&(l=yo(e),l!==0&&(r=l,t=Ko(e,l))),t===1)throw n=rr,Lt(e,0),it(e,r),ye(e,G()),n;if(t===6)it(e,r);else{if(l=e.current.alternate,!(r&30)&&!jd(l)&&(t=sl(e,r),t===2&&(o=yo(e),o!==0&&(r=o,t=Ko(e,o))),t===1))throw n=rr,Lt(e,0),it(e,r),ye(e,G()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:zt(e,he,Ke);break;case 3:if(it(e,r),(r&130023424)===r&&(t=Fi+500-G(),10<t)){if(Hr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ce(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Po(zt.bind(null,e,he,Ke),t);break}zt(e,he,Ke);break;case 4:if(it(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-Oe(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zd(r/1960))-r,10<r){e.timeoutHandle=Po(zt.bind(null,e,he,Ke),r);break}zt(e,he,Ke);break;case 5:zt(e,he,Ke);break;default:throw Error(k(329))}}}return ye(e,G()),e.callbackNode===n?tc.bind(null,e):null}function Ko(e,t){var n=Bn;return e.current.memoizedState.isDehydrated&&(Lt(e,t).flags|=256),e=sl(e,t),e!==2&&(t=he,he=n,t!==null&&Yo(t)),e}function Yo(e){he===null?he=e:he.push.apply(he,e)}function jd(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 l=n[r],o=l.getSnapshot;l=l.value;try{if(!Ue(o(),l))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 it(e,t){for(t&=~Ii,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Oe(t),r=1<<n;e[n]=-1,t&=~r}}function Xu(e){if(M&6)throw Error(k(327));sn();var t=Hr(e,0);if(!(t&1))return ye(e,G()),null;var n=sl(e,t);if(e.tag!==0&&n===2){var r=yo(e);r!==0&&(t=r,n=Ko(e,r))}if(n===1)throw n=rr,Lt(e,0),it(e,t),ye(e,G()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zt(e,he,Ke),ye(e,G()),null}function Mi(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(mn=G()+500,gl&&St())}}function Ut(e){st!==null&&st.tag===0&&!(M&6)&&sn();var t=M;M|=1;var n=je.transition,r=O;try{if(je.transition=null,O=1,e)return e()}finally{O=r,je.transition=n,M=t,!(M&6)&&St()}}function Oi(){ke=tn.current,B(tn)}function Lt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,od(n)),J!==null)for(n=J.return;n!==null;){var r=n;switch(gi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gr();break;case 3:pn(),B(ge),B(se),_i();break;case 5:Ei(r);break;case 4:pn();break;case 13:B(H);break;case 19:B(H);break;case 10:ki(r.type._context);break;case 22:case 23:Oi()}n=n.return}if(te=e,J=e=gt(e.current,null),re=ke=t,b=0,rr=null,Ii=kl=Dt=0,he=Bn=null,Rt!==null){for(t=0;t<Rt.length;t++)if(n=Rt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}Rt=null}return e}function nc(e,t){do{var n=J;try{if(wi(),Fr.current=ll,rl){for(var r=Q.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}rl=!1}if(Ot=0,ee=q=Q=null,Dn=!1,er=0,Li.current=null,n===null||n.return===null){b=1,rr=t,J=null;break}e:{var o=e,i=n.return,u=n,s=t;if(t=re,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,g=u,m=g.tag;if(!(g.mode&1)&&(m===0||m===11||m===15)){var p=g.alternate;p?(g.updateQueue=p.updateQueue,g.memoizedState=p.memoizedState,g.lanes=p.lanes):(g.updateQueue=null,g.memoizedState=null)}var w=Mu(i);if(w!==null){w.flags&=-257,Ou(w,i,u,o,t),w.mode&1&&Fu(o,c,t),t=w,s=c;var S=t.updateQueue;if(S===null){var x=new Set;x.add(s),t.updateQueue=x}else S.add(s);break e}else{if(!(t&1)){Fu(o,c,t),Di();break e}s=Error(k(426))}}else if($&&u.mode&1){var R=Mu(i);if(R!==null){!(R.flags&65536)&&(R.flags|=256),Ou(R,i,u,o,t),vi(hn(s,u));break e}}o=s=hn(s,u),b!==4&&(b=2),Bn===null?Bn=[o]:Bn.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Ba(o,s,t);Nu(o,f);break e;case 1:u=s;var a=o.type,d=o.stateNode;if(!(o.flags&128)&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ht===null||!ht.has(d)))){o.flags|=65536,t&=-t,o.lanes|=t;var y=Va(o,u,t);Nu(o,y);break e}}o=o.return}while(o!==null)}oc(n)}catch(C){t=C,J===n&&n!==null&&(J=n=n.return);continue}break}while(!0)}function rc(){var e=ol.current;return ol.current=ll,e===null?ll:e}function Di(){(b===0||b===3||b===2)&&(b=4),te===null||!(Dt&268435455)&&!(kl&268435455)||it(te,re)}function sl(e,t){var n=M;M|=2;var r=rc();(te!==e||re!==t)&&(Ke=null,Lt(e,t));do try{Rd();break}catch(l){nc(e,l)}while(!0);if(wi(),M=n,ol.current=r,J!==null)throw Error(k(261));return te=null,re=0,b}function Rd(){for(;J!==null;)lc(J)}function Td(){for(;J!==null&&!tf();)lc(J)}function lc(e){var t=uc(e.alternate,e,ke);e.memoizedProps=e.pendingProps,t===null?oc(e):J=t,Li.current=null}function oc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ed(n,t),n!==null){n.flags&=32767,J=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{b=6,J=null;return}}else if(n=Cd(n,t,ke),n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);b===0&&(b=5)}function zt(e,t,n){var r=O,l=je.transition;try{je.transition=null,O=1,Ld(e,t,n,r)}finally{je.transition=l,O=r}return null}function Ld(e,t,n,r){do sn();while(st!==null);if(M&6)throw Error(k(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(df(e,o),e===te&&(J=te=null,re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pr||(Pr=!0,sc(Wr,function(){return sn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=je.transition,je.transition=null;var i=O;O=1;var u=M;M|=4,Li.current=null,Pd(e,n),ba(n,e),qf(Eo),Qr=!!Co,Eo=Co=null,e.current=n,Nd(n),nf(),M=u,O=i,je.transition=o}else e.current=n;if(Pr&&(Pr=!1,st=e,ul=l),o=e.pendingLanes,o===0&&(ht=null),of(n.stateNode),ye(e,G()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(il)throw il=!1,e=Ho,Ho=null,e;return ul&1&&e.tag!==0&&sn(),o=e.pendingLanes,o&1?e===Qo?Vn++:(Vn=0,Qo=e):Vn=0,St(),null}function sn(){if(st!==null){var e=Us(ul),t=je.transition,n=O;try{if(je.transition=null,O=16>e?16:e,st===null)var r=!1;else{if(e=st,st=null,ul=0,M&6)throw Error(k(331));var l=M;for(M|=4,_=e.current;_!==null;){var o=_,i=o.child;if(_.flags&16){var u=o.deletions;if(u!==null){for(var s=0;s<u.length;s++){var c=u[s];for(_=c;_!==null;){var g=_;switch(g.tag){case 0:case 11:case 15:Un(8,g,o)}var m=g.child;if(m!==null)m.return=g,_=m;else for(;_!==null;){g=_;var p=g.sibling,w=g.return;if(Za(g),g===c){_=null;break}if(p!==null){p.return=w,_=p;break}_=w}}}var S=o.alternate;if(S!==null){var x=S.child;if(x!==null){S.child=null;do{var R=x.sibling;x.sibling=null,x=R}while(x!==null)}}_=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,_=i;else e:for(;_!==null;){if(o=_,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Un(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,_=f;break e}_=o.return}}var a=e.current;for(_=a;_!==null;){i=_;var d=i.child;if(i.subtreeFlags&2064&&d!==null)d.return=i,_=d;else e:for(i=a;_!==null;){if(u=_,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:wl(9,u)}}catch(C){Y(u,u.return,C)}if(u===i){_=null;break e}var y=u.sibling;if(y!==null){y.return=u.return,_=y;break e}_=u.return}}if(M=l,St(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(fl,e)}catch{}r=!0}return r}finally{O=n,je.transition=t}}return!1}function Gu(e,t,n){t=hn(n,t),t=Ba(e,t,1),e=pt(e,t,1),t=ce(),e!==null&&(or(e,1,t),ye(e,t))}function Y(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ht===null||!ht.has(r))){e=hn(n,e),e=Va(t,e,1),t=pt(t,e,1),e=ce(),t!==null&&(or(t,1,e),ye(t,e));break}}t=t.return}}function Id(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ce(),e.pingedLanes|=e.suspendedLanes&n,te===e&&(re&n)===n&&(b===4||b===3&&(re&130023424)===re&&500>G()-Fi?Lt(e,0):Ii|=n),ye(e,t)}function ic(e,t){t===0&&(e.mode&1?(t=gr,gr<<=1,!(gr&130023424)&&(gr=4194304)):t=1);var n=ce();e=be(e,t),e!==null&&(or(e,t,n),ye(e,n))}function Fd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ic(e,n)}function Md(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(k(314))}r!==null&&r.delete(t),ic(e,n)}var uc;uc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ge.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,xd(e,t,n);me=!!(e.flags&131072)}else me=!1,$&&t.flags&1048576&&ca(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Or(e,t),e=t.pendingProps;var l=cn(t,se.current);un(t,n),l=Ni(null,t,r,e,l,n);var o=zi();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,ve(r)?(o=!0,Zr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,xi(t),l.updater=vl,t.stateNode=l,l._reactInternals=t,Io(t,r,e,n),t=Oo(null,t,r,!0,o,n)):(t.tag=0,$&&o&&mi(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Or(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Dd(r),e=Ie(r,e),l){case 0:t=Mo(null,t,r,e,n);break e;case 1:t=Bu(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Uu(null,t,r,Ie(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Mo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Bu(e,t,r,l,n);case 3:e:{if(Ha(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,ha(e,t),tl(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=hn(Error(k(423)),t),t=Vu(e,t,r,n,l);break e}else if(r!==l){l=hn(Error(k(424)),t),t=Vu(e,t,r,n,l);break e}else for(Se=dt(t.stateNode.containerInfo.firstChild),xe=t,$=!0,Me=null,n=ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fn(),r===l){t=et(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return wa(t),e===null&&Ro(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,_o(r,l)?i=null:o!==null&&_o(r,o)&&(t.flags|=32),Wa(e,t),ae(e,t,i,n),t.child;case 6:return e===null&&Ro(t),null;case 13:return Qa(e,t,n);case 4:return Ci(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dn(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),Du(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,D(br,r._currentValue),r._currentValue=i,o!==null)if(Ue(o.value,i)){if(o.children===l.children&&!ge.current){t=et(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=Ze(-1,n&-n),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var g=c.pending;g===null?s.next=s:(s.next=g.next,g.next=s),c.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),To(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(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),To(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,un(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),Uu(e,t,r,l,n);case 15:return $a(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ie(r,l),Or(e,t),t.tag=1,ve(r)?(e=!0,Zr(t)):e=!1,un(t,n),ga(t,r,l),Io(t,r,l,n),Oo(null,t,r,!0,e,n);case 19:return Ka(e,t,n);case 22:return Aa(e,t,n)}throw Error(k(156,t.tag))};function sc(e,t){return Fs(e,t)}function Od(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(e,t,n,r){return new Od(e,t,n,r)}function Ui(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dd(e){if(typeof e=="function")return Ui(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ri)return 11;if(e===li)return 14}return 2}function gt(e,t){var n=e.alternate;return n===null?(n=ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Br(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ui(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Qt:return It(n.children,l,o,t);case ni:i=8,l|=8;break;case no:return e=ze(12,n,t,l|2),e.elementType=no,e.lanes=o,e;case ro:return e=ze(13,n,t,l),e.elementType=ro,e.lanes=o,e;case lo:return e=ze(19,n,t,l),e.elementType=lo,e.lanes=o,e;case vs:return Sl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ms:i=10;break e;case gs:i=9;break e;case ri:i=11;break e;case li:i=14;break e;case rt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=ze(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function It(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function Sl(e,t,n,r){return e=ze(22,e,r,t),e.elementType=vs,e.lanes=n,e.stateNode={isHidden:!1},e}function Jl(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function ql(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ud(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=Ll(0),this.expirationTimes=Ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ll(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bi(e,t,n,r,l,o,i,u,s){return e=new Ud(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xi(o),e}function Bd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ht,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ac(e){if(!e)return yt;e=e._reactInternals;e:{if(Vt(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(ve(n))return sa(e,n,t)}return t}function cc(e,t,n,r,l,o,i,u,s){return e=Bi(n,r,!0,e,l,o,i,u,s),e.context=ac(null),n=e.current,r=ce(),l=mt(n),o=Ze(r,l),o.callback=t??null,pt(n,o,l),e.current.lanes=l,or(e,l,r),ye(e,r),e}function xl(e,t,n,r){var l=t.current,o=ce(),i=mt(l);return n=ac(n),t.context===null?t.context=n:t.pendingContext=n,t=Ze(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pt(l,t,i),e!==null&&(De(e,l,i,o),Ir(e,l,i)),i}function al(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 Zu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vi(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}function Vd(){return null}var fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function $i(e){this._internalRoot=e}Cl.prototype.render=$i.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));xl(e,t,null,null)};Cl.prototype.unmount=$i.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ut(function(){xl(null,e,null,null)}),t[qe]=null}};function Cl(e){this._internalRoot=e}Cl.prototype.unstable_scheduleHydration=function(e){if(e){var t=$s();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ot.length&&t!==0&&t<ot[n].priority;n++);ot.splice(n,0,e),n===0&&Ws(e)}};function Ai(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function El(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ju(){}function $d(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var c=al(i);o.call(c)}}var i=cc(t,r,e,0,null,!1,!1,"",Ju);return e._reactRootContainer=i,e[qe]=i.current,Gn(e.nodeType===8?e.parentNode:e),Ut(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var c=al(s);u.call(c)}}var s=Bi(e,0,!1,null,null,!1,!1,"",Ju);return e._reactRootContainer=s,e[qe]=s.current,Gn(e.nodeType===8?e.parentNode:e),Ut(function(){xl(t,s,n,r)}),s}function _l(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var u=l;l=function(){var s=al(i);u.call(s)}}xl(t,i,e,l)}else i=$d(n,t,e,l,r);return al(i)}Bs=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rn(t.pendingLanes);n!==0&&(ui(t,n|1),ye(t,G()),!(M&6)&&(mn=G()+500,St()))}break;case 13:Ut(function(){var r=be(e,1);if(r!==null){var l=ce();De(r,e,1,l)}}),Vi(e,1)}};si=function(e){if(e.tag===13){var t=be(e,134217728);if(t!==null){var n=ce();De(t,e,134217728,n)}Vi(e,134217728)}};Vs=function(e){if(e.tag===13){var t=mt(e),n=be(e,t);if(n!==null){var r=ce();De(n,e,t,r)}Vi(e,t)}};$s=function(){return O};As=function(e,t){var n=O;try{return O=e,t()}finally{O=n}};mo=function(e,t,n){switch(t){case"input":if(uo(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 l=ml(r);if(!l)throw Error(k(90));ws(r),uo(r,l)}}}break;case"textarea":Ss(e,n);break;case"select":t=n.value,t!=null&&nn(e,!!n.multiple,t,!1)}};zs=Mi;js=Ut;var Ad={usingClientEntryPoint:!1,Events:[ur,Gt,ml,Ps,Ns,Mi]},Nn={findFiberByHostInstance:jt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Wd={bundleType:Nn.bundleType,version:Nn.version,rendererPackageName:Nn.rendererPackageName,rendererConfig:Nn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ls(e),e===null?null:e.stateNode},findFiberByHostInstance:Nn.findFiberByHostInstance||Vd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nr.isDisabled&&Nr.supportsFiber)try{fl=Nr.inject(Wd),We=Nr}catch{}}Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ad;Ee.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ai(t))throw Error(k(200));return Bd(e,t,null,n)};Ee.createRoot=function(e,t){if(!Ai(e))throw Error(k(299));var n=!1,r="",l=fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Bi(e,1,!1,null,null,n,!1,r,l),e[qe]=t.current,Gn(e.nodeType===8?e.parentNode:e),new $i(t)};Ee.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=Ls(t),e=e===null?null:e.stateNode,e};Ee.flushSync=function(e){return Ut(e)};Ee.hydrate=function(e,t,n){if(!El(t))throw Error(k(200));return _l(null,e,t,!0,n)};Ee.hydrateRoot=function(e,t,n){if(!Ai(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=fc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=cc(t,null,e,1,n??null,l,!1,o,i),e[qe]=t.current,Gn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Cl(t)};Ee.render=function(e,t,n){if(!El(t))throw Error(k(200));return _l(null,e,t,!1,n)};Ee.unmountComponentAtNode=function(e){if(!El(e))throw Error(k(40));return e._reactRootContainer?(Ut(function(){_l(null,null,e,!1,function(){e._reactRootContainer=null,e[qe]=null})}),!0):!1};Ee.unstable_batchedUpdates=Mi;Ee.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!El(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return _l(e,t,n,!1,r)};Ee.version="18.2.0-next-9e3b772b8-20220608";function dc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dc)}catch(e){console.error(e)}}dc(),cs.exports=Ee;var Hd=cs.exports,pc,qu=Hd;pc=qu.createRoot,qu.hydrateRoot;const Qd=(e,t,n)=>{const r=(n.fontSize+t*n.maxSizeMultiplier/255).toFixed(2);e.font=`${r}px ${n.selectedFont}`;const o=e.measureText(n.textInput).width,i=parseInt(r),u=n.x-o/2,s=n.y+i/2;e.strokeStyle=n.borderColor,e.lineWidth=n.borderThickness,e.strokeText(n.textInput,u,s),e.fillStyle=n.fontColor,e.fillText(n.textInput,u,s)},hc=(e,t,n,r,l=!1)=>({x:Math.random()*e.width,y:l?Math.random()*e.height:e.height+Math.random()*100,size:t,xDelta:(Math.random()-.5)*2,ySpeed:n,color:r}),Kd=(e,t)=>{const n=[];for(let r=0;r<t.numberOfCircles;r++)n.push(hc(e,t.circleSize,t.circleSpeed,t.circleColor,!0));return n},Yd=(e,t,n,r,l)=>{const o=r.reduce((u,s)=>u+s)/r.length;let i=4;l.zigzagSmoothness>5?i+=o/512*l.beatSpeedUp:i+=o/255*l.beatSpeedUp,t.forEach(u=>{u.y-=i,u.x+=u.xDelta*l.zigzagSmoothness,e.beginPath(),e.arc(u.x,u.y,l.circleSize,0,Math.PI*2),e.fillStyle=l.circleColor,e.fill(),Math.random()<.1&&(u.xDelta=-u.xDelta),u.y+u.size<0&&Object.assign(u,hc(e.canvas,u.size,u.ySpeed,u.color,!1))})},Xo=new Image;let mc=!1;const Xd=e=>{Xo.src=e,Xo.onload=()=>{mc=!0}},Gd=(e,t,n,r,l,o)=>{if(!mc)return;r=1,l.getByteFrequencyData(o);const i=o.reduce((c,g)=>c+g)/o.length,u=1+i/512*r,s=Math.min(i/512*(r/10),Math.PI/4);e.save(),e.translate(t.width/2,t.height/2),e.rotate(s),e.scale(u,u),e.drawImage(Xo,-t.width/2,-t.height/2,t.width,t.height),e.restore()},Zd=(e,t,n,r,l)=>{const{shakeIntensity:o,backgroundImage:i}=l;n.getByteFrequencyData(r);const u=r.reduce((c,g)=>c+g)/r.length,s=o*(u/255);Gd(e,t,i,s,n,r)};async function Jd(e){const t=Object.assign({},e);if(console.log("type: ",t.background.backgroundImage,typeof t.background.backgroundImage,t.background.backgroundImage instanceof Blob),t.background.backgroundImage!==""){const r=await fetch(t.background.backgroundImage).then(o=>o.blob()),l=await bd(r);t.background.backgroundImage=l}const n=JSON.stringify(t);localStorage.setItem("save",n)}function qd(){const e=localStorage.getItem("save"),t=JSON.parse(e||"{}");if(typeof t.background.backgroundImage=="string"&&t.background.backgroundImage!==""){const n=ep(t.background.backgroundImage),r=URL.createObjectURL(n);t.background.backgroundImage=r}return t}function bd(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=n,r.readAsDataURL(e)})}function ep(e){const t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);const l=new Uint8Array(r);return new Blob([l],{type:n})}const tp=""+new URL("volume-dlmpgZt1.svg",import.meta.url).href,np=({audioRef:e})=>{var m;const[t,n]=I.useState(!1),[r,l]=I.useState(0),[o,i]=I.useState(1),u=()=>{e.current&&(t?e.current.pause():e.current.play(),n(!t))},s=p=>{const w=parseInt(p.target.value);e.current.currentTime=w,l(w)},c=p=>{const w=parseFloat(p.target.value);e.current.volume=w,i(w)};I.useEffect(()=>{const p=setInterval(()=>{e.current&&t&&l(e.current.currentTime)},1e3);return()=>clearInterval(p)},[t,e]);const g=p=>{const w=Math.floor(p/60),S=Math.floor(p%60);return`${w}:${S<10?"0":""}${S}`};return h.jsxs("div",{className:"audio-controls",children:[h.jsx("button",{onClick:u,children:t?"Pause":"Play"}),h.jsxs("div",{className:"time-slider",children:[h.jsx("span",{className:"current-time",children:g(r)}),h.jsx("input",{type:"range",style:{width:"100%"},min:"0",max:((m=e.current)==null?void 0:m.duration)||100,value:r,onChange:s})]}),h.jsx("img",{src:tp,alt:"Description of SVG",width:25,height:25})," ",h.jsx("input",{type:"range",min:"0",max:"1",step:"0.01",value:o,onChange:c})]})},bl=""+new URL("music-1upaPx3E.mp3",import.meta.url).href;function bu(e){return e*(1024*1024)}function eo(e,t){const r=e*1024*1024*t/8,l=r/1024**3;return l>=1?`${l.toFixed(2)} GB`:`${(r/1048576).toFixed(2)} MB`}const rp=({audioRef:e,canvasRef:t,settings:n})=>{const[r,l]=I.useState(!1),[o,i]=I.useState(0),[u,s]=I.useState(0),c=I.useRef(null),g=I.useRef([]),m=I.useRef(null);I.useEffect(()=>{g.current=[],i(0),s(0)},[r]);const p=()=>{if(e.current&&t.current){const R=e.current.captureStream(60),f=t.current.captureStream(60),a=new MediaStream([...f.getTracks(),...R.getTracks()]),d=n.current.bitRateInMb||4;c.current=new MediaRecorder(a,{mimeType:"video/webm; codecs=vp9",videoBitsPerSecond:bu(d),bitsPerSecond:bu(d)}),g.current=[],i(0),c.current.ondataavailable=y=>{y.data.size>0&&(g.current.push(y.data),i(C=>C+y.data.size))},c.current.start(1e3),l(!0),m.current=setInterval(()=>{e.current&&e.current.duration&&s(e.current.currentTime/e.current.duration*100)},1e3),e.current.onended=()=>{c.current&&c.current.state==="recording"&&w()},e.current.play()}},w=()=>{c.current&&(c.current.stop(),clearInterval(m.current),l(!1),S())},S=()=>{const R=new Blob(g.current,{type:"video/webm"}),f=URL.createObjectURL(R),a=document.createElement("a");a.href=f,a.download="recording.webm",document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(f)},100)};I.useEffect(()=>{!r&&g.current.length>0&&S()},[r]);const x=R=>R>=1e6?`${(R/1e6).toFixed(2)} MB`:R>=1e3?`${(R/1e3).toFixed(2)} KB`:`${R} bytes`;return h.jsxs("div",{className:"recorder-controls",children:[h.jsx("button",{onClick:r?w:p,children:r?"Stop Recording":"Start Recording"}),r&&h.jsxs(h.Fragment,{children:[h.jsxs("p",{children:["Current File Size: ",x(o)]}),h.jsxs("p",{children:["Audio Progress: ",u.toFixed(2),"%"]})]})]})},lp=(e,t,n,r)=>{const l=r.circle.imageX,o=r.circle.imageY;let i=r.circle.baseRadius;for(let u=0;u<t;u++){const s=n[u];r.circle.image?(e.save(),e.beginPath(),e.arc(l,o,i,0,Math.PI*2),e.closePath(),e.clip(),e.drawImage(r.circle.image,l-i,o-i,i*2,i*2),e.restore()):(e.fillStyle=r.circle.color,e.beginPath(),e.arc(l,o,i,0,Math.PI*2),e.fill());const c=Math.PI*2/t,g=s*r.bars.lengthMultiplier;e.fillStyle=r.bars.color(u),e.save(),e.translate(l,o),e.rotate(u*c),e.fillRect(0,i,c*r.bars.widthMultiplier,g),e.restore(),i+=s/r.circle.growthFactor}},op=(e,t,n,r)=>{const l=r.numBars??n.length;r.useFullWidth&&(r.barWidth=(e.canvas.width-r.spacing*(l+1))/l);const o=r.xPos!==void 0?e.canvas.width*(r.xPos/100):r.spacing,i=r.yPos!==void 0?e.canvas.height*(r.yPos/100):e.canvas.height,u=l*r.barWidth+(l-1)*r.spacing,s=o-u/2;for(let c=0;c<l;c++){const g=r.beatMultiplier*(r.numBars?n[c*Math.floor(t/l)]:n[c]);e.fillStyle=r.barColor;const m=s+c*(r.barWidth+r.spacing);switch(r.barStyle){case"top":e.fillRect(m,i-g,r.barWidth,g);break;case"bottom":e.fillRect(m,i,r.barWidth,g);break;case"both":default:e.fillRect(m,i-g/2,r.barWidth,g);break}}},ip=()=>{var _t,Wi;const[e,t]=I.useState(null),[n,r]=I.useState(!1),l=I.useRef(null),o=I.useRef(new Audio),i=I.useRef(null),u=I.useRef(null),s=I.useRef(null),c=I.useRef(null),g={"420p":{width:640,height:420},HD:{width:1280,height:720},FullHD:{width:1920,height:1080},"2K":{width:2560,height:1440}},m=I.useRef({simpleBar:!0,circleBar:!1,backgroundCircles:!0,text:!0}),p=I.useRef({maxSizeMultiplier:55,smoothness:100,borderColor:"#000000",borderThickness:1,fontSize:20,fontColor:"#000000",textInput:"Sample Text",selectedFont:"Arial",x:g.FullHD.width/2,y:g.FullHD.height/4}),w=I.useRef({circleSize:5,circleSpeed:1,circleColor:"#d3d3d3",numberOfCircles:11,beatSpeedUp:25,zigzagSmoothness:1}),S=I.useRef({barStyle:"top",spacing:11,barLength:1,barWidth:22,beatMultiplier:2,barColor:"white",numBars:11,useFullWidth:!0,xPos:50,yPos:100}),x=I.useRef({backgroundColor:"#f59292",backgroundImage:"",shakeIntensity:0}),R=I.useRef({bitRateInMb:6}),f=I.useRef({circle:{baseRadius:22,growthFactor:222,color:"#006400",imageX:g.FullHD.width/2,imageY:g.FullHD.height/2},bars:{widthMultiplier:155,lengthMultiplier:2,color:v=>`rgb(${v*2}, ${200-v*2}, ${50+v*2})`}}),a=v=>{const{name:V,value:Z}=v.target,[we,Pt]=V.split(".");f.current[we][Pt]=isNaN(Z)?Z:Number(Z)},[d,y]=I.useState("color"),C=v=>{y(v.target.value)},[P,z]=I.useState({text:!1,font:!1,circle:!1,background:!1,render:!1,musicVisualization:!1,simpleBar:!1}),N=v=>{z(V=>({...V,[v]:!V[v]}))},A=v=>{const V=v.target.files;V&&V[0]&&new FontFace("CustomFont",`url(${URL.createObjectURL(V[0])})`).load().then(we=>{document.fonts.add(we),p.current.selectedFont="CustomFont"}).catch(we=>console.error("Error loading font:",we))},L=v=>{p.current.selectedFont=v.target.value},pe=async()=>{try{const V=await(await fetch(bl)).blob();return new File([V],"defaultMusic.mp3",{type:"audio/mpeg"})}catch(v){return console.error("Error fetching default audio file:",v),null}},xt=async v=>{const V=v.target.files;if(V){const Z=URL.createObjectURL(V[0]);o.current.src=Z,t(V[0])}else{console.log("set file");const Z=await pe();o.current.src=bl,t(null),t(Z)}setTimeout(()=>{console.log(R.current.bitRateInMb,o.current.duration),X(eo(R.current.bitRateInMb,o.current.duration))},222)},Ct=()=>{Jd({text:p.current,background:x.current,circle:w.current})},ar=()=>{const v=qd();w.current=v.circle,x.current=v.background,p.current=v.text},Pl=async()=>{if(!e){console.log("set file");const v=await pe();o.current.src=bl,t(null),t(v)}if(!i.current){i.current=new AudioContext;const v=i.current.createMediaElementSource(o.current);u.current=i.current.createAnalyser(),v.connect(u.current),u.current.connect(i.current.destination)}o.current.playbackRate=1,o.current.play().then(()=>{if(r(!0),u.current){u.current.fftSize=256;const v=u.current.frequencyBinCount;s.current=new Uint8Array(v),wn()}}).catch(v=>console.error("Error playing audio:",v))};let $t=[];l.current&&($t=Kd(l.current,w.current));const wn=()=>{if(!l.current||!l.current||!u.current||!s.current)return;const v=l.current.getContext("2d");if(!v)return;const V=()=>{x.current.backgroundImage!==null&&x.current.backgroundImage!==""?Zd(v,l.current,u.current,s.current,x.current):(v.clearRect(0,0,l.current.width,l.current.height),v.fillStyle=x.current.backgroundColor,v.fillRect(0,0,l.current.width,l.current.height)),m.current.backgroundCircles&&Yd(v,$t,u.current,s.current,w.current);const Z=u.current.frequencyBinCount,we=s.current;u.current.getByteFrequencyData(we);const Pt=we.reduce((cr,gc)=>cr+gc)/we.length;m.current.simpleBar&&op(v,Z,we,S.current),m.current.circleBar&&lp(v,Z,we,f.current),m.current.text&&Qd(v,Pt,p.current),c.current=requestAnimationFrame(V)};V()},E=v=>{if(!v.target.files){console.warn("no file selected");return}const V=v.target.files[0],Z=URL.createObjectURL(V);Xd(Z),x.current.backgroundImage=Z};I.useEffect(()=>()=>{c.current&&cancelAnimationFrame(c.current),i.current&&i.current.close()},[]);const[j,T]=I.useState("FullHD"),[W,X]=I.useState("");I.useEffect(()=>{const v=l.current;if(v&&g[j]){const{width:V,height:Z}=g[j];v.width=V,v.height=Z}},[j]);const At=v=>{if(!v.target.files){console.warn("no file selected");return}const V=v.target.files[0];if(V){const Z=new FileReader;Z.onload=we=>{var cr;const Pt=new Image;Pt.onload=()=>{f.current.circle.image=Pt},Pt.src=(cr=we.target)==null?void 0:cr.result},Z.readAsDataURL(V)}},Qe=v=>{T(v.target.value)},Et=((_t=l.current)==null?void 0:_t.width)||0,Be=((Wi=l.current)==null?void 0:Wi.height)||0;return h.jsxs("div",{className:"container",children:[h.jsxs("div",{style:{textAlign:"right",margin:"10px"},children:[h.jsx("button",{onClick:Ct,children:"Save"}),h.jsx("button",{onClick:ar,style:{margin:"5px"},children:"Load"})]}),h.jsxs("div",{className:"control-group",children:["Audio file: ",h.jsx("input",{type:"file",onChange:xt,accept:"audio/*"}),h.jsx("div",{className:"container",children:h.jsx(np,{audioRef:o})}),h.jsx("button",{onClick:Pl,children:"Start & visualize"})]}),h.jsx("div",{className:"group-header",onClick:()=>N("render"),children:"Render / Export"}),P.render&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Canvas Resolution:",h.jsx("select",{value:j,onChange:Qe,children:Object.keys(g).map(v=>h.jsx("option",{value:v,children:v},v))})]}),h.jsxs("label",{children:["Bitrate:",h.jsx("input",{type:"number",defaultValue:"6",onChange:v=>{R.current.bitRateInMb=parseFloat(v.target.value),console.log(eo(R.current.bitRateInMb,o.current.duration)),X(eo(R.current.bitRateInMb,o.current.duration))}}),"MB"]}),h.jsx("hr",{}),"Estimated video file size is: ",W,h.jsx("label",{children:e&&h.jsx(rp,{audioRef:o,settings:R,canvasRef:l},e.name)})]}),h.jsx("div",{className:"group-header",onClick:()=>N("text"),children:"Text Settings"}),P.text&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Text:",h.jsx("input",{type:"text",defaultValue:"Sample Text",onChange:v=>p.current.textInput=v.target.value})]}),h.jsxs("label",{children:["Text X Coordinate:",h.jsx("input",{type:"range",name:"text.x",min:"0",max:Et,defaultValue:"0",onChange:v=>p.current.x=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Text Y Coordinate:",h.jsx("input",{type:"range",name:"text.y",min:"0",max:Be,defaultValue:"0",onChange:v=>p.current.y=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Max Size Multiplier:",h.jsx("input",{type:"number",defaultValue:"55",onChange:v=>p.current.maxSizeMultiplier=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["Border Color:",h.jsx("input",{type:"color",defaultValue:"#000000",onChange:v=>p.current.borderColor=v.target.value})]}),h.jsxs("label",{children:["Border Thickness:",h.jsx("input",{type:"number",defaultValue:"1",onChange:v=>p.current.borderThickness=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Font Size:",h.jsx("input",{type:"number",defaultValue:"20",onChange:v=>p.current.fontSize=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Font Color:",h.jsx("input",{type:"color",defaultValue:"#000000",onChange:v=>p.current.fontColor=v.target.value})]}),h.jsx("div",{className:"group-header",onClick:()=>N("font"),children:"Font Settings"}),P.font&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Font:",h.jsx("select",{onChange:L,children:["Arial","Verdana","Times New Roman","Georgia","Courier New"].map(v=>h.jsx("option",{value:v,children:v},v))})]}),h.jsxs("label",{children:["or upload a font file:",h.jsx("input",{type:"file",onChange:A,accept:".ttf, .otf"})]})]})]}),h.jsx("div",{className:"group-header",onClick:()=>N("musicVisualization"),children:"Circle with bars Settings"}),P.musicVisualization&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Circle Base Radius:",h.jsx("input",{type:"number",name:"circle.baseRadius",defaultValue:f.current.circle.baseRadius,onChange:a})]}),h.jsxs("label",{children:["Circle Growth Factor:",h.jsx("input",{type:"number",name:"circle.growthFactor",defaultValue:f.current.circle.growthFactor,onChange:a})]}),h.jsxs("label",{children:["Circle Color:",h.jsx("input",{type:"color",name:"circle.color",defaultValue:f.current.circle.color,onChange:a})]}),h.jsxs("label",{children:["Circle Image:",h.jsx("input",{type:"file",onChange:At,accept:"image/*"})]}),h.jsxs("label",{children:["X Coordinate:",h.jsx("input",{type:"range",name:"circle.imageX",min:"0",max:Et,defaultValue:Et/2,onChange:a})]}),h.jsxs("label",{children:["Y Coordinate:",h.jsx("input",{type:"range",name:"circle.imageY",min:"0",max:Be,defaultValue:f.current.circle.imageY,onChange:a})]}),h.jsxs("label",{children:["Bars Width Multiplier:",h.jsx("input",{type:"number",name:"bars.widthMultiplier",defaultValue:f.current.bars.widthMultiplier,onChange:a})]}),h.jsxs("label",{children:["Bars Length Multiplier:",h.jsx("input",{type:"number",name:"bars.lengthMultiplier",defaultValue:f.current.bars.lengthMultiplier,onChange:a})]})]}),h.jsx("div",{className:"group-header",onClick:()=>N("circle"),children:"Circle Settings"}),P.circle&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Number of Circles:",h.jsx("input",{type:"number",defaultValue:"11",onChange:v=>{w.current.numberOfCircles=parseInt(v.target.value)}})]}),h.jsxs("label",{children:["Circle Size:",h.jsx("input",{type:"number",defaultValue:"12",onChange:v=>w.current.circleSize=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["beat speed up factor:",h.jsx("input",{type:"number",defaultValue:"12",onChange:v=>w.current.beatSpeedUp=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["Circle Speed:",h.jsx("input",{type:"number",defaultValue:"11",onChange:v=>w.current.circleSpeed=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["Circle Color:",h.jsx("input",{type:"color",defaultValue:"Red",onChange:v=>w.current.circleColor=v.target.value})]})]}),h.jsx("div",{className:"group-header",onClick:()=>N("simpleBar"),children:"Simple Bar Settings"}),P.simpleBar&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Bar Style:",h.jsxs("select",{defaultValue:"bottom",onChange:v=>S.current.barStyle=v.target.value,children:[h.jsx("option",{value:"top",children:"Top"}),h.jsx("option",{value:"bottom",children:"Bottom"}),h.jsx("option",{value:"both",children:"Both"})]})]}),h.jsxs("label",{children:["Spacing:",h.jsx("input",{type:"number",defaultValue:"11",onChange:v=>S.current.spacing=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Bar Width:",h.jsx("input",{type:"number",defaultValue:"22",onChange:v=>S.current.barWidth=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Beat Multiplier:",h.jsx("input",{type:"number",defaultValue:"2",onChange:v=>S.current.beatMultiplier=parseFloat(v.target.value)})]}),h.jsxs("label",{children:["Bar Color:",h.jsx("input",{type:"color",defaultValue:"#ffffff",onChange:v=>S.current.barColor=v.target.value})]}),h.jsxs("label",{children:["Number of Bars:",h.jsx("input",{type:"number",defaultValue:"11",onChange:v=>S.current.numBars=parseInt(v.target.value)})]}),h.jsxs("label",{children:["Use Full Width:",h.jsx("input",{type:"checkbox",defaultChecked:S.current.useFullWidth,onChange:v=>S.current.useFullWidth=v.target.checked})]}),h.jsxs("label",{children:["X Position (%):",h.jsx("input",{type:"range",min:"0",max:"100",defaultValue:"50",onChange:v=>S.current.xPos=parseInt(v.target.value)}),S.current.xPos,"%"]}),h.jsxs("label",{children:["Y Position (%):",h.jsx("input",{type:"range",min:"0",max:"100",defaultValue:"50",onChange:v=>S.current.yPos=parseInt(v.target.value)}),S.current.yPos,"%"]})]}),h.jsx("div",{className:"group-header",onClick:()=>N("background"),children:"Background settings"}),P.background&&h.jsxs("div",{className:"settings-group",children:[h.jsxs("label",{children:["Type:",h.jsxs("select",{value:d,onChange:C,children:[h.jsx("option",{value:"color",children:"Color"}),h.jsx("option",{value:"image",children:"Image"})]})]}),d==="color"&&h.jsxs("label",{children:["Color:",h.jsx("input",{type:"color",value:x.current.backgroundColor,onChange:v=>x.current.backgroundColor=v.target.value})]}),d==="image"&&h.jsxs("label",{children:["Image:",h.jsx("input",{type:"file",onChange:E,accept:"image/*"})]})]}),h.jsxs("div",{className:"visuals-settings",children:[h.jsxs("label",{children:["Enable Simple Bar:",h.jsx("input",{type:"checkbox",defaultChecked:m.current.simpleBar,onChange:v=>m.current.simpleBar=v.target.checked})]}),h.jsxs("label",{children:["Enable Circle Bar:",h.jsx("input",{type:"checkbox",defaultChecked:m.current.circleBar,onChange:v=>m.current.circleBar=v.target.checked})]}),h.jsxs("label",{children:["Enable Background Circles:",h.jsx("input",{type:"checkbox",defaultChecked:m.current.backgroundCircles,onChange:v=>m.current.backgroundCircles=v.target.checked})]}),h.jsxs("label",{children:["Enable Text:",h.jsx("input",{type:"checkbox",defaultChecked:m.current.text,onChange:v=>m.current.text=v.target.checked})]})]}),h.jsx("canvas",{ref:l,style:{width:"80%",height:"auto"},width:"1920",height:"1080"}),h.jsx("audio",{ref:o,crossOrigin:"anonymous"})]})},up=document.getElementById("root"),sp=pc(up);sp.render(h.jsx(Ic.StrictMode,{children:h.jsx(ip,{})})); diff --git a/index.html b/index.html index 8f7d850..369abfe 100644 --- a/index.html +++ b/index.html @@ -5,14 +5,14 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Discover a new way to experience music with our free visual music tool. Fast, interactive, and easy to use – visualize your favorite tunes in real-time."> <meta name="keywords" content="Visualize Music, Music Visualization, Free Music Tool, Interactive Music Experience, Real-Time Music Visualization"> - <!-- Open Graph tags for social media --> + <meta name="google-site-verification" content="3_84WUkw55O7J9Y5qKFWVyP7NgwTr_3t-P0xFdJzdm8" /> <meta property="og:title" content="Canvasbeats - Visualize Music | Interactive and Real-Time"> <meta property="og:description" content="Experience music like never before with our free and fast visual music tool. Interact and visualize any song in real-time."> <!-- <meta property="og:image" content="path_to_image.jpg">--> <meta property="og:url" content="https://canvasbeats.com"> <link rel="icon" type="image/svg+xml" href="./logo.svg" /> <title>Canvasbeats</title> - <script type="module" crossorigin src="./assets/index-ngW5ZSdz.js"></script> + <script type="module" crossorigin src="./assets/index-Ev6EW-Tf.js"></script> <link rel="stylesheet" crossorigin href="./assets/index-E00we8YE.css"> </head> <body>