@canva/cli 0.0.1-beta.11 → 0.0.1-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.js CHANGED
@@ -422,7 +422,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
422
422
  `+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{_E=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ud(e):""}function $ee(e){switch(e.tag){case 5:return ud(e.type);case 16:return ud("Lazy");case 13:return ud("Suspense");case 19:return ud("SuspenseList");case 0:case 2:case 15:return e=bE(e.type,!1),e;case 11:return e=bE(e.type.render,!1),e;case 1:return e=bE(e.type,!0),e;default:return""}}function XE(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 xc:return"Fragment";case Sc:return"Portal";case HE:return"Profiler";case US:return"StrictMode";case YE:return"Suspense";case KE:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X4:return(e.displayName||"Context")+".Consumer";case K4:return(e._context.displayName||"Context")+".Provider";case $S:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case WS:return t=e.displayName||null,t!==null?t:XE(e.type)||"Memo";case na:t=e._payload,e=e._init;try{return XE(e(t))}catch{}}return null}function Wee(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 XE(t);case 8:return t===US?"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 ya(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Z4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gee(e){var t=Z4(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pg(e){e._valueTracker||(e._valueTracker=Gee(e))}function Q4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Z4(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Vg(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 JE(e,t){var r=t.checked;return At({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function q5(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ya(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function eB(e,t){t=t.checked,t!=null&&VS(e,"checked",t,!1)}function ZE(e,t){eB(e,t);var r=ya(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?QE(e,t.type,r):t.hasOwnProperty("defaultValue")&&QE(e,t.type,ya(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function z5(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function QE(e,t,r){(t!=="number"||Vg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ld=Array.isArray;function Rc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ya(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function eS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(J(91));return At({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function H5(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(J(92));if(ld(r)){if(1<r.length)throw Error(J(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ya(r)}}function tB(e,t){var r=ya(t.value),n=ya(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Y5(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rB(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 tS(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rB(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var dg,nB=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(dg=dg||document.createElement("div"),dg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=dg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ed(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var pd={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},qee=["Webkit","ms","Moz","O"];Object.keys(pd).forEach(function(e){qee.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pd[t]=pd[e]})});function iB(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||pd.hasOwnProperty(e)&&pd[e]?(""+t).trim():t+"px"}function sB(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=iB(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var zee=At({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 rS(e,t){if(t){if(zee[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function nS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var iS=null;function GS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sS=null,Bc=null,kc=null;function K5(e){if(e=Vd(e)){if(typeof sS!="function")throw Error(J(280));var t=e.stateNode;t&&(t=my(t),sS(e.stateNode,e.type,t))}}function oB(e){Bc?kc?kc.push(e):kc=[e]:Bc=e}function aB(){if(Bc){var e=Bc,t=kc;if(kc=Bc=null,K5(e),t)for(e=0;e<t.length;e++)K5(t[e])}}function uB(e,t){return e(t)}function lB(){}var OE=!1;function cB(e,t,r){if(OE)return e(t,r);OE=!0;try{return uB(e,t,r)}finally{OE=!1,(Bc!==null||kc!==null)&&(lB(),aB())}}function Sd(e,t){var r=e.stateNode;if(r===null)return null;var n=my(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(J(231,t,typeof r));return r}var oS=!1;if($s)try{Cc={},Object.defineProperty(Cc,"passive",{get:function(){oS=!0}}),window.addEventListener("test",Cc,Cc),window.removeEventListener("test",Cc,Cc)}catch{oS=!1}var Cc;function Hee(e,t,r,n,i,s,o,a,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(c){this.onError(c)}}var dd=!1,Ug=null,$g=!1,aS=null,Yee={onError:function(e){dd=!0,Ug=e}};function Kee(e,t,r,n,i,s,o,a,u){dd=!1,Ug=null,Hee.apply(Yee,arguments)}function Xee(e,t,r,n,i,s,o,a,u){if(Kee.apply(this,arguments),dd){if(dd){var l=Ug;dd=!1,Ug=null}else throw Error(J(198));$g||($g=!0,aS=l)}}function Qu(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function fB(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 X5(e){if(Qu(e)!==e)throw Error(J(188))}function Jee(e){var t=e.alternate;if(!t){if(t=Qu(e),t===null)throw Error(J(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return X5(i),e;if(s===n)return X5(i),t;s=s.sibling}throw Error(J(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o)throw Error(J(189))}}if(r.alternate!==n)throw Error(J(190))}if(r.tag!==3)throw Error(J(188));return r.stateNode.current===r?e:t}function pB(e){return e=Jee(e),e!==null?dB(e):null}function dB(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=dB(e);if(t!==null)return t;e=e.sibling}return null}var mB=xn.unstable_scheduleCallback,J5=xn.unstable_cancelCallback,Zee=xn.unstable_shouldYield,Qee=xn.unstable_requestPaint,kt=xn.unstable_now,ete=xn.unstable_getCurrentPriorityLevel,qS=xn.unstable_ImmediatePriority,hB=xn.unstable_UserBlockingPriority,Wg=xn.unstable_NormalPriority,tte=xn.unstable_LowPriority,gB=xn.unstable_IdlePriority,cy=null,us=null;function rte(e){if(us&&typeof us.onCommitFiberRoot=="function")try{us.onCommitFiberRoot(cy,e,void 0,(e.current.flags&128)===128)}catch{}}var Ti=Math.clz32?Math.clz32:ste,nte=Math.log,ite=Math.LN2;function ste(e){return e>>>=0,e===0?32:31-(nte(e)/ite|0)|0}var mg=64,hg=4194304;function cd(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 Gg(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=cd(a):(s&=o,s!==0&&(n=cd(s)))}else o=r&~i,o!==0?n=cd(o):s!==0&&(n=cd(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Ti(t),i=1<<r,n|=e[r],t&=~i;return n}function ote(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 ate(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ti(s),a=1<<o,u=i[o];u===-1?(!(a&r)||a&n)&&(i[o]=ote(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function uS(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yB(){var e=mg;return mg<<=1,!(mg&4194240)&&(mg=64),e}function FE(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Md(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ti(t),e[t]=r}function ute(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Ti(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function zS(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ti(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var tt=0;function DB(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var vB,HS,wB,CB,EB,lS=!1,gg=[],la=null,ca=null,fa=null,xd=new Map,_d=new Map,sa=[],lte="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 Z5(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ca=null;break;case"mouseover":case"mouseout":fa=null;break;case"pointerover":case"pointerout":xd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_d.delete(t.pointerId)}}function td(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Vd(t),t!==null&&HS(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function cte(e,t,r,n,i){switch(t){case"focusin":return la=td(la,e,t,r,n,i),!0;case"dragenter":return ca=td(ca,e,t,r,n,i),!0;case"mouseover":return fa=td(fa,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return xd.set(s,td(xd.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,_d.set(s,td(_d.get(s)||null,e,t,r,n,i)),!0}return!1}function SB(e){var t=$u(e.target);if(t!==null){var r=Qu(t);if(r!==null){if(t=r.tag,t===13){if(t=fB(r),t!==null){e.blockedOn=t,EB(e.priority,function(){wB(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ig(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=cS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);iS=n,r.target.dispatchEvent(n),iS=null}else return t=Vd(r),t!==null&&HS(t),e.blockedOn=r,!1;t.shift()}return!0}function Q5(e,t,r){Ig(e)&&r.delete(t)}function fte(){lS=!1,la!==null&&Ig(la)&&(la=null),ca!==null&&Ig(ca)&&(ca=null),fa!==null&&Ig(fa)&&(fa=null),xd.forEach(Q5),_d.forEach(Q5)}function rd(e,t){e.blockedOn===t&&(e.blockedOn=null,lS||(lS=!0,xn.unstable_scheduleCallback(xn.unstable_NormalPriority,fte)))}function bd(e){function t(i){return rd(i,e)}if(0<gg.length){rd(gg[0],e);for(var r=1;r<gg.length;r++){var n=gg[r];n.blockedOn===e&&(n.blockedOn=null)}}for(la!==null&&rd(la,e),ca!==null&&rd(ca,e),fa!==null&&rd(fa,e),xd.forEach(t),_d.forEach(t),r=0;r<sa.length;r++)n=sa[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<sa.length&&(r=sa[0],r.blockedOn===null);)SB(r),r.blockedOn===null&&sa.shift()}var Mc=zs.ReactCurrentBatchConfig,qg=!0;function pte(e,t,r,n){var i=tt,s=Mc.transition;Mc.transition=null;try{tt=1,YS(e,t,r,n)}finally{tt=i,Mc.transition=s}}function dte(e,t,r,n){var i=tt,s=Mc.transition;Mc.transition=null;try{tt=4,YS(e,t,r,n)}finally{tt=i,Mc.transition=s}}function YS(e,t,r,n){if(qg){var i=cS(e,t,r,n);if(i===null)RE(e,t,n,zg,r),Z5(e,n);else if(cte(i,e,t,r,n))n.stopPropagation();else if(Z5(e,n),t&4&&-1<lte.indexOf(e)){for(;i!==null;){var s=Vd(i);if(s!==null&&vB(s),s=cS(e,t,r,n),s===null&&RE(e,t,n,zg,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else RE(e,t,n,null,r)}}var zg=null;function cS(e,t,r,n){if(zg=null,e=GS(n),e=$u(e),e!==null)if(t=Qu(e),t===null)e=null;else if(r=t.tag,r===13){if(e=fB(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zg=e,null}function xB(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(ete()){case qS:return 1;case hB:return 4;case Wg:case tte:return 16;case gB:return 536870912;default:return 16}default:return 16}}var aa=null,KS=null,Tg=null;function _B(){if(Tg)return Tg;var e,t=KS,r=t.length,n,i="value"in aa?aa.value:aa.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[s-n];n++);return Tg=i.slice(e,1<n?1-n:void 0)}function Pg(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 yg(){return!0}function e4(){return!1}function _n(e){function t(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?yg:e4,this.isPropagationStopped=e4,this}return At(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=yg)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=yg)},persist:function(){},isPersistent:yg}),t}var Yc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},XS=_n(Yc),jd=At({},Yc,{view:0,detail:0}),mte=_n(jd),AE,IE,nd,fy=At({},jd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:JS,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!==nd&&(nd&&e.type==="mousemove"?(AE=e.screenX-nd.screenX,IE=e.screenY-nd.screenY):IE=AE=0,nd=e),AE)},movementY:function(e){return"movementY"in e?e.movementY:IE}}),t4=_n(fy),hte=At({},fy,{dataTransfer:0}),gte=_n(hte),yte=At({},jd,{relatedTarget:0}),TE=_n(yte),Dte=At({},Yc,{animationName:0,elapsedTime:0,pseudoElement:0}),vte=_n(Dte),wte=At({},Yc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cte=_n(wte),Ete=At({},Yc,{data:0}),r4=_n(Ete),Ste={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xte={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"},_te={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bte(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_te[e])?!!t[e]:!1}function JS(){return bte}var Ote=At({},jd,{key:function(e){if(e.key){var t=Ste[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xte[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:JS,charCode:function(e){return e.type==="keypress"?Pg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fte=_n(Ote),Ate=At({},fy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),n4=_n(Ate),Ite=At({},jd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:JS}),Tte=_n(Ite),Pte=At({},Yc,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lte=_n(Pte),Nte=At({},fy,{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}),Rte=_n(Nte),Bte=[9,13,27,32],ZS=$s&&"CompositionEvent"in window,md=null;$s&&"documentMode"in document&&(md=document.documentMode);var kte=$s&&"TextEvent"in window&&!md,bB=$s&&(!ZS||md&&8<md&&11>=md),i4=" ",s4=!1;function OB(e,t){switch(e){case"keyup":return Bte.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FB(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _c=!1;function Mte(e,t){switch(e){case"compositionend":return FB(t);case"keypress":return t.which!==32?null:(s4=!0,i4);case"textInput":return e=t.data,e===i4&&s4?null:e;default:return null}}function jte(e,t){if(_c)return e==="compositionend"||!ZS&&OB(e,t)?(e=_B(),Tg=KS=aa=null,_c=!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 bB&&t.locale!=="ko"?null:t.data;default:return null}}var Vte={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 o4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vte[e.type]:t==="textarea"}function AB(e,t,r,n){oB(n),t=Hg(t,"onChange"),0<t.length&&(r=new XS("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var hd=null,Od=null;function Ute(e){VB(e,0)}function py(e){var t=Fc(e);if(Q4(t))return e}function $te(e,t){if(e==="change")return t}var IB=!1;$s&&($s?(vg="oninput"in document,vg||(PE=document.createElement("div"),PE.setAttribute("oninput","return;"),vg=typeof PE.oninput=="function"),Dg=vg):Dg=!1,IB=Dg&&(!document.documentMode||9<document.documentMode));var Dg,vg,PE;function a4(){hd&&(hd.detachEvent("onpropertychange",TB),Od=hd=null)}function TB(e){if(e.propertyName==="value"&&py(Od)){var t=[];AB(t,Od,e,GS(e)),cB(Ute,t)}}function Wte(e,t,r){e==="focusin"?(a4(),hd=t,Od=r,hd.attachEvent("onpropertychange",TB)):e==="focusout"&&a4()}function Gte(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return py(Od)}function qte(e,t){if(e==="click")return py(t)}function zte(e,t){if(e==="input"||e==="change")return py(t)}function Hte(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Li=typeof Object.is=="function"?Object.is:Hte;function Fd(e,t){if(Li(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!zE.call(t,i)||!Li(e[i],t[i]))return!1}return!0}function u4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function l4(e,t){var r=u4(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=u4(r)}}function PB(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?PB(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function LB(){for(var e=window,t=Vg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Vg(e.document)}return t}function QS(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 Yte(e){var t=LB(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&PB(r.ownerDocument.documentElement,r)){if(n!==null&&QS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=l4(r,s);var o=l4(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Kte=$s&&"documentMode"in document&&11>=document.documentMode,bc=null,fS=null,gd=null,pS=!1;function c4(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;pS||bc==null||bc!==Vg(n)||(n=bc,"selectionStart"in n&&QS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),gd&&Fd(gd,n)||(gd=n,n=Hg(fS,"onSelect"),0<n.length&&(t=new XS("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=bc)))}function wg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Oc={animationend:wg("Animation","AnimationEnd"),animationiteration:wg("Animation","AnimationIteration"),animationstart:wg("Animation","AnimationStart"),transitionend:wg("Transition","TransitionEnd")},LE={},NB={};$s&&(NB=document.createElement("div").style,"AnimationEvent"in window||(delete Oc.animationend.animation,delete Oc.animationiteration.animation,delete Oc.animationstart.animation),"TransitionEvent"in window||delete Oc.transitionend.transition);function dy(e){if(LE[e])return LE[e];if(!Oc[e])return e;var t=Oc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in NB)return LE[e]=t[r];return e}var RB=dy("animationend"),BB=dy("animationiteration"),kB=dy("animationstart"),MB=dy("transitionend"),jB=new Map,f4="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 va(e,t){jB.set(e,t),Zu(t,[e])}for(Cg=0;Cg<f4.length;Cg++)Eg=f4[Cg],p4=Eg.toLowerCase(),d4=Eg[0].toUpperCase()+Eg.slice(1),va(p4,"on"+d4);var Eg,p4,d4,Cg;va(RB,"onAnimationEnd");va(BB,"onAnimationIteration");va(kB,"onAnimationStart");va("dblclick","onDoubleClick");va("focusin","onFocus");va("focusout","onBlur");va(MB,"onTransitionEnd");Uc("onMouseEnter",["mouseout","mouseover"]);Uc("onMouseLeave",["mouseout","mouseover"]);Uc("onPointerEnter",["pointerout","pointerover"]);Uc("onPointerLeave",["pointerout","pointerover"]);Zu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zu("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fd="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(" "),Xte=new Set("cancel close invalid load scroll toggle".split(" ").concat(fd));function m4(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Xee(n,t,void 0,e),e.currentTarget=null}function VB(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var a=n[o],u=a.instance,l=a.currentTarget;if(a=a.listener,u!==s&&i.isPropagationStopped())break e;m4(i,a,l),s=u}else for(o=0;o<n.length;o++){if(a=n[o],u=a.instance,l=a.currentTarget,a=a.listener,u!==s&&i.isPropagationStopped())break e;m4(i,a,l),s=u}}}if($g)throw e=aS,$g=!1,aS=null,e}function mt(e,t){var r=t[yS];r===void 0&&(r=t[yS]=new Set);var n=e+"__bubble";r.has(n)||(UB(t,e,2,!1),r.add(n))}function NE(e,t,r){var n=0;t&&(n|=4),UB(r,e,n,t)}var Sg="_reactListening"+Math.random().toString(36).slice(2);function Ad(e){if(!e[Sg]){e[Sg]=!0,Y4.forEach(function(r){r!=="selectionchange"&&(Xte.has(r)||NE(r,!1,e),NE(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sg]||(t[Sg]=!0,NE("selectionchange",!1,t))}}function UB(e,t,r,n){switch(xB(t)){case 1:var i=pte;break;case 4:i=dte;break;default:i=YS}r=i.bind(null,t,r,e),i=void 0,!oS||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function RE(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;a!==null;){if(o=$u(a),o===null)return;if(u=o.tag,u===5||u===6){n=s=o;continue e}a=a.parentNode}}n=n.return}cB(function(){var l=s,c=GS(r),f=[];e:{var p=jB.get(e);if(p!==void 0){var d=XS,m=e;switch(e){case"keypress":if(Pg(r)===0)break e;case"keydown":case"keyup":d=Fte;break;case"focusin":m="focus",d=TE;break;case"focusout":m="blur",d=TE;break;case"beforeblur":case"afterblur":d=TE;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=t4;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=gte;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=Tte;break;case RB:case BB:case kB:d=vte;break;case MB:d=Lte;break;case"scroll":d=mte;break;case"wheel":d=Rte;break;case"copy":case"cut":case"paste":d=Cte;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=n4}var y=(t&4)!==0,D=!y&&e==="scroll",h=y?p!==null?p+"Capture":null:p;y=[];for(var g=l,v;g!==null;){v=g;var w=v.stateNode;if(v.tag===5&&w!==null&&(v=w,h!==null&&(w=Sd(g,h),w!=null&&y.push(Id(g,w,v)))),D)break;g=g.return}0<y.length&&(p=new d(p,m,null,r,c),f.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&r!==iS&&(m=r.relatedTarget||r.fromElement)&&($u(m)||m[Ws]))break e;if((d||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,d?(m=r.relatedTarget||r.toElement,d=l,m=m?$u(m):null,m!==null&&(D=Qu(m),m!==D||m.tag!==5&&m.tag!==6)&&(m=null)):(d=null,m=l),d!==m)){if(y=t4,w="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=n4,w="onPointerLeave",h="onPointerEnter",g="pointer"),D=d==null?p:Fc(d),v=m==null?p:Fc(m),p=new y(w,g+"leave",d,r,c),p.target=D,p.relatedTarget=v,w=null,$u(c)===l&&(y=new y(h,g+"enter",m,r,c),y.target=v,y.relatedTarget=D,w=y),D=w,d&&m)t:{for(y=d,h=m,g=0,v=y;v;v=Ec(v))g++;for(v=0,w=h;w;w=Ec(w))v++;for(;0<g-v;)y=Ec(y),g--;for(;0<v-g;)h=Ec(h),v--;for(;g--;){if(y===h||h!==null&&y===h.alternate)break t;y=Ec(y),h=Ec(h)}y=null}else y=null;d!==null&&h4(f,p,d,y,!1),m!==null&&D!==null&&h4(f,D,m,y,!0)}}e:{if(p=l?Fc(l):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var E=$te;else if(o4(p))if(IB)E=zte;else{E=Gte;var I=Wte}else(d=p.nodeName)&&d.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=qte);if(E&&(E=E(e,l))){AB(f,E,r,c);break e}I&&I(e,p,l),e==="focusout"&&(I=p._wrapperState)&&I.controlled&&p.type==="number"&&QE(p,"number",p.value)}switch(I=l?Fc(l):window,e){case"focusin":(o4(I)||I.contentEditable==="true")&&(bc=I,fS=l,gd=null);break;case"focusout":gd=fS=bc=null;break;case"mousedown":pS=!0;break;case"contextmenu":case"mouseup":case"dragend":pS=!1,c4(f,r,c);break;case"selectionchange":if(Kte)break;case"keydown":case"keyup":c4(f,r,c)}var A;if(ZS)e:{switch(e){case"compositionstart":var W="onCompositionStart";break e;case"compositionend":W="onCompositionEnd";break e;case"compositionupdate":W="onCompositionUpdate";break e}W=void 0}else _c?OB(e,r)&&(W="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(W="onCompositionStart");W&&(bB&&r.locale!=="ko"&&(_c||W!=="onCompositionStart"?W==="onCompositionEnd"&&_c&&(A=_B()):(aa=c,KS="value"in aa?aa.value:aa.textContent,_c=!0)),I=Hg(l,W),0<I.length&&(W=new r4(W,e,null,r,c),f.push({event:W,listeners:I}),A?W.data=A:(A=FB(r),A!==null&&(W.data=A)))),(A=kte?Mte(e,r):jte(e,r))&&(l=Hg(l,"onBeforeInput"),0<l.length&&(c=new r4("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:l}),c.data=A))}VB(f,t)})}function Id(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Hg(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Sd(e,r),s!=null&&n.unshift(Id(e,s,i)),s=Sd(e,t),s!=null&&n.push(Id(e,s,i))),e=e.return}return n}function Ec(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function h4(e,t,r,n,i){for(var s=t._reactName,o=[];r!==null&&r!==n;){var a=r,u=a.alternate,l=a.stateNode;if(u!==null&&u===n)break;a.tag===5&&l!==null&&(a=l,i?(u=Sd(r,s),u!=null&&o.unshift(Id(r,u,a))):i||(u=Sd(r,s),u!=null&&o.push(Id(r,u,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var Jte=/\r\n?/g,Zte=/\u0000|\uFFFD/g;function g4(e){return(typeof e=="string"?e:""+e).replace(Jte,`
423
423
  `).replace(Zte,"")}function xg(e,t,r){if(t=g4(t),g4(e)!==t&&r)throw Error(J(425))}function Yg(){}var dS=null,mS=null;function hS(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 gS=typeof setTimeout=="function"?setTimeout:void 0,Qte=typeof clearTimeout=="function"?clearTimeout:void 0,y4=typeof Promise=="function"?Promise:void 0,ere=typeof queueMicrotask=="function"?queueMicrotask:typeof y4<"u"?function(e){return y4.resolve(null).then(e).catch(tre)}:gS;function tre(e){setTimeout(function(){throw e})}function BE(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),bd(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);bd(t)}function pa(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 D4(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Kc=Math.random().toString(36).slice(2),as="__reactFiber$"+Kc,Td="__reactProps$"+Kc,Ws="__reactContainer$"+Kc,yS="__reactEvents$"+Kc,rre="__reactListeners$"+Kc,nre="__reactHandles$"+Kc;function $u(e){var t=e[as];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ws]||r[as]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=D4(e);e!==null;){if(r=e[as])return r;e=D4(e)}return t}e=r,r=e.parentNode}return null}function Vd(e){return e=e[as]||e[Ws],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(J(33))}function my(e){return e[Td]||null}var DS=[],Ac=-1;function wa(e){return{current:e}}function ht(e){0>Ac||(e.current=DS[Ac],DS[Ac]=null,Ac--)}function ut(e,t){Ac++,DS[Ac]=e.current,e.current=t}var Da={},Ir=wa(Da),nn=wa(!1),Hu=Da;function $c(e,t){var r=e.type.contextTypes;if(!r)return Da;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function sn(e){return e=e.childContextTypes,e!=null}function Kg(){ht(nn),ht(Ir)}function v4(e,t,r){if(Ir.current!==Da)throw Error(J(168));ut(Ir,t),ut(nn,r)}function $B(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(J(108,Wee(e)||"Unknown",i));return At({},r,n)}function Xg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Da,Hu=Ir.current,ut(Ir,e),ut(nn,nn.current),!0}function w4(e,t,r){var n=e.stateNode;if(!n)throw Error(J(169));r?(e=$B(e,t,Hu),n.__reactInternalMemoizedMergedChildContext=e,ht(nn),ht(Ir),ut(Ir,e)):ht(nn),ut(nn,r)}var Ms=null,hy=!1,kE=!1;function WB(e){Ms===null?Ms=[e]:Ms.push(e)}function ire(e){hy=!0,WB(e)}function Ca(){if(!kE&&Ms!==null){kE=!0;var e=0,t=tt;try{var r=Ms;for(tt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ms=null,hy=!1}catch(i){throw Ms!==null&&(Ms=Ms.slice(e+1)),mB(qS,Ca),i}finally{tt=t,kE=!1}}return null}var Ic=[],Tc=0,Jg=null,Zg=0,ri=[],ni=0,Yu=null,js=1,Vs="";function Vu(e,t){Ic[Tc++]=Zg,Ic[Tc++]=Jg,Jg=e,Zg=t}function GB(e,t,r){ri[ni++]=js,ri[ni++]=Vs,ri[ni++]=Yu,Yu=e;var n=js;e=Vs;var i=32-Ti(n)-1;n&=~(1<<i),r+=1;var s=32-Ti(t)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,js=1<<32-Ti(t)+i|r<<i|n,Vs=s+e}else js=1<<s|r<<i|n,Vs=e}function ex(e){e.return!==null&&(Vu(e,1),GB(e,1,0))}function tx(e){for(;e===Jg;)Jg=Ic[--Tc],Ic[Tc]=null,Zg=Ic[--Tc],Ic[Tc]=null;for(;e===Yu;)Yu=ri[--ni],ri[ni]=null,Vs=ri[--ni],ri[ni]=null,js=ri[--ni],ri[ni]=null}var Sn=null,En=null,Et=!1,Ii=null;function qB(e,t){var r=ii(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function C4(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Sn=e,En=pa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Sn=e,En=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Yu!==null?{id:js,overflow:Vs}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ii(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Sn=e,En=null,!0):!1;default:return!1}}function vS(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wS(e){if(Et){var t=En;if(t){var r=t;if(!C4(e,t)){if(vS(e))throw Error(J(418));t=pa(r.nextSibling);var n=Sn;t&&C4(e,t)?qB(n,r):(e.flags=e.flags&-4097|2,Et=!1,Sn=e)}}else{if(vS(e))throw Error(J(418));e.flags=e.flags&-4097|2,Et=!1,Sn=e}}}function E4(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Sn=e}function _g(e){if(e!==Sn)return!1;if(!Et)return E4(e),Et=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hS(e.type,e.memoizedProps)),t&&(t=En)){if(vS(e))throw zB(),Error(J(418));for(;t;)qB(e,t),t=pa(t.nextSibling)}if(E4(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(J(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){En=pa(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}En=null}}else En=Sn?pa(e.stateNode.nextSibling):null;return!0}function zB(){for(var e=En;e;)e=pa(e.nextSibling)}function Wc(){En=Sn=null,Et=!1}function rx(e){Ii===null?Ii=[e]:Ii.push(e)}var sre=zs.ReactCurrentBatchConfig;function id(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(J(309));var n=r.stateNode}if(!n)throw Error(J(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(J(284));if(!r._owner)throw Error(J(290,e))}return e}function bg(e,t){throw e=Object.prototype.toString.call(t),Error(J(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function S4(e){var t=e._init;return t(e._payload)}function HB(e){function t(h,g){if(e){var v=h.deletions;v===null?(h.deletions=[g],h.flags|=16):v.push(g)}}function r(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function n(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function i(h,g){return h=ga(h,g),h.index=0,h.sibling=null,h}function s(h,g,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<g?(h.flags|=2,g):v):(h.flags|=2,g)):(h.flags|=1048576,g)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function a(h,g,v,w){return g===null||g.tag!==6?(g=GE(v,h.mode,w),g.return=h,g):(g=i(g,v),g.return=h,g)}function u(h,g,v,w){var E=v.type;return E===xc?c(h,g,v.props.children,w,v.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===na&&S4(E)===g.type)?(w=i(g,v.props),w.ref=id(h,g,v),w.return=h,w):(w=jg(v.type,v.key,v.props,null,h.mode,w),w.ref=id(h,g,v),w.return=h,w)}function l(h,g,v,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=qE(v,h.mode,w),g.return=h,g):(g=i(g,v.children||[]),g.return=h,g)}function c(h,g,v,w,E){return g===null||g.tag!==7?(g=zu(v,h.mode,w,E),g.return=h,g):(g=i(g,v),g.return=h,g)}function f(h,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=GE(""+g,h.mode,v),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case fg:return v=jg(g.type,g.key,g.props,null,h.mode,v),v.ref=id(h,null,g),v.return=h,v;case Sc:return g=qE(g,h.mode,v),g.return=h,g;case na:var w=g._init;return f(h,w(g._payload),v)}if(ld(g)||ed(g))return g=zu(g,h.mode,v,null),g.return=h,g;bg(h,g)}return null}function p(h,g,v,w){var E=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:a(h,g,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case fg:return v.key===E?u(h,g,v,w):null;case Sc:return v.key===E?l(h,g,v,w):null;case na:return E=v._init,p(h,g,E(v._payload),w)}if(ld(v)||ed(v))return E!==null?null:c(h,g,v,w,null);bg(h,v)}return null}function d(h,g,v,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(v)||null,a(g,h,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case fg:return h=h.get(w.key===null?v:w.key)||null,u(g,h,w,E);case Sc:return h=h.get(w.key===null?v:w.key)||null,l(g,h,w,E);case na:var I=w._init;return d(h,g,v,I(w._payload),E)}if(ld(w)||ed(w))return h=h.get(v)||null,c(g,h,w,E,null);bg(g,w)}return null}function m(h,g,v,w){for(var E=null,I=null,A=g,W=g=0,b=null;A!==null&&W<v.length;W++){A.index>W?(b=A,A=null):b=A.sibling;var T=p(h,A,v[W],w);if(T===null){A===null&&(A=b);break}e&&A&&T.alternate===null&&t(h,A),g=s(T,g,W),I===null?E=T:I.sibling=T,I=T,A=b}if(W===v.length)return r(h,A),Et&&Vu(h,W),E;if(A===null){for(;W<v.length;W++)A=f(h,v[W],w),A!==null&&(g=s(A,g,W),I===null?E=A:I.sibling=A,I=A);return Et&&Vu(h,W),E}for(A=n(h,A);W<v.length;W++)b=d(A,h,W,v[W],w),b!==null&&(e&&b.alternate!==null&&A.delete(b.key===null?W:b.key),g=s(b,g,W),I===null?E=b:I.sibling=b,I=b);return e&&A.forEach(function(F){return t(h,F)}),Et&&Vu(h,W),E}function y(h,g,v,w){var E=ed(v);if(typeof E!="function")throw Error(J(150));if(v=E.call(v),v==null)throw Error(J(151));for(var I=E=null,A=g,W=g=0,b=null,T=v.next();A!==null&&!T.done;W++,T=v.next()){A.index>W?(b=A,A=null):b=A.sibling;var F=p(h,A,T.value,w);if(F===null){A===null&&(A=b);break}e&&A&&F.alternate===null&&t(h,A),g=s(F,g,W),I===null?E=F:I.sibling=F,I=F,A=b}if(T.done)return r(h,A),Et&&Vu(h,W),E;if(A===null){for(;!T.done;W++,T=v.next())T=f(h,T.value,w),T!==null&&(g=s(T,g,W),I===null?E=T:I.sibling=T,I=T);return Et&&Vu(h,W),E}for(A=n(h,A);!T.done;W++,T=v.next())T=d(A,h,W,T.value,w),T!==null&&(e&&T.alternate!==null&&A.delete(T.key===null?W:T.key),g=s(T,g,W),I===null?E=T:I.sibling=T,I=T);return e&&A.forEach(function(k){return t(h,k)}),Et&&Vu(h,W),E}function D(h,g,v,w){if(typeof v=="object"&&v!==null&&v.type===xc&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case fg:e:{for(var E=v.key,I=g;I!==null;){if(I.key===E){if(E=v.type,E===xc){if(I.tag===7){r(h,I.sibling),g=i(I,v.props.children),g.return=h,h=g;break e}}else if(I.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===na&&S4(E)===I.type){r(h,I.sibling),g=i(I,v.props),g.ref=id(h,I,v),g.return=h,h=g;break e}r(h,I);break}else t(h,I);I=I.sibling}v.type===xc?(g=zu(v.props.children,h.mode,w,v.key),g.return=h,h=g):(w=jg(v.type,v.key,v.props,null,h.mode,w),w.ref=id(h,g,v),w.return=h,h=w)}return o(h);case Sc:e:{for(I=v.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){r(h,g.sibling),g=i(g,v.children||[]),g.return=h,h=g;break e}else{r(h,g);break}else t(h,g);g=g.sibling}g=qE(v,h.mode,w),g.return=h,h=g}return o(h);case na:return I=v._init,D(h,g,I(v._payload),w)}if(ld(v))return m(h,g,v,w);if(ed(v))return y(h,g,v,w);bg(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(r(h,g.sibling),g=i(g,v),g.return=h,h=g):(r(h,g),g=GE(v,h.mode,w),g.return=h,h=g),o(h)):r(h,g)}return D}var Gc=HB(!0),YB=HB(!1),Qg=wa(null),ey=null,Pc=null,nx=null;function ix(){nx=Pc=ey=null}function sx(e){var t=Qg.current;ht(Qg),e._currentValue=t}function CS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function jc(e,t){ey=e,nx=Pc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rn=!0),e.firstContext=null)}function oi(e){var t=e._currentValue;if(nx!==e)if(e={context:e,memoizedValue:t,next:null},Pc===null){if(ey===null)throw Error(J(308));Pc=e,ey.dependencies={lanes:0,firstContext:e}}else Pc=Pc.next=e;return t}var Wu=null;function ox(e){Wu===null?Wu=[e]:Wu.push(e)}function KB(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,ox(t)):(r.next=i.next,i.next=r),t.interleaved=r,Gs(e,n)}function Gs(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ia=!1;function ax(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function XB(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 Us(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function da(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Xe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Gs(e,r)}return i=n.interleaved,i===null?(t.next=t,ox(n)):(t.next=i.next,i.next=t),n.interleaved=t,Gs(e,r)}function Lg(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,zS(e,r)}}function x4(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ty(e,t,r,n){var i=e.updateQueue;ia=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,l=u.next;u.next=null,o===null?s=l:o.next=l,o=u;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=l:a.next=l,c.lastBaseUpdate=u))}if(s!==null){var f=i.baseState;o=0,c=l=u=null,a=s;do{var p=a.lane,d=a.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(p=t,d=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){f=m.call(d,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,p=typeof m=="function"?m.call(d,f,p):m,p==null)break e;f=At({},f,p);break e;case 2:ia=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else d={eventTime:d,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(l=c=d,u=f):c=c.next=d,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Xu|=o,e.lanes=o,e.memoizedState=f}}function _4(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(J(191,i));i.call(n)}}}var Ud={},ls=wa(Ud),Pd=wa(Ud),Ld=wa(Ud);function Gu(e){if(e===Ud)throw Error(J(174));return e}function ux(e,t){switch(ut(Ld,t),ut(Pd,e),ut(ls,Ud),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tS(t,e)}ht(ls),ut(ls,t)}function qc(){ht(ls),ht(Pd),ht(Ld)}function JB(e){Gu(Ld.current);var t=Gu(ls.current),r=tS(t,e.type);t!==r&&(ut(Pd,e),ut(ls,r))}function lx(e){Pd.current===e&&(ht(ls),ht(Pd))}var Ot=wa(0);function ry(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 ME=[];function cx(){for(var e=0;e<ME.length;e++)ME[e]._workInProgressVersionPrimary=null;ME.length=0}var Ng=zs.ReactCurrentDispatcher,jE=zs.ReactCurrentBatchConfig,Ku=0,Ft=null,Xt=null,or=null,ny=!1,yd=!1,Nd=0,ore=0;function Or(){throw Error(J(321))}function fx(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Li(e[r],t[r]))return!1;return!0}function px(e,t,r,n,i,s){if(Ku=s,Ft=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ng.current=e===null||e.memoizedState===null?cre:fre,e=r(n,i),yd){s=0;do{if(yd=!1,Nd=0,25<=s)throw Error(J(301));s+=1,or=Xt=null,t.updateQueue=null,Ng.current=pre,e=r(n,i)}while(yd)}if(Ng.current=iy,t=Xt!==null&&Xt.next!==null,Ku=0,or=Xt=Ft=null,ny=!1,t)throw Error(J(300));return e}function dx(){var e=Nd!==0;return Nd=0,e}function os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return or===null?Ft.memoizedState=or=e:or=or.next=e,or}function ai(){if(Xt===null){var e=Ft.alternate;e=e!==null?e.memoizedState:null}else e=Xt.next;var t=or===null?Ft.memoizedState:or.next;if(t!==null)or=t,Xt=e;else{if(e===null)throw Error(J(310));Xt=e,e={memoizedState:Xt.memoizedState,baseState:Xt.baseState,baseQueue:Xt.baseQueue,queue:Xt.queue,next:null},or===null?Ft.memoizedState=or=e:or=or.next=e}return or}function Rd(e,t){return typeof t=="function"?t(e):t}function VE(e){var t=ai(),r=t.queue;if(r===null)throw Error(J(311));r.lastRenderedReducer=e;var n=Xt,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var a=o=null,u=null,l=s;do{var c=l.lane;if((Ku&c)===c)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var f={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(a=u=f,o=n):u=u.next=f,Ft.lanes|=c,Xu|=c}l=l.next}while(l!==null&&l!==s);u===null?o=n:u.next=a,Li(n,t.memoizedState)||(rn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,Ft.lanes|=s,Xu|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function UE(e){var t=ai(),r=t.queue;if(r===null)throw Error(J(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Li(s,t.memoizedState)||(rn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function ZB(){}function QB(e,t){var r=Ft,n=ai(),i=t(),s=!Li(n.memoizedState,i);if(s&&(n.memoizedState=i,rn=!0),n=n.queue,mx(r6.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||or!==null&&or.memoizedState.tag&1){if(r.flags|=2048,Bd(9,t6.bind(null,r,n,i,t),void 0,null),ar===null)throw Error(J(349));Ku&30||e6(r,t,i)}return i}function e6(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ft.updateQueue,t===null?(t={lastEffect:null,stores:null},Ft.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function t6(e,t,r,n){t.value=r,t.getSnapshot=n,n6(t)&&i6(e)}function r6(e,t,r){return r(function(){n6(t)&&i6(e)})}function n6(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Li(e,r)}catch{return!0}}function i6(e){var t=Gs(e,1);t!==null&&Pi(t,e,1,-1)}function b4(e){var t=os();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rd,lastRenderedState:e},t.queue=e,e=e.dispatch=lre.bind(null,Ft,e),[t.memoizedState,e]}function Bd(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ft.updateQueue,t===null?(t={lastEffect:null,stores:null},Ft.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function s6(){return ai().memoizedState}function Rg(e,t,r,n){var i=os();Ft.flags|=e,i.memoizedState=Bd(1|t,r,void 0,n===void 0?null:n)}function gy(e,t,r,n){var i=ai();n=n===void 0?null:n;var s=void 0;if(Xt!==null){var o=Xt.memoizedState;if(s=o.destroy,n!==null&&fx(n,o.deps)){i.memoizedState=Bd(t,r,s,n);return}}Ft.flags|=e,i.memoizedState=Bd(1|t,r,s,n)}function O4(e,t){return Rg(8390656,8,e,t)}function mx(e,t){return gy(2048,8,e,t)}function o6(e,t){return gy(4,2,e,t)}function a6(e,t){return gy(4,4,e,t)}function u6(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 l6(e,t,r){return r=r!=null?r.concat([e]):null,gy(4,4,u6.bind(null,t,e),r)}function hx(){}function c6(e,t){var r=ai();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&fx(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function f6(e,t){var r=ai();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&fx(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function p6(e,t,r){return Ku&21?(Li(r,t)||(r=yB(),Ft.lanes|=r,Xu|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,rn=!0),e.memoizedState=r)}function are(e,t){var r=tt;tt=r!==0&&4>r?r:4,e(!0);var n=jE.transition;jE.transition={};try{e(!1),t()}finally{tt=r,jE.transition=n}}function d6(){return ai().memoizedState}function ure(e,t,r){var n=ha(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},m6(e))h6(t,r);else if(r=KB(e,t,r,n),r!==null){var i=$r();Pi(r,e,n,i),g6(r,t,n)}}function lre(e,t,r){var n=ha(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(m6(e))h6(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,Li(a,o)){var u=t.interleaved;u===null?(i.next=i,ox(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=KB(e,t,i,n),r!==null&&(i=$r(),Pi(r,e,n,i),g6(r,t,n))}}function m6(e){var t=e.alternate;return e===Ft||t!==null&&t===Ft}function h6(e,t){yd=ny=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function g6(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,zS(e,r)}}var iy={readContext:oi,useCallback:Or,useContext:Or,useEffect:Or,useImperativeHandle:Or,useInsertionEffect:Or,useLayoutEffect:Or,useMemo:Or,useReducer:Or,useRef:Or,useState:Or,useDebugValue:Or,useDeferredValue:Or,useTransition:Or,useMutableSource:Or,useSyncExternalStore:Or,useId:Or,unstable_isNewReconciler:!1},cre={readContext:oi,useCallback:function(e,t){return os().memoizedState=[e,t===void 0?null:t],e},useContext:oi,useEffect:O4,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Rg(4194308,4,u6.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Rg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rg(4,2,e,t)},useMemo:function(e,t){var r=os();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=os();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ure.bind(null,Ft,e),[n.memoizedState,e]},useRef:function(e){var t=os();return e={current:e},t.memoizedState=e},useState:b4,useDebugValue:hx,useDeferredValue:function(e){return os().memoizedState=e},useTransition:function(){var e=b4(!1),t=e[0];return e=are.bind(null,e[1]),os().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ft,i=os();if(Et){if(r===void 0)throw Error(J(407));r=r()}else{if(r=t(),ar===null)throw Error(J(349));Ku&30||e6(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,O4(r6.bind(null,n,s,e),[e]),n.flags|=2048,Bd(9,t6.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=os(),t=ar.identifierPrefix;if(Et){var r=Vs,n=js;r=(n&~(1<<32-Ti(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Nd++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=ore++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fre={readContext:oi,useCallback:c6,useContext:oi,useEffect:mx,useImperativeHandle:l6,useInsertionEffect:o6,useLayoutEffect:a6,useMemo:f6,useReducer:VE,useRef:s6,useState:function(){return VE(Rd)},useDebugValue:hx,useDeferredValue:function(e){var t=ai();return p6(t,Xt.memoizedState,e)},useTransition:function(){var e=VE(Rd)[0],t=ai().memoizedState;return[e,t]},useMutableSource:ZB,useSyncExternalStore:QB,useId:d6,unstable_isNewReconciler:!1},pre={readContext:oi,useCallback:c6,useContext:oi,useEffect:mx,useImperativeHandle:l6,useInsertionEffect:o6,useLayoutEffect:a6,useMemo:f6,useReducer:UE,useRef:s6,useState:function(){return UE(Rd)},useDebugValue:hx,useDeferredValue:function(e){var t=ai();return Xt===null?t.memoizedState=e:p6(t,Xt.memoizedState,e)},useTransition:function(){var e=UE(Rd)[0],t=ai().memoizedState;return[e,t]},useMutableSource:ZB,useSyncExternalStore:QB,useId:d6,unstable_isNewReconciler:!1};function Fi(e,t){if(e&&e.defaultProps){t=At({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function ES(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:At({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var yy={isMounted:function(e){return(e=e._reactInternals)?Qu(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=$r(),i=ha(e),s=Us(n,i);s.payload=t,r!=null&&(s.callback=r),t=da(e,s,i),t!==null&&(Pi(t,e,i,n),Lg(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=$r(),i=ha(e),s=Us(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=da(e,s,i),t!==null&&(Pi(t,e,i,n),Lg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=$r(),n=ha(e),i=Us(r,n);i.tag=2,t!=null&&(i.callback=t),t=da(e,i,n),t!==null&&(Pi(t,e,n,r),Lg(t,e,n))}};function F4(e,t,r,n,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!Fd(r,n)||!Fd(i,s):!0}function y6(e,t,r){var n=!1,i=Da,s=t.contextType;return typeof s=="object"&&s!==null?s=oi(s):(i=sn(t)?Hu:Ir.current,n=t.contextTypes,s=(n=n!=null)?$c(e,i):Da),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yy,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function A4(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&yy.enqueueReplaceState(t,t.state,null)}function SS(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},ax(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=oi(s):(s=sn(t)?Hu:Ir.current,i.context=$c(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ES(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&yy.enqueueReplaceState(i,i.state,null),ty(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function zc(e,t){try{var r="",n=t;do r+=$ee(n),n=n.return;while(n);var i=r}catch(s){i=`
424
424
  Error generating stack: `+s.message+`
425
- `+s.stack}return{value:e,source:t,stack:i,digest:null}}function $E(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function xS(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var dre=typeof WeakMap=="function"?WeakMap:Map;function D6(e,t,r){r=Us(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){oy||(oy=!0,NS=n),xS(e,t)},r}function v6(e,t,r){r=Us(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){xS(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){xS(e,t),typeof n!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function I4(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new dre;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Ore.bind(null,e,t,r),t.then(e,e))}function T4(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 P4(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Us(-1,1),t.tag=2,da(r,t,1))),r.lanes|=1),e)}var mre=zs.ReactCurrentOwner,rn=!1;function Ur(e,t,r,n){t.child=e===null?YB(t,null,r,n):Gc(t,e.child,r,n)}function L4(e,t,r,n,i){r=r.render;var s=t.ref;return jc(t,i),n=px(e,t,r,n,s,i),r=dx(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i)):(Et&&r&&ex(t),t.flags|=1,Ur(e,t,n,i),t.child)}function N4(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Sx(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,w6(e,t,s,n,i)):(e=jg(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Fd,r(o,n)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,e=ga(s,n),e.ref=t.ref,e.return=t,t.child=e}function w6(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Fd(s,n)&&e.ref===t.ref)if(rn=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(rn=!0);else return t.lanes=e.lanes,qs(e,t,i)}return _S(e,t,r,n,i)}function C6(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(Nc,Cn),Cn|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ut(Nc,Cn),Cn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ut(Nc,Cn),Cn|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ut(Nc,Cn),Cn|=n;return Ur(e,t,i,r),t.child}function E6(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function _S(e,t,r,n,i){var s=sn(r)?Hu:Ir.current;return s=$c(t,s),jc(t,i),r=px(e,t,r,n,s,i),n=dx(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i)):(Et&&n&&ex(t),t.flags|=1,Ur(e,t,r,i),t.child)}function R4(e,t,r,n,i){if(sn(r)){var s=!0;Xg(t)}else s=!1;if(jc(t,i),t.stateNode===null)Bg(e,t),y6(t,r,n),SS(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,l=r.contextType;typeof l=="object"&&l!==null?l=oi(l):(l=sn(r)?Hu:Ir.current,l=$c(t,l));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||u!==l)&&A4(t,o,n,l),ia=!1;var p=t.memoizedState;o.state=p,ty(t,n,o,i),u=t.memoizedState,a!==n||p!==u||nn.current||ia?(typeof c=="function"&&(ES(t,r,c,n),u=t.memoizedState),(a=ia||F4(t,r,a,n,p,u,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=l,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,XB(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Fi(t.type,a),o.props=l,f=t.pendingProps,p=o.context,u=r.contextType,typeof u=="object"&&u!==null?u=oi(u):(u=sn(r)?Hu:Ir.current,u=$c(t,u));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||p!==u)&&A4(t,o,n,u),ia=!1,p=t.memoizedState,o.state=p,ty(t,n,o,i);var m=t.memoizedState;a!==f||p!==m||nn.current||ia?(typeof d=="function"&&(ES(t,r,d,n),m=t.memoizedState),(l=ia||F4(t,r,l,n,p,m,u)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=u,n=l):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return bS(e,t,r,n,s,i)}function bS(e,t,r,n,i,s){E6(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&w4(t,r,!1),qs(e,t,s);n=t.stateNode,mre.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Gc(t,e.child,null,s),t.child=Gc(t,null,a,s)):Ur(e,t,a,s),t.memoizedState=n.state,i&&w4(t,r,!0),t.child}function S6(e){var t=e.stateNode;t.pendingContext?v4(e,t.pendingContext,t.pendingContext!==t.context):t.context&&v4(e,t.context,!1),ux(e,t.containerInfo)}function B4(e,t,r,n,i){return Wc(),rx(i),t.flags|=256,Ur(e,t,r,n),t.child}var OS={dehydrated:null,treeContext:null,retryLane:0};function FS(e){return{baseLanes:e,cachePool:null,transitions:null}}function x6(e,t,r){var n=t.pendingProps,i=Ot.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ut(Ot,i&1),e===null)return wS(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):(o=n.children,e=n.fallback,s?(n=t.mode,s=t.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=wy(o,n,0,null),e=zu(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=FS(r),t.memoizedState=OS,e):gx(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return hre(e,t,o,n,a,i,r);if(s){s=n.fallback,o=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=ga(i,u),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=ga(a,s):(s=zu(s,o,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,o=e.child.memoizedState,o=o===null?FS(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=OS,n}return s=e.child,e=s.sibling,n=ga(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function gx(e,t){return t=wy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Og(e,t,r,n){return n!==null&&rx(n),Gc(t,e.child,null,r),e=gx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hre(e,t,r,n,i,s,o){if(r)return t.flags&256?(t.flags&=-257,n=$E(Error(J(422))),Og(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=wy({mode:"visible",children:n.children},i,0,null),s=zu(s,i,o,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&Gc(t,e.child,null,o),t.child.memoizedState=FS(o),t.memoizedState=OS,s);if(!(t.mode&1))return Og(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(J(419)),n=$E(s,n,void 0),Og(e,t,o,n)}if(a=(o&e.childLanes)!==0,rn||a){if(n=ar,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Gs(e,i),Pi(n,e,i,-1))}return Ex(),n=$E(Error(J(421))),Og(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Fre.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,En=pa(i.nextSibling),Sn=t,Et=!0,Ii=null,e!==null&&(ri[ni++]=js,ri[ni++]=Vs,ri[ni++]=Yu,js=e.id,Vs=e.overflow,Yu=t),t=gx(t,n.children),t.flags|=4096,t)}function k4(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),CS(e.return,t,r)}function WE(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function _6(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(Ur(e,t,n.children,r),n=Ot.current,n&2)n=n&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&&k4(e,r,t);else if(e.tag===19)k4(e,r,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}n&=1}if(ut(Ot,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&ry(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),WE(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ry(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}WE(t,!0,r,null,s);break;case"together":WE(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Xu|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(J(153));if(t.child!==null){for(e=t.child,r=ga(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ga(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function gre(e,t,r){switch(t.tag){case 3:S6(t),Wc();break;case 5:JB(t);break;case 1:sn(t.type)&&Xg(t);break;case 4:ux(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ut(Qg,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ut(Ot,Ot.current&1),t.flags|=128,null):r&t.child.childLanes?x6(e,t,r):(ut(Ot,Ot.current&1),e=qs(e,t,r),e!==null?e.sibling:null);ut(Ot,Ot.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return _6(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ut(Ot,Ot.current),n)break;return null;case 22:case 23:return t.lanes=0,C6(e,t,r)}return qs(e,t,r)}var b6,AS,O6,F6;b6=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};AS=function(){};O6=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Gu(ls.current);var s=null;switch(r){case"input":i=JE(e,i),n=JE(e,n),s=[];break;case"select":i=At({},i,{value:void 0}),n=At({},n,{value:void 0}),s=[];break;case"textarea":i=eS(e,i),n=eS(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Yg)}rS(r,n);var o;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Cd.hasOwnProperty(l)?s||(s=[]):(s=s||[]).push(l,null));for(l in n){var u=n[l];if(a=i?.[l],n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(s||(s=[]),s.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Cd.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&mt("scroll",e),s||a===u||(s=[])):(s=s||[]).push(l,u))}r&&(s=s||[]).push("style",r);var l=s;(t.updateQueue=l)&&(t.flags|=4)}};F6=function(e,t,r,n){r!==n&&(t.flags|=4)};function sd(e,t){if(!Et)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Fr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function yre(e,t,r){var n=t.pendingProps;switch(tx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fr(t),null;case 1:return sn(t.type)&&Kg(),Fr(t),null;case 3:return n=t.stateNode,qc(),ht(nn),ht(Ir),cx(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_g(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii!==null&&(kS(Ii),Ii=null))),AS(e,t),Fr(t),null;case 5:lx(t);var i=Gu(Ld.current);if(r=t.type,e!==null&&t.stateNode!=null)O6(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(J(166));return Fr(t),null}if(e=Gu(ls.current),_g(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[as]=t,n[Td]=s,e=(t.mode&1)!==0,r){case"dialog":mt("cancel",n),mt("close",n);break;case"iframe":case"object":case"embed":mt("load",n);break;case"video":case"audio":for(i=0;i<fd.length;i++)mt(fd[i],n);break;case"source":mt("error",n);break;case"img":case"image":case"link":mt("error",n),mt("load",n);break;case"details":mt("toggle",n);break;case"input":q5(n,s),mt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},mt("invalid",n);break;case"textarea":H5(n,s),mt("invalid",n)}rS(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(s.suppressHydrationWarning!==!0&&xg(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&xg(n.textContent,a,e),i=["children",""+a]):Cd.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&mt("scroll",n)}switch(r){case"input":pg(n),z5(n,s,!0);break;case"textarea":pg(n),Y5(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=Yg)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rB(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[as]=t,e[Td]=n,b6(e,t,!1,!1),t.stateNode=e;e:{switch(o=nS(r,n),r){case"dialog":mt("cancel",e),mt("close",e),i=n;break;case"iframe":case"object":case"embed":mt("load",e),i=n;break;case"video":case"audio":for(i=0;i<fd.length;i++)mt(fd[i],e);i=n;break;case"source":mt("error",e),i=n;break;case"img":case"image":case"link":mt("error",e),mt("load",e),i=n;break;case"details":mt("toggle",e),i=n;break;case"input":q5(e,n),i=JE(e,n),mt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=At({},n,{value:void 0}),mt("invalid",e);break;case"textarea":H5(e,n),i=eS(e,n),mt("invalid",e);break;default:i=n}rS(r,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?sB(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&nB(e,u)):s==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Ed(e,u):typeof u=="number"&&Ed(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Cd.hasOwnProperty(s)?u!=null&&s==="onScroll"&&mt("scroll",e):u!=null&&VS(e,s,u,o))}switch(r){case"input":pg(e),z5(e,n,!1);break;case"textarea":pg(e),Y5(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ya(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?Rc(e,!!n.multiple,s,!1):n.defaultValue!=null&&Rc(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Yg)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fr(t),null;case 6:if(e&&t.stateNode!=null)F6(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(J(166));if(r=Gu(Ld.current),Gu(ls.current),_g(t)){if(n=t.stateNode,r=t.memoizedProps,n[as]=t,(s=n.nodeValue!==r)&&(e=Sn,e!==null))switch(e.tag){case 3:xg(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xg(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[as]=t,t.stateNode=n}return Fr(t),null;case 13:if(ht(Ot),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Et&&En!==null&&t.mode&1&&!(t.flags&128))zB(),Wc(),t.flags|=98560,s=!1;else if(s=_g(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(J(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(J(317));s[as]=t}else Wc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fr(t),s=!1}else Ii!==null&&(kS(Ii),Ii=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ot.current&1?Jt===0&&(Jt=3):Ex())),t.updateQueue!==null&&(t.flags|=4),Fr(t),null);case 4:return qc(),AS(e,t),e===null&&Ad(t.stateNode.containerInfo),Fr(t),null;case 10:return sx(t.type._context),Fr(t),null;case 17:return sn(t.type)&&Kg(),Fr(t),null;case 19:if(ht(Ot),s=t.memoizedState,s===null)return Fr(t),null;if(n=(t.flags&128)!==0,o=s.rendering,o===null)if(n)sd(s,!1);else{if(Jt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ry(e),o!==null){for(t.flags|=128,sd(s,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ut(Ot,Ot.current&1|2),t.child}e=e.sibling}s.tail!==null&&kt()>Hc&&(t.flags|=128,n=!0,sd(s,!1),t.lanes=4194304)}else{if(!n)if(e=ry(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),sd(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Et)return Fr(t),null}else 2*kt()-s.renderingStartTime>Hc&&r!==1073741824&&(t.flags|=128,n=!0,sd(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=kt(),t.sibling=null,r=Ot.current,ut(Ot,n?r&1|2:r&1),t):(Fr(t),null);case 22:case 23:return Cx(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Cn&1073741824&&(Fr(t),t.subtreeFlags&6&&(t.flags|=8192)):Fr(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function Dre(e,t){switch(tx(t),t.tag){case 1:return sn(t.type)&&Kg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qc(),ht(nn),ht(Ir),cx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lx(t),null;case 13:if(ht(Ot),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));Wc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(Ot),null;case 4:return qc(),null;case 10:return sx(t.type._context),null;case 22:case 23:return Cx(),null;case 24:return null;default:return null}}var Fg=!1,Ar=!1,vre=typeof WeakSet=="function"?WeakSet:Set,de=null;function Lc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Pt(e,t,n)}else r.current=null}function IS(e,t,r){try{r()}catch(n){Pt(e,t,n)}}var M4=!1;function wre(e,t){if(dS=qg,e=LB(),QS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==r||i!==0&&f.nodeType!==3||(a=o+i),f!==s||n!==0&&f.nodeType!==3||(u=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===r&&++l===i&&(a=o),p===s&&++c===n&&(u=o),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(mS={focusedElem:e,selectionRange:r},qg=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,D=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Fi(t.type,y),D);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(w){Pt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return m=M4,M4=!1,m}function Dd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&IS(t,r,s)}i=i.next}while(i!==n)}}function Dy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function TS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function A6(e){var t=e.alternate;t!==null&&(e.alternate=null,A6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[as],delete t[Td],delete t[yS],delete t[rre],delete t[nre])),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 I6(e){return e.tag===5||e.tag===3||e.tag===4}function j4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||I6(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 PS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Yg));else if(n!==4&&(e=e.child,e!==null))for(PS(e,t,r),e=e.sibling;e!==null;)PS(e,t,r),e=e.sibling}function LS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(LS(e,t,r),e=e.sibling;e!==null;)LS(e,t,r),e=e.sibling}var hr=null,Ai=!1;function ra(e,t,r){for(r=r.child;r!==null;)T6(e,t,r),r=r.sibling}function T6(e,t,r){if(us&&typeof us.onCommitFiberUnmount=="function")try{us.onCommitFiberUnmount(cy,r)}catch{}switch(r.tag){case 5:Ar||Lc(r,t);case 6:var n=hr,i=Ai;hr=null,ra(e,t,r),hr=n,Ai=i,hr!==null&&(Ai?(e=hr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):hr.removeChild(r.stateNode));break;case 18:hr!==null&&(Ai?(e=hr,r=r.stateNode,e.nodeType===8?BE(e.parentNode,r):e.nodeType===1&&BE(e,r),bd(e)):BE(hr,r.stateNode));break;case 4:n=hr,i=Ai,hr=r.stateNode.containerInfo,Ai=!0,ra(e,t,r),hr=n,Ai=i;break;case 0:case 11:case 14:case 15:if(!Ar&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&IS(r,t,o),i=i.next}while(i!==n)}ra(e,t,r);break;case 1:if(!Ar&&(Lc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Pt(r,t,a)}ra(e,t,r);break;case 21:ra(e,t,r);break;case 22:r.mode&1?(Ar=(n=Ar)||r.memoizedState!==null,ra(e,t,r),Ar=n):ra(e,t,r);break;default:ra(e,t,r)}}function V4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new vre),t.forEach(function(n){var i=Are.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Oi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:hr=a.stateNode,Ai=!1;break e;case 3:hr=a.stateNode.containerInfo,Ai=!0;break e;case 4:hr=a.stateNode.containerInfo,Ai=!0;break e}a=a.return}if(hr===null)throw Error(J(160));T6(s,o,i),hr=null,Ai=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){Pt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)P6(t,e),t=t.sibling}function P6(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Oi(t,e),ss(e),n&4){try{Dd(3,e,e.return),Dy(3,e)}catch(y){Pt(e,e.return,y)}try{Dd(5,e,e.return)}catch(y){Pt(e,e.return,y)}}break;case 1:Oi(t,e),ss(e),n&512&&r!==null&&Lc(r,r.return);break;case 5:if(Oi(t,e),ss(e),n&512&&r!==null&&Lc(r,r.return),e.flags&32){var i=e.stateNode;try{Ed(i,"")}catch(y){Pt(e,e.return,y)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&eB(i,s),nS(a,o);var l=nS(a,s);for(o=0;o<u.length;o+=2){var c=u[o],f=u[o+1];c==="style"?sB(i,f):c==="dangerouslySetInnerHTML"?nB(i,f):c==="children"?Ed(i,f):VS(i,c,f,l)}switch(a){case"input":ZE(i,s);break;case"textarea":tB(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var d=s.value;d!=null?Rc(i,!!s.multiple,d,!1):p!==!!s.multiple&&(s.defaultValue!=null?Rc(i,!!s.multiple,s.defaultValue,!0):Rc(i,!!s.multiple,s.multiple?[]:"",!1))}i[Td]=s}catch(y){Pt(e,e.return,y)}}break;case 6:if(Oi(t,e),ss(e),n&4){if(e.stateNode===null)throw Error(J(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){Pt(e,e.return,y)}}break;case 3:if(Oi(t,e),ss(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{bd(t.containerInfo)}catch(y){Pt(e,e.return,y)}break;case 4:Oi(t,e),ss(e);break;case 13:Oi(t,e),ss(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(vx=kt())),n&4&&V4(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Ar=(l=Ar)||c,Oi(t,e),Ar=l):Oi(t,e),ss(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(de=e,c=e.child;c!==null;){for(f=de=c;de!==null;){switch(p=de,d=p.child,p.tag){case 0:case 11:case 14:case 15:Dd(4,p,p.return);break;case 1:Lc(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Pt(n,r,y)}}break;case 5:Lc(p,p.return);break;case 22:if(p.memoizedState!==null){$4(f);continue}}d!==null?(d.return=p,de=d):$4(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,l?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,u=f.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=iB("display",o))}catch(y){Pt(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=l?"":f.memoizedProps}catch(y){Pt(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Oi(t,e),ss(e),n&4&&V4(e);break;case 21:break;default:Oi(t,e),ss(e)}}function ss(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(I6(r)){var n=r;break e}r=r.return}throw Error(J(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ed(i,""),n.flags&=-33);var s=j4(e);LS(e,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,a=j4(e);PS(e,a,o);break;default:throw Error(J(161))}}catch(u){Pt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cre(e,t,r){de=e,L6(e,t,r)}function L6(e,t,r){for(var n=(e.mode&1)!==0;de!==null;){var i=de,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||Fg;if(!o){var a=i.alternate,u=a!==null&&a.memoizedState!==null||Ar;a=Fg;var l=Ar;if(Fg=o,(Ar=u)&&!l)for(de=i;de!==null;)o=de,u=o.child,o.tag===22&&o.memoizedState!==null?W4(i):u!==null?(u.return=o,de=u):W4(i);for(;s!==null;)de=s,L6(s,t,r),s=s.sibling;de=i,Fg=a,Ar=l}U4(e,t,r)}else i.subtreeFlags&8772&&s!==null?(s.return=i,de=s):U4(e,t,r)}}function U4(e){for(;de!==null;){var t=de;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ar||Dy(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ar)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Fi(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&_4(t,s,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}_4(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&bd(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(J(163))}Ar||t.flags&512&&TS(t)}catch(p){Pt(t,t.return,p)}}if(t===e){de=null;break}if(r=t.sibling,r!==null){r.return=t.return,de=r;break}de=t.return}}function $4(e){for(;de!==null;){var t=de;if(t===e){de=null;break}var r=t.sibling;if(r!==null){r.return=t.return,de=r;break}de=t.return}}function W4(e){for(;de!==null;){var t=de;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Dy(4,t)}catch(u){Pt(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){Pt(t,i,u)}}var s=t.return;try{TS(t)}catch(u){Pt(t,s,u)}break;case 5:var o=t.return;try{TS(t)}catch(u){Pt(t,o,u)}}}catch(u){Pt(t,t.return,u)}if(t===e){de=null;break}var a=t.sibling;if(a!==null){a.return=t.return,de=a;break}de=t.return}}var Ere=Math.ceil,sy=zs.ReactCurrentDispatcher,yx=zs.ReactCurrentOwner,si=zs.ReactCurrentBatchConfig,Xe=0,ar=null,$t=null,gr=0,Cn=0,Nc=wa(0),Jt=0,kd=null,Xu=0,vy=0,Dx=0,vd=null,tn=null,vx=0,Hc=1/0,ks=null,oy=!1,NS=null,ma=null,Ag=!1,ua=null,ay=0,wd=0,RS=null,kg=-1,Mg=0;function $r(){return Xe&6?kt():kg!==-1?kg:kg=kt()}function ha(e){return e.mode&1?Xe&2&&gr!==0?gr&-gr:sre.transition!==null?(Mg===0&&(Mg=yB()),Mg):(e=tt,e!==0||(e=window.event,e=e===void 0?16:xB(e.type)),e):1}function Pi(e,t,r,n){if(50<wd)throw wd=0,RS=null,Error(J(185));Md(e,r,n),(!(Xe&2)||e!==ar)&&(e===ar&&(!(Xe&2)&&(vy|=r),Jt===4&&oa(e,gr)),on(e,n),r===1&&Xe===0&&!(t.mode&1)&&(Hc=kt()+500,hy&&Ca()))}function on(e,t){var r=e.callbackNode;ate(e,t);var n=Gg(e,e===ar?gr:0);if(n===0)r!==null&&J5(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&J5(r),t===1)e.tag===0?ire(G4.bind(null,e)):WB(G4.bind(null,e)),ere(function(){!(Xe&6)&&Ca()}),r=null;else{switch(DB(n)){case 1:r=qS;break;case 4:r=hB;break;case 16:r=Wg;break;case 536870912:r=gB;break;default:r=Wg}r=U6(r,N6.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function N6(e,t){if(kg=-1,Mg=0,Xe&6)throw Error(J(327));var r=e.callbackNode;if(Vc()&&e.callbackNode!==r)return null;var n=Gg(e,e===ar?gr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=uy(e,n);else{t=n;var i=Xe;Xe|=2;var s=B6();(ar!==e||gr!==t)&&(ks=null,Hc=kt()+500,qu(e,t));do try{_re();break}catch(a){R6(e,a)}while(!0);ix(),sy.current=s,Xe=i,$t!==null?t=0:(ar=null,gr=0,t=Jt)}if(t!==0){if(t===2&&(i=uS(e),i!==0&&(n=i,t=BS(e,i))),t===1)throw r=kd,qu(e,0),oa(e,n),on(e,kt()),r;if(t===6)oa(e,n);else{if(i=e.current.alternate,!(n&30)&&!Sre(i)&&(t=uy(e,n),t===2&&(s=uS(e),s!==0&&(n=s,t=BS(e,s))),t===1))throw r=kd,qu(e,0),oa(e,n),on(e,kt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(J(345));case 2:Uu(e,tn,ks);break;case 3:if(oa(e,n),(n&130023424)===n&&(t=vx+500-kt(),10<t)){if(Gg(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){$r(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=gS(Uu.bind(null,e,tn,ks),t);break}Uu(e,tn,ks);break;case 4:if(oa(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Ti(n);s=1<<o,o=t[o],o>i&&(i=o),n&=~s}if(n=i,n=kt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ere(n/1960))-n,10<n){e.timeoutHandle=gS(Uu.bind(null,e,tn,ks),n);break}Uu(e,tn,ks);break;case 5:Uu(e,tn,ks);break;default:throw Error(J(329))}}}return on(e,kt()),e.callbackNode===r?N6.bind(null,e):null}function BS(e,t){var r=vd;return e.current.memoizedState.isDehydrated&&(qu(e,t).flags|=256),e=uy(e,t),e!==2&&(t=tn,tn=r,t!==null&&kS(t)),e}function kS(e){tn===null?tn=e:tn.push.apply(tn,e)}function Sre(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!Li(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 oa(e,t){for(t&=~Dx,t&=~vy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ti(t),n=1<<r;e[r]=-1,t&=~n}}function G4(e){if(Xe&6)throw Error(J(327));Vc();var t=Gg(e,0);if(!(t&1))return on(e,kt()),null;var r=uy(e,t);if(e.tag!==0&&r===2){var n=uS(e);n!==0&&(t=n,r=BS(e,n))}if(r===1)throw r=kd,qu(e,0),oa(e,t),on(e,kt()),r;if(r===6)throw Error(J(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Uu(e,tn,ks),on(e,kt()),null}function wx(e,t){var r=Xe;Xe|=1;try{return e(t)}finally{Xe=r,Xe===0&&(Hc=kt()+500,hy&&Ca())}}function Ju(e){ua!==null&&ua.tag===0&&!(Xe&6)&&Vc();var t=Xe;Xe|=1;var r=si.transition,n=tt;try{if(si.transition=null,tt=1,e)return e()}finally{tt=n,si.transition=r,Xe=t,!(Xe&6)&&Ca()}}function Cx(){Cn=Nc.current,ht(Nc)}function qu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Qte(r)),$t!==null)for(r=$t.return;r!==null;){var n=r;switch(tx(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Kg();break;case 3:qc(),ht(nn),ht(Ir),cx();break;case 5:lx(n);break;case 4:qc();break;case 13:ht(Ot);break;case 19:ht(Ot);break;case 10:sx(n.type._context);break;case 22:case 23:Cx()}r=r.return}if(ar=e,$t=e=ga(e.current,null),gr=Cn=t,Jt=0,kd=null,Dx=vy=Xu=0,tn=vd=null,Wu!==null){for(t=0;t<Wu.length;t++)if(r=Wu[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}Wu=null}return e}function R6(e,t){do{var r=$t;try{if(ix(),Ng.current=iy,ny){for(var n=Ft.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}ny=!1}if(Ku=0,or=Xt=Ft=null,yd=!1,Nd=0,yx.current=null,r===null||r.return===null){Jt=1,kd=t,$t=null;break}e:{var s=e,o=r.return,a=r,u=t;if(t=gr,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=T4(o);if(d!==null){d.flags&=-257,P4(d,o,a,s,t),d.mode&1&&I4(s,l,t),t=d,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){I4(s,l,t),Ex();break e}u=Error(J(426))}}else if(Et&&a.mode&1){var D=T4(o);if(D!==null){!(D.flags&65536)&&(D.flags|=256),P4(D,o,a,s,t),rx(zc(u,a));break e}}s=u=zc(u,a),Jt!==4&&(Jt=2),vd===null?vd=[s]:vd.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=D6(s,u,t);x4(s,h);break e;case 1:a=u;var g=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ma===null||!ma.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=v6(s,a,t);x4(s,w);break e}}s=s.return}while(s!==null)}M6(r)}catch(E){t=E,$t===r&&r!==null&&($t=r=r.return);continue}break}while(!0)}function B6(){var e=sy.current;return sy.current=iy,e===null?iy:e}function Ex(){(Jt===0||Jt===3||Jt===2)&&(Jt=4),ar===null||!(Xu&268435455)&&!(vy&268435455)||oa(ar,gr)}function uy(e,t){var r=Xe;Xe|=2;var n=B6();(ar!==e||gr!==t)&&(ks=null,qu(e,t));do try{xre();break}catch(i){R6(e,i)}while(!0);if(ix(),Xe=r,sy.current=n,$t!==null)throw Error(J(261));return ar=null,gr=0,Jt}function xre(){for(;$t!==null;)k6($t)}function _re(){for(;$t!==null&&!Zee();)k6($t)}function k6(e){var t=V6(e.alternate,e,Cn);e.memoizedProps=e.pendingProps,t===null?M6(e):$t=t,yx.current=null}function M6(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Dre(r,t),r!==null){r.flags&=32767,$t=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Jt=6,$t=null;return}}else if(r=yre(r,t,Cn),r!==null){$t=r;return}if(t=t.sibling,t!==null){$t=t;return}$t=t=e}while(t!==null);Jt===0&&(Jt=5)}function Uu(e,t,r){var n=tt,i=si.transition;try{si.transition=null,tt=1,bre(e,t,r,n)}finally{si.transition=i,tt=n}return null}function bre(e,t,r,n){do Vc();while(ua!==null);if(Xe&6)throw Error(J(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(J(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(ute(e,s),e===ar&&($t=ar=null,gr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ag||(Ag=!0,U6(Wg,function(){return Vc(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=si.transition,si.transition=null;var o=tt;tt=1;var a=Xe;Xe|=4,yx.current=null,wre(e,r),P6(r,e),Yte(mS),qg=!!dS,mS=dS=null,e.current=r,Cre(r,e,i),Qee(),Xe=a,tt=o,si.transition=s}else e.current=r;if(Ag&&(Ag=!1,ua=e,ay=i),s=e.pendingLanes,s===0&&(ma=null),rte(r.stateNode,n),on(e,kt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(oy)throw oy=!1,e=NS,NS=null,e;return ay&1&&e.tag!==0&&Vc(),s=e.pendingLanes,s&1?e===RS?wd++:(wd=0,RS=e):wd=0,Ca(),null}function Vc(){if(ua!==null){var e=DB(ay),t=si.transition,r=tt;try{if(si.transition=null,tt=16>e?16:e,ua===null)var n=!1;else{if(e=ua,ua=null,ay=0,Xe&6)throw Error(J(331));var i=Xe;for(Xe|=4,de=e.current;de!==null;){var s=de,o=s.child;if(de.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var l=a[u];for(de=l;de!==null;){var c=de;switch(c.tag){case 0:case 11:case 15:Dd(8,c,s)}var f=c.child;if(f!==null)f.return=c,de=f;else for(;de!==null;){c=de;var p=c.sibling,d=c.return;if(A6(c),c===l){de=null;break}if(p!==null){p.return=d,de=p;break}de=d}}}var m=s.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var D=y.sibling;y.sibling=null,y=D}while(y!==null)}}de=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,de=o;else e:for(;de!==null;){if(s=de,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Dd(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,de=h;break e}de=s.return}}var g=e.current;for(de=g;de!==null;){o=de;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,de=v;else e:for(o=g;de!==null;){if(a=de,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Dy(9,a)}}catch(E){Pt(a,a.return,E)}if(a===o){de=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,de=w;break e}de=a.return}}if(Xe=i,Ca(),us&&typeof us.onPostCommitFiberRoot=="function")try{us.onPostCommitFiberRoot(cy,e)}catch{}n=!0}return n}finally{tt=r,si.transition=t}}return!1}function q4(e,t,r){t=zc(r,t),t=D6(e,t,1),e=da(e,t,1),t=$r(),e!==null&&(Md(e,1,t),on(e,t))}function Pt(e,t,r){if(e.tag===3)q4(e,e,r);else for(;t!==null;){if(t.tag===3){q4(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ma===null||!ma.has(n))){e=zc(r,e),e=v6(t,e,1),t=da(t,e,1),e=$r(),t!==null&&(Md(t,1,e),on(t,e));break}}t=t.return}}function Ore(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=$r(),e.pingedLanes|=e.suspendedLanes&r,ar===e&&(gr&r)===r&&(Jt===4||Jt===3&&(gr&130023424)===gr&&500>kt()-vx?qu(e,0):Dx|=r),on(e,t)}function j6(e,t){t===0&&(e.mode&1?(t=hg,hg<<=1,!(hg&130023424)&&(hg=4194304)):t=1);var r=$r();e=Gs(e,t),e!==null&&(Md(e,t,r),on(e,r))}function Fre(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),j6(e,r)}function Are(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(J(314))}n!==null&&n.delete(t),j6(e,r)}var V6;V6=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||nn.current)rn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return rn=!1,gre(e,t,r);rn=!!(e.flags&131072)}else rn=!1,Et&&t.flags&1048576&&GB(t,Zg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bg(e,t),e=t.pendingProps;var i=$c(t,Ir.current);jc(t,r),i=px(null,t,n,e,i,r);var s=dx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,sn(n)?(s=!0,Xg(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ax(t),i.updater=yy,t.stateNode=i,i._reactInternals=t,SS(t,n,e,r),t=bS(null,t,n,!0,s,r)):(t.tag=0,Et&&s&&ex(t),Ur(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bg(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Tre(n),e=Fi(n,e),i){case 0:t=_S(null,t,n,e,r);break e;case 1:t=R4(null,t,n,e,r);break e;case 11:t=L4(null,t,n,e,r);break e;case 14:t=N4(null,t,n,Fi(n.type,e),r);break e}throw Error(J(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),_S(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),R4(e,t,n,i,r);case 3:e:{if(S6(t),e===null)throw Error(J(387));n=t.pendingProps,s=t.memoizedState,i=s.element,XB(e,t),ty(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=zc(Error(J(423)),t),t=B4(e,t,n,r,i);break e}else if(n!==i){i=zc(Error(J(424)),t),t=B4(e,t,n,r,i);break e}else for(En=pa(t.stateNode.containerInfo.firstChild),Sn=t,Et=!0,Ii=null,r=YB(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Wc(),n===i){t=qs(e,t,r);break e}Ur(e,t,n,r)}t=t.child}return t;case 5:return JB(t),e===null&&wS(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,hS(n,i)?o=null:s!==null&&hS(n,s)&&(t.flags|=32),E6(e,t),Ur(e,t,o,r),t.child;case 6:return e===null&&wS(t),null;case 13:return x6(e,t,r);case 4:return ux(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gc(t,null,n,r):Ur(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),L4(e,t,n,i,r);case 7:return Ur(e,t,t.pendingProps,r),t.child;case 8:return Ur(e,t,t.pendingProps.children,r),t.child;case 12:return Ur(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ut(Qg,n._currentValue),n._currentValue=o,s!==null)if(Li(s.value,o)){if(s.children===i.children&&!nn.current){t=qs(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(s.tag===1){u=Us(-1,r&-r),u.tag=2;var l=s.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),CS(s.return,r,t),a.lanes|=r;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(J(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),CS(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ur(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,jc(t,r),i=oi(i),n=n(i),t.flags|=1,Ur(e,t,n,r),t.child;case 14:return n=t.type,i=Fi(n,t.pendingProps),i=Fi(n.type,i),N4(e,t,n,i,r);case 15:return w6(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),Bg(e,t),t.tag=1,sn(n)?(e=!0,Xg(t)):e=!1,jc(t,r),y6(t,n,i),SS(t,n,i,r),bS(null,t,n,!0,e,r);case 19:return _6(e,t,r);case 22:return C6(e,t,r)}throw Error(J(156,t.tag))};function U6(e,t){return mB(e,t)}function Ire(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(e,t,r,n){return new Ire(e,t,r,n)}function Sx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tre(e){if(typeof e=="function")return Sx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$S)return 11;if(e===WS)return 14}return 2}function ga(e,t){var r=e.alternate;return r===null?(r=ii(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function jg(e,t,r,n,i,s){var o=2;if(n=e,typeof e=="function")Sx(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case xc:return zu(r.children,i,s,t);case US:o=8,i|=8;break;case HE:return e=ii(12,r,t,i|2),e.elementType=HE,e.lanes=s,e;case YE:return e=ii(13,r,t,i),e.elementType=YE,e.lanes=s,e;case KE:return e=ii(19,r,t,i),e.elementType=KE,e.lanes=s,e;case J4:return wy(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K4:o=10;break e;case X4:o=9;break e;case $S:o=11;break e;case WS:o=14;break e;case na:o=16,n=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=ii(o,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function zu(e,t,r,n){return e=ii(7,e,n,t),e.lanes=r,e}function wy(e,t,r,n){return e=ii(22,e,n,t),e.elementType=J4,e.lanes=r,e.stateNode={isHidden:!1},e}function GE(e,t,r){return e=ii(6,e,null,t),e.lanes=r,e}function qE(e,t,r){return t=ii(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pre(e,t,r,n,i){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=FE(0),this.expirationTimes=FE(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=FE(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xx(e,t,r,n,i,s,o,a,u){return e=new Pre(e,t,r,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ii(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ax(s),e}function Lre(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Sc,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function $6(e){if(!e)return Da;e=e._reactInternals;e:{if(Qu(e)!==e||e.tag!==1)throw Error(J(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(sn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(J(171))}if(e.tag===1){var r=e.type;if(sn(r))return $B(e,r,t)}return t}function W6(e,t,r,n,i,s,o,a,u){return e=xx(r,n,!0,e,i,s,o,a,u),e.context=$6(null),r=e.current,n=$r(),i=ha(r),s=Us(n,i),s.callback=t??null,da(r,s,i),e.current.lanes=i,Md(e,i,n),on(e,n),e}function Cy(e,t,r,n){var i=t.current,s=$r(),o=ha(i);return r=$6(r),t.context===null?t.context=r:t.pendingContext=r,t=Us(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=da(i,t,o),e!==null&&(Pi(e,i,o,s),Lg(e,i,o)),o}function ly(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 z4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function _x(e,t){z4(e,t),(e=e.alternate)&&z4(e,t)}function Nre(){return null}var G6=typeof reportError=="function"?reportError:function(e){console.error(e)};function bx(e){this._internalRoot=e}Ey.prototype.render=bx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(J(409));Cy(e,t,null,null)};Ey.prototype.unmount=bx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ju(function(){Cy(null,e,null,null)}),t[Ws]=null}};function Ey(e){this._internalRoot=e}Ey.prototype.unstable_scheduleHydration=function(e){if(e){var t=CB();e={blockedOn:null,target:e,priority:t};for(var r=0;r<sa.length&&t!==0&&t<sa[r].priority;r++);sa.splice(r,0,e),r===0&&SB(e)}};function Ox(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function H4(){}function Rre(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var l=ly(o);s.call(l)}}var o=W6(t,n,e,0,null,!1,!1,"",H4);return e._reactRootContainer=o,e[Ws]=o.current,Ad(e.nodeType===8?e.parentNode:e),Ju(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var l=ly(u);a.call(l)}}var u=xx(e,0,!1,null,null,!1,!1,"",H4);return e._reactRootContainer=u,e[Ws]=u.current,Ad(e.nodeType===8?e.parentNode:e),Ju(function(){Cy(t,u,r,n)}),u}function xy(e,t,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var u=ly(o);a.call(u)}}Cy(t,o,e,i)}else o=Rre(r,t,e,i,n);return ly(o)}vB=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=cd(t.pendingLanes);r!==0&&(zS(t,r|1),on(t,kt()),!(Xe&6)&&(Hc=kt()+500,Ca()))}break;case 13:Ju(function(){var n=Gs(e,1);if(n!==null){var i=$r();Pi(n,e,1,i)}}),_x(e,1)}};HS=function(e){if(e.tag===13){var t=Gs(e,134217728);if(t!==null){var r=$r();Pi(t,e,134217728,r)}_x(e,134217728)}};wB=function(e){if(e.tag===13){var t=ha(e),r=Gs(e,t);if(r!==null){var n=$r();Pi(r,e,t,n)}_x(e,t)}};CB=function(){return tt};EB=function(e,t){var r=tt;try{return tt=e,t()}finally{tt=r}};sS=function(e,t,r){switch(t){case"input":if(ZE(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=my(n);if(!i)throw Error(J(90));Q4(n),ZE(n,i)}}}break;case"textarea":tB(e,r);break;case"select":t=r.value,t!=null&&Rc(e,!!r.multiple,t,!1)}};uB=wx;lB=Ju;var Bre={usingClientEntryPoint:!1,Events:[Vd,Fc,my,oB,aB,wx]},od={findFiberByHostInstance:$u,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kre={bundleType:od.bundleType,version:od.version,rendererPackageName:od.rendererPackageName,rendererConfig:od.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pB(e),e===null?null:e.stateNode},findFiberByHostInstance:od.findFiberByHostInstance||Nre,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ad=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ad.isDisabled&&ad.supportsFiber))try{cy=ad.inject(kre),us=ad}catch{}var ad;bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bre;bn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ox(t))throw Error(J(200));return Lre(e,t,null,r)};bn.createRoot=function(e,t){if(!Ox(e))throw Error(J(299));var r=!1,n="",i=G6;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=xx(e,1,!1,null,null,r,!1,n,i),e[Ws]=t.current,Ad(e.nodeType===8?e.parentNode:e),new bx(t)};bn.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(J(188)):(e=Object.keys(e).join(","),Error(J(268,e)));return e=pB(t),e=e===null?null:e.stateNode,e};bn.flushSync=function(e){return Ju(e)};bn.hydrate=function(e,t,r){if(!Sy(t))throw Error(J(200));return xy(null,e,t,!0,r)};bn.hydrateRoot=function(e,t,r){if(!Ox(e))throw Error(J(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=G6;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=W6(t,null,e,1,r??null,i,!1,s,o),e[Ws]=t.current,Ad(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Ey(t)};bn.render=function(e,t,r){if(!Sy(t))throw Error(J(200));return xy(null,e,t,!1,r)};bn.unmountComponentAtNode=function(e){if(!Sy(e))throw Error(J(40));return e._reactRootContainer?(Ju(function(){xy(null,null,e,!1,function(){e._reactRootContainer=null,e[Ws]=null})}),!0):!1};bn.unstable_batchedUpdates=wx;bn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Sy(r))throw Error(J(200));if(e==null||e._reactInternals===void 0)throw Error(J(38));return xy(e,t,r,!1,n)};bn.version="18.3.1-next-f1338f8080-20240426"});var Y6=N((bCe,H6)=>{"use strict";function z6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(z6)}catch(e){console.error(e)}}z6(),H6.exports=q6()});var X6=N(K6=>{"use strict";var Xc=V("react");function Mre(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jre=typeof Object.is=="function"?Object.is:Mre,Vre=Xc.useState,Ure=Xc.useEffect,$re=Xc.useLayoutEffect,Wre=Xc.useDebugValue;function Gre(e,t){var r=t(),n=Vre({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return $re(function(){i.value=r,i.getSnapshot=t,Fx(i)&&s({inst:i})},[e,r,t]),Ure(function(){return Fx(i)&&s({inst:i}),e(function(){Fx(i)&&s({inst:i})})},[e]),Wre(r),r}function Fx(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!jre(e,r)}catch{return!0}}function qre(e,t){return t()}var zre=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?qre:Gre;K6.useSyncExternalStore=Xc.useSyncExternalStore!==void 0?Xc.useSyncExternalStore:zre});var Z6=N((FCe,J6)=>{"use strict";J6.exports=X6()});var p8=N(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});var $d,Ea=Xp(),Ni=V("react"),Q6=($d=Ni)&&typeof $d=="object"&&"default"in $d?$d.default:$d,Hre=Y6(),Yre=Z6();if(!Ni.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Ea.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Kre(e){e()}function u8(e){e||(e=Kre),Ea.configure({reactionScheduler:e})}function Xre(e){return Ea.getDependencyTree(e)}var l8=!1;function e8(e){l8=e}function Ax(){return l8}var t8,r8,_y=new(typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){function e(r){var n=this;this.finalize=void 0,this.registrations=new Map,this.sweepTimeout=void 0,this.sweep=function(i){i===void 0&&(i=1e4),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var s=Date.now();n.registrations.forEach(function(o,a){s-o.registeredAt>=i&&(n.finalize(o.value),n.registrations.delete(a))}),n.registrations.size>0&&n.scheduleSweep()},this.finalizeAllImmediately=function(){n.sweep(0)},this.finalize=r}var t=e.prototype;return t.register=function(r,n,i){this.registrations.set(i,{value:n,registeredAt:Date.now()}),this.scheduleSweep()},t.unregister=function(r){this.registrations.delete(r)},t.scheduleSweep=function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,1e4))},e}())(function(e){var t;(t=e.reaction)==null||t.dispose(),e.reaction=null});function n8(e){e.reaction=new Ea.Reaction("observer"+e.name,function(){e.stateVersion=Symbol(),e.onStoreChange==null||e.onStoreChange()})}function Ix(e,t){if(t===void 0&&(t="observed"),Ax())return e();var r=Q6.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return _y.unregister(n),n.onStoreChange=a,n.reaction||(n8(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)==null||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var i,s,o=r.current;if(o.reaction||(n8(o),_y.register(r,o,o)),Q6.useDebugValue(o.reaction,Xre),Yre.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot),o.reaction.track(function(){try{i=e()}catch(a){s=a}}),s)throw s;return i}var i8,c8=typeof Symbol=="function"&&Symbol.for,Jre=(t8=(r8=Object.getOwnPropertyDescriptor(function(){},"name"))==null?void 0:r8.configurable)!=null&&t8,s8=c8?Symbol.for("react.forward_ref"):typeof Ni.forwardRef=="function"&&Ni.forwardRef(function(e){return null}).$$typeof,o8=c8?Symbol.for("react.memo"):typeof Ni.memo=="function"&&Ni.memo(function(e){return null}).$$typeof,Zre={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function f8(e){var t=e.children||e.render;return typeof t!="function"?null:Ix(t)}function a8(e){var t=Ni.useState(function(){return Ea.observable(e,{},{deep:!1})})[0];return Ea.runInAction(function(){Object.assign(t,e)}),t}f8.displayName="Observer",u8(Hre.unstable_batchedUpdates);var Qre=(i8=_y.finalizeAllImmediately)!=null?i8:function(){};Gr.Observer=f8,Gr._observerFinalizationRegistry=_y,Gr.clearTimers=Qre,Gr.enableStaticRendering=e8,Gr.isObserverBatched=function(){return!0},Gr.isUsingStaticRendering=Ax,Gr.observer=function(e,t){var r;if(o8&&e.$$typeof===o8)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(Ax())return e;var n=(r=t?.forwardRef)!=null&&r,i=e,s=e.displayName||e.name;if(s8&&e.$$typeof===s8&&(n=!0,typeof(i=e.render)!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o,a,u=function(l,c){return Ix(function(){return i(l,c)},s)};return u.displayName=e.displayName,Jre&&Object.defineProperty(u,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(u.contextTypes=e.contextTypes),n&&(u=Ni.forwardRef(u)),u=Ni.memo(u),o=e,a=u,Object.keys(o).forEach(function(l){Zre[l]||Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(o,l))}),u},Gr.observerBatching=u8,Gr.useAsObservableSource=a8,Gr.useLocalObservable=function(e,t){return Ni.useState(function(){return Ea.observable(e(),t,{autoBind:!0})})[0]},Gr.useLocalStore=function(e,t){var r=t&&a8(t);return Ni.useState(function(){return Ea.observable(e(r),void 0,{autoBind:!0})})[0]},Gr.useObserver=function(e,t){return t===void 0&&(t="observed"),Ix(e,t)},Gr.useStaticRendering=function(e){e8(e)}});var m8=N((ICe,d8)=>{"use strict";d8.exports=p8()});var T8=N(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Wd,Hs=Xp(),Gd=V("react"),an=(Wd=Gd)&&typeof Wd=="object"&&"default"in Wd?Wd.default:Wd,qr=m8();function h8(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}var ene={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,displayName:1,propTypes:1},g8=Symbol("patchMixins"),y8=Symbol("patchedDefinition");function D8(e,t){for(var r=this,n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];t.locks++;try{var o;return e!=null&&(o=e.apply(this,i)),o}finally{t.locks--,t.locks===0&&t.methods.forEach(function(a){a.apply(r,i)})}}function v8(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];D8.call.apply(D8,[this,e,t].concat(n))}}function O8(e,t,r){var n=function(o,a){var u=o[g8]=o[g8]||{},l=u[a]=u[a]||{};return l.locks=l.locks||0,l.methods=l.methods||[],l}(e,t);n.methods.indexOf(r)<0&&n.methods.push(r);var i=Object.getOwnPropertyDescriptor(e,t);if(!i||!i[y8]){var s=function o(a,u,l,c,f){var p,d=v8(f,c);return(p={})[y8]=!0,p.get=function(){return d},p.set=function(m){if(this===a)d=v8(m,c);else{var y=o(this,u,l,c,m);Object.defineProperty(this,u,y)}},p.configurable=!0,p.enumerable=l,p}(e,t,i?i.enumerable:void 0,n,e[t]);Object.defineProperty(e,t,s)}}var w8=Symbol("ObserverAdministration"),C8=Symbol("isMobXReactObserver");function Tx(e){var t;return(t=e[w8])!=null?t:e[w8]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:Px(e.constructor),state:void 0,props:void 0,context:void 0}}function Px(e){return e.displayName||e.name||"<component>"}function tne(e){var t=e.bind(this),r=Tx(this);return function(){r.reaction||(r.reaction=function(s){return new Hs.Reaction(s.name+".render()",function(){if(s.mounted)try{s.forceUpdate==null||s.forceUpdate()}catch{var o;(o=s.reaction)==null||o.dispose(),s.reaction=null}else s.reactionInvalidatedBeforeMount=!0})}(r),r.mounted||qr._observerFinalizationRegistry.register(this,r,this));var n=void 0,i=void 0;if(r.reaction.track(function(){try{i=Hs._allowStateChanges(!1,t)}catch(s){n=s}}),n)throw n;return i}}function E8(e,t){return qr.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!function(r,n){if(h8(r,n))return!0;if(typeof r!="object"||r===null||typeof n!="object"||n===null)return!1;var i=Object.keys(r),s=Object.keys(n);if(i.length!==s.length)return!1;for(var o=0;o<i.length;o++)if(!Object.hasOwnProperty.call(n,i[o])||!h8(r[i[o]],n[i[o]]))return!1;return!0}(this.props,e)}function F8(e,t){if(t&&t.kind!=="class")throw new Error("The @observer decorator can be used on classes only");return e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(Gd.Component,e)||Object.prototype.isPrototypeOf.call(Gd.PureComponent,e)?function(r){var n=r.prototype;if(r[C8]){var i=Px(r);throw new Error("The provided component class ("+i+") has already been declared as an observer component.")}if(r[C8]=!0,n.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(r.__proto__!==Gd.PureComponent)if(n.shouldComponentUpdate){if(n.shouldComponentUpdate!==E8)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else n.shouldComponentUpdate=E8;var s=n.render;if(typeof s!="function"){var o=Px(r);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}n.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:qr.isUsingStaticRendering()?s:tne.call(this,s)}),this.render()};var a=n.componentDidMount;return n.componentDidMount=function(){var u=this,l=Tx(this);return l.mounted=!0,qr._observerFinalizationRegistry.unregister(this),l.forceUpdate=function(){return u.forceUpdate()},l.reaction&&!l.reactionInvalidatedBeforeMount||l.forceUpdate(),a?.apply(this,arguments)},O8(n,"componentWillUnmount",function(){var u;if(!qr.isUsingStaticRendering()){var l=Tx(this);(u=l.reaction)==null||u.dispose(),l.reaction=null,l.forceUpdate=null,l.mounted=!1,l.reactionInvalidatedBeforeMount=!1}}),r}(e):qr.observer(e)}function Lx(){return(Lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var rne=["children"],Fy=an.createContext({});function A8(e){var t=e.children,r=function(s,o){if(s==null)return{};var a,u,l={},c=Object.keys(s);for(u=0;u<c.length;u++)o.indexOf(a=c[u])>=0||(l[a]=s[a]);return l}(e,rne),n=an.useContext(Fy),i=an.useRef(Lx({},n,r));return an.createElement(Fy.Provider,{value:i.current},t)}function S8(e,t,r,n){var i,s,o,a=an.forwardRef(function(u,l){var c=Lx({},u),f=an.useContext(Fy);return Object.assign(c,e(f||{},c)||{}),l&&(c.ref=l),an.createElement(t,c)});return n&&(a=F8(a)),a.isMobxInjector=!0,i=t,s=a,o=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach(function(u){ene[u]||o.indexOf(u)!==-1||Object.defineProperty(s,u,Object.getOwnPropertyDescriptor(i,u))}),a.wrappedComponent=t,a.displayName=function(u,l){var c=u.displayName||u.name||u.constructor&&u.constructor.name||"Component";return l?"inject-with-"+l+"("+c+")":"inject("+c+")"}(t,r),a}function nne(e){return function(t,r){return e.forEach(function(n){if(!(n in r)){if(!(n in t))throw new Error("MobX injector: Store '"+n+"' is not available! Make sure it is provided by some Provider");r[n]=t[n]}}),r}}A8.displayName="MobXProvider";var ine=Number.parseInt(an.version.split(".")[0]),x8=!1,by=Symbol("disposeOnUnmountProto"),Oy=Symbol("disposeOnUnmountInst");function sne(){var e=this;[].concat(this[by]||[],this[Oy]||[]).forEach(function(t){var r=typeof t=="string"?e[t]:t;r!=null&&(Array.isArray(r)?r.map(function(n){return n()}):r())})}function I8(e){function t(n,i,s,o,a,u){for(var l=arguments.length,c=new Array(l>6?l-6:0),f=6;f<l;f++)c[f-6]=arguments[f];return Hs.untracked(function(){return o=o||"<<anonymous>>",u=u||s,i[s]==null?n?new Error("The "+a+" `"+u+"` is marked as required in `"+o+"`, but its value is `"+(i[s]===null?"null":"undefined")+"`."):null:e.apply(void 0,[i,s,o,a,u].concat(c))})}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function _8(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(r,n){return r==="symbol"||n["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&n instanceof Symbol}(t,e)?"symbol":t}function Jc(e,t){return I8(function(r,n,i,s,o){return Hs.untracked(function(){if(e&&_8(r[n])===t.toLowerCase())return null;var a;switch(t){case"Array":a=Hs.isObservableArray;break;case"Object":a=Hs.isObservableObject;break;case"Map":a=Hs.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var u=r[n];if(!a(u)){var l=function(f){var p=_8(f);if(p==="object"){if(f instanceof Date)return"date";if(f instanceof RegExp)return"regexp"}return p}(u),c=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+c+".")}return null})})}function b8(e,t){return I8(function(r,n,i,s,o){for(var a=arguments.length,u=new Array(a>5?a-5:0),l=5;l<a;l++)u[l-5]=arguments[l];return Hs.untracked(function(){if(typeof t!="function")return new Error("Property `"+o+"` of component `"+i+"` has invalid PropType notation.");var c=Jc(e,"Array")(r,n,i,s,o);if(c instanceof Error)return c;for(var f=r[n],p=0;p<f.length;p++)if((c=t.apply(void 0,[f,p,i,s,o+"["+p+"]"].concat(u)))instanceof Error)return c;return null})})}var one={observableArray:Jc(!1,"Array"),observableArrayOf:b8.bind(null,!1),observableMap:Jc(!1,"Map"),observableObject:Jc(!1,"Object"),arrayOrObservableArray:Jc(!0,"Array"),arrayOrObservableArrayOf:b8.bind(null,!0),objectOrObservableObject:Jc(!0,"Object")};if(!Gd.Component)throw new Error("mobx-react requires React to be available");if(!Hs.observable)throw new Error("mobx-react requires mobx to be available");Object.defineProperty(Dr,"Observer",{enumerable:!0,get:function(){return qr.Observer}}),Object.defineProperty(Dr,"enableStaticRendering",{enumerable:!0,get:function(){return qr.enableStaticRendering}}),Object.defineProperty(Dr,"isUsingStaticRendering",{enumerable:!0,get:function(){return qr.isUsingStaticRendering}}),Object.defineProperty(Dr,"observerBatching",{enumerable:!0,get:function(){return qr.observerBatching}}),Object.defineProperty(Dr,"useAsObservableSource",{enumerable:!0,get:function(){return qr.useAsObservableSource}}),Object.defineProperty(Dr,"useLocalObservable",{enumerable:!0,get:function(){return qr.useLocalObservable}}),Object.defineProperty(Dr,"useLocalStore",{enumerable:!0,get:function(){return qr.useLocalStore}}),Object.defineProperty(Dr,"useObserver",{enumerable:!0,get:function(){return qr.useObserver}}),Object.defineProperty(Dr,"useStaticRendering",{enumerable:!0,get:function(){return qr.useStaticRendering}}),Dr.MobXProviderContext=Fy,Dr.PropTypes=one,Dr.Provider=A8,Dr.disposeOnUnmount=function e(t,r){if(Array.isArray(r))return r.map(function(a){return e(t,a)});x8||(ine>=18?console.error("[mobx-react] disposeOnUnmount is not compatible with React 18 and higher. Don't use it."):console.warn("[mobx-react] disposeOnUnmount is deprecated. It won't work correctly with React 18 and higher."),x8=!0);var n=Object.getPrototypeOf(t).constructor,i=Object.getPrototypeOf(t.constructor),s=Object.getPrototypeOf(Object.getPrototypeOf(t));if(n!==an.Component&&n!==an.PureComponent&&i!==an.Component&&i!==an.PureComponent&&s!==an.Component&&s!==an.PureComponent)throw new Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if(typeof r!="string"&&typeof r!="function"&&!Array.isArray(r))throw new Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var o=!!t[by]||!!t[Oy];return(typeof r=="string"?t[by]||(t[by]=[]):t[Oy]||(t[Oy]=[])).push(r),o||O8(t,"componentWillUnmount",sne),typeof r!="string"?r:void 0},Dr.inject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(typeof arguments[0]=="function"){var n=arguments[0];return function(i){return S8(n,i,n.name,!0)}}return function(i){return S8(nne(t),i,t.join("-"),!1)}},Dr.observer=F8});var Nx=N((PCe,P8)=>{"use strict";P8.exports=T8()});var j8=N((YCe,M8)=>{M8.exports=k8;k8.sync=pne;var R8=V("fs");function fne(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function B8(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:fne(t,r)}function k8(e,t,r){R8.stat(e,function(n,i){r(n,n?!1:B8(i,e,t))})}function pne(e,t){return B8(R8.statSync(e),e,t)}});var G8=N((KCe,W8)=>{W8.exports=U8;U8.sync=dne;var V8=V("fs");function U8(e,t,r){V8.stat(e,function(n,i){r(n,n?!1:$8(i,t))})}function dne(e,t){return $8(V8.statSync(e),t)}function $8(e,t){return e.isFile()&&mne(e,t)}function mne(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,f=r&l||r&u&&i===o||r&a&&n===s||r&c&&s===0;return f}});var z8=N((JCe,q8)=>{var XCe=V("fs"),Ay;process.platform==="win32"||global.TESTING_WINDOWS?Ay=j8():Ay=G8();q8.exports=Bx;Bx.sync=hne;function Bx(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Bx(e,t||{},function(s,o){s?i(s):n(o)})})}Ay(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function hne(e,t){try{return Ay.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Q8=N((ZCe,Z8)=>{var Zc=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",H8=V("path"),gne=Zc?";":":",Y8=z8(),K8=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),X8=(e,t)=>{let r=t.colon||gne,n=e.match(/\//)||Zc&&e.match(/\\/)?[""]:[...Zc?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=Zc?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Zc?i.split(r):[""];return Zc&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},J8=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=X8(e,t),o=[],a=l=>new Promise((c,f)=>{if(l===n.length)return t.all&&o.length?c(o):f(K8(e));let p=n[l],d=/^".*"$/.test(p)?p.slice(1,-1):p,m=H8.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+m:m;c(u(y,l,0))}),u=(l,c,f)=>new Promise((p,d)=>{if(f===i.length)return p(a(c+1));let m=i[f];Y8(l+m,{pathExt:s},(y,D)=>{if(!y&&D)if(t.all)o.push(l+m);else return p(l+m);return p(u(l,c,f+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},yne=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=X8(e,t),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,l=H8.join(u,e),c=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let f=0;f<n.length;f++){let p=c+n[f];try{if(Y8.sync(p,{pathExt:i}))if(t.all)s.push(p);else return p}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw K8(e)};Z8.exports=J8;J8.sync=yne});var tk=N((QCe,kx)=>{"use strict";var ek=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};kx.exports=ek;kx.exports.default=ek});var sk=N((eEe,ik)=>{"use strict";var rk=V("path"),Dne=Q8(),vne=tk();function nk(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let o;try{o=Dne.sync(e.command,{path:r[vne({env:r})],pathExt:t?rk.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=rk.resolve(i?e.options.cwd:"",o)),o}function wne(e){return nk(e)||nk(e,!0)}ik.exports=wne});var ok=N((tEe,jx)=>{"use strict";var Mx=/([()\][%!^"`<>&|;, *?])/g;function Cne(e){return e=e.replace(Mx,"^$1"),e}function Ene(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(Mx,"^$1"),t&&(e=e.replace(Mx,"^$1")),e}jx.exports.command=Cne;jx.exports.argument=Ene});var uk=N((rEe,ak)=>{"use strict";ak.exports=/^#!(.*)/});var ck=N((nEe,lk)=>{"use strict";var Sne=uk();lk.exports=(e="")=>{let t=e.match(Sne);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var pk=N((iEe,fk)=>{"use strict";var Vx=V("fs"),xne=ck();function _ne(e){let r=Buffer.alloc(150),n;try{n=Vx.openSync(e,"r"),Vx.readSync(n,r,0,150,0),Vx.closeSync(n)}catch{}return xne(r.toString())}fk.exports=_ne});var gk=N((sEe,hk)=>{"use strict";var bne=V("path"),dk=sk(),mk=ok(),One=pk(),Fne=process.platform==="win32",Ane=/\.(?:com|exe)$/i,Ine=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Tne(e){e.file=dk(e);let t=e.file&&One(e.file);return t?(e.args.unshift(e.file),e.command=t,dk(e)):e.file}function Pne(e){if(!Fne)return e;let t=Tne(e),r=!Ane.test(t);if(e.options.forceShell||r){let n=Ine.test(t);e.command=bne.normalize(e.command),e.command=mk.command(e.command),e.args=e.args.map(s=>mk.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Lne(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:Pne(n)}hk.exports=Lne});var vk=N((oEe,Dk)=>{"use strict";var Ux=process.platform==="win32";function $x(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Nne(e,t){if(!Ux)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=yk(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function yk(e,t){return Ux&&e===1&&!t.file?$x(t.original,"spawn"):null}function Rne(e,t){return Ux&&e===1&&!t.file?$x(t.original,"spawnSync"):null}Dk.exports={hookChildProcess:Nne,verifyENOENT:yk,verifyENOENTSync:Rne,notFoundError:$x}});var Ek=N((aEe,Qc)=>{"use strict";var wk=V("child_process"),Wx=gk(),Gx=vk();function Ck(e,t,r){let n=Wx(e,t,r),i=wk.spawn(n.command,n.args,n.options);return Gx.hookChildProcess(i,n),i}function Bne(e,t,r){let n=Wx(e,t,r),i=wk.spawnSync(n.command,n.args,n.options);return i.error=i.error||Gx.verifyENOENTSync(i.status,n),i}Qc.exports=Ck;Qc.exports.spawn=Ck;Qc.exports.sync=Bne;Qc.exports._parse=Wx;Qc.exports._enoent=Gx});var Xk=N((fSe,Kk)=>{"use strict";var{PassThrough:Nie}=V("stream");Kk.exports=function(){var e=[],t=new Nie({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});import{notStrictEqual as Qj,strictEqual as eV}from"assert";var Aj={right:Nj,center:Rj},Ij=0,tm=1,Tj=2,rm=3,sD=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
425
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function $E(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function xS(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var dre=typeof WeakMap=="function"?WeakMap:Map;function D6(e,t,r){r=Us(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){oy||(oy=!0,NS=n),xS(e,t)},r}function v6(e,t,r){r=Us(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){xS(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){xS(e,t),typeof n!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function I4(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new dre;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Ore.bind(null,e,t,r),t.then(e,e))}function T4(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 P4(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Us(-1,1),t.tag=2,da(r,t,1))),r.lanes|=1),e)}var mre=zs.ReactCurrentOwner,rn=!1;function Ur(e,t,r,n){t.child=e===null?YB(t,null,r,n):Gc(t,e.child,r,n)}function L4(e,t,r,n,i){r=r.render;var s=t.ref;return jc(t,i),n=px(e,t,r,n,s,i),r=dx(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i)):(Et&&r&&ex(t),t.flags|=1,Ur(e,t,n,i),t.child)}function N4(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Sx(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,w6(e,t,s,n,i)):(e=jg(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Fd,r(o,n)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,e=ga(s,n),e.ref=t.ref,e.return=t,t.child=e}function w6(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Fd(s,n)&&e.ref===t.ref)if(rn=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(rn=!0);else return t.lanes=e.lanes,qs(e,t,i)}return _S(e,t,r,n,i)}function C6(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(Nc,Cn),Cn|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ut(Nc,Cn),Cn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ut(Nc,Cn),Cn|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ut(Nc,Cn),Cn|=n;return Ur(e,t,i,r),t.child}function E6(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function _S(e,t,r,n,i){var s=sn(r)?Hu:Ir.current;return s=$c(t,s),jc(t,i),r=px(e,t,r,n,s,i),n=dx(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i)):(Et&&n&&ex(t),t.flags|=1,Ur(e,t,r,i),t.child)}function R4(e,t,r,n,i){if(sn(r)){var s=!0;Xg(t)}else s=!1;if(jc(t,i),t.stateNode===null)Bg(e,t),y6(t,r,n),SS(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,l=r.contextType;typeof l=="object"&&l!==null?l=oi(l):(l=sn(r)?Hu:Ir.current,l=$c(t,l));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||u!==l)&&A4(t,o,n,l),ia=!1;var p=t.memoizedState;o.state=p,ty(t,n,o,i),u=t.memoizedState,a!==n||p!==u||nn.current||ia?(typeof c=="function"&&(ES(t,r,c,n),u=t.memoizedState),(a=ia||F4(t,r,a,n,p,u,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=l,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,XB(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Fi(t.type,a),o.props=l,f=t.pendingProps,p=o.context,u=r.contextType,typeof u=="object"&&u!==null?u=oi(u):(u=sn(r)?Hu:Ir.current,u=$c(t,u));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||p!==u)&&A4(t,o,n,u),ia=!1,p=t.memoizedState,o.state=p,ty(t,n,o,i);var m=t.memoizedState;a!==f||p!==m||nn.current||ia?(typeof d=="function"&&(ES(t,r,d,n),m=t.memoizedState),(l=ia||F4(t,r,l,n,p,m,u)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=u,n=l):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return bS(e,t,r,n,s,i)}function bS(e,t,r,n,i,s){E6(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&w4(t,r,!1),qs(e,t,s);n=t.stateNode,mre.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Gc(t,e.child,null,s),t.child=Gc(t,null,a,s)):Ur(e,t,a,s),t.memoizedState=n.state,i&&w4(t,r,!0),t.child}function S6(e){var t=e.stateNode;t.pendingContext?v4(e,t.pendingContext,t.pendingContext!==t.context):t.context&&v4(e,t.context,!1),ux(e,t.containerInfo)}function B4(e,t,r,n,i){return Wc(),rx(i),t.flags|=256,Ur(e,t,r,n),t.child}var OS={dehydrated:null,treeContext:null,retryLane:0};function FS(e){return{baseLanes:e,cachePool:null,transitions:null}}function x6(e,t,r){var n=t.pendingProps,i=Ot.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ut(Ot,i&1),e===null)return wS(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):(o=n.children,e=n.fallback,s?(n=t.mode,s=t.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=wy(o,n,0,null),e=zu(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=FS(r),t.memoizedState=OS,e):gx(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return hre(e,t,o,n,a,i,r);if(s){s=n.fallback,o=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=ga(i,u),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=ga(a,s):(s=zu(s,o,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,o=e.child.memoizedState,o=o===null?FS(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=OS,n}return s=e.child,e=s.sibling,n=ga(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function gx(e,t){return t=wy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Og(e,t,r,n){return n!==null&&rx(n),Gc(t,e.child,null,r),e=gx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hre(e,t,r,n,i,s,o){if(r)return t.flags&256?(t.flags&=-257,n=$E(Error(J(422))),Og(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=wy({mode:"visible",children:n.children},i,0,null),s=zu(s,i,o,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&Gc(t,e.child,null,o),t.child.memoizedState=FS(o),t.memoizedState=OS,s);if(!(t.mode&1))return Og(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(J(419)),n=$E(s,n,void 0),Og(e,t,o,n)}if(a=(o&e.childLanes)!==0,rn||a){if(n=ar,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Gs(e,i),Pi(n,e,i,-1))}return Ex(),n=$E(Error(J(421))),Og(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Fre.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,En=pa(i.nextSibling),Sn=t,Et=!0,Ii=null,e!==null&&(ri[ni++]=js,ri[ni++]=Vs,ri[ni++]=Yu,js=e.id,Vs=e.overflow,Yu=t),t=gx(t,n.children),t.flags|=4096,t)}function k4(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),CS(e.return,t,r)}function WE(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function _6(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(Ur(e,t,n.children,r),n=Ot.current,n&2)n=n&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&&k4(e,r,t);else if(e.tag===19)k4(e,r,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}n&=1}if(ut(Ot,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&ry(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),WE(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ry(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}WE(t,!0,r,null,s);break;case"together":WE(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Xu|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(J(153));if(t.child!==null){for(e=t.child,r=ga(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ga(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function gre(e,t,r){switch(t.tag){case 3:S6(t),Wc();break;case 5:JB(t);break;case 1:sn(t.type)&&Xg(t);break;case 4:ux(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ut(Qg,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ut(Ot,Ot.current&1),t.flags|=128,null):r&t.child.childLanes?x6(e,t,r):(ut(Ot,Ot.current&1),e=qs(e,t,r),e!==null?e.sibling:null);ut(Ot,Ot.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return _6(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ut(Ot,Ot.current),n)break;return null;case 22:case 23:return t.lanes=0,C6(e,t,r)}return qs(e,t,r)}var b6,AS,O6,F6;b6=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};AS=function(){};O6=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Gu(ls.current);var s=null;switch(r){case"input":i=JE(e,i),n=JE(e,n),s=[];break;case"select":i=At({},i,{value:void 0}),n=At({},n,{value:void 0}),s=[];break;case"textarea":i=eS(e,i),n=eS(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Yg)}rS(r,n);var o;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Cd.hasOwnProperty(l)?s||(s=[]):(s=s||[]).push(l,null));for(l in n){var u=n[l];if(a=i?.[l],n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(s||(s=[]),s.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Cd.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&mt("scroll",e),s||a===u||(s=[])):(s=s||[]).push(l,u))}r&&(s=s||[]).push("style",r);var l=s;(t.updateQueue=l)&&(t.flags|=4)}};F6=function(e,t,r,n){r!==n&&(t.flags|=4)};function sd(e,t){if(!Et)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Fr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function yre(e,t,r){var n=t.pendingProps;switch(tx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fr(t),null;case 1:return sn(t.type)&&Kg(),Fr(t),null;case 3:return n=t.stateNode,qc(),ht(nn),ht(Ir),cx(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_g(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii!==null&&(kS(Ii),Ii=null))),AS(e,t),Fr(t),null;case 5:lx(t);var i=Gu(Ld.current);if(r=t.type,e!==null&&t.stateNode!=null)O6(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(J(166));return Fr(t),null}if(e=Gu(ls.current),_g(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[as]=t,n[Td]=s,e=(t.mode&1)!==0,r){case"dialog":mt("cancel",n),mt("close",n);break;case"iframe":case"object":case"embed":mt("load",n);break;case"video":case"audio":for(i=0;i<fd.length;i++)mt(fd[i],n);break;case"source":mt("error",n);break;case"img":case"image":case"link":mt("error",n),mt("load",n);break;case"details":mt("toggle",n);break;case"input":q5(n,s),mt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},mt("invalid",n);break;case"textarea":H5(n,s),mt("invalid",n)}rS(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(s.suppressHydrationWarning!==!0&&xg(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&xg(n.textContent,a,e),i=["children",""+a]):Cd.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&mt("scroll",n)}switch(r){case"input":pg(n),z5(n,s,!0);break;case"textarea":pg(n),Y5(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=Yg)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rB(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[as]=t,e[Td]=n,b6(e,t,!1,!1),t.stateNode=e;e:{switch(o=nS(r,n),r){case"dialog":mt("cancel",e),mt("close",e),i=n;break;case"iframe":case"object":case"embed":mt("load",e),i=n;break;case"video":case"audio":for(i=0;i<fd.length;i++)mt(fd[i],e);i=n;break;case"source":mt("error",e),i=n;break;case"img":case"image":case"link":mt("error",e),mt("load",e),i=n;break;case"details":mt("toggle",e),i=n;break;case"input":q5(e,n),i=JE(e,n),mt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=At({},n,{value:void 0}),mt("invalid",e);break;case"textarea":H5(e,n),i=eS(e,n),mt("invalid",e);break;default:i=n}rS(r,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?sB(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&nB(e,u)):s==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Ed(e,u):typeof u=="number"&&Ed(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Cd.hasOwnProperty(s)?u!=null&&s==="onScroll"&&mt("scroll",e):u!=null&&VS(e,s,u,o))}switch(r){case"input":pg(e),z5(e,n,!1);break;case"textarea":pg(e),Y5(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ya(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?Rc(e,!!n.multiple,s,!1):n.defaultValue!=null&&Rc(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Yg)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fr(t),null;case 6:if(e&&t.stateNode!=null)F6(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(J(166));if(r=Gu(Ld.current),Gu(ls.current),_g(t)){if(n=t.stateNode,r=t.memoizedProps,n[as]=t,(s=n.nodeValue!==r)&&(e=Sn,e!==null))switch(e.tag){case 3:xg(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xg(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[as]=t,t.stateNode=n}return Fr(t),null;case 13:if(ht(Ot),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Et&&En!==null&&t.mode&1&&!(t.flags&128))zB(),Wc(),t.flags|=98560,s=!1;else if(s=_g(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(J(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(J(317));s[as]=t}else Wc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fr(t),s=!1}else Ii!==null&&(kS(Ii),Ii=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ot.current&1?Jt===0&&(Jt=3):Ex())),t.updateQueue!==null&&(t.flags|=4),Fr(t),null);case 4:return qc(),AS(e,t),e===null&&Ad(t.stateNode.containerInfo),Fr(t),null;case 10:return sx(t.type._context),Fr(t),null;case 17:return sn(t.type)&&Kg(),Fr(t),null;case 19:if(ht(Ot),s=t.memoizedState,s===null)return Fr(t),null;if(n=(t.flags&128)!==0,o=s.rendering,o===null)if(n)sd(s,!1);else{if(Jt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ry(e),o!==null){for(t.flags|=128,sd(s,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ut(Ot,Ot.current&1|2),t.child}e=e.sibling}s.tail!==null&&kt()>Hc&&(t.flags|=128,n=!0,sd(s,!1),t.lanes=4194304)}else{if(!n)if(e=ry(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),sd(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Et)return Fr(t),null}else 2*kt()-s.renderingStartTime>Hc&&r!==1073741824&&(t.flags|=128,n=!0,sd(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=kt(),t.sibling=null,r=Ot.current,ut(Ot,n?r&1|2:r&1),t):(Fr(t),null);case 22:case 23:return Cx(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Cn&1073741824&&(Fr(t),t.subtreeFlags&6&&(t.flags|=8192)):Fr(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function Dre(e,t){switch(tx(t),t.tag){case 1:return sn(t.type)&&Kg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qc(),ht(nn),ht(Ir),cx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lx(t),null;case 13:if(ht(Ot),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));Wc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(Ot),null;case 4:return qc(),null;case 10:return sx(t.type._context),null;case 22:case 23:return Cx(),null;case 24:return null;default:return null}}var Fg=!1,Ar=!1,vre=typeof WeakSet=="function"?WeakSet:Set,de=null;function Lc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Pt(e,t,n)}else r.current=null}function IS(e,t,r){try{r()}catch(n){Pt(e,t,n)}}var M4=!1;function wre(e,t){if(dS=qg,e=LB(),QS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==r||i!==0&&f.nodeType!==3||(a=o+i),f!==s||n!==0&&f.nodeType!==3||(u=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===r&&++l===i&&(a=o),p===s&&++c===n&&(u=o),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(mS={focusedElem:e,selectionRange:r},qg=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,D=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Fi(t.type,y),D);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(w){Pt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return m=M4,M4=!1,m}function Dd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&IS(t,r,s)}i=i.next}while(i!==n)}}function Dy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function TS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function A6(e){var t=e.alternate;t!==null&&(e.alternate=null,A6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[as],delete t[Td],delete t[yS],delete t[rre],delete t[nre])),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 I6(e){return e.tag===5||e.tag===3||e.tag===4}function j4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||I6(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 PS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Yg));else if(n!==4&&(e=e.child,e!==null))for(PS(e,t,r),e=e.sibling;e!==null;)PS(e,t,r),e=e.sibling}function LS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(LS(e,t,r),e=e.sibling;e!==null;)LS(e,t,r),e=e.sibling}var hr=null,Ai=!1;function ra(e,t,r){for(r=r.child;r!==null;)T6(e,t,r),r=r.sibling}function T6(e,t,r){if(us&&typeof us.onCommitFiberUnmount=="function")try{us.onCommitFiberUnmount(cy,r)}catch{}switch(r.tag){case 5:Ar||Lc(r,t);case 6:var n=hr,i=Ai;hr=null,ra(e,t,r),hr=n,Ai=i,hr!==null&&(Ai?(e=hr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):hr.removeChild(r.stateNode));break;case 18:hr!==null&&(Ai?(e=hr,r=r.stateNode,e.nodeType===8?BE(e.parentNode,r):e.nodeType===1&&BE(e,r),bd(e)):BE(hr,r.stateNode));break;case 4:n=hr,i=Ai,hr=r.stateNode.containerInfo,Ai=!0,ra(e,t,r),hr=n,Ai=i;break;case 0:case 11:case 14:case 15:if(!Ar&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&IS(r,t,o),i=i.next}while(i!==n)}ra(e,t,r);break;case 1:if(!Ar&&(Lc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Pt(r,t,a)}ra(e,t,r);break;case 21:ra(e,t,r);break;case 22:r.mode&1?(Ar=(n=Ar)||r.memoizedState!==null,ra(e,t,r),Ar=n):ra(e,t,r);break;default:ra(e,t,r)}}function V4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new vre),t.forEach(function(n){var i=Are.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Oi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:hr=a.stateNode,Ai=!1;break e;case 3:hr=a.stateNode.containerInfo,Ai=!0;break e;case 4:hr=a.stateNode.containerInfo,Ai=!0;break e}a=a.return}if(hr===null)throw Error(J(160));T6(s,o,i),hr=null,Ai=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){Pt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)P6(t,e),t=t.sibling}function P6(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Oi(t,e),ss(e),n&4){try{Dd(3,e,e.return),Dy(3,e)}catch(y){Pt(e,e.return,y)}try{Dd(5,e,e.return)}catch(y){Pt(e,e.return,y)}}break;case 1:Oi(t,e),ss(e),n&512&&r!==null&&Lc(r,r.return);break;case 5:if(Oi(t,e),ss(e),n&512&&r!==null&&Lc(r,r.return),e.flags&32){var i=e.stateNode;try{Ed(i,"")}catch(y){Pt(e,e.return,y)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&eB(i,s),nS(a,o);var l=nS(a,s);for(o=0;o<u.length;o+=2){var c=u[o],f=u[o+1];c==="style"?sB(i,f):c==="dangerouslySetInnerHTML"?nB(i,f):c==="children"?Ed(i,f):VS(i,c,f,l)}switch(a){case"input":ZE(i,s);break;case"textarea":tB(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var d=s.value;d!=null?Rc(i,!!s.multiple,d,!1):p!==!!s.multiple&&(s.defaultValue!=null?Rc(i,!!s.multiple,s.defaultValue,!0):Rc(i,!!s.multiple,s.multiple?[]:"",!1))}i[Td]=s}catch(y){Pt(e,e.return,y)}}break;case 6:if(Oi(t,e),ss(e),n&4){if(e.stateNode===null)throw Error(J(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){Pt(e,e.return,y)}}break;case 3:if(Oi(t,e),ss(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{bd(t.containerInfo)}catch(y){Pt(e,e.return,y)}break;case 4:Oi(t,e),ss(e);break;case 13:Oi(t,e),ss(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(vx=kt())),n&4&&V4(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Ar=(l=Ar)||c,Oi(t,e),Ar=l):Oi(t,e),ss(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(de=e,c=e.child;c!==null;){for(f=de=c;de!==null;){switch(p=de,d=p.child,p.tag){case 0:case 11:case 14:case 15:Dd(4,p,p.return);break;case 1:Lc(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Pt(n,r,y)}}break;case 5:Lc(p,p.return);break;case 22:if(p.memoizedState!==null){$4(f);continue}}d!==null?(d.return=p,de=d):$4(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,l?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,u=f.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=iB("display",o))}catch(y){Pt(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=l?"":f.memoizedProps}catch(y){Pt(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Oi(t,e),ss(e),n&4&&V4(e);break;case 21:break;default:Oi(t,e),ss(e)}}function ss(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(I6(r)){var n=r;break e}r=r.return}throw Error(J(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ed(i,""),n.flags&=-33);var s=j4(e);LS(e,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,a=j4(e);PS(e,a,o);break;default:throw Error(J(161))}}catch(u){Pt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cre(e,t,r){de=e,L6(e,t,r)}function L6(e,t,r){for(var n=(e.mode&1)!==0;de!==null;){var i=de,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||Fg;if(!o){var a=i.alternate,u=a!==null&&a.memoizedState!==null||Ar;a=Fg;var l=Ar;if(Fg=o,(Ar=u)&&!l)for(de=i;de!==null;)o=de,u=o.child,o.tag===22&&o.memoizedState!==null?W4(i):u!==null?(u.return=o,de=u):W4(i);for(;s!==null;)de=s,L6(s,t,r),s=s.sibling;de=i,Fg=a,Ar=l}U4(e,t,r)}else i.subtreeFlags&8772&&s!==null?(s.return=i,de=s):U4(e,t,r)}}function U4(e){for(;de!==null;){var t=de;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ar||Dy(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ar)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Fi(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&_4(t,s,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}_4(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&bd(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(J(163))}Ar||t.flags&512&&TS(t)}catch(p){Pt(t,t.return,p)}}if(t===e){de=null;break}if(r=t.sibling,r!==null){r.return=t.return,de=r;break}de=t.return}}function $4(e){for(;de!==null;){var t=de;if(t===e){de=null;break}var r=t.sibling;if(r!==null){r.return=t.return,de=r;break}de=t.return}}function W4(e){for(;de!==null;){var t=de;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Dy(4,t)}catch(u){Pt(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){Pt(t,i,u)}}var s=t.return;try{TS(t)}catch(u){Pt(t,s,u)}break;case 5:var o=t.return;try{TS(t)}catch(u){Pt(t,o,u)}}}catch(u){Pt(t,t.return,u)}if(t===e){de=null;break}var a=t.sibling;if(a!==null){a.return=t.return,de=a;break}de=t.return}}var Ere=Math.ceil,sy=zs.ReactCurrentDispatcher,yx=zs.ReactCurrentOwner,si=zs.ReactCurrentBatchConfig,Xe=0,ar=null,$t=null,gr=0,Cn=0,Nc=wa(0),Jt=0,kd=null,Xu=0,vy=0,Dx=0,vd=null,tn=null,vx=0,Hc=1/0,ks=null,oy=!1,NS=null,ma=null,Ag=!1,ua=null,ay=0,wd=0,RS=null,kg=-1,Mg=0;function $r(){return Xe&6?kt():kg!==-1?kg:kg=kt()}function ha(e){return e.mode&1?Xe&2&&gr!==0?gr&-gr:sre.transition!==null?(Mg===0&&(Mg=yB()),Mg):(e=tt,e!==0||(e=window.event,e=e===void 0?16:xB(e.type)),e):1}function Pi(e,t,r,n){if(50<wd)throw wd=0,RS=null,Error(J(185));Md(e,r,n),(!(Xe&2)||e!==ar)&&(e===ar&&(!(Xe&2)&&(vy|=r),Jt===4&&oa(e,gr)),on(e,n),r===1&&Xe===0&&!(t.mode&1)&&(Hc=kt()+500,hy&&Ca()))}function on(e,t){var r=e.callbackNode;ate(e,t);var n=Gg(e,e===ar?gr:0);if(n===0)r!==null&&J5(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&J5(r),t===1)e.tag===0?ire(G4.bind(null,e)):WB(G4.bind(null,e)),ere(function(){!(Xe&6)&&Ca()}),r=null;else{switch(DB(n)){case 1:r=qS;break;case 4:r=hB;break;case 16:r=Wg;break;case 536870912:r=gB;break;default:r=Wg}r=U6(r,N6.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function N6(e,t){if(kg=-1,Mg=0,Xe&6)throw Error(J(327));var r=e.callbackNode;if(Vc()&&e.callbackNode!==r)return null;var n=Gg(e,e===ar?gr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=uy(e,n);else{t=n;var i=Xe;Xe|=2;var s=B6();(ar!==e||gr!==t)&&(ks=null,Hc=kt()+500,qu(e,t));do try{_re();break}catch(a){R6(e,a)}while(!0);ix(),sy.current=s,Xe=i,$t!==null?t=0:(ar=null,gr=0,t=Jt)}if(t!==0){if(t===2&&(i=uS(e),i!==0&&(n=i,t=BS(e,i))),t===1)throw r=kd,qu(e,0),oa(e,n),on(e,kt()),r;if(t===6)oa(e,n);else{if(i=e.current.alternate,!(n&30)&&!Sre(i)&&(t=uy(e,n),t===2&&(s=uS(e),s!==0&&(n=s,t=BS(e,s))),t===1))throw r=kd,qu(e,0),oa(e,n),on(e,kt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(J(345));case 2:Uu(e,tn,ks);break;case 3:if(oa(e,n),(n&130023424)===n&&(t=vx+500-kt(),10<t)){if(Gg(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){$r(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=gS(Uu.bind(null,e,tn,ks),t);break}Uu(e,tn,ks);break;case 4:if(oa(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Ti(n);s=1<<o,o=t[o],o>i&&(i=o),n&=~s}if(n=i,n=kt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ere(n/1960))-n,10<n){e.timeoutHandle=gS(Uu.bind(null,e,tn,ks),n);break}Uu(e,tn,ks);break;case 5:Uu(e,tn,ks);break;default:throw Error(J(329))}}}return on(e,kt()),e.callbackNode===r?N6.bind(null,e):null}function BS(e,t){var r=vd;return e.current.memoizedState.isDehydrated&&(qu(e,t).flags|=256),e=uy(e,t),e!==2&&(t=tn,tn=r,t!==null&&kS(t)),e}function kS(e){tn===null?tn=e:tn.push.apply(tn,e)}function Sre(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!Li(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 oa(e,t){for(t&=~Dx,t&=~vy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ti(t),n=1<<r;e[r]=-1,t&=~n}}function G4(e){if(Xe&6)throw Error(J(327));Vc();var t=Gg(e,0);if(!(t&1))return on(e,kt()),null;var r=uy(e,t);if(e.tag!==0&&r===2){var n=uS(e);n!==0&&(t=n,r=BS(e,n))}if(r===1)throw r=kd,qu(e,0),oa(e,t),on(e,kt()),r;if(r===6)throw Error(J(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Uu(e,tn,ks),on(e,kt()),null}function wx(e,t){var r=Xe;Xe|=1;try{return e(t)}finally{Xe=r,Xe===0&&(Hc=kt()+500,hy&&Ca())}}function Ju(e){ua!==null&&ua.tag===0&&!(Xe&6)&&Vc();var t=Xe;Xe|=1;var r=si.transition,n=tt;try{if(si.transition=null,tt=1,e)return e()}finally{tt=n,si.transition=r,Xe=t,!(Xe&6)&&Ca()}}function Cx(){Cn=Nc.current,ht(Nc)}function qu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Qte(r)),$t!==null)for(r=$t.return;r!==null;){var n=r;switch(tx(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Kg();break;case 3:qc(),ht(nn),ht(Ir),cx();break;case 5:lx(n);break;case 4:qc();break;case 13:ht(Ot);break;case 19:ht(Ot);break;case 10:sx(n.type._context);break;case 22:case 23:Cx()}r=r.return}if(ar=e,$t=e=ga(e.current,null),gr=Cn=t,Jt=0,kd=null,Dx=vy=Xu=0,tn=vd=null,Wu!==null){for(t=0;t<Wu.length;t++)if(r=Wu[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}Wu=null}return e}function R6(e,t){do{var r=$t;try{if(ix(),Ng.current=iy,ny){for(var n=Ft.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}ny=!1}if(Ku=0,or=Xt=Ft=null,yd=!1,Nd=0,yx.current=null,r===null||r.return===null){Jt=1,kd=t,$t=null;break}e:{var s=e,o=r.return,a=r,u=t;if(t=gr,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=T4(o);if(d!==null){d.flags&=-257,P4(d,o,a,s,t),d.mode&1&&I4(s,l,t),t=d,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){I4(s,l,t),Ex();break e}u=Error(J(426))}}else if(Et&&a.mode&1){var D=T4(o);if(D!==null){!(D.flags&65536)&&(D.flags|=256),P4(D,o,a,s,t),rx(zc(u,a));break e}}s=u=zc(u,a),Jt!==4&&(Jt=2),vd===null?vd=[s]:vd.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=D6(s,u,t);x4(s,h);break e;case 1:a=u;var g=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ma===null||!ma.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=v6(s,a,t);x4(s,w);break e}}s=s.return}while(s!==null)}M6(r)}catch(E){t=E,$t===r&&r!==null&&($t=r=r.return);continue}break}while(!0)}function B6(){var e=sy.current;return sy.current=iy,e===null?iy:e}function Ex(){(Jt===0||Jt===3||Jt===2)&&(Jt=4),ar===null||!(Xu&268435455)&&!(vy&268435455)||oa(ar,gr)}function uy(e,t){var r=Xe;Xe|=2;var n=B6();(ar!==e||gr!==t)&&(ks=null,qu(e,t));do try{xre();break}catch(i){R6(e,i)}while(!0);if(ix(),Xe=r,sy.current=n,$t!==null)throw Error(J(261));return ar=null,gr=0,Jt}function xre(){for(;$t!==null;)k6($t)}function _re(){for(;$t!==null&&!Zee();)k6($t)}function k6(e){var t=V6(e.alternate,e,Cn);e.memoizedProps=e.pendingProps,t===null?M6(e):$t=t,yx.current=null}function M6(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Dre(r,t),r!==null){r.flags&=32767,$t=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Jt=6,$t=null;return}}else if(r=yre(r,t,Cn),r!==null){$t=r;return}if(t=t.sibling,t!==null){$t=t;return}$t=t=e}while(t!==null);Jt===0&&(Jt=5)}function Uu(e,t,r){var n=tt,i=si.transition;try{si.transition=null,tt=1,bre(e,t,r,n)}finally{si.transition=i,tt=n}return null}function bre(e,t,r,n){do Vc();while(ua!==null);if(Xe&6)throw Error(J(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(J(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(ute(e,s),e===ar&&($t=ar=null,gr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ag||(Ag=!0,U6(Wg,function(){return Vc(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=si.transition,si.transition=null;var o=tt;tt=1;var a=Xe;Xe|=4,yx.current=null,wre(e,r),P6(r,e),Yte(mS),qg=!!dS,mS=dS=null,e.current=r,Cre(r,e,i),Qee(),Xe=a,tt=o,si.transition=s}else e.current=r;if(Ag&&(Ag=!1,ua=e,ay=i),s=e.pendingLanes,s===0&&(ma=null),rte(r.stateNode,n),on(e,kt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(oy)throw oy=!1,e=NS,NS=null,e;return ay&1&&e.tag!==0&&Vc(),s=e.pendingLanes,s&1?e===RS?wd++:(wd=0,RS=e):wd=0,Ca(),null}function Vc(){if(ua!==null){var e=DB(ay),t=si.transition,r=tt;try{if(si.transition=null,tt=16>e?16:e,ua===null)var n=!1;else{if(e=ua,ua=null,ay=0,Xe&6)throw Error(J(331));var i=Xe;for(Xe|=4,de=e.current;de!==null;){var s=de,o=s.child;if(de.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var l=a[u];for(de=l;de!==null;){var c=de;switch(c.tag){case 0:case 11:case 15:Dd(8,c,s)}var f=c.child;if(f!==null)f.return=c,de=f;else for(;de!==null;){c=de;var p=c.sibling,d=c.return;if(A6(c),c===l){de=null;break}if(p!==null){p.return=d,de=p;break}de=d}}}var m=s.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var D=y.sibling;y.sibling=null,y=D}while(y!==null)}}de=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,de=o;else e:for(;de!==null;){if(s=de,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Dd(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,de=h;break e}de=s.return}}var g=e.current;for(de=g;de!==null;){o=de;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,de=v;else e:for(o=g;de!==null;){if(a=de,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Dy(9,a)}}catch(E){Pt(a,a.return,E)}if(a===o){de=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,de=w;break e}de=a.return}}if(Xe=i,Ca(),us&&typeof us.onPostCommitFiberRoot=="function")try{us.onPostCommitFiberRoot(cy,e)}catch{}n=!0}return n}finally{tt=r,si.transition=t}}return!1}function q4(e,t,r){t=zc(r,t),t=D6(e,t,1),e=da(e,t,1),t=$r(),e!==null&&(Md(e,1,t),on(e,t))}function Pt(e,t,r){if(e.tag===3)q4(e,e,r);else for(;t!==null;){if(t.tag===3){q4(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ma===null||!ma.has(n))){e=zc(r,e),e=v6(t,e,1),t=da(t,e,1),e=$r(),t!==null&&(Md(t,1,e),on(t,e));break}}t=t.return}}function Ore(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=$r(),e.pingedLanes|=e.suspendedLanes&r,ar===e&&(gr&r)===r&&(Jt===4||Jt===3&&(gr&130023424)===gr&&500>kt()-vx?qu(e,0):Dx|=r),on(e,t)}function j6(e,t){t===0&&(e.mode&1?(t=hg,hg<<=1,!(hg&130023424)&&(hg=4194304)):t=1);var r=$r();e=Gs(e,t),e!==null&&(Md(e,t,r),on(e,r))}function Fre(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),j6(e,r)}function Are(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(J(314))}n!==null&&n.delete(t),j6(e,r)}var V6;V6=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||nn.current)rn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return rn=!1,gre(e,t,r);rn=!!(e.flags&131072)}else rn=!1,Et&&t.flags&1048576&&GB(t,Zg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bg(e,t),e=t.pendingProps;var i=$c(t,Ir.current);jc(t,r),i=px(null,t,n,e,i,r);var s=dx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,sn(n)?(s=!0,Xg(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ax(t),i.updater=yy,t.stateNode=i,i._reactInternals=t,SS(t,n,e,r),t=bS(null,t,n,!0,s,r)):(t.tag=0,Et&&s&&ex(t),Ur(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bg(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Tre(n),e=Fi(n,e),i){case 0:t=_S(null,t,n,e,r);break e;case 1:t=R4(null,t,n,e,r);break e;case 11:t=L4(null,t,n,e,r);break e;case 14:t=N4(null,t,n,Fi(n.type,e),r);break e}throw Error(J(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),_S(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),R4(e,t,n,i,r);case 3:e:{if(S6(t),e===null)throw Error(J(387));n=t.pendingProps,s=t.memoizedState,i=s.element,XB(e,t),ty(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=zc(Error(J(423)),t),t=B4(e,t,n,r,i);break e}else if(n!==i){i=zc(Error(J(424)),t),t=B4(e,t,n,r,i);break e}else for(En=pa(t.stateNode.containerInfo.firstChild),Sn=t,Et=!0,Ii=null,r=YB(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Wc(),n===i){t=qs(e,t,r);break e}Ur(e,t,n,r)}t=t.child}return t;case 5:return JB(t),e===null&&wS(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,hS(n,i)?o=null:s!==null&&hS(n,s)&&(t.flags|=32),E6(e,t),Ur(e,t,o,r),t.child;case 6:return e===null&&wS(t),null;case 13:return x6(e,t,r);case 4:return ux(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gc(t,null,n,r):Ur(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),L4(e,t,n,i,r);case 7:return Ur(e,t,t.pendingProps,r),t.child;case 8:return Ur(e,t,t.pendingProps.children,r),t.child;case 12:return Ur(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ut(Qg,n._currentValue),n._currentValue=o,s!==null)if(Li(s.value,o)){if(s.children===i.children&&!nn.current){t=qs(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(s.tag===1){u=Us(-1,r&-r),u.tag=2;var l=s.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),CS(s.return,r,t),a.lanes|=r;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(J(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),CS(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ur(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,jc(t,r),i=oi(i),n=n(i),t.flags|=1,Ur(e,t,n,r),t.child;case 14:return n=t.type,i=Fi(n,t.pendingProps),i=Fi(n.type,i),N4(e,t,n,i,r);case 15:return w6(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Fi(n,i),Bg(e,t),t.tag=1,sn(n)?(e=!0,Xg(t)):e=!1,jc(t,r),y6(t,n,i),SS(t,n,i,r),bS(null,t,n,!0,e,r);case 19:return _6(e,t,r);case 22:return C6(e,t,r)}throw Error(J(156,t.tag))};function U6(e,t){return mB(e,t)}function Ire(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(e,t,r,n){return new Ire(e,t,r,n)}function Sx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tre(e){if(typeof e=="function")return Sx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$S)return 11;if(e===WS)return 14}return 2}function ga(e,t){var r=e.alternate;return r===null?(r=ii(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function jg(e,t,r,n,i,s){var o=2;if(n=e,typeof e=="function")Sx(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case xc:return zu(r.children,i,s,t);case US:o=8,i|=8;break;case HE:return e=ii(12,r,t,i|2),e.elementType=HE,e.lanes=s,e;case YE:return e=ii(13,r,t,i),e.elementType=YE,e.lanes=s,e;case KE:return e=ii(19,r,t,i),e.elementType=KE,e.lanes=s,e;case J4:return wy(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K4:o=10;break e;case X4:o=9;break e;case $S:o=11;break e;case WS:o=14;break e;case na:o=16,n=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=ii(o,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function zu(e,t,r,n){return e=ii(7,e,n,t),e.lanes=r,e}function wy(e,t,r,n){return e=ii(22,e,n,t),e.elementType=J4,e.lanes=r,e.stateNode={isHidden:!1},e}function GE(e,t,r){return e=ii(6,e,null,t),e.lanes=r,e}function qE(e,t,r){return t=ii(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pre(e,t,r,n,i){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=FE(0),this.expirationTimes=FE(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=FE(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xx(e,t,r,n,i,s,o,a,u){return e=new Pre(e,t,r,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ii(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ax(s),e}function Lre(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Sc,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function $6(e){if(!e)return Da;e=e._reactInternals;e:{if(Qu(e)!==e||e.tag!==1)throw Error(J(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(sn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(J(171))}if(e.tag===1){var r=e.type;if(sn(r))return $B(e,r,t)}return t}function W6(e,t,r,n,i,s,o,a,u){return e=xx(r,n,!0,e,i,s,o,a,u),e.context=$6(null),r=e.current,n=$r(),i=ha(r),s=Us(n,i),s.callback=t??null,da(r,s,i),e.current.lanes=i,Md(e,i,n),on(e,n),e}function Cy(e,t,r,n){var i=t.current,s=$r(),o=ha(i);return r=$6(r),t.context===null?t.context=r:t.pendingContext=r,t=Us(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=da(i,t,o),e!==null&&(Pi(e,i,o,s),Lg(e,i,o)),o}function ly(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 z4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function _x(e,t){z4(e,t),(e=e.alternate)&&z4(e,t)}function Nre(){return null}var G6=typeof reportError=="function"?reportError:function(e){console.error(e)};function bx(e){this._internalRoot=e}Ey.prototype.render=bx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(J(409));Cy(e,t,null,null)};Ey.prototype.unmount=bx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ju(function(){Cy(null,e,null,null)}),t[Ws]=null}};function Ey(e){this._internalRoot=e}Ey.prototype.unstable_scheduleHydration=function(e){if(e){var t=CB();e={blockedOn:null,target:e,priority:t};for(var r=0;r<sa.length&&t!==0&&t<sa[r].priority;r++);sa.splice(r,0,e),r===0&&SB(e)}};function Ox(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function H4(){}function Rre(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var l=ly(o);s.call(l)}}var o=W6(t,n,e,0,null,!1,!1,"",H4);return e._reactRootContainer=o,e[Ws]=o.current,Ad(e.nodeType===8?e.parentNode:e),Ju(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var l=ly(u);a.call(l)}}var u=xx(e,0,!1,null,null,!1,!1,"",H4);return e._reactRootContainer=u,e[Ws]=u.current,Ad(e.nodeType===8?e.parentNode:e),Ju(function(){Cy(t,u,r,n)}),u}function xy(e,t,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var u=ly(o);a.call(u)}}Cy(t,o,e,i)}else o=Rre(r,t,e,i,n);return ly(o)}vB=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=cd(t.pendingLanes);r!==0&&(zS(t,r|1),on(t,kt()),!(Xe&6)&&(Hc=kt()+500,Ca()))}break;case 13:Ju(function(){var n=Gs(e,1);if(n!==null){var i=$r();Pi(n,e,1,i)}}),_x(e,1)}};HS=function(e){if(e.tag===13){var t=Gs(e,134217728);if(t!==null){var r=$r();Pi(t,e,134217728,r)}_x(e,134217728)}};wB=function(e){if(e.tag===13){var t=ha(e),r=Gs(e,t);if(r!==null){var n=$r();Pi(r,e,t,n)}_x(e,t)}};CB=function(){return tt};EB=function(e,t){var r=tt;try{return tt=e,t()}finally{tt=r}};sS=function(e,t,r){switch(t){case"input":if(ZE(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=my(n);if(!i)throw Error(J(90));Q4(n),ZE(n,i)}}}break;case"textarea":tB(e,r);break;case"select":t=r.value,t!=null&&Rc(e,!!r.multiple,t,!1)}};uB=wx;lB=Ju;var Bre={usingClientEntryPoint:!1,Events:[Vd,Fc,my,oB,aB,wx]},od={findFiberByHostInstance:$u,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kre={bundleType:od.bundleType,version:od.version,rendererPackageName:od.rendererPackageName,rendererConfig:od.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pB(e),e===null?null:e.stateNode},findFiberByHostInstance:od.findFiberByHostInstance||Nre,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ad=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ad.isDisabled&&ad.supportsFiber))try{cy=ad.inject(kre),us=ad}catch{}var ad;bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bre;bn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ox(t))throw Error(J(200));return Lre(e,t,null,r)};bn.createRoot=function(e,t){if(!Ox(e))throw Error(J(299));var r=!1,n="",i=G6;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=xx(e,1,!1,null,null,r,!1,n,i),e[Ws]=t.current,Ad(e.nodeType===8?e.parentNode:e),new bx(t)};bn.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(J(188)):(e=Object.keys(e).join(","),Error(J(268,e)));return e=pB(t),e=e===null?null:e.stateNode,e};bn.flushSync=function(e){return Ju(e)};bn.hydrate=function(e,t,r){if(!Sy(t))throw Error(J(200));return xy(null,e,t,!0,r)};bn.hydrateRoot=function(e,t,r){if(!Ox(e))throw Error(J(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=G6;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=W6(t,null,e,1,r??null,i,!1,s,o),e[Ws]=t.current,Ad(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Ey(t)};bn.render=function(e,t,r){if(!Sy(t))throw Error(J(200));return xy(null,e,t,!1,r)};bn.unmountComponentAtNode=function(e){if(!Sy(e))throw Error(J(40));return e._reactRootContainer?(Ju(function(){xy(null,null,e,!1,function(){e._reactRootContainer=null,e[Ws]=null})}),!0):!1};bn.unstable_batchedUpdates=wx;bn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Sy(r))throw Error(J(200));if(e==null||e._reactInternals===void 0)throw Error(J(38));return xy(e,t,r,!1,n)};bn.version="18.3.1-next-f1338f8080-20240426"});var Y6=N((bCe,H6)=>{"use strict";function z6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(z6)}catch(e){console.error(e)}}z6(),H6.exports=q6()});var X6=N(K6=>{"use strict";var Xc=V("react");function Mre(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jre=typeof Object.is=="function"?Object.is:Mre,Vre=Xc.useState,Ure=Xc.useEffect,$re=Xc.useLayoutEffect,Wre=Xc.useDebugValue;function Gre(e,t){var r=t(),n=Vre({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return $re(function(){i.value=r,i.getSnapshot=t,Fx(i)&&s({inst:i})},[e,r,t]),Ure(function(){return Fx(i)&&s({inst:i}),e(function(){Fx(i)&&s({inst:i})})},[e]),Wre(r),r}function Fx(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!jre(e,r)}catch{return!0}}function qre(e,t){return t()}var zre=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?qre:Gre;K6.useSyncExternalStore=Xc.useSyncExternalStore!==void 0?Xc.useSyncExternalStore:zre});var Z6=N((FCe,J6)=>{"use strict";J6.exports=X6()});var p8=N(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});var $d,Ea=Xp(),Ni=V("react"),Q6=($d=Ni)&&typeof $d=="object"&&"default"in $d?$d.default:$d,Hre=Y6(),Yre=Z6();if(!Ni.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Ea.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Kre(e){e()}function u8(e){e||(e=Kre),Ea.configure({reactionScheduler:e})}function Xre(e){return Ea.getDependencyTree(e)}var l8=!1;function e8(e){l8=e}function Ax(){return l8}var t8,r8,_y=new(typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){function e(r){var n=this;this.finalize=void 0,this.registrations=new Map,this.sweepTimeout=void 0,this.sweep=function(i){i===void 0&&(i=1e4),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var s=Date.now();n.registrations.forEach(function(o,a){s-o.registeredAt>=i&&(n.finalize(o.value),n.registrations.delete(a))}),n.registrations.size>0&&n.scheduleSweep()},this.finalizeAllImmediately=function(){n.sweep(0)},this.finalize=r}var t=e.prototype;return t.register=function(r,n,i){this.registrations.set(i,{value:n,registeredAt:Date.now()}),this.scheduleSweep()},t.unregister=function(r){this.registrations.delete(r)},t.scheduleSweep=function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,1e4))},e}())(function(e){var t;(t=e.reaction)==null||t.dispose(),e.reaction=null});function n8(e){e.reaction=new Ea.Reaction("observer"+e.name,function(){e.stateVersion=Symbol(),e.onStoreChange==null||e.onStoreChange()})}function Ix(e,t){if(t===void 0&&(t="observed"),Ax())return e();var r=Q6.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return _y.unregister(n),n.onStoreChange=a,n.reaction||(n8(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)==null||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var i,s,o=r.current;if(o.reaction||(n8(o),_y.register(r,o,o)),Q6.useDebugValue(o.reaction,Xre),Yre.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot),o.reaction.track(function(){try{i=e()}catch(a){s=a}}),s)throw s;return i}var i8,c8=typeof Symbol=="function"&&Symbol.for,Jre=(t8=(r8=Object.getOwnPropertyDescriptor(function(){},"name"))==null?void 0:r8.configurable)!=null&&t8,s8=c8?Symbol.for("react.forward_ref"):typeof Ni.forwardRef=="function"&&Ni.forwardRef(function(e){return null}).$$typeof,o8=c8?Symbol.for("react.memo"):typeof Ni.memo=="function"&&Ni.memo(function(e){return null}).$$typeof,Zre={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function f8(e){var t=e.children,r=e.render;t&&r&&console.error("MobX Observer: Do not use children and render in the same time in `Observer`");var n=t||r;return typeof n!="function"?null:Ix(n)}function a8(e){var t=Ni.useState(function(){return Ea.observable(e,{},{deep:!1})})[0];return Ea.runInAction(function(){Object.assign(t,e)}),t}f8.displayName="Observer",u8(Hre.unstable_batchedUpdates);var Qre=(i8=_y.finalizeAllImmediately)!=null?i8:function(){};Gr.Observer=f8,Gr._observerFinalizationRegistry=_y,Gr.clearTimers=Qre,Gr.enableStaticRendering=e8,Gr.isObserverBatched=function(){return!0},Gr.isUsingStaticRendering=Ax,Gr.observer=function(e,t){var r;if(o8&&e.$$typeof===o8)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(Ax())return e;var n=(r=t?.forwardRef)!=null&&r,i=e,s=e.displayName||e.name;if(s8&&e.$$typeof===s8&&(n=!0,typeof(i=e.render)!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o,a,u=function(l,c){return Ix(function(){return i(l,c)},s)};return u.displayName=e.displayName,Jre&&Object.defineProperty(u,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(u.contextTypes=e.contextTypes),n&&(u=Ni.forwardRef(u)),u=Ni.memo(u),o=e,a=u,Object.keys(o).forEach(function(l){Zre[l]||Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(o,l))}),u},Gr.observerBatching=u8,Gr.useAsObservableSource=a8,Gr.useLocalObservable=function(e,t){return Ni.useState(function(){return Ea.observable(e(),t,{autoBind:!0})})[0]},Gr.useLocalStore=function(e,t){var r=t&&a8(t);return Ni.useState(function(){return Ea.observable(e(r),void 0,{autoBind:!0})})[0]},Gr.useObserver=function(e,t){return t===void 0&&(t="observed"),Ix(e,t)},Gr.useStaticRendering=function(e){e8(e)}});var m8=N((ICe,d8)=>{"use strict";d8.exports=p8()});var T8=N(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Wd,Hs=Xp(),Gd=V("react"),an=(Wd=Gd)&&typeof Wd=="object"&&"default"in Wd?Wd.default:Wd,qr=m8();function h8(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}var ene={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,displayName:1,propTypes:1},g8=Symbol("patchMixins"),y8=Symbol("patchedDefinition");function D8(e,t){for(var r=this,n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];t.locks++;try{var o;return e!=null&&(o=e.apply(this,i)),o}finally{t.locks--,t.locks===0&&t.methods.forEach(function(a){a.apply(r,i)})}}function v8(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];D8.call.apply(D8,[this,e,t].concat(n))}}function O8(e,t,r){var n=function(o,a){var u=o[g8]=o[g8]||{},l=u[a]=u[a]||{};return l.locks=l.locks||0,l.methods=l.methods||[],l}(e,t);n.methods.indexOf(r)<0&&n.methods.push(r);var i=Object.getOwnPropertyDescriptor(e,t);if(!i||!i[y8]){var s=function o(a,u,l,c,f){var p,d=v8(f,c);return(p={})[y8]=!0,p.get=function(){return d},p.set=function(m){if(this===a)d=v8(m,c);else{var y=o(this,u,l,c,m);Object.defineProperty(this,u,y)}},p.configurable=!0,p.enumerable=l,p}(e,t,i?i.enumerable:void 0,n,e[t]);Object.defineProperty(e,t,s)}}var w8=Symbol("ObserverAdministration"),C8=Symbol("isMobXReactObserver");function Tx(e){var t;return(t=e[w8])!=null?t:e[w8]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:Px(e.constructor),state:void 0,props:void 0,context:void 0}}function Px(e){return e.displayName||e.name||"<component>"}function tne(e){var t=e.bind(this),r=Tx(this);return function(){r.reaction||(r.reaction=function(s){return new Hs.Reaction(s.name+".render()",function(){if(s.mounted)try{s.forceUpdate==null||s.forceUpdate()}catch{var o;(o=s.reaction)==null||o.dispose(),s.reaction=null}else s.reactionInvalidatedBeforeMount=!0})}(r),r.mounted||qr._observerFinalizationRegistry.register(this,r,this));var n=void 0,i=void 0;if(r.reaction.track(function(){try{i=Hs._allowStateChanges(!1,t)}catch(s){n=s}}),n)throw n;return i}}function E8(e,t){return qr.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!function(r,n){if(h8(r,n))return!0;if(typeof r!="object"||r===null||typeof n!="object"||n===null)return!1;var i=Object.keys(r),s=Object.keys(n);if(i.length!==s.length)return!1;for(var o=0;o<i.length;o++)if(!Object.hasOwnProperty.call(n,i[o])||!h8(r[i[o]],n[i[o]]))return!1;return!0}(this.props,e)}function F8(e,t){if(t&&t.kind!=="class")throw new Error("The @observer decorator can be used on classes only");return e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(Gd.Component,e)||Object.prototype.isPrototypeOf.call(Gd.PureComponent,e)?function(r){var n=r.prototype;if(r[C8]){var i=Px(r);throw new Error("The provided component class ("+i+") has already been declared as an observer component.")}if(r[C8]=!0,n.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(r.__proto__!==Gd.PureComponent)if(n.shouldComponentUpdate){if(n.shouldComponentUpdate!==E8)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else n.shouldComponentUpdate=E8;var s=n.render;if(typeof s!="function"){var o=Px(r);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}n.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:qr.isUsingStaticRendering()?s:tne.call(this,s)}),this.render()};var a=n.componentDidMount;return n.componentDidMount=function(){var u=this,l=Tx(this);return l.mounted=!0,qr._observerFinalizationRegistry.unregister(this),l.forceUpdate=function(){return u.forceUpdate()},l.reaction&&!l.reactionInvalidatedBeforeMount||l.forceUpdate(),a?.apply(this,arguments)},O8(n,"componentWillUnmount",function(){var u;if(!qr.isUsingStaticRendering()){var l=Tx(this);(u=l.reaction)==null||u.dispose(),l.reaction=null,l.forceUpdate=null,l.mounted=!1,l.reactionInvalidatedBeforeMount=!1}}),r}(e):qr.observer(e)}function Lx(){return(Lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var rne=["children"],Fy=an.createContext({});function A8(e){var t=e.children,r=function(s,o){if(s==null)return{};var a,u,l={},c=Object.keys(s);for(u=0;u<c.length;u++)o.indexOf(a=c[u])>=0||(l[a]=s[a]);return l}(e,rne),n=an.useContext(Fy),i=an.useRef(Lx({},n,r));return an.createElement(Fy.Provider,{value:i.current},t)}function S8(e,t,r,n){var i,s,o,a=an.forwardRef(function(u,l){var c=Lx({},u),f=an.useContext(Fy);return Object.assign(c,e(f||{},c)||{}),l&&(c.ref=l),an.createElement(t,c)});return n&&(a=F8(a)),a.isMobxInjector=!0,i=t,s=a,o=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach(function(u){ene[u]||o.indexOf(u)!==-1||Object.defineProperty(s,u,Object.getOwnPropertyDescriptor(i,u))}),a.wrappedComponent=t,a.displayName=function(u,l){var c=u.displayName||u.name||u.constructor&&u.constructor.name||"Component";return l?"inject-with-"+l+"("+c+")":"inject("+c+")"}(t,r),a}function nne(e){return function(t,r){return e.forEach(function(n){if(!(n in r)){if(!(n in t))throw new Error("MobX injector: Store '"+n+"' is not available! Make sure it is provided by some Provider");r[n]=t[n]}}),r}}A8.displayName="MobXProvider";var ine=Number.parseInt(an.version.split(".")[0]),x8=!1,by=Symbol("disposeOnUnmountProto"),Oy=Symbol("disposeOnUnmountInst");function sne(){var e=this;[].concat(this[by]||[],this[Oy]||[]).forEach(function(t){var r=typeof t=="string"?e[t]:t;r!=null&&(Array.isArray(r)?r.map(function(n){return n()}):r())})}function I8(e){function t(n,i,s,o,a,u){for(var l=arguments.length,c=new Array(l>6?l-6:0),f=6;f<l;f++)c[f-6]=arguments[f];return Hs.untracked(function(){return o=o||"<<anonymous>>",u=u||s,i[s]==null?n?new Error("The "+a+" `"+u+"` is marked as required in `"+o+"`, but its value is `"+(i[s]===null?"null":"undefined")+"`."):null:e.apply(void 0,[i,s,o,a,u].concat(c))})}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function _8(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(r,n){return r==="symbol"||n["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&n instanceof Symbol}(t,e)?"symbol":t}function Jc(e,t){return I8(function(r,n,i,s,o){return Hs.untracked(function(){if(e&&_8(r[n])===t.toLowerCase())return null;var a;switch(t){case"Array":a=Hs.isObservableArray;break;case"Object":a=Hs.isObservableObject;break;case"Map":a=Hs.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var u=r[n];if(!a(u)){var l=function(f){var p=_8(f);if(p==="object"){if(f instanceof Date)return"date";if(f instanceof RegExp)return"regexp"}return p}(u),c=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+o+"` of type `"+l+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+c+".")}return null})})}function b8(e,t){return I8(function(r,n,i,s,o){for(var a=arguments.length,u=new Array(a>5?a-5:0),l=5;l<a;l++)u[l-5]=arguments[l];return Hs.untracked(function(){if(typeof t!="function")return new Error("Property `"+o+"` of component `"+i+"` has invalid PropType notation.");var c=Jc(e,"Array")(r,n,i,s,o);if(c instanceof Error)return c;for(var f=r[n],p=0;p<f.length;p++)if((c=t.apply(void 0,[f,p,i,s,o+"["+p+"]"].concat(u)))instanceof Error)return c;return null})})}var one={observableArray:Jc(!1,"Array"),observableArrayOf:b8.bind(null,!1),observableMap:Jc(!1,"Map"),observableObject:Jc(!1,"Object"),arrayOrObservableArray:Jc(!0,"Array"),arrayOrObservableArrayOf:b8.bind(null,!0),objectOrObservableObject:Jc(!0,"Object")};if(!Gd.Component)throw new Error("mobx-react requires React to be available");if(!Hs.observable)throw new Error("mobx-react requires mobx to be available");Object.defineProperty(Dr,"Observer",{enumerable:!0,get:function(){return qr.Observer}}),Object.defineProperty(Dr,"enableStaticRendering",{enumerable:!0,get:function(){return qr.enableStaticRendering}}),Object.defineProperty(Dr,"isUsingStaticRendering",{enumerable:!0,get:function(){return qr.isUsingStaticRendering}}),Object.defineProperty(Dr,"observerBatching",{enumerable:!0,get:function(){return qr.observerBatching}}),Object.defineProperty(Dr,"useAsObservableSource",{enumerable:!0,get:function(){return qr.useAsObservableSource}}),Object.defineProperty(Dr,"useLocalObservable",{enumerable:!0,get:function(){return qr.useLocalObservable}}),Object.defineProperty(Dr,"useLocalStore",{enumerable:!0,get:function(){return qr.useLocalStore}}),Object.defineProperty(Dr,"useObserver",{enumerable:!0,get:function(){return qr.useObserver}}),Object.defineProperty(Dr,"useStaticRendering",{enumerable:!0,get:function(){return qr.useStaticRendering}}),Dr.MobXProviderContext=Fy,Dr.PropTypes=one,Dr.Provider=A8,Dr.disposeOnUnmount=function e(t,r){if(Array.isArray(r))return r.map(function(a){return e(t,a)});x8||(ine>=18?console.error("[mobx-react] disposeOnUnmount is not compatible with React 18 and higher. Don't use it."):console.warn("[mobx-react] disposeOnUnmount is deprecated. It won't work correctly with React 18 and higher."),x8=!0);var n=Object.getPrototypeOf(t).constructor,i=Object.getPrototypeOf(t.constructor),s=Object.getPrototypeOf(Object.getPrototypeOf(t));if(n!==an.Component&&n!==an.PureComponent&&i!==an.Component&&i!==an.PureComponent&&s!==an.Component&&s!==an.PureComponent)throw new Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if(typeof r!="string"&&typeof r!="function"&&!Array.isArray(r))throw new Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var o=!!t[by]||!!t[Oy];return(typeof r=="string"?t[by]||(t[by]=[]):t[Oy]||(t[Oy]=[])).push(r),o||O8(t,"componentWillUnmount",sne),typeof r!="string"?r:void 0},Dr.inject=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(typeof arguments[0]=="function"){var n=arguments[0];return function(i){return S8(n,i,n.name,!0)}}return function(i){return S8(nne(t),i,t.join("-"),!1)}},Dr.observer=F8});var Nx=N((PCe,P8)=>{"use strict";P8.exports=T8()});var j8=N((YCe,M8)=>{M8.exports=k8;k8.sync=pne;var R8=V("fs");function fne(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function B8(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:fne(t,r)}function k8(e,t,r){R8.stat(e,function(n,i){r(n,n?!1:B8(i,e,t))})}function pne(e,t){return B8(R8.statSync(e),e,t)}});var G8=N((KCe,W8)=>{W8.exports=U8;U8.sync=dne;var V8=V("fs");function U8(e,t,r){V8.stat(e,function(n,i){r(n,n?!1:$8(i,t))})}function dne(e,t){return $8(V8.statSync(e),t)}function $8(e,t){return e.isFile()&&mne(e,t)}function mne(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,f=r&l||r&u&&i===o||r&a&&n===s||r&c&&s===0;return f}});var z8=N((JCe,q8)=>{var XCe=V("fs"),Ay;process.platform==="win32"||global.TESTING_WINDOWS?Ay=j8():Ay=G8();q8.exports=Bx;Bx.sync=hne;function Bx(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Bx(e,t||{},function(s,o){s?i(s):n(o)})})}Ay(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function hne(e,t){try{return Ay.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Q8=N((ZCe,Z8)=>{var Zc=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",H8=V("path"),gne=Zc?";":":",Y8=z8(),K8=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),X8=(e,t)=>{let r=t.colon||gne,n=e.match(/\//)||Zc&&e.match(/\\/)?[""]:[...Zc?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=Zc?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Zc?i.split(r):[""];return Zc&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},J8=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=X8(e,t),o=[],a=l=>new Promise((c,f)=>{if(l===n.length)return t.all&&o.length?c(o):f(K8(e));let p=n[l],d=/^".*"$/.test(p)?p.slice(1,-1):p,m=H8.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+m:m;c(u(y,l,0))}),u=(l,c,f)=>new Promise((p,d)=>{if(f===i.length)return p(a(c+1));let m=i[f];Y8(l+m,{pathExt:s},(y,D)=>{if(!y&&D)if(t.all)o.push(l+m);else return p(l+m);return p(u(l,c,f+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},yne=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=X8(e,t),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,l=H8.join(u,e),c=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let f=0;f<n.length;f++){let p=c+n[f];try{if(Y8.sync(p,{pathExt:i}))if(t.all)s.push(p);else return p}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw K8(e)};Z8.exports=J8;J8.sync=yne});var tk=N((QCe,kx)=>{"use strict";var ek=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};kx.exports=ek;kx.exports.default=ek});var sk=N((eEe,ik)=>{"use strict";var rk=V("path"),Dne=Q8(),vne=tk();function nk(e,t){let r=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let o;try{o=Dne.sync(e.command,{path:r[vne({env:r})],pathExt:t?rk.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=rk.resolve(i?e.options.cwd:"",o)),o}function wne(e){return nk(e)||nk(e,!0)}ik.exports=wne});var ok=N((tEe,jx)=>{"use strict";var Mx=/([()\][%!^"`<>&|;, *?])/g;function Cne(e){return e=e.replace(Mx,"^$1"),e}function Ene(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(Mx,"^$1"),t&&(e=e.replace(Mx,"^$1")),e}jx.exports.command=Cne;jx.exports.argument=Ene});var uk=N((rEe,ak)=>{"use strict";ak.exports=/^#!(.*)/});var ck=N((nEe,lk)=>{"use strict";var Sne=uk();lk.exports=(e="")=>{let t=e.match(Sne);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var pk=N((iEe,fk)=>{"use strict";var Vx=V("fs"),xne=ck();function _ne(e){let r=Buffer.alloc(150),n;try{n=Vx.openSync(e,"r"),Vx.readSync(n,r,0,150,0),Vx.closeSync(n)}catch{}return xne(r.toString())}fk.exports=_ne});var gk=N((sEe,hk)=>{"use strict";var bne=V("path"),dk=sk(),mk=ok(),One=pk(),Fne=process.platform==="win32",Ane=/\.(?:com|exe)$/i,Ine=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Tne(e){e.file=dk(e);let t=e.file&&One(e.file);return t?(e.args.unshift(e.file),e.command=t,dk(e)):e.file}function Pne(e){if(!Fne)return e;let t=Tne(e),r=!Ane.test(t);if(e.options.forceShell||r){let n=Ine.test(t);e.command=bne.normalize(e.command),e.command=mk.command(e.command),e.args=e.args.map(s=>mk.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Lne(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:Pne(n)}hk.exports=Lne});var vk=N((oEe,Dk)=>{"use strict";var Ux=process.platform==="win32";function $x(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Nne(e,t){if(!Ux)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=yk(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function yk(e,t){return Ux&&e===1&&!t.file?$x(t.original,"spawn"):null}function Rne(e,t){return Ux&&e===1&&!t.file?$x(t.original,"spawnSync"):null}Dk.exports={hookChildProcess:Nne,verifyENOENT:yk,verifyENOENTSync:Rne,notFoundError:$x}});var Ek=N((aEe,Qc)=>{"use strict";var wk=V("child_process"),Wx=gk(),Gx=vk();function Ck(e,t,r){let n=Wx(e,t,r),i=wk.spawn(n.command,n.args,n.options);return Gx.hookChildProcess(i,n),i}function Bne(e,t,r){let n=Wx(e,t,r),i=wk.spawnSync(n.command,n.args,n.options);return i.error=i.error||Gx.verifyENOENTSync(i.status,n),i}Qc.exports=Ck;Qc.exports.spawn=Ck;Qc.exports.sync=Bne;Qc.exports._parse=Wx;Qc.exports._enoent=Gx});var Xk=N((fSe,Kk)=>{"use strict";var{PassThrough:Nie}=V("stream");Kk.exports=function(){var e=[],t=new Nie({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});import{notStrictEqual as Qj,strictEqual as eV}from"assert";var Aj={right:Nj,center:Rj},Ij=0,tm=1,Tj=2,rm=3,sD=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
426
426
  `).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&un.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),un.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,o)=>({text:s.trim(),padding:this.measurePadding(s),width:o===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=un.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
427
427
  `)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((o,a)=>{let{width:u}=t[a],l=this.negatePadding(t[a]),c=o;if(l>un.stringWidth(o)&&(c+=" ".repeat(l-un.stringWidth(o))),t[a].align&&t[a].align!=="left"&&this.wrap){let p=Aj[t[a].align];c=p(c,l),un.stringWidth(c)<l&&(c+=" ".repeat((u||0)-un.stringWidth(c)-1))}let f=t[a].padding||[0,0,0,0];f[rm]&&(s+=" ".repeat(f[rm])),s+=R2(t[a],c,"| "),s+=c,s+=R2(t[a],c," |"),f[tm]&&(s+=" ".repeat(f[tm])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,o=un.stringWidth(s.trimRight());return r.span?this.wrap?i<o?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-o)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,o)=>{s.width=n[o],this.wrap?i=un.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
428
428
  `):i=s.text.split(`
@@ -508,7 +508,7 @@ ${Lb}
508
508
  to the local update config store via
509
509
  `+Je.cyan(y1(" sudo chown -R $USER:$(id -gn $USER) %s ",ml));eu.on("exit",()=>{console.error(dh(r,{textAlignment:"center"}))})}}check(){!this.config||this.config.get("optOut")||this.#r||(this.update=this.config.get("update"),this.update&&(this.update.current=this.#t,this.config.delete("update")),!(Date.now()-this.config.get("lastUpdateCheck")<this.#e)&&yG(eu.execPath,[D3.join(vG,"check.js"),JSON.stringify(this.#n)],{detached:!0,stdio:"ignore"}).unref())}async fetchInfo(){let{distTag:t}=this.#n,r=await Kv(this._packageName,{version:t});return{latest:r,current:this.#t,type:(0,v3.default)(this.#t,r)??t,name:this._packageName}}notify(t){let r=!this._shouldNotifyInNpmScript&&vI;if(!eu.stdout.isTTY||r||!this.update||!(0,w3.default)(this.update.latest,this.update.current))return this;t={isGlobal:II,...t};let n=t.isGlobal?`npm i -g ${this._packageName}`:`npm i ${this._packageName}`,i="Update available "+Je.dim("{currentVersion}")+Je.reset(" \u2192 ")+Je.green("{latestVersion}")+`
510
510
  Run `+Je.cyan("{updateCommand}")+" to update",s=t.message||i;t.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let o=dh(g1(s,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:n}),t.boxenOptions);return t.defer===!1?console.error(o):eu.on("exit",()=>{console.error(o)}),this}};function D1(e){let t=new jf(e);return t.check(),t}var C3="#8b3dff",mh="grey",v1="#7d2ae7",E3=[{color:"#00c4cc",pos:0},{pos:.5},{color:"#6420ff",pos:.9},{color:v1,pos:1}];import Ui from"react";import{Box as S3,Text as tu}from"ink";var x3=({name:e,currentVersion:t,latestVersion:r})=>{let{lite:n}=Ui.useContext(st);return!r||r===t?null:n?Ui.createElement(S3,{flexDirection:"column"},Ui.createElement(tu,null,"Update available ",t," \u2192 ",r),Ui.createElement(tu,null,"Run npm i -g ",e,"@latest to update")):Ui.createElement(S3,{borderStyle:"round",borderColor:"yellow",flexDirection:"column",alignSelf:"center",paddingLeft:2,width:52},Ui.createElement(tu,{color:"yellow"},"Update available ",Ui.createElement(tu,{color:"grey"},t," \u2192 "),Ui.createElement(tu,{color:"yellow"},r)),Ui.createElement(tu,null,"Run ",Ui.createElement(tu,{bold:!0},"npm i -g ",e,"@latest")," to update"))};import fo from"react";import{Box as gT,Text as $1,useApp as rz}from"ink";import{Text as Dme}from"ink";import wme from"react";var rq=St(F3(),1);import rme,{createContext as eq,useContext as tq}from"react";import $i from"node:process";function w1(){return $i.platform!=="win32"?$i.env.TERM!=="linux":!!$i.env.WT_SESSION||!!$i.env.TERMINUS_SUBLIME||$i.env.ConEmuTask==="{cmd::Cmder}"||$i.env.TERM_PROGRAM==="Terminus-Sublime"||$i.env.TERM_PROGRAM==="vscode"||$i.env.TERM==="xterm-256color"||$i.env.TERM==="alacritty"||$i.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var A3={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},I3={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},NG={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},RG={...A3,...I3},BG={...A3,...NG},kG=w1(),MG=kG?RG:BG,Tt=MG,Bde=Object.entries(I3);var T3={info:"blue",success:"green",error:"red",warning:"yellow"},jG={styles:{container:({variant:e})=>({flexGrow:1,borderStyle:"round",borderColor:T3[e],gap:1,paddingX:1}),iconContainer:()=>({flexShrink:0}),icon:({variant:e})=>({color:T3[e]}),content:()=>({flexShrink:1,flexGrow:1,minWidth:0,flexDirection:"column",gap:1}),title:()=>({bold:!0}),message:()=>({})},config({variant:e}){let t;return e==="info"&&(t=Tt.info),e==="success"&&(t=Tt.tick),e==="error"&&(t=Tt.cross),e==="warning"&&(t=Tt.warning),{icon:t}}},P3=jG;var VG={styles:{container:({color:e})=>({backgroundColor:e}),label:()=>({color:"black"})}},L3=VG;var UG={styles:{input:({isFocused:e})=>({dimColor:!e})}},N3=UG;var $G={styles:{container:()=>({flexDirection:"column"}),option:({isFocused:e})=>({gap:1,paddingLeft:e?0:2}),selectedIndicator:()=>({color:"green"}),focusIndicator:()=>({color:"blue"}),label({isFocused:e,isSelected:t}){let r;return t&&(r="green"),e&&(r="blue"),{color:r}},highlightedText:()=>({bold:!0})}},R3=$G;var WG={styles:{list:()=>({flexDirection:"column"}),listItem:()=>({gap:1}),marker:()=>({dimColor:!0}),content:()=>({flexDirection:"column"})}},B3=WG;var GG={styles:{container:()=>({flexGrow:1,minWidth:0}),completed:()=>({color:"magenta"}),remaining:()=>({dimColor:!0})},config:()=>({completedCharacter:Tt.square,remainingCharacter:Tt.squareLightShade})},k3=GG;var qG={styles:{container:()=>({flexDirection:"column"}),option:({isFocused:e})=>({gap:1,paddingLeft:e?0:2}),selectedIndicator:()=>({color:"green"}),focusIndicator:()=>({color:"blue"}),label({isFocused:e,isSelected:t}){let r;return t&&(r="green"),e&&(r="blue"),{color:r}},highlightedText:()=>({bold:!0})}},M3=qG;var zG={styles:{container:()=>({gap:1}),frame:()=>({color:"blue"}),label:()=>({})}},j3=zG;var HG={success:"green",error:"red",warning:"yellow",info:"blue"},YG={success:Tt.tick,error:Tt.cross,warning:Tt.warning,info:Tt.info},KG={styles:{container:()=>({gap:1}),iconContainer:()=>({flexShrink:0}),icon:({variant:e})=>({color:HG[e]}),message:()=>({})},config:({variant:e})=>({icon:YG[e]})},V3=KG;var XG={styles:{list:()=>({flexDirection:"column"}),listItem:()=>({gap:1}),marker:()=>({dimColor:!0}),content:()=>({flexDirection:"column"})},config:()=>({marker:Tt.line})},U3=XG;var JG={styles:{value:()=>({})}},$3=JG;var ZG={styles:{value:()=>({})}},W3=ZG;var QG={styles:{value:()=>({})}},G3=QG;var nq={components:{Alert:P3,Badge:L3,ConfirmInput:N3,MultiSelect:R3,OrderedList:B3,ProgressBar:k3,Select:M3,Spinner:j3,StatusMessage:V3,UnorderedList:U3,TextInput:$3,EmailInput:W3,PasswordInput:G3}},iq=eq(nq);var rt=e=>tq(iq).components[e];import sq from"react";import{Text as oq,useInput as aq}from"ink";function q3({isDisabled:e=!1,defaultChoice:t="confirm",submitOnEnter:r=!0,onConfirm:n,onCancel:i}){aq((o,a)=>{o.toLowerCase()==="y"&&n(),o.toLowerCase()==="n"&&i(),a.return&&r&&(t==="confirm"?n():i())},{isActive:!e});let{styles:s}=rt("ConfirmInput");return sq.createElement(oq,{...s.input({isFocused:!e})},t==="confirm"?"Y/n":"y/N")}import{Box as pq}from"ink";import S1,{useMemo as Y3,useContext as dq}from"react";import{Box as z3,Text as lq}from"ink";import C1,{useContext as cq}from"react";import{createContext as uq}from"react";var Uf=Tt.line;var hh=uq({marker:Uf});function H3({children:e}){let{marker:t}=cq(hh),{styles:r}=rt("UnorderedList");return C1.createElement(z3,{...r.listItem()},C1.createElement(lq,{...r.marker()},t),C1.createElement(z3,{...r.content()},e))}import{createContext as fq}from"react";var E1=fq({depth:0});function mq({children:e}){let{depth:t}=dq(E1),{styles:r,config:n}=rt("UnorderedList"),i=Y3(()=>({depth:t+1}),[t]),s=Y3(()=>{let{marker:o}=n();return typeof o=="string"?{marker:o}:Array.isArray(o)?{marker:o[t]??o.at(-1)??Uf}:{marker:Uf}},[n,t]);return S1.createElement(E1.Provider,{value:i},S1.createElement(hh.Provider,{value:s},S1.createElement(pq,{...r.list()},e)))}mq.Item=H3;import Ehe from"react";import{Box as xhe,Text as _he}from"ink";import ehe from"react";import{Box as rhe,Text as nhe}from"ink";import{useReducer as uhe,useCallback as lhe,useMemo as che,useState as fhe,useEffect as phe}from"react";var Tl=class extends Map{first;constructor(t){let r=[],n,i,s=0;for(let o of t){let a={...o,previous:i,next:void 0,index:s};i&&(i.next=a),n||=a,r.push([o.value,a]),s++,i=a}super(r),this.first=n}};import{useInput as ghe}from"ink";import Nhe,{useState as Rhe}from"react";import{Box as khe,Text as Mhe,measureElement as jhe}from"ink";import $f from"react";import{Box as Sq,Text as xq}from"ink";import gh from"react";import{Box as hq,Text as x1}from"ink";function K3({isFocused:e,isSelected:t,children:r}){let{styles:n}=rt("Select");return gh.createElement(hq,{...n.option({isFocused:e})},e&&gh.createElement(x1,{...n.focusIndicator()},Tt.pointer),gh.createElement(x1,{...n.label({isFocused:e,isSelected:t})},r),t&&gh.createElement(x1,{...n.selectedIndicator()},Tt.tick))}import{isDeepStrictEqual as gq}from"node:util";import{useReducer as yq,useCallback as _1,useMemo as Dq,useState as vq,useEffect as wq}from"react";var Cq=(e,t)=>{switch(t.type){case"focus-next-option":{if(!e.focusedValue)return e;let r=e.optionMap.get(e.focusedValue);if(!r)return e;let n=r.next;if(!n)return e;if(!(n.index>=e.visibleToIndex))return{...e,focusedValue:n.value};let s=Math.min(e.optionMap.size,e.visibleToIndex+1),o=s-e.visibleOptionCount;return{...e,focusedValue:n.value,visibleFromIndex:o,visibleToIndex:s}}case"focus-previous-option":{if(!e.focusedValue)return e;let r=e.optionMap.get(e.focusedValue);if(!r)return e;let n=r.previous;if(!n)return e;if(!(n.index<=e.visibleFromIndex))return{...e,focusedValue:n.value};let s=Math.max(0,e.visibleFromIndex-1),o=s+e.visibleOptionCount;return{...e,focusedValue:n.value,visibleFromIndex:s,visibleToIndex:o}}case"select-focused-option":return{...e,previousValue:e.value,value:e.focusedValue};case"reset":return t.state}},X3=({visibleOptionCount:e,defaultValue:t,options:r})=>{let n=typeof e=="number"?Math.min(e,r.length):r.length,i=new Tl(r);return{optionMap:i,visibleOptionCount:n,focusedValue:i.first?.value,visibleFromIndex:0,visibleToIndex:n,previousValue:t,value:t}},J3=({visibleOptionCount:e=5,options:t,defaultValue:r,onChange:n})=>{let[i,s]=yq(Cq,{visibleOptionCount:e,defaultValue:r,options:t},X3),[o,a]=vq(t);t!==o&&!gq(t,o)&&(s({type:"reset",state:X3({visibleOptionCount:e,defaultValue:r,options:t})}),a(t));let u=_1(()=>{s({type:"focus-next-option"})},[]),l=_1(()=>{s({type:"focus-previous-option"})},[]),c=_1(()=>{s({type:"select-focused-option"})},[]),f=Dq(()=>t.map((p,d)=>({...p,index:d})).slice(i.visibleFromIndex,i.visibleToIndex),[t,i.visibleFromIndex,i.visibleToIndex]);return wq(()=>{i.value&&i.previousValue!==i.value&&n?.(i.value)},[i.previousValue,i.value,t,n]),{focusedValue:i.focusedValue,visibleFromIndex:i.visibleFromIndex,visibleToIndex:i.visibleToIndex,value:i.value,visibleOptions:f,focusNextOption:u,focusPreviousOption:l,selectFocusedOption:c}};import{useInput as Eq}from"ink";var Z3=({isDisabled:e=!1,state:t})=>{Eq((r,n)=>{n.downArrow&&t.focusNextOption(),n.upArrow&&t.focusPreviousOption(),n.return&&t.selectFocusedOption()},{isActive:!e})};function ws({isDisabled:e=!1,visibleOptionCount:t=5,highlightText:r,options:n,defaultValue:i,onChange:s}){let o=J3({visibleOptionCount:t,options:n,defaultValue:i,onChange:s});Z3({isDisabled:e,state:o});let{styles:a}=rt("Select");return $f.createElement(Sq,{...a.container()},o.visibleOptions.map(u=>{let l=u.label;if(r&&u.label.includes(r)){let c=u.label.indexOf(r);l=$f.createElement($f.Fragment,null,u.label.slice(0,c),$f.createElement(xq,{...a.highlightedText()},r),u.label.slice(c+r.length))}return $f.createElement(K3,{key:u.value,isFocused:!e&&o.focusedValue===u.value,isSelected:o.value===u.value},l)}))}import O1 from"react";import{Box as Fq,Text as tT}from"ink";import{useEffect as bq,useState as Oq}from"react";var b1={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots14:{interval:80,frames:["\u2809\u2809","\u2808\u2819","\u2800\u2839","\u2800\u28B8","\u2800\u28F0","\u2880\u28E0","\u28C0\u28C0","\u28C4\u2840","\u28C6\u2800","\u2847\u2800","\u280F\u2800","\u280B\u2801"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}};var Q3=b1,c0e=Object.keys(b1);function eT({type:e="dots"}){let[t,r]=Oq(0),n=Q3[e];return bq(()=>{let i=setInterval(()=>{r(s=>s===n.frames.length-1?0:s+1)},n.interval);return()=>{clearInterval(i)}},[n]),{frame:n.frames[t]??""}}function rT({label:e,type:t}){let{frame:r}=eT({type:t}),{styles:n}=rt("Spinner");return O1.createElement(Fq,{...n.container()},O1.createElement(tT,{...n.frame()},r),e&&O1.createElement(tT,{...n.label()},e))}import Nq from"react";import{Text as Rq}from"ink";import{useReducer as Aq,useCallback as Wf,useEffect as Iq,useMemo as Tq}from"react";var Pq=(e,t)=>{switch(t.type){case"move-cursor-left":return{...e,cursorOffset:Math.max(0,e.cursorOffset-1)};case"move-cursor-right":return{...e,cursorOffset:Math.min(e.value.length,e.cursorOffset+1)};case"insert":return{...e,previousValue:e.value,value:e.value.slice(0,e.cursorOffset)+t.text+e.value.slice(e.cursorOffset),cursorOffset:e.cursorOffset+t.text.length};case"delete":{let r=Math.max(0,e.cursorOffset-1);return{...e,previousValue:e.value,value:e.value.slice(0,r)+e.value.slice(r+1),cursorOffset:r}}}},nT=({defaultValue:e="",suggestions:t,onChange:r,onSubmit:n})=>{let[i,s]=Aq(Pq,{previousValue:e,value:e,cursorOffset:e.length}),o=Tq(()=>{if(i.value.length!==0)return t?.find(p=>p.startsWith(i.value))?.replace(i.value,"")},[i.value,t]),a=Wf(()=>{s({type:"move-cursor-left"})},[]),u=Wf(()=>{s({type:"move-cursor-right"})},[]),l=Wf(p=>{s({type:"insert",text:p})},[]),c=Wf(()=>{s({type:"delete"})},[]),f=Wf(()=>{if(o){l(o),n?.(i.value+o);return}n?.(i.value)},[i.value,o,l,n]);return Iq(()=>{i.value!==i.previousValue&&r?.(i.value)},[i.previousValue,i.value,r]),{...i,suggestion:o,moveCursorLeft:a,moveCursorRight:u,insert:l,delete:c,submit:f}};import{useMemo as iT}from"react";import{useInput as Lq}from"ink";var F1=Je.inverse(" "),sT=({isDisabled:e=!1,state:t,placeholder:r=""})=>{let n=iT(()=>e?r?Je.dim(r):"":r&&r.length>0?Je.inverse(r[0])+Je.dim(r.slice(1)):F1,[e,r]),i=iT(()=>{if(e)return t.value;let s=0,o=t.value.length>0?"":F1;for(let a of t.value)o+=s===t.cursorOffset?Je.inverse(a):a,s++;return t.suggestion?(t.cursorOffset===t.value.length?o+=Je.inverse(t.suggestion[0])+Je.dim(t.suggestion.slice(1)):o+=Je.dim(t.suggestion),o):(t.value.length>0&&t.cursorOffset===t.value.length&&(o+=F1),o)},[e,t.value,t.cursorOffset,t.suggestion]);return Lq((s,o)=>{if(!(o.upArrow||o.downArrow||o.ctrl&&s==="c"||o.tab||o.shift&&o.tab)){if(o.return){t.submit();return}o.leftArrow?t.moveCursorLeft():o.rightArrow?t.moveCursorRight():o.backspace||o.delete?t.delete():t.insert(s)}},{isActive:!e}),{inputValue:t.value.length>0?i:n}};function oT({isDisabled:e=!1,defaultValue:t,placeholder:r="",suggestions:n,onChange:i,onSubmit:s}){let o=nT({defaultValue:t,suggestions:n,onChange:i,onSubmit:s}),{inputValue:a}=sT({isDisabled:e,placeholder:r,state:o}),{styles:u}=rt("TextInput");return Nq.createElement(Rq,{...u.value()},a)}import{Box as Vq}from"ink";import Gf,{useContext as Uq,isValidElement as uT}from"react";import{Box as aT,Text as kq}from"ink";import A1,{useContext as Mq}from"react";import{createContext as Bq}from"react";var yh=Bq({marker:Tt.line});function Dh({children:e}){let{marker:t}=Mq(yh),{styles:r}=rt("OrderedList");return A1.createElement(aT,{...r.listItem()},A1.createElement(kq,{...r.marker()},t),A1.createElement(aT,{...r.content()},e))}import{createContext as jq}from"react";var I1=jq({marker:""});function $q({children:e}){let{marker:t}=Uq(I1),{styles:r}=rt("OrderedList"),n=0;for(let s of Gf.Children.toArray(e))!uT(s)||s.type!==Dh||n++;let i=String(n).length;return Gf.createElement(Vq,{...r.list()},Gf.Children.map(e,(s,o)=>{if(!uT(s)||s.type!==Dh)return s;let a=`${String(o+1).padStart(i)}.`,u=`${t}${a}`;return Gf.createElement(I1.Provider,{value:{marker:u}},Gf.createElement(yh.Provider,{value:{marker:u}},s))}))}$q.Item=Dh;import Hq from"react";import{Text as Yq}from"ink";import{useReducer as Wq,useCallback as qf,useEffect as Gq}from"react";var qq=(e,t)=>{switch(t.type){case"move-cursor-left":return{...e,cursorOffset:Math.max(0,e.cursorOffset-1)};case"move-cursor-right":return{...e,cursorOffset:Math.min(e.value.length,e.cursorOffset+1)};case"insert":return{...e,previousValue:e.value,value:e.value.slice(0,e.cursorOffset)+t.text+e.value.slice(e.cursorOffset),cursorOffset:e.cursorOffset+t.text.length};case"delete":{let r=Math.max(0,e.cursorOffset-1);return{...e,previousValue:e.value,value:e.value.slice(0,r)+e.value.slice(r+1),cursorOffset:r}}}},lT=({onChange:e,onSubmit:t})=>{let[r,n]=Wq(qq,{previousValue:"",value:"",cursorOffset:0}),i=qf(()=>{n({type:"move-cursor-left"})},[]),s=qf(()=>{n({type:"move-cursor-right"})},[]),o=qf(l=>{n({type:"insert",text:l})},[]),a=qf(()=>{n({type:"delete"})},[]),u=qf(()=>{t?.(r.value)},[r.value,t]);return Gq(()=>{r.value!==r.previousValue&&e?.(r.value)},[r.previousValue,r.value,e]),{...r,moveCursorLeft:i,moveCursorRight:s,insert:o,delete:a,submit:u}};import{useMemo as cT}from"react";import{useInput as zq}from"ink";var T1=Je.inverse(" "),fT=({isDisabled:e=!1,state:t,placeholder:r=""})=>{let n=cT(()=>e?r?Je.dim(r):"":r&&r.length>0?Je.inverse(r[0])+Je.dim(r.slice(1)):T1,[e,r]),i=cT(()=>{let s="*".repeat(t.value.length);if(e)return s;let o=0,a=s.length>0?"":T1;for(let u of s)a+=o===t.cursorOffset?Je.inverse(u):u,o++;return s.length>0&&t.cursorOffset===s.length&&(a+=T1),a},[e,t.value,t.cursorOffset]);return zq((s,o)=>{if(!(o.upArrow||o.downArrow||o.ctrl&&s==="c"||o.tab||o.shift&&o.tab)){if(o.return){t.submit();return}o.leftArrow?t.moveCursorLeft():o.rightArrow?t.moveCursorRight():o.backspace||o.delete?t.delete():t.insert(s)}},{isActive:!e}),{inputValue:t.value.length>0?i:n}};function pT({isDisabled:e=!1,placeholder:t="",onChange:r,onSubmit:n}){let i=lT({onChange:r,onSubmit:n}),{inputValue:s}=fT({isDisabled:e,placeholder:t,state:i}),{styles:o}=rt("PasswordInput");return Hq.createElement(Yq,{...o.value()},s)}import yge from"react";import{Box as vge,Text as wge}from"ink";import bge from"react";import{Box as Fge,Text as Age}from"ink";import Xge from"react";import{Text as Zge}from"ink";import{useReducer as Rge,useCallback as Bge,useEffect as kge,useMemo as Mge}from"react";import{useMemo as Uge}from"react";import{useInput as Wge}from"ink";var qge=Je.inverse(" ");import dT,{useContext as Kq}from"react";var co=e=>{let{lite:t}=Kq(st),r=e.yesLabel||"Yes",n=e.noLabel||"No",i=[{label:r,value:"yes"},{label:n,value:"no"}],s=a=>{let u=a==="yes";e.onChange?.(u)},o=e.default==="no"?i.reverse():i;return t?dT.createElement(q3,{onConfirm:()=>s("yes"),onCancel:()=>s("no"),defaultChoice:e.default==="yes"?"confirm":"cancel"}):dT.createElement(ws,{options:o,onChange:a=>s(a)})};import nr from"node:fs";import Er from"node:path";import{promisify as Qq}from"util";import{exec as ez}from"child_process";import Xq from"node:path";function zf(e){return e.replace(/\s+/g,"-").toLowerCase()}function vh(e){return Xq.join(process.cwd(),zf(e))}var Jq=18;function Hf(e){return e.length?e.trim()===""?{valid:!1,message:"Name cannot be empty."}:e.trim()!==e?{valid:!1,message:"Name cannot contain leading or trailing whitespace."}:e.length>Jq?{valid:!1,message:"Name cannot be longer than 18 characters."}:/[|\r\n/\\:*?"<>.]+/g.test(e)?{valid:!1,message:'Name cannot contain any of these invalid characters (\\ / : * ? " < > | .).'}:/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\.\w+)?$/i.test(e)?{valid:!1,message:"Name cannot be the same as any reserved windows filenames."}:{valid:!0}:{valid:!1,message:"Name is required."}}var Zq=["private","name","version","description","license","author","scripts","dependencies","devDependencies","keywords","engines","canvaCliMetadata"];function mT(e){let t={};return Zq.forEach(r=>{e[r]&&(t[r]=e[r])}),Object.keys(e).forEach(r=>{t[r]||(t[r]=e[r])}),JSON.stringify(t,null,2)}import{fileURLToPath as tz}from"node:url";var hT=Qq(ez),wh=tz(import.meta.url),P1={type:"preAppCreation",start:"Checking write permissions",failure:"We don\u2019t have write access to this folder, maybe try somewhere else?",action:async()=>{await nr.promises.access(process.cwd(),(nr.constants||nr).W_OK)},preventCleanupOnError:!0},L1={type:"preAppCreation",start:"Checking folder name available",failure:"The folder already exists. We don\u2019t want to overwrite it automatically, so please remove it first.",action:async e=>{let t=!1;try{await nr.promises.access(e.folderName,(nr.constants||nr).F_OK),t=!0}catch{t=!1}if(t)throw new Error(`A folder named ${e.folderName} already exists.`)},preventCleanupOnError:!0},N1={type:"preAppCreation",start:"Creating folder",failure:"We couldn\u2019t make a folder with that app name, maybe it already exists?",action:async e=>{await nr.promises.mkdir(e.folderName,{recursive:!0})},preventCleanupOnError:!0},R1={type:"preAppCreation",start:"Copying template files",failure:"Failed to copy template files",action:async e=>{let t=Er.dirname(wh),r=Er.join(t,"templates",e.template.path),n=e.folderName;return nr.promises.cp(r,n,{recursive:!0,dereference:!0})},preventCleanupOnError:!1},B1={type:"preAppCreation",start:"Copying common files",failure:"Failed to copy common files",action:async e=>{let t=Er.dirname(wh),r=Er.join(t,"templates","common"),n=e.folderName;e.debug&&console.log("running 'cp' command with following args: ",{src:r,destination:n}),await nr.promises.cp(r,n,{recursive:!0,dereference:!0});let i=Er.join(e.folderName,".gitignore.template"),s=Er.join(e.folderName,".gitignore");await nr.promises.rename(i,s)},preventCleanupOnError:!1},k1={type:"preAppCreation",start:"Generating README.md",failure:"Failed to generate README.md.",action:async e=>{let t=Er.dirname(wh),r=Er.join(t,"templates","common","README.md"),n=Er.join(t,"templates",e.template.path,"README.md"),i=Er.join(e.folderName,"README.md"),o=await nr.promises.readFile(r,{encoding:"utf8"});try{let a=await nr.promises.readFile(n,"utf8");o=o+`
511
- `+a}catch{}await nr.promises.writeFile(i,o)},preventCleanupOnError:!1},M1={type:"preAppCreation",start:"Generating an .env file",failure:"Failed to generate an .env file",action:async e=>{let t=Er.join(e.folderName,".env.template"),r=Er.join(e.folderName,".env");await nr.promises.copyFile(t,r)},preventCleanupOnError:!1},j1={type:"preAppCreation",start:"Updating package.json",failure:"Failed to update package.json",action:async e=>{let t=Er.join(e.folderName,"package.json");e.debug&&console.log("Reading 'package.json': ",{packageJsonName:t});let r=await nr.promises.readFile(t,"utf8"),n=JSON.parse(r);n.name=zf(e.name);let i=Er.dirname(wh),s=Er.join(i,"templates","base","package.json"),o=await nr.promises.readFile(s,"utf8"),a=JSON.parse(o),u=a.canvaCliMetadata;(u.inheritable||[]).forEach(d=>{n[d]=n[d]||a[d]||""});let l=Er.join(i,"package.json"),c=await nr.promises.readFile(l,"utf8"),f=JSON.parse(c);n.canvaCliMetadata={},(u.metaFields||[]).forEach(d=>{n.canvaCliMetadata[d]=f[d]||void 0});let p=mT(n);await nr.promises.writeFile(t,p)},preventCleanupOnError:!1},V1={type:"preAppCreation",start:"Initializing git repository",failure:"Failed to initialize git repository",action:async e=>{await hT(`git init ${e.folderName}`)},preventCleanupOnError:!1},U1={type:"preAppCreation",start:"Installing dependencies (This may take a few minutes)",failure:"Failed to install node packages",action:async e=>{await hT(`cd ${e.folderName} && npm install`)},preventCleanupOnError:!1};async function pi(e=500){await new Promise(t=>setTimeout(t,e))}var yT=({packageName:e,handlePromptDecision:t})=>{let{exit:r}=rz(),[n,i]=fo.useState(!1);return fo.createElement(gT,{flexDirection:"column",paddingX:2,borderStyle:"round",borderColor:"yellow",width:80},fo.createElement($1,null,fo.createElement(Nt,{color:"greenBright"},"? "),"You're using an older version of our CLI. Would you like to update?"),fo.createElement(co,{default:"yes",yesLabel:"Yes (Recommended to access the latest templates)",noLabel:"No (Some features, such as app templates, may be outdated)",onChange:async o=>{o&&(i(!0),await pi(),r()),t(o)}}),n&&fo.createElement(gT,{marginTop:1},fo.createElement($1,null,"Run ",fo.createElement($1,{bold:!0},"npm i -g ",e,"@latest")," to update.")))};import{Text as nz}from"ink";import*as Yf from"react";var jn=e=>{let{lite:t}=Yf.useContext(st);return t?Yf.createElement(nz,null,e.label):Yf.createElement(rT,{type:"bouncingBall",...e})};import DT from"react";import{useContext as iz}from"react";import{Text as sz}from"ink";import oz from"react";var Vn=e=>{let{lite:t}=iz(st);return oz.createElement(sz,{color:t?void 0:"redBright"},e.children)};var Ch=class extends DT.Component{state={isCrashed:!1,message:void 0};static getDerivedStateFromError(t){return{isCrashed:!0,message:t.message}}render(){return this.state.isCrashed?DT.createElement(Vn,null,this.state.message??"Sorry, a problem occured"):this.props.children}componentDidCatch(t){this.setState({isCrashed:!0,message:t.message})}componentDidMount(){process.setUncaughtExceptionCaptureCallback(this.crashed)}componentWillUnmount(){process.setUncaughtExceptionCaptureCallback(null)}crashed=t=>{this.setState({isCrashed:!0,message:t.message}),process.exitCode=1}};var CT=({pkg:e,shouldPromptUpdate:t=!1,children:r,Logo:n})=>{let{lite:i}=az(st),[s,o]=Eh(!0),[a,u]=Eh(),[l,c]=Eh(null),[f,p]=Eh(!1);uz(()=>{(async()=>{try{let h=await D1({pkg:e}).fetchInfo();c(h.latest)}catch{p(!0)}finally{o(!1)}})()},[e]);let d=y=>{u(y?"agreed":"disagreed")};return s?Cs.createElement(jn,{type:"bouncingBall",label:"Loading..."}):t&&l&&l!==e.version&&!a?Cs.createElement(yT,{packageName:e.name,handlePromptDecision:d}):Cs.createElement(vT,{borderStyle:i?void 0:"round",margin:i?void 0:2,flexDirection:"column",borderColor:i?void 0:mh},Cs.createElement(vT,{flexDirection:"row",paddingY:1},Cs.createElement(wT,null),Cs.createElement(n,null),Cs.createElement(wT,null)),Cs.createElement(Ch,null,!f&&Cs.createElement(x3,{name:e.name,currentVersion:e.version,latestVersion:l}),r))};var ST="@canva/cli",Sh="0.0.1-beta.11";var q1={};xj(q1,{client:()=>ru,createApp:()=>Cz,exchangeAccessToken:()=>Sz,getApp:()=>Ez,introspectToken:()=>xz,listApps:()=>wz,revokeTokens:()=>_z});var lz=/\{[^{}]+\}/g,xh=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},cz=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fz=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},pz=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},bT=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(u=>encodeURIComponent(u))).join(fz(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let s=cz(n),o=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):xh({allowReserved:e,name:r,value:a})).join(s);return n==="label"||n==="matrix"?s+o:o},OT=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(i instanceof Date)return`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let a=[];Object.entries(i).forEach(([l,c])=>{a=[...a,l,e?c:encodeURIComponent(c)]});let u=a.join(",");switch(n){case"form":return`${r}=${u}`;case"label":return`.${u}`;case"matrix":return`;${r}=${u}`;default:return u}}let s=pz(n),o=Object.entries(i).map(([a,u])=>xh({allowReserved:e,name:n==="deepObject"?`${r}[${a}]`:a,value:u})).join(s);return n==="label"||n==="matrix"?s+o:o},dz=({path:e,url:t})=>{let r=t,n=t.match(lz);if(n)for(let i of n){let s=!1,o=i.substring(1,i.length-1),a="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),a="label"):o.startsWith(";")&&(o=o.substring(1),a="matrix");let u=e[o];if(u==null)continue;if(Array.isArray(u)){r=r.replace(i,bT({explode:s,name:o,style:a,value:u}));continue}if(typeof u=="object"){r=r.replace(i,OT({explode:s,name:o,style:a,value:u}));continue}if(a==="matrix"){r=r.replace(i,`;${xh({name:o,value:u})}`);continue}let l=encodeURIComponent(a==="label"?`.${u}`:u);r=r.replace(i,l)}return r},FT=({allowReserved:e,array:t,object:r}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let s in n){let o=n[s];if(o!=null){if(Array.isArray(o)){i=[...i,bT({allowReserved:e,explode:!0,name:s,style:"form",value:o,...t})];continue}if(typeof o=="object"){i=[...i,OT({allowReserved:e,explode:!0,name:s,style:"deepObject",value:o,...r})];continue}i=[...i,xh({allowReserved:e,name:s,value:o})]}}return i.join("&")},mz=e=>{if(!e)return;let t=e.split(";")[0].trim();if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text"},hz=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let s=i.startsWith("/")?i:`/${i}`,o=e+s;t&&(o=dz({path:t,url:o}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(o+=`?${a}`),o},xT=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=AT(e.headers,t.headers),r},AT=(...e)=>{let t=new Headers;for(let r of e){if(!r||typeof r!="object")continue;let n=r instanceof Headers?r.entries():Object.entries(r);for(let[i,s]of n)if(s===null)t.delete(i);else if(Array.isArray(s))for(let o of s)t.append(i,o);else s!==void 0&&t.set(i,typeof s=="object"?JSON.stringify(s):s)}return t},W1=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},gz=()=>({error:new W1,request:new W1,response:new W1});var yz={bodySerializer:e=>JSON.stringify(e)},_T=(e,t,r)=>{typeof r=="string"?e.append(t,r):e.append(t,JSON.stringify(r))},_h={bodySerializer:e=>{let t=new URLSearchParams;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>_T(t,r,i)):_T(t,r,n))}),t}},Dz=FT({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),vz={"Content-Type":"application/json"},G1=(e={})=>({...yz,baseUrl:"",fetch:globalThis.fetch,headers:vz,parseAs:"auto",querySerializer:Dz,...e}),bh=(e={})=>{let t=xT(G1(),e),r=()=>({...t}),n=a=>(t=xT(t,a),r()),i=a=>hz({baseUrl:a.baseUrl??"",path:a.path,query:a.query,querySerializer:typeof a.querySerializer=="function"?a.querySerializer:FT(a.querySerializer),url:a.url}),s=gz(),o=async a=>{let u={...t,...a,headers:AT(t.headers,a.headers)};u.body&&u.bodySerializer&&(u.body=u.bodySerializer(u.body)),u.body||u.headers.delete("Content-Type");let l=i(u),c={redirect:"follow",...u},f=new Request(l,c);for(let h of s.request._fns)f=await h(f,u);let p=u.fetch,d=await p(f);for(let h of s.response._fns)d=await h(d,f,u);let m={request:f,response:d};if(d.ok){if(d.status===204||d.headers.get("Content-Length")==="0")return{data:{},...m};if(u.parseAs==="stream")return{data:d.body,...m};let h=(u.parseAs==="auto"?mz(d.headers.get("Content-Type")):u.parseAs)??"json",g=await d[h]();return h==="json"&&u.responseTransformer&&(g=await u.responseTransformer(g)),{data:g,...m}}let y=await d.text();try{y=JSON.parse(y)}catch{}let D=y;for(let h of s.error._fns)D=await h(y,d,f,u);if(D=D||{},u.throwOnError)throw D;return{error:D,...m}};return{buildUrl:i,connect:a=>o({...a,method:"CONNECT"}),delete:a=>o({...a,method:"DELETE"}),get:a=>o({...a,method:"GET"}),getConfig:r,head:a=>o({...a,method:"HEAD"}),interceptors:s,options:a=>o({...a,method:"OPTIONS"}),patch:a=>o({...a,method:"PATCH"}),post:a=>o({...a,method:"POST"}),put:a=>o({...a,method:"PUT"}),request:o,setConfig:n,trace:a=>o({...a,method:"TRACE"})}};var ru=bh(G1()),wz=e=>(e?.client??ru).get({...e,url:"/v1/apps"}),Cz=e=>(e?.client??ru).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/v1/apps"}),Ez=e=>(e?.client??ru).get({...e,url:"/v1/apps/{appId}"}),Sz=e=>(e?.client??ru).post({...e,..._h,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/token"}),xz=e=>(e?.client??ru).post({...e,..._h,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/introspect"}),_z=e=>(e?.client??ru).post({...e,..._h,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/revoke"});var Oh=class{constructor(t,r,n=!1,i=q1){this.tokenService=t;this.env=r;this.debug=n;this.generatedAppService=i}getClient=async()=>{let t=await this.tokenService.getToken();if(!t.success)return{success:!1,code:"NO_TOKEN",message:"No token found. Please login first."};let r=bh({baseUrl:this.env.CONNECT_API_BASE_URL,fetch,headers:{Authorization:`Bearer ${t.data}`,"Content-Type":"application/json"}});return this.debug&&r.interceptors.response.use(n=>{let i=n.headers.get("x-request-id");return n.status>=400?console.warn(`Response status ${n.status} on ${n.url}: request id: ${i}}`):console.log(`Response status ${n.status} on ${n.url}: request id: ${i}`),n}),{success:!0,data:r}};listApps=async()=>{let t=await this.getClient();if(!t.success)return t;let{data:r}=t;try{let n=await this.generatedAppService.listApps({client:r});return n.error?{success:!1,code:"API_FAILURE",message:`Failed to fetch apps data: ${n.error.message}`}:{success:!0,data:n.data.items}}catch(n){return{success:!1,code:"API_FAILURE",message:`Failed to fetch apps data: ${n instanceof Error?n.message:String(n)}`}}};createApp=async({name:t,distribution:r})=>{let n=await this.getClient();if(!n.success)return n;let{data:i}=n;try{let s=await this.generatedAppService.createApp({client:i,body:{name:t,distribution:r}});if(s.error)return{success:!1,code:"API_FAILURE",message:`Failed to create app: ${s.error.message}`};let{app:o}=s.data;return{success:!0,data:o}}catch(s){return{success:!1,code:"API_FAILURE",message:`Failed to create app: ${s instanceof Error?s.message:String(s)}`}}}};import z1 from"crypto";var Fh=class{constructor(t){this.env=t}constructAuthUrl(){let t=`${this.env.CANVA_ENV_URL}/api/oauth/authorized/${this.env.CANVA_CLI_CLIENT_ID}`,r=z1.randomBytes(96).toString("base64url"),n=z1.randomBytes(96).toString("base64url"),i=z1.createHash("sha256").update(r).digest().toString("base64url");return{url:this.getAuthorizationUrl({redirectUri:t,state:n,codeChallenge:i}),codeVerifier:r}}getAuthorizationUrl({redirectUri:t,state:r,codeChallenge:n}){let i=["app:read","app:write","profile:read"].join(" "),s=new URL(`${this.env.CANVA_ENV_URL}/api/oauth/authorize`);return s.searchParams.append("code_challenge",n),s.searchParams.append("code_challenge_method","S256"),s.searchParams.append("scope",i),s.searchParams.append("response_type","code"),s.searchParams.append("client_id",this.env.CANVA_CLI_CLIENT_ID),s.searchParams.append("redirect_uri",t),s.searchParams.append("state",r),s.toString()}};var vL=St(DL(),1);import Ep from"crypto";var a0=class{KEY_DERIVATION_ITERATIONS=1e5;KEY_LENGTH=32;async c(){let t=await vL.default.uuid();return`${t.os}::${t.hardware}`}f(t,r){return Ep.pbkdf2Sync(t,r,this.KEY_DERIVATION_ITERATIONS,this.KEY_LENGTH,"sha256")}async encrypt(t){try{let r=await this.c(),n=Ep.randomBytes(16),i=this.f(r,n),s=Ep.randomBytes(12),o=Ep.createCipheriv("aes-256-gcm",i,s),a=o.update(t,"utf8","hex");a+=o.final("hex");let u={iv:s.toString("hex"),authTag:o.getAuthTag().toString("hex"),cipherText:a,salt:n.toString("hex")};return{success:!0,data:[u.iv,u.authTag,u.cipherText,u.salt].join(":")}}catch(r){return{success:!1,code:"ENCRYPTION_ERROR",message:`Encryption failed: ${r instanceof Error?r.message:String(r)}`}}}async decrypt(t){try{let r=await this.c(),n=t.split(":");if(n.length!==4)return{success:!1,code:"INVALID_ENCRYPTED_DATA_FORMAT",message:"Invalid encrypted data format."};let[i,s,o,a]=n;if(!i||!s||!o||!a)return{success:!1,code:"INVALID_ENCRYPTED_DATA_FORMAT",message:"Missing required components for decryption."};let u=Buffer.from(i,"hex"),l=Buffer.from(s,"hex"),c=Buffer.from(a,"hex"),f=this.f(r,c),p=Ep.createDecipheriv("aes-256-gcm",f,u);p.setAuthTag(l);let d=p.update(o,"hex","utf8");return d+=p.final("utf8"),{success:!0,data:d}}catch(r){return{success:!1,code:"DECRYPTION_ERROR",message:`Decryption failed: ${r instanceof Error?r.message:String(r)}`}}}};import l0 from"node:process";import{Buffer as pJ}from"node:buffer";import FL from"node:path";import{fileURLToPath as dJ}from"node:url";import mJ from"node:child_process";import Zw,{constants as AL}from"node:fs/promises";import EL from"node:process";import YX from"node:os";import KX from"node:fs";import zX from"node:fs";import wL from"node:fs";var Gw;function GX(){try{return wL.statSync("/.dockerenv"),!0}catch{return!1}}function qX(){try{return wL.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function qw(){return Gw===void 0&&(Gw=GX()||qX()),Gw}var zw,HX=()=>{try{return zX.statSync("/run/.containerenv"),!0}catch{return!1}};function Yl(){return zw===void 0&&(zw=HX()||qw()),zw}var CL=()=>{if(EL.platform!=="linux")return!1;if(YX.release().toLowerCase().includes("microsoft"))return!Yl();try{return KX.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Yl():!1}catch{return!1}},hu=EL.env.__IS_WSL_TEST__?CL:CL();function gu(e,t,r){let n=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),e}import{promisify as uJ}from"node:util";import Xw from"node:process";import{execFile as lJ}from"node:child_process";import{promisify as XX}from"node:util";import JX from"node:process";import{execFile as ZX}from"node:child_process";var QX=XX(ZX);async function Hw(){if(JX.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await QX("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]);return/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e)?.groups.id??"com.apple.Safari"}import eJ from"node:process";import{promisify as tJ}from"node:util";import{execFile as rJ,execFileSync as gve}from"node:child_process";var nJ=tJ(rJ);async function SL(e,{humanReadableOutput:t=!0}={}){if(eJ.platform!=="darwin")throw new Error("macOS only");let r=t?[]:["-ss"],{stdout:n}=await nJ("osascript",["-e",e,r]);return n.trim()}async function Yw(e){return SL(`tell application "Finder" to set app_path to application file id "${e}" as string
511
+ `+a}catch{}await nr.promises.writeFile(i,o)},preventCleanupOnError:!1},M1={type:"preAppCreation",start:"Generating an .env file",failure:"Failed to generate an .env file",action:async e=>{let t=Er.join(e.folderName,".env.template"),r=Er.join(e.folderName,".env");await nr.promises.copyFile(t,r)},preventCleanupOnError:!1},j1={type:"preAppCreation",start:"Updating package.json",failure:"Failed to update package.json",action:async e=>{let t=Er.join(e.folderName,"package.json");e.debug&&console.log("Reading 'package.json': ",{packageJsonName:t});let r=await nr.promises.readFile(t,"utf8"),n=JSON.parse(r);n.name=zf(e.name);let i=Er.dirname(wh),s=Er.join(i,"templates","base","package.json"),o=await nr.promises.readFile(s,"utf8"),a=JSON.parse(o),u=a.canvaCliMetadata;(u.inheritable||[]).forEach(d=>{n[d]=n[d]||a[d]||""});let l=Er.join(i,"package.json"),c=await nr.promises.readFile(l,"utf8"),f=JSON.parse(c);n.canvaCliMetadata={},(u.metaFields||[]).forEach(d=>{n.canvaCliMetadata[d]=f[d]||void 0});let p=mT(n);await nr.promises.writeFile(t,p)},preventCleanupOnError:!1},V1={type:"preAppCreation",start:"Initializing git repository",failure:"Failed to initialize git repository",action:async e=>{await hT(`git init ${e.folderName}`)},preventCleanupOnError:!1},U1={type:"preAppCreation",start:"Installing dependencies (This may take a few minutes)",failure:"Failed to install node packages",action:async e=>{await hT(`cd ${e.folderName} && npm install`)},preventCleanupOnError:!1};async function pi(e=500){await new Promise(t=>setTimeout(t,e))}var yT=({packageName:e,handlePromptDecision:t})=>{let{exit:r}=rz(),[n,i]=fo.useState(!1);return fo.createElement(gT,{flexDirection:"column",paddingX:2,borderStyle:"round",borderColor:"yellow",width:80},fo.createElement($1,null,fo.createElement(Nt,{color:"greenBright"},"? "),"You're using an older version of our CLI. Would you like to update?"),fo.createElement(co,{default:"yes",yesLabel:"Yes (Recommended to access the latest templates)",noLabel:"No (Some features, such as app templates, may be outdated)",onChange:async o=>{o&&(i(!0),await pi(),r()),t(o)}}),n&&fo.createElement(gT,{marginTop:1},fo.createElement($1,null,"Run ",fo.createElement($1,{bold:!0},"npm i -g ",e,"@latest")," to update.")))};import{Text as nz}from"ink";import*as Yf from"react";var jn=e=>{let{lite:t}=Yf.useContext(st);return t?Yf.createElement(nz,null,e.label):Yf.createElement(rT,{type:"bouncingBall",...e})};import DT from"react";import{useContext as iz}from"react";import{Text as sz}from"ink";import oz from"react";var Vn=e=>{let{lite:t}=iz(st);return oz.createElement(sz,{color:t?void 0:"redBright"},e.children)};var Ch=class extends DT.Component{state={isCrashed:!1,message:void 0};static getDerivedStateFromError(t){return{isCrashed:!0,message:t.message}}render(){return this.state.isCrashed?DT.createElement(Vn,null,this.state.message??"Sorry, a problem occured"):this.props.children}componentDidCatch(t){this.setState({isCrashed:!0,message:t.message})}componentDidMount(){process.setUncaughtExceptionCaptureCallback(this.crashed)}componentWillUnmount(){process.setUncaughtExceptionCaptureCallback(null)}crashed=t=>{this.setState({isCrashed:!0,message:t.message}),process.exitCode=1}};var CT=({pkg:e,shouldPromptUpdate:t=!1,children:r,Logo:n})=>{let{lite:i}=az(st),[s,o]=Eh(!0),[a,u]=Eh(),[l,c]=Eh(null),[f,p]=Eh(!1);uz(()=>{(async()=>{try{let h=await D1({pkg:e}).fetchInfo();c(h.latest)}catch{p(!0)}finally{o(!1)}})()},[e]);let d=y=>{u(y?"agreed":"disagreed")};return s?Cs.createElement(jn,{type:"bouncingBall",label:"Loading..."}):t&&l&&l!==e.version&&!a?Cs.createElement(yT,{packageName:e.name,handlePromptDecision:d}):Cs.createElement(vT,{borderStyle:i?void 0:"round",margin:i?void 0:2,flexDirection:"column",borderColor:i?void 0:mh},Cs.createElement(vT,{flexDirection:"row",paddingY:1},Cs.createElement(wT,null),Cs.createElement(n,null),Cs.createElement(wT,null)),Cs.createElement(Ch,null,!f&&Cs.createElement(x3,{name:e.name,currentVersion:e.version,latestVersion:l}),r))};var ST="@canva/cli",Sh="0.0.1-beta.13";var q1={};xj(q1,{client:()=>ru,createApp:()=>Cz,exchangeAccessToken:()=>Sz,getApp:()=>Ez,introspectToken:()=>xz,listApps:()=>wz,revokeTokens:()=>_z});var lz=/\{[^{}]+\}/g,xh=({allowReserved:e,name:t,value:r})=>{if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},cz=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fz=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},pz=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},bT=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(u=>encodeURIComponent(u))).join(fz(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let s=cz(n),o=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):xh({allowReserved:e,name:r,value:a})).join(s);return n==="label"||n==="matrix"?s+o:o},OT=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(i instanceof Date)return`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let a=[];Object.entries(i).forEach(([l,c])=>{a=[...a,l,e?c:encodeURIComponent(c)]});let u=a.join(",");switch(n){case"form":return`${r}=${u}`;case"label":return`.${u}`;case"matrix":return`;${r}=${u}`;default:return u}}let s=pz(n),o=Object.entries(i).map(([a,u])=>xh({allowReserved:e,name:n==="deepObject"?`${r}[${a}]`:a,value:u})).join(s);return n==="label"||n==="matrix"?s+o:o},dz=({path:e,url:t})=>{let r=t,n=t.match(lz);if(n)for(let i of n){let s=!1,o=i.substring(1,i.length-1),a="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),a="label"):o.startsWith(";")&&(o=o.substring(1),a="matrix");let u=e[o];if(u==null)continue;if(Array.isArray(u)){r=r.replace(i,bT({explode:s,name:o,style:a,value:u}));continue}if(typeof u=="object"){r=r.replace(i,OT({explode:s,name:o,style:a,value:u}));continue}if(a==="matrix"){r=r.replace(i,`;${xh({name:o,value:u})}`);continue}let l=encodeURIComponent(a==="label"?`.${u}`:u);r=r.replace(i,l)}return r},FT=({allowReserved:e,array:t,object:r}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let s in n){let o=n[s];if(o!=null){if(Array.isArray(o)){i=[...i,bT({allowReserved:e,explode:!0,name:s,style:"form",value:o,...t})];continue}if(typeof o=="object"){i=[...i,OT({allowReserved:e,explode:!0,name:s,style:"deepObject",value:o,...r})];continue}i=[...i,xh({allowReserved:e,name:s,value:o})]}}return i.join("&")},mz=e=>{if(!e)return;let t=e.split(";")[0].trim();if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text"},hz=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let s=i.startsWith("/")?i:`/${i}`,o=e+s;t&&(o=dz({path:t,url:o}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(o+=`?${a}`),o},xT=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=AT(e.headers,t.headers),r},AT=(...e)=>{let t=new Headers;for(let r of e){if(!r||typeof r!="object")continue;let n=r instanceof Headers?r.entries():Object.entries(r);for(let[i,s]of n)if(s===null)t.delete(i);else if(Array.isArray(s))for(let o of s)t.append(i,o);else s!==void 0&&t.set(i,typeof s=="object"?JSON.stringify(s):s)}return t},W1=class{_fns;constructor(){this._fns=[]}clear(){this._fns=[]}exists(e){return this._fns.indexOf(e)!==-1}eject(e){let t=this._fns.indexOf(e);t!==-1&&(this._fns=[...this._fns.slice(0,t),...this._fns.slice(t+1)])}use(e){this._fns=[...this._fns,e]}},gz=()=>({error:new W1,request:new W1,response:new W1});var yz={bodySerializer:e=>JSON.stringify(e)},_T=(e,t,r)=>{typeof r=="string"?e.append(t,r):e.append(t,JSON.stringify(r))},_h={bodySerializer:e=>{let t=new URLSearchParams;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>_T(t,r,i)):_T(t,r,n))}),t}},Dz=FT({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),vz={"Content-Type":"application/json"},G1=(e={})=>({...yz,baseUrl:"",fetch:globalThis.fetch,headers:vz,parseAs:"auto",querySerializer:Dz,...e}),bh=(e={})=>{let t=xT(G1(),e),r=()=>({...t}),n=a=>(t=xT(t,a),r()),i=a=>hz({baseUrl:a.baseUrl??"",path:a.path,query:a.query,querySerializer:typeof a.querySerializer=="function"?a.querySerializer:FT(a.querySerializer),url:a.url}),s=gz(),o=async a=>{let u={...t,...a,headers:AT(t.headers,a.headers)};u.body&&u.bodySerializer&&(u.body=u.bodySerializer(u.body)),u.body||u.headers.delete("Content-Type");let l=i(u),c={redirect:"follow",...u},f=new Request(l,c);for(let h of s.request._fns)f=await h(f,u);let p=u.fetch,d=await p(f);for(let h of s.response._fns)d=await h(d,f,u);let m={request:f,response:d};if(d.ok){if(d.status===204||d.headers.get("Content-Length")==="0")return{data:{},...m};if(u.parseAs==="stream")return{data:d.body,...m};let h=(u.parseAs==="auto"?mz(d.headers.get("Content-Type")):u.parseAs)??"json",g=await d[h]();return h==="json"&&u.responseTransformer&&(g=await u.responseTransformer(g)),{data:g,...m}}let y=await d.text();try{y=JSON.parse(y)}catch{}let D=y;for(let h of s.error._fns)D=await h(y,d,f,u);if(D=D||{},u.throwOnError)throw D;return{error:D,...m}};return{buildUrl:i,connect:a=>o({...a,method:"CONNECT"}),delete:a=>o({...a,method:"DELETE"}),get:a=>o({...a,method:"GET"}),getConfig:r,head:a=>o({...a,method:"HEAD"}),interceptors:s,options:a=>o({...a,method:"OPTIONS"}),patch:a=>o({...a,method:"PATCH"}),post:a=>o({...a,method:"POST"}),put:a=>o({...a,method:"PUT"}),request:o,setConfig:n,trace:a=>o({...a,method:"TRACE"})}};var ru=bh(G1()),wz=e=>(e?.client??ru).get({...e,url:"/v1/apps"}),Cz=e=>(e?.client??ru).post({...e,headers:{"Content-Type":"application/json",...e?.headers},url:"/v1/apps"}),Ez=e=>(e?.client??ru).get({...e,url:"/v1/apps/{appId}"}),Sz=e=>(e?.client??ru).post({...e,..._h,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/token"}),xz=e=>(e?.client??ru).post({...e,..._h,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/introspect"}),_z=e=>(e?.client??ru).post({...e,..._h,headers:{"Content-Type":"application/x-www-form-urlencoded",...e?.headers},url:"/v1/oauth/revoke"});var Oh=class{constructor(t,r,n=!1,i=q1){this.tokenService=t;this.env=r;this.debug=n;this.generatedAppService=i}getClient=async()=>{let t=await this.tokenService.getToken();if(!t.success)return{success:!1,code:"NO_TOKEN",message:"No token found. Please login first."};let r=bh({baseUrl:this.env.CONNECT_API_BASE_URL,fetch,headers:{Authorization:`Bearer ${t.data}`,"Content-Type":"application/json"}});return this.debug&&r.interceptors.response.use(n=>{let i=n.headers.get("x-request-id");return n.status>=400?console.warn(`Response status ${n.status} on ${n.url}: request id: ${i}}`):console.log(`Response status ${n.status} on ${n.url}: request id: ${i}`),n}),{success:!0,data:r}};listApps=async()=>{let t=await this.getClient();if(!t.success)return t;let{data:r}=t;try{let n=await this.generatedAppService.listApps({client:r});return n.error?{success:!1,code:"API_FAILURE",message:`Failed to fetch apps data: ${n.error.message}`}:{success:!0,data:n.data.items}}catch(n){return{success:!1,code:"API_FAILURE",message:`Failed to fetch apps data: ${n instanceof Error?n.message:String(n)}`}}};createApp=async({name:t,distribution:r})=>{let n=await this.getClient();if(!n.success)return n;let{data:i}=n;try{let s=await this.generatedAppService.createApp({client:i,body:{name:t,distribution:r}});if(s.error)return{success:!1,code:"API_FAILURE",message:`Failed to create app: ${s.error.message}`};let{app:o}=s.data;return{success:!0,data:o}}catch(s){return{success:!1,code:"API_FAILURE",message:`Failed to create app: ${s instanceof Error?s.message:String(s)}`}}}};import z1 from"crypto";var Fh=class{constructor(t){this.env=t}constructAuthUrl(){let t=`${this.env.CANVA_ENV_URL}/api/oauth/authorized/${this.env.CANVA_CLI_CLIENT_ID}`,r=z1.randomBytes(96).toString("base64url"),n=z1.randomBytes(96).toString("base64url"),i=z1.createHash("sha256").update(r).digest().toString("base64url");return{url:this.getAuthorizationUrl({redirectUri:t,state:n,codeChallenge:i}),codeVerifier:r}}getAuthorizationUrl({redirectUri:t,state:r,codeChallenge:n}){let i=["app:read","app:write","profile:read"].join(" "),s=new URL(`${this.env.CANVA_ENV_URL}/api/oauth/authorize`);return s.searchParams.append("code_challenge",n),s.searchParams.append("code_challenge_method","S256"),s.searchParams.append("scope",i),s.searchParams.append("response_type","code"),s.searchParams.append("client_id",this.env.CANVA_CLI_CLIENT_ID),s.searchParams.append("redirect_uri",t),s.searchParams.append("state",r),s.toString()}};var vL=St(DL(),1);import Ep from"crypto";var a0=class{KEY_DERIVATION_ITERATIONS=1e5;KEY_LENGTH=32;async c(){let t=await vL.default.uuid();return`${t.os}::${t.hardware}`}f(t,r){return Ep.pbkdf2Sync(t,r,this.KEY_DERIVATION_ITERATIONS,this.KEY_LENGTH,"sha256")}async encrypt(t){try{let r=await this.c(),n=Ep.randomBytes(16),i=this.f(r,n),s=Ep.randomBytes(12),o=Ep.createCipheriv("aes-256-gcm",i,s),a=o.update(t,"utf8","hex");a+=o.final("hex");let u={iv:s.toString("hex"),authTag:o.getAuthTag().toString("hex"),cipherText:a,salt:n.toString("hex")};return{success:!0,data:[u.iv,u.authTag,u.cipherText,u.salt].join(":")}}catch(r){return{success:!1,code:"ENCRYPTION_ERROR",message:`Encryption failed: ${r instanceof Error?r.message:String(r)}`}}}async decrypt(t){try{let r=await this.c(),n=t.split(":");if(n.length!==4)return{success:!1,code:"INVALID_ENCRYPTED_DATA_FORMAT",message:"Invalid encrypted data format."};let[i,s,o,a]=n;if(!i||!s||!o||!a)return{success:!1,code:"INVALID_ENCRYPTED_DATA_FORMAT",message:"Missing required components for decryption."};let u=Buffer.from(i,"hex"),l=Buffer.from(s,"hex"),c=Buffer.from(a,"hex"),f=this.f(r,c),p=Ep.createDecipheriv("aes-256-gcm",f,u);p.setAuthTag(l);let d=p.update(o,"hex","utf8");return d+=p.final("utf8"),{success:!0,data:d}}catch(r){return{success:!1,code:"DECRYPTION_ERROR",message:`Decryption failed: ${r instanceof Error?r.message:String(r)}`}}}};import l0 from"node:process";import{Buffer as pJ}from"node:buffer";import FL from"node:path";import{fileURLToPath as dJ}from"node:url";import mJ from"node:child_process";import Zw,{constants as AL}from"node:fs/promises";import EL from"node:process";import YX from"node:os";import KX from"node:fs";import zX from"node:fs";import wL from"node:fs";var Gw;function GX(){try{return wL.statSync("/.dockerenv"),!0}catch{return!1}}function qX(){try{return wL.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function qw(){return Gw===void 0&&(Gw=GX()||qX()),Gw}var zw,HX=()=>{try{return zX.statSync("/run/.containerenv"),!0}catch{return!1}};function Yl(){return zw===void 0&&(zw=HX()||qw()),zw}var CL=()=>{if(EL.platform!=="linux")return!1;if(YX.release().toLowerCase().includes("microsoft"))return!Yl();try{return KX.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Yl():!1}catch{return!1}},hu=EL.env.__IS_WSL_TEST__?CL:CL();function gu(e,t,r){let n=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),e}import{promisify as uJ}from"node:util";import Xw from"node:process";import{execFile as lJ}from"node:child_process";import{promisify as XX}from"node:util";import JX from"node:process";import{execFile as ZX}from"node:child_process";var QX=XX(ZX);async function Hw(){if(JX.platform!=="darwin")throw new Error("macOS only");let{stdout:e}=await QX("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]);return/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e)?.groups.id??"com.apple.Safari"}import eJ from"node:process";import{promisify as tJ}from"node:util";import{execFile as rJ,execFileSync as gve}from"node:child_process";var nJ=tJ(rJ);async function SL(e,{humanReadableOutput:t=!0}={}){if(eJ.platform!=="darwin")throw new Error("macOS only");let r=t?[]:["-ss"],{stdout:n}=await nJ("osascript",["-e",e,r]);return n.trim()}async function Yw(e){return SL(`tell application "Finder" to set app_path to application file id "${e}" as string
512
512
  tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}import{promisify as iJ}from"node:util";import{execFile as sJ}from"node:child_process";var oJ=iJ(sJ),aJ={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},MSEdgeDHTML:{name:"Edge",id:"com.microsoft.edge"},MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"}},u0=class extends Error{};async function Kw(e=oJ){let{stdout:t}=await e("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),r=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(t);if(!r)throw new u0(`Cannot find Windows browser in stdout: ${JSON.stringify(t)}`);let{id:n}=r.groups,i=aJ[n];if(!i)throw new u0(`Unknown browser ID: ${n}`);return i}var cJ=uJ(lJ),fJ=e=>e.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,t=>t.toUpperCase());async function Jw(){if(Xw.platform==="darwin"){let e=await Hw();return{name:await Yw(e),id:e}}if(Xw.platform==="linux"){let{stdout:e}=await cJ("xdg-mime",["query","default","x-scheme-handler/http"]),t=e.trim();return{name:fJ(t.replace(/.desktop$/,"").replace("-"," ")),id:t}}if(Xw.platform==="win32")return Kw();throw new Error("Only macOS, Linux, and Windows are supported")}var Qw=FL.dirname(dJ(import.meta.url)),xL=FL.join(Qw,"xdg-open"),{platform:Kl,arch:_L}=l0,hJ=(()=>{let e="/mnt/",t;return async function(){if(t)return t;let r="/etc/wsl.conf",n=!1;try{await Zw.access(r,AL.F_OK),n=!0}catch{}if(!n)return e;let i=await Zw.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return s?(t=s.groups.mountPoint.trim(),t=t.endsWith("/")?t:`${t}/`,t):e}})(),bL=async(e,t)=>{let r;for(let n of e)try{return await t(n)}catch(i){r=i}throw r},c0=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return bL(e.app,a=>c0({...e,app:a}));let{name:t,arguments:r=[]}=e.app??{};if(r=[...r],Array.isArray(t))return bL(t,a=>c0({...e,app:{name:a,arguments:r}}));if(t==="browser"||t==="browserPrivate"){let a={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","microsoft-edge.desktop":"edge"},u={chrome:"--incognito",firefox:"--private-window",edge:"--inPrivate"},l=await Jw();if(l.id in a){let c=a[l.id];return t==="browserPrivate"&&r.push(u[c]),c0({...e,app:{name:Xl[c],arguments:r}})}throw new Error(`${l.name} is not supported as a default browser`)}let n,i=[],s={};if(Kl==="darwin")n="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),t&&i.push("-a",t);else if(Kl==="win32"||hu&&!Yl()&&!t){let a=await hJ();n=hu?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${l0.env.SYSTEMROOT||l0.env.windir||"C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),hu||(s.windowsVerbatimArguments=!0);let u=["Start"];e.wait&&u.push("-Wait"),t?(u.push(`"\`"${t}\`""`),e.target&&r.push(e.target)):e.target&&u.push(`"${e.target}"`),r.length>0&&(r=r.map(l=>`"\`"${l}\`""`),u.push("-ArgumentList",r.join(","))),e.target=pJ.from(u.join(" "),"utf16le").toString("base64")}else{if(t)n=t;else{let a=!Qw||Qw==="/",u=!1;try{await Zw.access(xL,AL.X_OK),u=!0}catch{}n=l0.versions.electron??(Kl==="android"||a||!u)?"xdg-open":xL}r.length>0&&i.push(...r),e.wait||(s.stdio="ignore",s.detached=!0)}Kl==="darwin"&&r.length>0&&i.push("--args",...r),e.target&&i.push(e.target);let o=mJ.spawn(n,i,s);return e.wait?new Promise((a,u)=>{o.once("error",u),o.once("close",l=>{if(!e.allowNonzeroExitCode&&l>0){u(new Error(`Exited with code ${l}`));return}a(o)})}):(o.unref(),o)},gJ=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return c0({...t,target:e})};function OL(e){if(typeof e=="string"||Array.isArray(e))return e;let{[_L]:t}=e;if(!t)throw new Error(`${_L} is not supported`);return t}function eC({[Kl]:e},{wsl:t}){if(t&&hu)return OL(t);if(!e)throw new Error(`${Kl} is not supported`);return OL(e)}var Xl={};gu(Xl,"chrome",()=>eC({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));gu(Xl,"firefox",()=>eC({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));gu(Xl,"edge",()=>eC({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));gu(Xl,"browser",()=>"browser");gu(Xl,"browserPrivate",()=>"browserPrivate");var f0=gJ;var p0=class{constructor(t){this.debug=t}openUrl=async t=>{try{return await f0(t),{success:!0,data:void 0}}catch(r){let n=r instanceof Error?r.message:`${r}`;return this.debug&&console.error(`Error opening URL: ${n}`),{success:!1,code:"NAVIGATION_ERROR",message:`Failed to open URL: ${n}`}}}};var d0=class{constructor(t,r,n=!1){this.storageService=t;this.env=r;this.debug=n}generatePreviewResult=async t=>{let r=t;if(!r){let i=await this.getAppId();if(!i.success)return i;r=i.data}return{success:!0,data:this.constructPreviewUrl(r)}};async getAppId(){try{let t=await this.storageService.getAppIdFromEnvFile();if(!t.success)return t;let r=t.data;if(r==="YOUR_APP_ID_HERE"){let n="CANVA_APP_ID is set to the default placeholder value. Please update it in the .env file.";return this.debug&&console.error(n),{success:!1,code:"MISSING_FIELD",message:n}}return{success:!0,data:r}}catch(t){let r=`Unknown Error reading CANVA_APP_ID from .env file: ${t instanceof Error?t.message:String(t)}`;return this.debug&&console.error(r),{success:!1,code:"ENV_READ_ERROR",message:r}}}constructPreviewUrl(t){let r=this.encodeUiState({appId:t}),n=this.env.CANVA_ENV_URL,i=new URL("/login/",n),s=new URL("/design",n);return s.searchParams.append("create",""),s.searchParams.append("width","800"),s.searchParams.append("height","600"),s.searchParams.append("units","px"),s.searchParams.append("ui",r),i.searchParams.append("redirect",s.pathname+s.search),i.toString()}encodeUiState(t){let r={E:{"A?":"N",S:t.appId,g:!0}},n=JSON.stringify(r);return btoa(n).replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/[=]/g,"")}};var RL=St(NL(),1);import PJ from"fs/promises";import LJ from"os";import NJ from"path";var h0=class{constructor(t,r=PJ,n=NJ,i=LJ.homedir(),s=!1){this.encryptionService=t;this.fileSystem=r;this.pathModule=n;this.debug=s;this.filePath=this.pathModule.join(i,".canva-cli","credentials")}tokenKey="tokenData";flavorKey="flavor";filePath;isNodeError(t){return t instanceof Error&&typeof t.code=="string"}async ensureDirectoryExists(t){try{await this.fileSystem.mkdir(t,{recursive:!0})}catch(r){let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to create directory ${t}: ${n}`)}}async readJsonFromFile(){try{let t=await this.fileSystem.readFile(this.filePath,"utf-8");return JSON.parse(t)}catch(t){let r=t instanceof Error?t.message:String(t);throw new Error(`Failed to read the file at ${this.filePath}: ${r}`)}}async writeJsonToFile(t){try{await this.fileSystem.writeFile(this.filePath,JSON.stringify(t,null,2),"utf-8")}catch(r){let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to write the file at ${this.filePath}: ${n}`)}try{await this.fileSystem.chmod(this.filePath,384)}catch(r){let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to set permissions on the file at ${this.filePath}: ${n}`)}}async saveTokenData({tokenData:t,flavor:r}){let n=await this.encryptionService.encrypt(JSON.stringify(t));if(!n.success)return{success:!1,code:"ENCRYPTION_ERROR",message:`Failed to encrypt token data: ${n.message}`};let i={tokenData:n.data,flavor:r};try{let s=this.pathModule.dirname(this.filePath);return await this.ensureDirectoryExists(s),await this.writeJsonToFile(i),{success:!0,data:void 0}}catch(s){let o=s instanceof Error?s.message:String(s);return{success:!1,code:"API_FAILURE",message:`Failed to save token data to file: ${o}`}}}async getTokenData(){try{let t=await this.readJsonFromFile();if(t[this.tokenKey]){let r=await this.encryptionService.decrypt(t[this.tokenKey]);return r.success?{success:!0,data:JSON.parse(r.data)}:r}else return{success:!1,code:"NO_TOKEN",message:"Token data not found in credentials file."}}catch(t){let r=t instanceof Error?t.message:String(t);return{success:!1,code:"NO_TOKEN",message:`Failed to read the token file: ${r}`}}}async getFlavor(){try{let r=(await this.readJsonFromFile())[this.flavorKey];if(r&&typeof r=="string"&&Object.values(ki).includes(r))return r}catch{return"prod"}return"prod"}async deleteToken(){try{if((await this.readJsonFromFile())[this.tokenKey])try{await this.fileSystem.access(this.filePath),await this.fileSystem.unlink(this.filePath)}catch(r){if(this.isNodeError(r)&&r.code==="ENOENT")return;let n=r instanceof Error?r.message:String(r);throw new Error(`Failed to delete the token data file: ${n}`)}else throw new Error("Token file does not exist or token data not found.")}catch(t){let r=t instanceof Error?t.message:String(t);throw new Error(`Failed to delete the token data file: ${r}`)}}async getAppIdFromEnvFile(){try{let t=this.pathModule.resolve(process.cwd(),".env");try{await this.fileSystem.access(t)}catch{let s="No .env file found, ensure you are in your intended app's directory.";return this.debug&&console.error(s),{success:!1,code:"FILE_NOT_FOUND",message:s}}let r=await this.fileSystem.readFile(t,"utf-8"),i=RL.parse(r).CANVA_APP_ID;if(!i){let s="CANVA_APP_ID not found in .env file";return this.debug&&console.error(s),{success:!1,code:"MISSING_FIELD",message:s}}return{success:!0,data:i}}catch(t){let r=`Unknown Error reading CANVA_APP_ID from .env file: ${t instanceof Error?t.message:String(t)}`;return this.debug&&console.error(r),{success:!1,code:"ENV_READ_ERROR",message:r}}}};import{Buffer as RJ}from"node:buffer";var e1e=new TextEncoder,g0=new TextDecoder,t1e=2**32;function BJ(e){let t=e;return t instanceof Uint8Array&&(t=g0.decode(t)),t}var BL=e=>new Uint8Array(RJ.from(BJ(e),"base64url"));var iC=class extends Error{static code="ERR_JOSE_GENERIC";code="ERR_JOSE_GENERIC";constructor(t,r){super(t,r),this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}};var Ki=class extends iC{static code="ERR_JWT_INVALID";code="ERR_JWT_INVALID"};function jJ(e){return typeof e=="object"&&e!==null}function sC(e){if(!jJ(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var kL=BL;function oC(e){if(typeof e!="string")throw new Ki("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new Ki("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new Ki("Invalid JWT");if(!t)throw new Ki("JWTs must contain a payload");let n;try{n=kL(t)}catch{throw new Ki("Failed to base64url decode the payload")}let i;try{i=JSON.parse(g0.decode(n))}catch{throw new Ki("Failed to parse the decoded payload as JSON")}if(!sC(i))throw new Ki("Invalid JWT Claims Set");return i}import{URLSearchParams as aC}from"url";var y0=class{constructor(t,r,n=fetch){this.storageService=t;this.env=r;this.fetchFn=n}get tokenEndpointUrl(){return`${this.env.CONNECT_API_BASE_URL}/v1/oauth/token`}async exchangeCodeForToken({authCode:t,codeVerifier:r}){let n=`${this.env.CANVA_ENV_URL}/api/oauth/authorized/${this.env.CANVA_CLI_CLIENT_ID}`;try{let i=await this.fetchFn(this.tokenEndpointUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new aC({grant_type:"authorization_code",code:t,code_verifier:r,client_id:this.env.CANVA_CLI_CLIENT_ID,redirect_uri:n})});if(!i.ok){let o=await i.text();return{success:!1,code:"API_FAILURE",message:`Failed to exchange code for token: ${o}`}}let s=await i.json();return await this.storageService.saveTokenData({tokenData:s,flavor:this.env.FLAVOR}),{success:!0,data:s.access_token}}catch(i){return{success:!1,code:"API_FAILURE",message:`Error exchanging authorization code for token: ${i}`}}}async getToken(){try{let t=await this.storageService.getTokenData();if(!t.success)return t;let r=t.data,n=oC(r.access_token),i=60*10;if(n.exp){let u=n.exp-i;if(Date.now()/1e3<u)return{success:!0,data:r.access_token}}let s=r.refresh_token,o=await this.fetchFn(this.tokenEndpointUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new aC({grant_type:"refresh_token",refresh_token:s,client_id:this.env.CANVA_CLI_CLIENT_ID})});if(!o.ok){let u=await o.text();throw new Error(`Failed to refresh token: ${u}`)}let a=await o.json();return await this.storageService.saveTokenData({tokenData:a,flavor:this.env.FLAVOR}),{success:!0,data:a.access_token}}catch(t){return{success:!1,code:"API_FAILURE",message:`An error occurred while getting the token: ${t}`}}}async revokeToken(){let t=await this.storageService.getTokenData();if(!t.success)return t;let r=t.data,n=`${this.env.CONNECT_API_BASE_URL}/v1/oauth/revoke`;try{let i=await this.fetchFn(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new aC({token:r.refresh_token,client_id:this.env.CANVA_CLI_CLIENT_ID})});if(!i.ok)throw new Error(`Failed to revoke token, status: ${i.status}`);return await this.storageService.deleteToken(),{success:!0,data:void 0}}catch(i){return{success:!1,code:"LOGOUT_ERROR",message:`An error occurred while revoking the token: ${i}`}}}isLoggedIn=async()=>(await this.getToken()).success};var D0=class{constructor(t){this.env=t}getDeveloperPortalUrl(t){return wm({flavor:this.env.FLAVOR,appId:t})}getAppOriginUrl(t){return Y_({flavor:this.env.FLAVOR,appId:t})}};var Ye;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},e.getValidEnumValues=i=>{let s=e.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},e.find=(i,s)=>{for(let o of i)if(s(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Ye||(Ye={}));var lC;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(lC||(lC={}));var ce=Ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wo=e=>{switch(typeof e){case"undefined":return ce.undefined;case"string":return ce.string;case"number":return isNaN(e)?ce.nan:ce.number;case"boolean":return ce.boolean;case"function":return ce.function;case"bigint":return ce.bigint;case"symbol":return ce.symbol;case"object":return Array.isArray(e)?ce.array:e===null?ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ce.promise:typeof Map<"u"&&e instanceof Map?ce.map:typeof Set<"u"&&e instanceof Set?ce.set:typeof Date<"u"&&e instanceof Date?ce.date:ce.object;default:return ce.unknown}},Z=Ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$J=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),hn=class e extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){let r=t||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,u=0;for(;u<o.path.length;){let l=o.path[u];u===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(o))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return i(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};hn.create=e=>new hn(e);var Ql=(e,t)=>{let r;switch(e.code){case Z.invalid_type:e.received===ce.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Z.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ye.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ye.joinValues(e.keys,", ")}`;break;case Z.invalid_union:r="Invalid input";break;case Z.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ye.joinValues(e.options)}`;break;case Z.invalid_enum_value:r=`Invalid enum value. Expected ${Ye.joinValues(e.options)}, received '${e.received}'`;break;case Z.invalid_arguments:r="Invalid function arguments";break;case Z.invalid_return_type:r="Invalid function return type";break;case Z.invalid_date:r="Invalid date";break;case Z.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ye.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Z.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case Z.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case Z.custom:r="Invalid input";break;case Z.invalid_intersection_types:r="Intersection results could not be merged";break;case Z.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Z.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ye.assertNever(e)}return{message:r}},VL=Ql;function WJ(e){VL=e}function v0(){return VL}var w0=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,s=[...r,...i.path||[]],o={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="",u=n.filter(l=>!!l).slice().reverse();for(let l of u)a=l(o,{data:t,defaultError:a}).message;return{...i,path:s,message:a}},GJ=[];function oe(e,t){let r=v0(),n=w0({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Ql?void 0:Ql].filter(i=>!!i)});e.common.issues.push(n)}var _r=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let i of r){if(i.status==="aborted")return Pe;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let i of r){let s=await i.key,o=await i.value;n.push({key:s,value:o})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return Pe;s.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:t.value,value:n}}},Pe=Object.freeze({status:"aborted"}),Zl=e=>({status:"dirty",value:e}),jr=e=>({status:"valid",value:e}),cC=e=>e.status==="aborted",fC=e=>e.status==="dirty",_p=e=>e.status==="valid",bp=e=>typeof Promise<"u"&&e instanceof Promise;function C0(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function UL(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var Ee;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Ee||(Ee={}));var Sp,xp,Xn=class{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},ML=(e,t)=>{if(_p(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new hn(e.common.issues);return this._error=r,this._error}}};function je(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,a)=>{var u,l;let{message:c}=e;return o.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:(u=c??n)!==null&&u!==void 0?u:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=c??r)!==null&&l!==void 0?l:a.defaultError}},description:i}}var Ve=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Wo(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new _r,ctx:{common:t.parent.common,data:t.data,parsedType:Wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(bp(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;let i={common:{issues:[],async:(n=r?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wo(t)},s=this._parseSync({data:t,path:i.path,parent:i});return ML(i,s)}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wo(t)},i=this._parse({data:t,path:n.path,parent:n}),s=await(bp(i)?i:Promise.resolve(i));return ML(n,s)}refine(t,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=t(i),a=()=>s.addIssue({code:Z.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new gn({schema:this,typeName:Ie.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Kn.create(this,this._def)}nullable(){return Ji.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Is.create(this,this._def)}promise(){return zo.create(this,this._def)}or(t){return Su.create([this,t],this._def)}and(t){return xu.create(this,t,this._def)}transform(t){return new gn({...je(this._def),schema:this,typeName:Ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Au({...je(this._def),innerType:this,defaultValue:r,typeName:Ie.ZodDefault})}brand(){return new Op({typeName:Ie.ZodBranded,type:this,...je(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Iu({...je(this._def),innerType:this,catchValue:r,typeName:Ie.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Fp.create(this,t)}readonly(){return Tu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},qJ=/^c[^\s-]{8,}$/i,zJ=/^[0-9a-z]+$/,HJ=/^[0-9A-HJKMNP-TV-Z]{26}$/,YJ=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,KJ=/^[a-z0-9_-]{21}$/i,XJ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,JJ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ZJ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",uC,QJ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eZ=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,tZ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$L="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rZ=new RegExp(`^${$L}$`);function WL(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function nZ(e){return new RegExp(`^${WL(e)}$`)}function GL(e){let t=`${$L}T${WL(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function iZ(e,t){return!!((t==="v4"||!t)&&QJ.test(e)||(t==="v6"||!t)&&eZ.test(e))}var Go=class e extends Ve{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ce.string){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.string,received:s.parsedType}),Pe}let n=new _r,i;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=t.data.length>s.value,a=t.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(t,i),o?oe(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&oe(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")JJ.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"email",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")uC||(uC=new RegExp(ZJ,"u")),uC.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"emoji",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")YJ.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"uuid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")KJ.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"nanoid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")qJ.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")zJ.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"cuid2",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")HJ.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ulid",code:Z.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),oe(i,{validation:"url",code:Z.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"regex",code:Z.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?GL(s).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?rZ.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?nZ(s).test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?XJ.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"duration",code:Z.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?iZ(t.data,s.version)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"ip",code:Z.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?tZ.test(t.data)||(i=this._getOrReturnCtx(t,i),oe(i,{validation:"base64",code:Z.invalid_string,message:s.message}),n.dirty()):Ye.assertNever(s);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:Z.invalid_string,...Ee.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ee.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ee.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ee.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ee.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ee.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ee.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ee.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ee.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ee.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ee.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(r=t?.offset)!==null&&r!==void 0?r:!1,local:(n=t?.local)!==null&&n!==void 0?n:!1,...Ee.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Ee.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Ee.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Ee.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Ee.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Ee.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Ee.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Ee.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Ee.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Ee.errToObj(r)})}nonempty(t){return this.min(1,Ee.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Go.create=e=>{var t;return new Go({checks:[],typeName:Ie.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...je(e)})};function sZ(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(e.toFixed(i).replace(".","")),o=parseInt(t.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var yu=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ce.number){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.number,received:s.parsedType}),Pe}let n,i=new _r;for(let s of this._def.checks)s.kind==="int"?Ye.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?sZ(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.not_finite,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ee.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ee.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ee.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ee.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ee.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ee.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ee.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ee.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Ee.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ee.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ee.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ye.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};yu.create=e=>new yu({checks:[],typeName:Ie.ZodNumber,coerce:e?.coerce||!1,...je(e)});var Du=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ce.bigint){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.bigint,received:s.parsedType}),Pe}let n,i=new _r;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),oe(n,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ee.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ee.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ee.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ee.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ee.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ee.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ee.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ee.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ee.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ee.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Du.create=e=>{var t;return new Du({checks:[],typeName:Ie.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...je(e)})};var vu=class extends Ve{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ce.boolean){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.boolean,received:n.parsedType}),Pe}return jr(t.data)}};vu.create=e=>new vu({typeName:Ie.ZodBoolean,coerce:e?.coerce||!1,...je(e)});var wu=class e extends Ve{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ce.date){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_type,expected:ce.date,received:s.parsedType}),Pe}if(isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return oe(s,{code:Z.invalid_date}),Pe}let n=new _r,i;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(i=this._getOrReturnCtx(t,i),oe(i,{code:Z.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Ye.assertNever(s);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Ee.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Ee.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};wu.create=e=>new wu({checks:[],coerce:e?.coerce||!1,typeName:Ie.ZodDate,...je(e)});var ec=class extends Ve{_parse(t){if(this._getType(t)!==ce.symbol){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.symbol,received:n.parsedType}),Pe}return jr(t.data)}};ec.create=e=>new ec({typeName:Ie.ZodSymbol,...je(e)});var Cu=class extends Ve{_parse(t){if(this._getType(t)!==ce.undefined){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.undefined,received:n.parsedType}),Pe}return jr(t.data)}};Cu.create=e=>new Cu({typeName:Ie.ZodUndefined,...je(e)});var Eu=class extends Ve{_parse(t){if(this._getType(t)!==ce.null){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.null,received:n.parsedType}),Pe}return jr(t.data)}};Eu.create=e=>new Eu({typeName:Ie.ZodNull,...je(e)});var qo=class extends Ve{constructor(){super(...arguments),this._any=!0}_parse(t){return jr(t.data)}};qo.create=e=>new qo({typeName:Ie.ZodAny,...je(e)});var As=class extends Ve{constructor(){super(...arguments),this._unknown=!0}_parse(t){return jr(t.data)}};As.create=e=>new As({typeName:Ie.ZodUnknown,...je(e)});var yi=class extends Ve{_parse(t){let r=this._getOrReturnCtx(t);return oe(r,{code:Z.invalid_type,expected:ce.never,received:r.parsedType}),Pe}};yi.create=e=>new yi({typeName:Ie.ZodNever,...je(e)});var tc=class extends Ve{_parse(t){if(this._getType(t)!==ce.undefined){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.void,received:n.parsedType}),Pe}return jr(t.data)}};tc.create=e=>new tc({typeName:Ie.ZodVoid,...je(e)});var Is=class e extends Ve{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==ce.array)return oe(r,{code:Z.invalid_type,expected:ce.array,received:r.parsedType}),Pe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(oe(r,{code:o?Z.too_big:Z.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(oe(r,{code:Z.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(oe(r,{code:Z.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new Xn(r,o,r.path,a)))).then(o=>_r.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new Xn(r,o,r.path,a)));return _r.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Ee.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Ee.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Ee.toString(r)}})}nonempty(t){return this.min(1,t)}};Is.create=(e,t)=>new Is({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ie.ZodArray,...je(t)});function Jl(e){if(e instanceof Kr){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=Kn.create(Jl(n))}return new Kr({...e._def,shape:()=>t})}else return e instanceof Is?new Is({...e._def,type:Jl(e.element)}):e instanceof Kn?Kn.create(Jl(e.unwrap())):e instanceof Ji?Ji.create(Jl(e.unwrap())):e instanceof Xi?Xi.create(e.items.map(t=>Jl(t))):e}var Kr=class e extends Ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Ye.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==ce.object){let l=this._getOrReturnCtx(t);return oe(l,{code:Z.invalid_type,expected:ce.object,received:l.parsedType}),Pe}let{status:n,ctx:i}=this._processInputParams(t),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof yi&&this._def.unknownKeys==="strip"))for(let l in i.data)o.includes(l)||a.push(l);let u=[];for(let l of o){let c=s[l],f=i.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Xn(i,f,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof yi){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of a)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(l==="strict")a.length>0&&(oe(i,{code:Z.unrecognized_keys,keys:a}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of a){let f=i.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Xn(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let f=await c.key,p=await c.value;l.push({key:f,value:p,alwaysSet:c.alwaysSet})}return l}).then(l=>_r.mergeObjectSync(n,l)):_r.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return Ee.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let u=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=Ee.errToObj(t).message)!==null&&a!==void 0?a:u}:{message:u}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ie.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return Ye.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}omit(t){let r={};return Ye.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new e({...this._def,shape:()=>r})}deepPartial(){return Jl(this)}partial(t){let r={};return Ye.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}),new e({...this._def,shape:()=>r})}required(t){let r={};return Ye.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof Kn;)s=s._def.innerType;r[n]=s}}),new e({...this._def,shape:()=>r})}keyof(){return qL(Ye.objectKeys(this.shape))}};Kr.create=(e,t)=>new Kr({shape:()=>e,unknownKeys:"strip",catchall:yi.create(),typeName:Ie.ZodObject,...je(t)});Kr.strictCreate=(e,t)=>new Kr({shape:()=>e,unknownKeys:"strict",catchall:yi.create(),typeName:Ie.ZodObject,...je(t)});Kr.lazycreate=(e,t)=>new Kr({shape:e,unknownKeys:"strip",catchall:yi.create(),typeName:Ie.ZodObject,...je(t)});var Su=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new hn(a.ctx.common.issues));return oe(r,{code:Z.invalid_union,unionErrors:o}),Pe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let u of n){let l={...r,common:{...r.common,issues:[]},parent:null},c=u._parseSync({data:r.data,path:r.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(u=>new hn(u));return oe(r,{code:Z.invalid_union,unionErrors:a}),Pe}}get options(){return this._def.options}};Su.create=(e,t)=>new Su({options:e,typeName:Ie.ZodUnion,...je(t)});var Fs=e=>e instanceof _u?Fs(e.schema):e instanceof gn?Fs(e.innerType()):e instanceof bu?[e.value]:e instanceof Ou?e.options:e instanceof Fu?Ye.objectValues(e.enum):e instanceof Au?Fs(e._def.innerType):e instanceof Cu?[void 0]:e instanceof Eu?[null]:e instanceof Kn?[void 0,...Fs(e.unwrap())]:e instanceof Ji?[null,...Fs(e.unwrap())]:e instanceof Op||e instanceof Tu?Fs(e.unwrap()):e instanceof Iu?Fs(e._def.innerType):[],E0=class e extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ce.object)return oe(r,{code:Z.invalid_type,expected:ce.object,received:r.parsedType}),Pe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(oe(r,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Pe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let i=new Map;for(let s of r){let o=Fs(s.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);i.set(a,s)}}return new e({typeName:Ie.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,...je(n)})}};function pC(e,t){let r=Wo(e),n=Wo(t);if(e===t)return{valid:!0,data:e};if(r===ce.object&&n===ce.object){let i=Ye.objectKeys(t),s=Ye.objectKeys(e).filter(a=>i.indexOf(a)!==-1),o={...e,...t};for(let a of s){let u=pC(e[a],t[a]);if(!u.valid)return{valid:!1};o[a]=u.data}return{valid:!0,data:o}}else if(r===ce.array&&n===ce.array){if(e.length!==t.length)return{valid:!1};let i=[];for(let s=0;s<e.length;s++){let o=e[s],a=t[s],u=pC(o,a);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return r===ce.date&&n===ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var xu=class extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=(s,o)=>{if(cC(s)||cC(o))return Pe;let a=pC(s.value,o.value);return a.valid?((fC(s)||fC(o))&&r.dirty(),{status:r.value,value:a.data}):(oe(n,{code:Z.invalid_intersection_types}),Pe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};xu.create=(e,t,r)=>new xu({left:e,right:t,typeName:Ie.ZodIntersection,...je(r)});var Xi=class e extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.array)return oe(n,{code:Z.invalid_type,expected:ce.array,received:n.parsedType}),Pe;if(n.data.length<this._def.items.length)return oe(n,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pe;!this._def.rest&&n.data.length>this._def.items.length&&(oe(n,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Xn(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>_r.mergeArray(r,o)):_r.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Xi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xi({items:e,typeName:Ie.ZodTuple,rest:null,...je(t)})};var S0=class e extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.object)return oe(n,{code:Z.invalid_type,expected:ce.object,received:n.parsedType}),Pe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new Xn(n,a,n.path,a)),value:o._parse(new Xn(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?_r.mergeObjectAsync(r,i):_r.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Ve?new e({keyType:t,valueType:r,typeName:Ie.ZodRecord,...je(n)}):new e({keyType:Go.create(),valueType:t,typeName:Ie.ZodRecord,...je(r)})}},rc=class extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.map)return oe(n,{code:Z.invalid_type,expected:ce.map,received:n.parsedType}),Pe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,u],l)=>({key:i._parse(new Xn(n,a,n.path,[l,"key"])),value:s._parse(new Xn(n,u,n.path,[l,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of o){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return Pe;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of o){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return Pe;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),a.set(l.value,c.value)}return{status:r.value,value:a}}}};rc.create=(e,t,r)=>new rc({valueType:t,keyType:e,typeName:Ie.ZodMap,...je(r)});var nc=class e extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ce.set)return oe(n,{code:Z.invalid_type,expected:ce.set,received:n.parsedType}),Pe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(oe(n,{code:Z.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(oe(n,{code:Z.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(u){let l=new Set;for(let c of u){if(c.status==="aborted")return Pe;c.status==="dirty"&&r.dirty(),l.add(c.value)}return{status:r.value,value:l}}let a=[...n.data.values()].map((u,l)=>s._parse(new Xn(n,u,n.path,l)));return n.common.async?Promise.all(a).then(u=>o(u)):o(a)}min(t,r){return new e({...this._def,minSize:{value:t,message:Ee.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Ee.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};nc.create=(e,t)=>new nc({valueType:e,minSize:null,maxSize:null,typeName:Ie.ZodSet,...je(t)});var x0=class e extends Ve{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ce.function)return oe(r,{code:Z.invalid_type,expected:ce.function,received:r.parsedType}),Pe;function n(a,u){return w0({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,v0(),Ql].filter(l=>!!l),issueData:{code:Z.invalid_arguments,argumentsError:u}})}function i(a,u){return w0({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,v0(),Ql].filter(l=>!!l),issueData:{code:Z.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof zo){let a=this;return jr(async function(...u){let l=new hn([]),c=await a._def.args.parseAsync(u,s).catch(d=>{throw l.addIssue(n(u,d)),l}),f=await Reflect.apply(o,this,c);return await a._def.returns._def.type.parseAsync(f,s).catch(d=>{throw l.addIssue(i(f,d)),l})})}else{let a=this;return jr(function(...u){let l=a._def.args.safeParse(u,s);if(!l.success)throw new hn([n(u,l.error)]);let c=Reflect.apply(o,this,l.data),f=a._def.returns.safeParse(c,s);if(!f.success)throw new hn([i(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Xi.create(t).rest(As.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||Xi.create([]).rest(As.create()),returns:r||As.create(),typeName:Ie.ZodFunction,...je(n)})}},_u=class extends Ve{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};_u.create=(e,t)=>new _u({getter:e,typeName:Ie.ZodLazy,...je(t)});var bu=class extends Ve{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return oe(r,{received:r.data,code:Z.invalid_literal,expected:this._def.value}),Pe}return{status:"valid",value:t.data}}get value(){return this._def.value}};bu.create=(e,t)=>new bu({value:e,typeName:Ie.ZodLiteral,...je(t)});function qL(e,t){return new Ou({values:e,typeName:Ie.ZodEnum,...je(t)})}var Ou=class e extends Ve{constructor(){super(...arguments),Sp.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return oe(r,{expected:Ye.joinValues(n),received:r.parsedType,code:Z.invalid_type}),Pe}if(C0(this,Sp,"f")||UL(this,Sp,new Set(this._def.values),"f"),!C0(this,Sp,"f").has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return oe(r,{received:r.data,code:Z.invalid_enum_value,options:n}),Pe}return jr(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};Sp=new WeakMap;Ou.create=qL;var Fu=class extends Ve{constructor(){super(...arguments),xp.set(this,void 0)}_parse(t){let r=Ye.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ce.string&&n.parsedType!==ce.number){let i=Ye.objectValues(r);return oe(n,{expected:Ye.joinValues(i),received:n.parsedType,code:Z.invalid_type}),Pe}if(C0(this,xp,"f")||UL(this,xp,new Set(Ye.getValidEnumValues(this._def.values)),"f"),!C0(this,xp,"f").has(t.data)){let i=Ye.objectValues(r);return oe(n,{received:n.data,code:Z.invalid_enum_value,options:i}),Pe}return jr(t.data)}get enum(){return this._def.values}};xp=new WeakMap;Fu.create=(e,t)=>new Fu({values:e,typeName:Ie.ZodNativeEnum,...je(t)});var zo=class extends Ve{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ce.promise&&r.common.async===!1)return oe(r,{code:Z.invalid_type,expected:ce.promise,received:r.parsedType}),Pe;let n=r.parsedType===ce.promise?r.data:Promise.resolve(r.data);return jr(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};zo.create=(e,t)=>new zo({type:e,typeName:Ie.ZodPromise,...je(t)});var gn=class extends Ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:o=>{oe(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Pe;let u=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return u.status==="aborted"?Pe:u.status==="dirty"||r.value==="dirty"?Zl(u.value):u});{if(r.value==="aborted")return Pe;let a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?Pe:a.status==="dirty"||r.value==="dirty"?Zl(a.value):a}}if(i.type==="refinement"){let o=a=>{let u=i.refinement(a,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Pe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!_p(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>_p(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);Ye.assertNever(i)}};gn.create=(e,t,r)=>new gn({schema:e,typeName:Ie.ZodEffects,effect:t,...je(r)});gn.createWithPreprocess=(e,t,r)=>new gn({schema:t,effect:{type:"preprocess",transform:e},typeName:Ie.ZodEffects,...je(r)});var Kn=class extends Ve{_parse(t){return this._getType(t)===ce.undefined?jr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Kn.create=(e,t)=>new Kn({innerType:e,typeName:Ie.ZodOptional,...je(t)});var Ji=class extends Ve{_parse(t){return this._getType(t)===ce.null?jr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ji.create=(e,t)=>new Ji({innerType:e,typeName:Ie.ZodNullable,...je(t)});var Au=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===ce.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Au.create=(e,t)=>new Au({innerType:e,typeName:Ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...je(t)});var Iu=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return bp(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new hn(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new hn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Iu.create=(e,t)=>new Iu({innerType:e,typeName:Ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...je(t)});var ic=class extends Ve{_parse(t){if(this._getType(t)!==ce.nan){let n=this._getOrReturnCtx(t);return oe(n,{code:Z.invalid_type,expected:ce.nan,received:n.parsedType}),Pe}return{status:"valid",value:t.data}}};ic.create=e=>new ic({typeName:Ie.ZodNaN,...je(e)});var oZ=Symbol("zod_brand"),Op=class extends Ve{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Fp=class e extends Ve{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Pe:s.status==="dirty"?(r.dirty(),Zl(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Pe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:Ie.ZodPipeline})}},Tu=class extends Ve{_parse(t){let r=this._def.innerType._parse(t),n=i=>(_p(i)&&(i.value=Object.freeze(i.value)),i);return bp(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};Tu.create=(e,t)=>new Tu({innerType:e,typeName:Ie.ZodReadonly,...je(t)});function zL(e,t={},r){return e?qo.create().superRefine((n,i)=>{var s,o;if(!e(n)){let a=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,u=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...l,fatal:u})}}):qo.create()}var aZ={object:Kr.lazycreate},Ie;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ie||(Ie={}));var uZ=(e,t={message:`Input not instance of ${e.name}`})=>zL(r=>r instanceof e,t),HL=Go.create,YL=yu.create,lZ=ic.create,cZ=Du.create,KL=vu.create,fZ=wu.create,pZ=ec.create,dZ=Cu.create,mZ=Eu.create,hZ=qo.create,gZ=As.create,yZ=yi.create,DZ=tc.create,vZ=Is.create,Ap=Kr.create,wZ=Kr.strictCreate,CZ=Su.create,EZ=E0.create,SZ=xu.create,xZ=Xi.create,_Z=S0.create,bZ=rc.create,OZ=nc.create,FZ=x0.create,AZ=_u.create,IZ=bu.create,TZ=Ou.create,PZ=Fu.create,LZ=zo.create,jL=gn.create,NZ=Kn.create,RZ=Ji.create,BZ=gn.createWithPreprocess,kZ=Fp.create,MZ=()=>HL().optional(),jZ=()=>YL().optional(),VZ=()=>KL().optional(),UZ={string:e=>Go.create({...e,coerce:!0}),number:e=>yu.create({...e,coerce:!0}),boolean:e=>vu.create({...e,coerce:!0}),bigint:e=>Du.create({...e,coerce:!0}),date:e=>wu.create({...e,coerce:!0})},$Z=Pe,Ip=Object.freeze({__proto__:null,defaultErrorMap:Ql,setErrorMap:WJ,getErrorMap:v0,makeIssue:w0,EMPTY_PATH:GJ,addIssueToContext:oe,ParseStatus:_r,INVALID:Pe,DIRTY:Zl,OK:jr,isAborted:cC,isDirty:fC,isValid:_p,isAsync:bp,get util(){return Ye},get objectUtil(){return lC},ZodParsedType:ce,getParsedType:Wo,ZodType:Ve,datetimeRegex:GL,ZodString:Go,ZodNumber:yu,ZodBigInt:Du,ZodBoolean:vu,ZodDate:wu,ZodSymbol:ec,ZodUndefined:Cu,ZodNull:Eu,ZodAny:qo,ZodUnknown:As,ZodNever:yi,ZodVoid:tc,ZodArray:Is,ZodObject:Kr,ZodUnion:Su,ZodDiscriminatedUnion:E0,ZodIntersection:xu,ZodTuple:Xi,ZodRecord:S0,ZodMap:rc,ZodSet:nc,ZodFunction:x0,ZodLazy:_u,ZodLiteral:bu,ZodEnum:Ou,ZodNativeEnum:Fu,ZodPromise:zo,ZodEffects:gn,ZodTransformer:gn,ZodOptional:Kn,ZodNullable:Ji,ZodDefault:Au,ZodCatch:Iu,ZodNaN:ic,BRAND:oZ,ZodBranded:Op,ZodPipeline:Fp,ZodReadonly:Tu,custom:zL,Schema:Ve,ZodSchema:Ve,late:aZ,get ZodFirstPartyTypeKind(){return Ie},coerce:UZ,any:hZ,array:vZ,bigint:cZ,boolean:KL,date:fZ,discriminatedUnion:EZ,effect:jL,enum:TZ,function:FZ,instanceof:uZ,intersection:SZ,lazy:AZ,literal:IZ,map:bZ,nan:lZ,nativeEnum:PZ,never:yZ,null:mZ,nullable:RZ,number:YL,object:Ap,oboolean:VZ,onumber:jZ,optional:NZ,ostring:MZ,pipeline:kZ,preprocess:BZ,promise:LZ,record:_Z,set:OZ,strictObject:wZ,string:HL,symbol:pZ,transformer:jL,tuple:xZ,undefined:dZ,union:CZ,unknown:gZ,void:DZ,NEVER:$Z,ZodIssueCode:Z,quotelessJson:$J,ZodError:hn});function XL(e){let t=e.runtimeEnvStrict??e.runtimeEnv??process.env;if(e.emptyStringAsUndefined??!1)for(let[I,A]of Object.entries(t))A===""&&delete t[I];if(!!e.skipValidation)return t;let i=typeof e.client=="object"?e.client:{},s=typeof e.server=="object"?e.server:{},o=typeof e.shared=="object"?e.shared:{},a=Ap(i),u=Ap(s),l=Ap(o),c=e.isServer??(typeof window>"u"||"Deno"in window),f=a.merge(l),p=u.merge(l).merge(a),d=c?p.safeParse(t):f.safeParse(t),m=e.onValidationError??(I=>{throw console.error("\u274C Invalid environment variables:",I.flatten().fieldErrors),new Error("Invalid environment variables")}),y=e.onInvalidAccess??(I=>{throw new Error("\u274C Attempted to access a server-side environment variable on the client")});if(d.success===!1)return m(d.error);let D=I=>e.clientPrefix?!I.startsWith(e.clientPrefix)&&!(I in l.shape):!0,h=I=>c||!D(I),g=I=>I==="__esModule"||I==="$$typeof",v=(e.extends??[]).reduce((I,A)=>Object.assign(I,A),{}),w=Object.assign(d.data,v);return new Proxy(w,{get(I,A){if(typeof A=="string"&&!g(A))return h(A)?Reflect.get(I,A):y(A)}})}var WZ=e=>{switch(e){case"local":return{CONNECT_API_BASE_URL:"http://localhost:3000/rest",CANVA_ENV_URL:"http://localhost:3000",CANVA_CLI_CLIENT_ID:"FAKE_CLIENT_ID",FLAVOR:"local"};case"dev":return{CONNECT_API_BASE_URL:"https://api.canva-dev.com/rest",CANVA_ENV_URL:"https://www.canva-dev.com",CANVA_CLI_CLIENT_ID:"OC-AZFEJKOjQYw3",FLAVOR:"dev"};case"staging-cn":return{CONNECT_API_BASE_URL:"https://api.canva-staging.cn/rest",CANVA_ENV_URL:"https://www.canva-staging.cn",CANVA_CLI_CLIENT_ID:"OC-AZNlOhtxI_Zb",FLAVOR:"staging-cn"};case"staging":return{CONNECT_API_BASE_URL:"https://api.canva-staging.com/rest",CANVA_ENV_URL:"https://www.canva-staging.com",CANVA_CLI_CLIENT_ID:"OC-AZH-EOTpT8Ib",FLAVOR:"staging"};case"prod-cn":return{CONNECT_API_BASE_URL:"https://api.canva.cn/rest",CANVA_ENV_URL:"https://www.canva.cn",CANVA_CLI_CLIENT_ID:"OC-AZN2AS1hKtVM",FLAVOR:"prod-cn"};case"prod":default:return{CONNECT_API_BASE_URL:"https://api.canva.com/rest",CANVA_ENV_URL:"https://www.canva.com",CANVA_CLI_CLIENT_ID:"OC-AZICxlGo2biD",FLAVOR:"prod"}}},JL=({fallback:e="prod"})=>XL({server:{FLAVOR:Ip.enum(["prod","prod-cn","staging","staging-cn","dev","local"]).default(e),CONNECT_API_BASE_URL:Ip.string().url(),CANVA_ENV_URL:Ip.string().url(),CANVA_CLI_CLIENT_ID:Ip.enum(["OC-AZICxlGo2biD","OC-AZN2AS1hKtVM","OC-AZH-EOTpT8Ib","OC-AZNlOhtxI_Zb","OC-AZFEJKOjQYw3","FAKE_CLIENT_ID"]).default("OC-AZICxlGo2biD")},runtimeEnv:WZ(q_({fallback:e})),emptyStringAsUndefined:!0});var b0=({envLines:e,key:t,value:r,comment:n=""})=>e.map(i=>{if(i.startsWith(`${t}=`)){let s=`${t}=${r}`;return n?`${s} ${n}`:s}return i}),_0=class{constructor(t){this.env=t}get isChina(){return z_(this.env.FLAVOR)}};var ZL=async({debug:e,flavor:t})=>{let r=new a0,n=new h0(r),i=await n.getFlavor();if(e){let d;t?d=`Using flavor: ${t} due to flag passed to command`:i?d=`Using flavor: ${i} stored with token`:d="No flavor set by flags or found stored with token, using the default: Prod",console.log(d)}let s=JL({fallback:t??i??"prod"}),o=new Fh(s),a=new y0(n,s),u=new Oh(a,s,e),l=new D0(s),c=new _0(s),f=new p0(e),p=new d0(n,s,e);return{appService:u,navigationService:f,authService:o,tokenService:a,urlService:l,envService:c,previewService:p}};import Di from"react";import{Text as XN,Newline as wQ}from"ink";var Zi=St(oN(),1),IC=St(HN(),1);import DQ from"react";import{Transform as vQ}from"ink";function FC({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var yQ=FC();function AC(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(yQ,"")}var YN=e=>{if(e.name&&e.colors)throw new Error("The `name` and `colors` props are mutually exclusive");let t;if(e.name)t=IC.default[e.name];else if(e.colors)t=(0,IC.default)(e.colors);else throw new Error("Either `name` or `colors` prop must be provided");let r=n=>t.multiline(AC(n));return DQ.createElement(vQ,{transform:r},e.children)};YN.propTypes={children:Zi.default.oneOfType([Zi.default.arrayOf(Zi.default.node),Zi.default.node]).isRequired,name:Zi.default.oneOf(["cristal","teen","mind","morning","vice","passion","fruit","instagram","atlas","retro","summer","pastel","rainbow"]),colors:Zi.default.arrayOf(Zi.default.oneOfType([Zi.default.string,Zi.default.object]))};var KN=YN;var N0=`
513
513
  \u2584\u259F\u2580\u2580\u2580\u2584
514
514
 
@@ -599,12 +599,12 @@ react-dom/cjs/react-dom.production.min.js:
599
599
  * LICENSE file in the root directory of this source tree.
600
600
  *)
601
601
 
602
- use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js:
602
+ use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
603
603
  (**
604
604
  * @license React
605
- * use-sync-external-store-shim.production.min.js
605
+ * use-sync-external-store-shim.production.js
606
606
  *
607
- * Copyright (c) Facebook, Inc. and its affiliates.
607
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
608
608
  *
609
609
  * This source code is licensed under the MIT license found in the
610
610
  * LICENSE file in the root directory of this source tree.