conductor-remote 1.2.0 → 1.2.1
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.
|
@@ -8,33 +8,33 @@ Error generating stack: `+u.message+`
|
|
|
8
8
|
`+u.stack}}var ii=Object.prototype.hasOwnProperty,ri=t.unstable_scheduleCallback,Pi=t.unstable_cancelCallback,fo=t.unstable_shouldYield,ho=t.unstable_requestPaint,Et=t.unstable_now,mo=t.unstable_getCurrentPriorityLevel,X=t.unstable_ImmediatePriority,ne=t.unstable_UserBlockingPriority,be=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,Be=t.unstable_IdlePriority,qt=t.log,zn=t.unstable_setDisableYieldValue,wt=null,ot=null;function Rt(e){if(typeof qt=="function"&&zn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(wt,e)}catch{}}var Ve=Math.clz32?Math.clz32:Hv,$n=Math.log,fn=Math.LN2;function Hv(e){return e>>>=0,e===0?32:31-($n(e)/fn|0)|0}var va=256,xa=262144,Sa=4194304;function Rl(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ka(e,n,i){var u=e.pendingLanes;if(u===0)return 0;var f=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=u&134217727;return S!==0?(u=S&~h,u!==0?f=Rl(u):(b&=S,b!==0?f=Rl(b):i||(i=S&~e,i!==0&&(f=Rl(i))))):(S=u&~h,S!==0?f=Rl(S):b!==0?f=Rl(b):i||(i=u&~e,i!==0&&(f=Rl(i)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,i=n&-n,h>=i||h===32&&(i&4194048)!==0)?n:f}function $i(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function qv(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ah(){var e=Sa;return Sa<<=1,(Sa&62914560)===0&&(Sa=4194304),e}function po(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function Wi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qv(e,n,i,u,f,h){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var S=e.entanglements,C=e.expirationTimes,L=e.hiddenUpdates;for(i=b&~i;0<i;){var G=31-Ve(i),I=1<<G;S[G]=0,C[G]=-1;var U=L[G];if(U!==null)for(L[G]=null,G=0;G<U.length;G++){var F=U[G];F!==null&&(F.lane&=-536870913)}i&=~I}u!==0&&uh(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function uh(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-Ve(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|i&261930}function oh(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var u=31-Ve(i),f=1<<u;f&n|e[u]&n&&(e[u]|=n),i&=~f}}function sh(e,n){var i=n&-n;return i=(i&42)!==0?1:go(i),(i&(e.suspendedLanes|n))!==0?0:i}function go(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function yo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ch(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Kp(e.type))}function fh(e,n){var i=K.p;try{return K.p=e,n()}finally{K.p=i}}var Wn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Wn,Ot="__reactProps$"+Wn,ai="__reactContainer$"+Wn,bo="__reactEvents$"+Wn,Fv="__reactListeners$"+Wn,Gv="__reactHandles$"+Wn,hh="__reactResources$"+Wn,er="__reactMarker$"+Wn;function vo(e){delete e[dt],delete e[Ot],delete e[bo],delete e[Fv],delete e[Gv]}function ui(e){var n=e[dt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[ai]||i[dt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=_p(e);e!==null;){if(i=e[dt])return i;e=_p(e)}return n}e=i,i=e.parentNode}return null}function oi(e){if(e=e[dt]||e[ai]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function tr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function si(e){var n=e[hh];return n||(n=e[hh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ft(e){e[er]=!0}var dh=new Set,mh={};function Ol(e,n){ci(e,n),ci(e+"Capture",n)}function ci(e,n){for(mh[e]=n,e=0;e<n.length;e++)dh.add(n[e])}var Yv=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ph={},gh={};function Vv(e){return ii.call(gh,e)?!0:ii.call(ph,e)?!1:Yv.test(e)?gh[e]=!0:(ph[e]=!0,!1)}function Ea(e,n,i){if(Vv(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function wa(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function Rn(e,n,i,u){if(u===null)e.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+u)}}function $t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Xv(e,n,i){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(b){i=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function xo(e){if(!e._valueTracker){var n=yh(e)?"checked":"value";e._valueTracker=Xv(e,n,""+e[n])}}function bh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),u="";return e&&(u=yh(e)?e.checked?"true":"false":e.value),e=u,e!==i?(n.setValue(e),!0):!1}function Ca(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}}var Zv=/[\n"\\]/g;function Wt(e){return e.replace(Zv,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function So(e,n,i,u,f,h,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+$t(n)):e.value!==""+$t(n)&&(e.value=""+$t(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?ko(e,b,$t(n)):i!=null?ko(e,b,$t(i)):u!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+$t(S):e.removeAttribute("name")}function vh(e,n,i,u,f,h,b,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){xo(e);return}i=i!=null?""+$t(i):"",n=n!=null?""+$t(n):i,S||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=S?e.checked:!!u,e.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),xo(e)}function ko(e,n,i){n==="number"&&Ca(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function fi(e,n,i,u){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&u&&(e[i].defaultSelected=!0)}else{for(i=""+$t(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function xh(e,n,i){if(n!=null&&(n=""+$t(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+$t(i):""}function Sh(e,n,i,u){if(n==null){if(u!=null){if(i!=null)throw Error(a(92));if(P(u)){if(1<u.length)throw Error(a(93));u=u[0]}i=u}i==null&&(i=""),n=i}i=$t(n),e.defaultValue=i,u=e.textContent,u===i&&u!==""&&u!==null&&(e.value=u),xo(e)}function hi(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var Iv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function kh(e,n,i){var u=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,i):typeof i!="number"||i===0||Iv.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Eh(e,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,i!=null){for(var u in i)!i.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in n)u=n[f],n.hasOwnProperty(f)&&i[f]!==u&&kh(e,f,u)}else for(var h in n)n.hasOwnProperty(h)&&kh(e,h,n[h])}function Eo(e){if(e.indexOf("-")===-1)return!1;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 Kv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Jv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ta(e){return Jv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function On(){}var wo=null;function Co(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var di=null,mi=null;function wh(e){var n=oi(e);if(n&&(e=n.stateNode)){var i=e[Ot]||null;e:switch(e=n.stateNode,n.type){case"input":if(So(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Wt(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var u=i[n];if(u!==e&&u.form===e.form){var f=u[Ot]||null;if(!f)throw Error(a(90));So(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)u=i[n],u.form===e.form&&bh(u)}break e;case"textarea":xh(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&fi(e,!!i.multiple,n,!1)}}}var To=!1;function Ch(e,n,i){if(To)return e(n,i);To=!0;try{var u=e(n);return u}finally{if(To=!1,(di!==null||mi!==null)&&(du(),di&&(n=di,e=mi,mi=di=null,wh(n),e)))for(n=0;n<e.length;n++)wh(e[n])}}function nr(e,n){var i=e.stateNode;if(i===null)return null;var u=i[Ot]||null;if(u===null)return null;i=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ao=!1;if(Dn)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){Ao=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{Ao=!1}var el=null,zo=null,Aa=null;function Th(){if(Aa)return Aa;var e,n=zo,i=n.length,u,f="value"in el?el.value:el.textContent,h=f.length;for(e=0;e<i&&n[e]===f[e];e++);var b=i-e;for(u=1;u<=b&&n[i-u]===f[h-u];u++);return Aa=f.slice(e,1<u?1-u:void 0)}function za(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Ra(){return!0}function Ah(){return!1}function Dt(e){function n(i,u,f,h,b){this._reactName=i,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(i=e[S],this[S]=i?i(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Ra:Ah,this.isPropagationStopped=Ah,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ra)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ra)},persist:function(){},isPersistent:Ra}),n}var Dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oa=Dt(Dl),ir=g({},Dl,{view:0,detail:0}),Pv=Dt(ir),Ro,Oo,rr,Da=g({},ir,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,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!==rr&&(rr&&e.type==="mousemove"?(Ro=e.screenX-rr.screenX,Oo=e.screenY-rr.screenY):Oo=Ro=0,rr=e),Ro)},movementY:function(e){return"movementY"in e?e.movementY:Oo}}),zh=Dt(Da),$v=g({},Da,{dataTransfer:0}),Wv=Dt($v),e1=g({},ir,{relatedTarget:0}),Do=Dt(e1),t1=g({},Dl,{animationName:0,elapsedTime:0,pseudoElement:0}),n1=Dt(t1),l1=g({},Dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),i1=Dt(l1),r1=g({},Dl,{data:0}),Rh=Dt(r1),a1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u1={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"},o1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s1(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=o1[e])?!!n[e]:!1}function Mo(){return s1}var c1=g({},ir,{key:function(e){if(e.key){var n=a1[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=za(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?u1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,charCode:function(e){return e.type==="keypress"?za(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?za(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),f1=Dt(c1),h1=g({},Da,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oh=Dt(h1),d1=g({},ir,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),m1=Dt(d1),p1=g({},Dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),g1=Dt(p1),y1=g({},Da,{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}),b1=Dt(y1),v1=g({},Dl,{newState:0,oldState:0}),x1=Dt(v1),S1=[9,13,27,32],_o=Dn&&"CompositionEvent"in window,ar=null;Dn&&"documentMode"in document&&(ar=document.documentMode);var k1=Dn&&"TextEvent"in window&&!ar,Dh=Dn&&(!_o||ar&&8<ar&&11>=ar),Mh=" ",_h=!1;function Nh(e,n){switch(e){case"keyup":return S1.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pi=!1;function E1(e,n){switch(e){case"compositionend":return Lh(n);case"keypress":return n.which!==32?null:(_h=!0,Mh);case"textInput":return e=n.data,e===Mh&&_h?null:e;default:return null}}function w1(e,n){if(pi)return e==="compositionend"||!_o&&Nh(e,n)?(e=Th(),Aa=zo=el=null,pi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Dh&&n.locale!=="ko"?null:n.data;default:return null}}var C1={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 jh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!C1[e.type]:n==="textarea"}function Uh(e,n,i,u){di?mi?mi.push(u):mi=[u]:di=u,n=xu(n,"onChange"),0<n.length&&(i=new Oa("onChange","change",null,i,u),e.push({event:i,listeners:n}))}var ur=null,or=null;function T1(e){vp(e,0)}function Ma(e){var n=tr(e);if(bh(n))return e}function Bh(e,n){if(e==="change")return n}var Hh=!1;if(Dn){var No;if(Dn){var Lo="oninput"in document;if(!Lo){var qh=document.createElement("div");qh.setAttribute("oninput","return;"),Lo=typeof qh.oninput=="function"}No=Lo}else No=!1;Hh=No&&(!document.documentMode||9<document.documentMode)}function Qh(){ur&&(ur.detachEvent("onpropertychange",Fh),or=ur=null)}function Fh(e){if(e.propertyName==="value"&&Ma(or)){var n=[];Uh(n,or,e,Co(e)),Ch(T1,n)}}function A1(e,n,i){e==="focusin"?(Qh(),ur=n,or=i,ur.attachEvent("onpropertychange",Fh)):e==="focusout"&&Qh()}function z1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ma(or)}function R1(e,n){if(e==="click")return Ma(n)}function O1(e,n){if(e==="input"||e==="change")return Ma(n)}function D1(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Qt=typeof Object.is=="function"?Object.is:D1;function sr(e,n){if(Qt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),u=Object.keys(n);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var f=i[u];if(!ii.call(n,f)||!Qt(e[f],n[f]))return!1}return!0}function Gh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yh(e,n){var i=Gh(e);e=0;for(var u;i;){if(i.nodeType===3){if(u=e+i.textContent.length,e<=n&&u>=n)return{node:i,offset:n-e};e=u}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Gh(i)}}function Vh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Vh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Xh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ca(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Ca(e.document)}return n}function jo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var M1=Dn&&"documentMode"in document&&11>=document.documentMode,gi=null,Uo=null,cr=null,Bo=!1;function Zh(e,n,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Bo||gi==null||gi!==Ca(u)||(u=gi,"selectionStart"in u&&jo(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),cr&&sr(cr,u)||(cr=u,u=xu(Uo,"onSelect"),0<u.length&&(n=new Oa("onSelect","select",null,n,i),e.push({event:n,listeners:u}),n.target=gi)))}function Ml(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var yi={animationend:Ml("Animation","AnimationEnd"),animationiteration:Ml("Animation","AnimationIteration"),animationstart:Ml("Animation","AnimationStart"),transitionrun:Ml("Transition","TransitionRun"),transitionstart:Ml("Transition","TransitionStart"),transitioncancel:Ml("Transition","TransitionCancel"),transitionend:Ml("Transition","TransitionEnd")},Ho={},Ih={};Dn&&(Ih=document.createElement("div").style,"AnimationEvent"in window||(delete yi.animationend.animation,delete yi.animationiteration.animation,delete yi.animationstart.animation),"TransitionEvent"in window||delete yi.transitionend.transition);function _l(e){if(Ho[e])return Ho[e];if(!yi[e])return e;var n=yi[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in Ih)return Ho[e]=n[i];return e}var Kh=_l("animationend"),Jh=_l("animationiteration"),Ph=_l("animationstart"),_1=_l("transitionrun"),N1=_l("transitionstart"),L1=_l("transitioncancel"),$h=_l("transitionend"),Wh=new Map,qo="abort auxClick beforeToggle 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(" ");qo.push("scrollEnd");function hn(e,n){Wh.set(e,n),Ol(n,[e])}var _a=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},en=[],bi=0,Qo=0;function Na(){for(var e=bi,n=Qo=bi=0;n<e;){var i=en[n];en[n++]=null;var u=en[n];en[n++]=null;var f=en[n];en[n++]=null;var h=en[n];if(en[n++]=null,u!==null&&f!==null){var b=u.pending;b===null?f.next=f:(f.next=b.next,b.next=f),u.pending=f}h!==0&&ed(i,f,h)}}function La(e,n,i,u){en[bi++]=e,en[bi++]=n,en[bi++]=i,en[bi++]=u,Qo|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Fo(e,n,i,u){return La(e,n,i,u),ja(e)}function Nl(e,n){return La(e,null,null,n),ja(e)}function ed(e,n,i){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i);for(var f=!1,h=e.return;h!==null;)h.childLanes|=i,u=h.alternate,u!==null&&(u.childLanes|=i),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&n!==null&&(f=31-Ve(i),e=h.hiddenUpdates,u=e[f],u===null?e[f]=[n]:u.push(n),n.lane=i|536870912),h):null}function ja(e){if(50<Mr)throw Mr=0,Ps=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var vi={};function j1(e,n,i,u){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,n,i,u){return new j1(e,n,i,u)}function Go(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mn(e,n){var i=e.alternate;return i===null?(i=Ft(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function td(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Ua(e,n,i,u,f,h){var b=0;if(u=e,typeof e=="function")Go(e)&&(b=1);else if(typeof e=="string")b=Q0(e,i,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Ft(31,i,n,f),e.elementType=ae,e.lanes=h,e;case T:return Ll(i.children,f,h,n);case A:b=8,f|=24;break;case z:return e=Ft(12,i,n,f|2),e.elementType=z,e.lanes=h,e;case ee:return e=Ft(13,i,n,f),e.elementType=ee,e.lanes=h,e;case q:return e=Ft(19,i,n,f),e.elementType=q,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:b=10;break e;case Q:b=9;break e;case W:b=11;break e;case J:b=14;break e;case V:b=16,u=null;break e}b=29,i=Error(a(130,e===null?"null":typeof e,"")),u=null}return n=Ft(b,i,n,f),n.elementType=e,n.type=u,n.lanes=h,n}function Ll(e,n,i,u){return e=Ft(7,e,u,n),e.lanes=i,e}function Yo(e,n,i){return e=Ft(6,e,null,n),e.lanes=i,e}function nd(e){var n=Ft(18,null,null,0);return n.stateNode=e,n}function Vo(e,n,i){return n=Ft(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ld=new WeakMap;function tn(e,n){if(typeof e=="object"&&e!==null){var i=ld.get(e);return i!==void 0?i:(n={value:e,source:n,stack:ba(n)},ld.set(e,n),n)}return{value:e,source:n,stack:ba(n)}}var xi=[],Si=0,Ba=null,fr=0,nn=[],ln=0,tl=null,Sn=1,kn="";function _n(e,n){xi[Si++]=fr,xi[Si++]=Ba,Ba=e,fr=n}function id(e,n,i){nn[ln++]=Sn,nn[ln++]=kn,nn[ln++]=tl,tl=e;var u=Sn;e=kn;var f=32-Ve(u)-1;u&=~(1<<f),i+=1;var h=32-Ve(n)+f;if(30<h){var b=f-f%5;h=(u&(1<<b)-1).toString(32),u>>=b,f-=b,Sn=1<<32-Ve(n)+f|i<<f|u,kn=h+e}else Sn=1<<h|i<<f|u,kn=e}function Xo(e){e.return!==null&&(_n(e,1),id(e,1,0))}function Zo(e){for(;e===Ba;)Ba=xi[--Si],xi[Si]=null,fr=xi[--Si],xi[Si]=null;for(;e===tl;)tl=nn[--ln],nn[ln]=null,kn=nn[--ln],nn[ln]=null,Sn=nn[--ln],nn[ln]=null}function rd(e,n){nn[ln++]=Sn,nn[ln++]=kn,nn[ln++]=tl,Sn=n.id,kn=n.overflow,tl=e}var mt=null,Ke=null,_e=!1,nl=null,rn=!1,Io=Error(a(519));function ll(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hr(tn(n,e)),Io}function ad(e){var n=e.stateNode,i=e.type,u=e.memoizedProps;switch(n[dt]=e,n[Ot]=u,i){case"dialog":Re("cancel",n),Re("close",n);break;case"iframe":case"object":case"embed":Re("load",n);break;case"video":case"audio":for(i=0;i<Nr.length;i++)Re(Nr[i],n);break;case"source":Re("error",n);break;case"img":case"image":case"link":Re("error",n),Re("load",n);break;case"details":Re("toggle",n);break;case"input":Re("invalid",n),vh(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Re("invalid",n);break;case"textarea":Re("invalid",n),Sh(n,u.value,u.defaultValue,u.children)}i=u.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||u.suppressHydrationWarning===!0||Ep(n.textContent,i)?(u.popover!=null&&(Re("beforetoggle",n),Re("toggle",n)),u.onScroll!=null&&Re("scroll",n),u.onScrollEnd!=null&&Re("scrollend",n),u.onClick!=null&&(n.onclick=On),n=!0):n=!1,n||ll(e,!0)}function ud(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:rn=!1;return;case 27:case 3:rn=!0;return;default:mt=mt.return}}function ki(e){if(e!==mt)return!1;if(!_e)return ud(e),_e=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||hc(e.type,e.memoizedProps)),i=!i),i&&Ke&&ll(e),ud(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Ke=Mp(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Ke=Mp(e)}else n===27?(n=Ke,yl(e.type)?(e=yc,yc=null,Ke=e):Ke=n):Ke=mt?un(e.stateNode.nextSibling):null;return!0}function jl(){Ke=mt=null,_e=!1}function Ko(){var e=nl;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),nl=null),e}function hr(e){nl===null?nl=[e]:nl.push(e)}var Jo=R(null),Ul=null,Nn=null;function il(e,n,i){E(Jo,n._currentValue),n._currentValue=i}function Ln(e){e._currentValue=Jo.current,Y(Jo)}function Po(e,n,i){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===i)break;e=e.return}}function $o(e,n,i,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=f;for(var C=0;C<n.length;C++)if(S.context===n[C]){h.lanes|=i,S=h.alternate,S!==null&&(S.lanes|=i),Po(h.return,i,e),u||(b=null);break e}h=S.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=i,h=b.alternate,h!==null&&(h.lanes|=i),Po(b,i,e),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===e){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function Ei(e,n,i,u){e=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var S=f.type;Qt(f.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(f===we.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Hr):e=[Hr])}f=f.return}e!==null&&$o(n,e,i,u),n.flags|=262144}function Ha(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Bl(e){Ul=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return od(Ul,e)}function qa(e,n){return Ul===null&&Bl(e),od(e,n)}function od(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Nn===null){if(e===null)throw Error(a(308));Nn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Nn=Nn.next=n;return i}var U1=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},B1=t.unstable_scheduleCallback,H1=t.unstable_NormalPriority,lt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wo(){return{controller:new U1,data:new Map,refCount:0}}function dr(e){e.refCount--,e.refCount===0&&B1(H1,function(){e.controller.abort()})}var mr=null,es=0,wi=0,Ci=null;function q1(e,n){if(mr===null){var i=mr=[];es=0,wi=lc(),Ci={status:"pending",value:void 0,then:function(u){i.push(u)}}}return es++,n.then(sd,sd),n}function sd(){if(--es===0&&mr!==null){Ci!==null&&(Ci.status="fulfilled");var e=mr;mr=null,wi=0,Ci=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Q1(e,n){var i=[],u={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(u.status="rejected",u.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),u}var cd=_.S;_.S=function(e,n){Zm=Et(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&q1(e,n),cd!==null&&cd(e,n)};var Hl=R(null);function ts(){var e=Hl.current;return e!==null?e:Xe.pooledCache}function Qa(e,n){n===null?E(Hl,Hl.current):E(Hl,n.pool)}function fd(){var e=ts();return e===null?null:{parent:lt._currentValue,pool:e}}var Ti=Error(a(460)),ns=Error(a(474)),Fa=Error(a(542)),Ga={then:function(){}};function hd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function dd(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(On,On),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,pd(e),e;default:if(typeof n.status=="string")n.then(On,On);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=u}},function(u){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,pd(e),e}throw Ql=n,Ti}}function ql(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Ql=i,Ti):i}}var Ql=null;function md(){if(Ql===null)throw Error(a(459));var e=Ql;return Ql=null,e}function pd(e){if(e===Ti||e===Fa)throw Error(a(483))}var Ai=null,pr=0;function Ya(e){var n=pr;return pr+=1,Ai===null&&(Ai=[]),dd(Ai,e,n)}function gr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Va(e,n){throw n.$$typeof===v?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function gd(e){function n(D,O){if(e){var N=D.deletions;N===null?(D.deletions=[O],D.flags|=16):N.push(O)}}function i(D,O){if(!e)return null;for(;O!==null;)n(D,O),O=O.sibling;return null}function u(D){for(var O=new Map;D!==null;)D.key!==null?O.set(D.key,D):O.set(D.index,D),D=D.sibling;return O}function f(D,O){return D=Mn(D,O),D.index=0,D.sibling=null,D}function h(D,O,N){return D.index=N,e?(N=D.alternate,N!==null?(N=N.index,N<O?(D.flags|=67108866,O):N):(D.flags|=67108866,O)):(D.flags|=1048576,O)}function b(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,O,N,Z){return O===null||O.tag!==6?(O=Yo(N,D.mode,Z),O.return=D,O):(O=f(O,N),O.return=D,O)}function C(D,O,N,Z){var me=N.type;return me===T?G(D,O,N.props.children,Z,N.key):O!==null&&(O.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===V&&ql(me)===O.type)?(O=f(O,N.props),gr(O,N),O.return=D,O):(O=Ua(N.type,N.key,N.props,null,D.mode,Z),gr(O,N),O.return=D,O)}function L(D,O,N,Z){return O===null||O.tag!==4||O.stateNode.containerInfo!==N.containerInfo||O.stateNode.implementation!==N.implementation?(O=Vo(N,D.mode,Z),O.return=D,O):(O=f(O,N.children||[]),O.return=D,O)}function G(D,O,N,Z,me){return O===null||O.tag!==7?(O=Ll(N,D.mode,Z,me),O.return=D,O):(O=f(O,N),O.return=D,O)}function I(D,O,N){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Yo(""+O,D.mode,N),O.return=D,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case x:return N=Ua(O.type,O.key,O.props,null,D.mode,N),gr(N,O),N.return=D,N;case w:return O=Vo(O,D.mode,N),O.return=D,O;case V:return O=ql(O),I(D,O,N)}if(P(O)||te(O))return O=Ll(O,D.mode,N,null),O.return=D,O;if(typeof O.then=="function")return I(D,Ya(O),N);if(O.$$typeof===j)return I(D,qa(D,O),N);Va(D,O)}return null}function U(D,O,N,Z){var me=O!==null?O.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return me!==null?null:S(D,O,""+N,Z);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case x:return N.key===me?C(D,O,N,Z):null;case w:return N.key===me?L(D,O,N,Z):null;case V:return N=ql(N),U(D,O,N,Z)}if(P(N)||te(N))return me!==null?null:G(D,O,N,Z,null);if(typeof N.then=="function")return U(D,O,Ya(N),Z);if(N.$$typeof===j)return U(D,O,qa(D,N),Z);Va(D,N)}return null}function F(D,O,N,Z,me){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return D=D.get(N)||null,S(O,D,""+Z,me);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case x:return D=D.get(Z.key===null?N:Z.key)||null,C(O,D,Z,me);case w:return D=D.get(Z.key===null?N:Z.key)||null,L(O,D,Z,me);case V:return Z=ql(Z),F(D,O,N,Z,me)}if(P(Z)||te(Z))return D=D.get(N)||null,G(O,D,Z,me,null);if(typeof Z.then=="function")return F(D,O,N,Ya(Z),me);if(Z.$$typeof===j)return F(D,O,N,qa(O,Z),me);Va(O,Z)}return null}function fe(D,O,N,Z){for(var me=null,Le=null,de=O,Ce=O=0,Me=null;de!==null&&Ce<N.length;Ce++){de.index>Ce?(Me=de,de=null):Me=de.sibling;var je=U(D,de,N[Ce],Z);if(je===null){de===null&&(de=Me);break}e&&de&&je.alternate===null&&n(D,de),O=h(je,O,Ce),Le===null?me=je:Le.sibling=je,Le=je,de=Me}if(Ce===N.length)return i(D,de),_e&&_n(D,Ce),me;if(de===null){for(;Ce<N.length;Ce++)de=I(D,N[Ce],Z),de!==null&&(O=h(de,O,Ce),Le===null?me=de:Le.sibling=de,Le=de);return _e&&_n(D,Ce),me}for(de=u(de);Ce<N.length;Ce++)Me=F(de,D,Ce,N[Ce],Z),Me!==null&&(e&&Me.alternate!==null&&de.delete(Me.key===null?Ce:Me.key),O=h(Me,O,Ce),Le===null?me=Me:Le.sibling=Me,Le=Me);return e&&de.forEach(function(kl){return n(D,kl)}),_e&&_n(D,Ce),me}function ge(D,O,N,Z){if(N==null)throw Error(a(151));for(var me=null,Le=null,de=O,Ce=O=0,Me=null,je=N.next();de!==null&&!je.done;Ce++,je=N.next()){de.index>Ce?(Me=de,de=null):Me=de.sibling;var kl=U(D,de,je.value,Z);if(kl===null){de===null&&(de=Me);break}e&&de&&kl.alternate===null&&n(D,de),O=h(kl,O,Ce),Le===null?me=kl:Le.sibling=kl,Le=kl,de=Me}if(je.done)return i(D,de),_e&&_n(D,Ce),me;if(de===null){for(;!je.done;Ce++,je=N.next())je=I(D,je.value,Z),je!==null&&(O=h(je,O,Ce),Le===null?me=je:Le.sibling=je,Le=je);return _e&&_n(D,Ce),me}for(de=u(de);!je.done;Ce++,je=N.next())je=F(de,D,Ce,je.value,Z),je!==null&&(e&&je.alternate!==null&&de.delete(je.key===null?Ce:je.key),O=h(je,O,Ce),Le===null?me=je:Le.sibling=je,Le=je);return e&&de.forEach(function($0){return n(D,$0)}),_e&&_n(D,Ce),me}function Ge(D,O,N,Z){if(typeof N=="object"&&N!==null&&N.type===T&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case x:e:{for(var me=N.key;O!==null;){if(O.key===me){if(me=N.type,me===T){if(O.tag===7){i(D,O.sibling),Z=f(O,N.props.children),Z.return=D,D=Z;break e}}else if(O.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===V&&ql(me)===O.type){i(D,O.sibling),Z=f(O,N.props),gr(Z,N),Z.return=D,D=Z;break e}i(D,O);break}else n(D,O);O=O.sibling}N.type===T?(Z=Ll(N.props.children,D.mode,Z,N.key),Z.return=D,D=Z):(Z=Ua(N.type,N.key,N.props,null,D.mode,Z),gr(Z,N),Z.return=D,D=Z)}return b(D);case w:e:{for(me=N.key;O!==null;){if(O.key===me)if(O.tag===4&&O.stateNode.containerInfo===N.containerInfo&&O.stateNode.implementation===N.implementation){i(D,O.sibling),Z=f(O,N.children||[]),Z.return=D,D=Z;break e}else{i(D,O);break}else n(D,O);O=O.sibling}Z=Vo(N,D.mode,Z),Z.return=D,D=Z}return b(D);case V:return N=ql(N),Ge(D,O,N,Z)}if(P(N))return fe(D,O,N,Z);if(te(N)){if(me=te(N),typeof me!="function")throw Error(a(150));return N=me.call(N),ge(D,O,N,Z)}if(typeof N.then=="function")return Ge(D,O,Ya(N),Z);if(N.$$typeof===j)return Ge(D,O,qa(D,N),Z);Va(D,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,O!==null&&O.tag===6?(i(D,O.sibling),Z=f(O,N),Z.return=D,D=Z):(i(D,O),Z=Yo(N,D.mode,Z),Z.return=D,D=Z),b(D)):i(D,O)}return function(D,O,N,Z){try{pr=0;var me=Ge(D,O,N,Z);return Ai=null,me}catch(de){if(de===Ti||de===Fa)throw de;var Le=Ft(29,de,null,D.mode);return Le.lanes=Z,Le.return=D,Le}}}var Fl=gd(!0),yd=gd(!1),rl=!1;function ls(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function is(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function al(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ul(e,n,i){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Ue&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,n=ja(e),ed(e,null,i),n}return La(e,u,n,i),ja(e)}function yr(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,oh(e,i)}}function rs(e,n){var i=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var f=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,i=i.next}while(i!==null);h===null?f=h=n:h=h.next=n}else f=h=n;i={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var as=!1;function br(){if(as){var e=Ci;if(e!==null)throw e}}function vr(e,n,i,u){as=!1;var f=e.updateQueue;rl=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var C=S,L=C.next;C.next=null,b===null?h=L:b.next=L,b=C;var G=e.alternate;G!==null&&(G=G.updateQueue,S=G.lastBaseUpdate,S!==b&&(S===null?G.firstBaseUpdate=L:S.next=L,G.lastBaseUpdate=C))}if(h!==null){var I=f.baseState;b=0,G=L=C=null,S=h;do{var U=S.lane&-536870913,F=U!==S.lane;if(F?(De&U)===U:(u&U)===U){U!==0&&U===wi&&(as=!0),G!==null&&(G=G.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var fe=e,ge=S;U=n;var Ge=i;switch(ge.tag){case 1:if(fe=ge.payload,typeof fe=="function"){I=fe.call(Ge,I,U);break e}I=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ge.payload,U=typeof fe=="function"?fe.call(Ge,I,U):fe,U==null)break e;I=g({},I,U);break e;case 2:rl=!0}}U=S.callback,U!==null&&(e.flags|=64,F&&(e.flags|=8192),F=f.callbacks,F===null?f.callbacks=[U]:F.push(U))}else F={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},G===null?(L=G=F,C=I):G=G.next=F,b|=U;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;F=S,S=F.next,F.next=null,f.lastBaseUpdate=F,f.shared.pending=null}}while(!0);G===null&&(C=I),f.baseState=C,f.firstBaseUpdate=L,f.lastBaseUpdate=G,h===null&&(f.shared.lanes=0),hl|=b,e.lanes=b,e.memoizedState=I}}function bd(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function vd(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)bd(i[e],n)}var zi=R(null),Xa=R(0);function xd(e,n){e=Yn,E(Xa,e),E(zi,n),Yn=e|n.baseLanes}function us(){E(Xa,Yn),E(zi,zi.current)}function os(){Yn=Xa.current,Y(zi),Y(Xa)}var Gt=R(null),an=null;function ol(e){var n=e.alternate;E(tt,tt.current&1),E(Gt,e),an===null&&(n===null||zi.current!==null||n.memoizedState!==null)&&(an=e)}function ss(e){E(tt,tt.current),E(Gt,e),an===null&&(an=e)}function Sd(e){e.tag===22?(E(tt,tt.current),E(Gt,e),an===null&&(an=e)):sl()}function sl(){E(tt,tt.current),E(Gt,Gt.current)}function Yt(e){Y(Gt),an===e&&(an=null),Y(tt)}var tt=R(0);function Za(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||pc(i)||gc(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var jn=0,Ee=null,Qe=null,it=null,Ia=!1,Ri=!1,Gl=!1,Ka=0,xr=0,Oi=null,F1=0;function We(){throw Error(a(321))}function cs(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Qt(e[i],n[i]))return!1;return!0}function fs(e,n,i,u,f,h){return jn=h,Ee=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,_.H=e===null||e.memoizedState===null?im:Ts,Gl=!1,h=i(u,f),Gl=!1,Ri&&(h=Ed(n,i,u,f)),kd(e),h}function kd(e){_.H=Er;var n=Qe!==null&&Qe.next!==null;if(jn=0,it=Qe=Ee=null,Ia=!1,xr=0,Oi=null,n)throw Error(a(300));e===null||rt||(e=e.dependencies,e!==null&&Ha(e)&&(rt=!0))}function Ed(e,n,i,u){Ee=e;var f=0;do{if(Ri&&(Oi=null),xr=0,Ri=!1,25<=f)throw Error(a(301));if(f+=1,it=Qe=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}_.H=rm,h=n(i,u)}while(Ri);return h}function G1(){var e=_.H,n=e.useState()[0];return n=typeof n.then=="function"?Sr(n):n,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(Ee.flags|=1024),n}function hs(){var e=Ka!==0;return Ka=0,e}function ds(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function ms(e){if(Ia){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ia=!1}jn=0,it=Qe=Ee=null,Ri=!1,xr=Ka=0,Oi=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Ee.memoizedState=it=e:it=it.next=e,it}function nt(){if(Qe===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=it===null?Ee.memoizedState:it.next;if(n!==null)it=n,Qe=e;else{if(e===null)throw Ee.alternate===null?Error(a(467)):Error(a(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},it===null?Ee.memoizedState=it=e:it=it.next=e}return it}function Ja(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sr(e){var n=xr;return xr+=1,Oi===null&&(Oi=[]),e=dd(Oi,e,n),n=Ee,(it===null?n.memoizedState:it.next)===null&&(n=n.alternate,_.H=n===null||n.memoizedState===null?im:Ts),e}function Pa(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Sr(e);if(e.$$typeof===j)return pt(e)}throw Error(a(438,String(e)))}function ps(e){var n=null,i=Ee.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var u=Ee.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Ja(),Ee.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),u=0;u<e;u++)i[u]=B;return n.index++,i}function Un(e,n){return typeof n=="function"?n(e):n}function $a(e){var n=nt();return gs(n,Qe,e)}function gs(e,n,i){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=i;var f=e.baseQueue,h=u.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}n.baseQueue=f=h,u.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{n=f.next;var S=b=null,C=null,L=n,G=!1;do{var I=L.lane&-536870913;if(I!==L.lane?(De&I)===I:(jn&I)===I){var U=L.revertLane;if(U===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),I===wi&&(G=!0);else if((jn&U)===U){L=L.next,U===wi&&(G=!0);continue}else I={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},C===null?(S=C=I,b=h):C=C.next=I,Ee.lanes|=U,hl|=U;I=L.action,Gl&&i(h,I),h=L.hasEagerState?L.eagerState:i(h,I)}else U={lane:I,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},C===null?(S=C=U,b=h):C=C.next=U,Ee.lanes|=I,hl|=I;L=L.next}while(L!==null&&L!==n);if(C===null?b=h:C.next=S,!Qt(h,e.memoizedState)&&(rt=!0,G&&(i=Ci,i!==null)))throw i;e.memoizedState=h,e.baseState=b,e.baseQueue=C,u.lastRenderedState=h}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function ys(e){var n=nt(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=e;var u=i.dispatch,f=i.pending,h=n.memoizedState;if(f!==null){i.pending=null;var b=f=f.next;do h=e(h,b.action),b=b.next;while(b!==f);Qt(h,n.memoizedState)||(rt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),i.lastRenderedState=h}return[h,u]}function wd(e,n,i){var u=Ee,f=nt(),h=_e;if(h){if(i===void 0)throw Error(a(407));i=i()}else i=n();var b=!Qt((Qe||f).memoizedState,i);if(b&&(f.memoizedState=i,rt=!0),f=f.queue,xs(Ad.bind(null,u,f,e),[e]),f.getSnapshot!==n||b||it!==null&&it.memoizedState.tag&1){if(u.flags|=2048,Di(9,{destroy:void 0},Td.bind(null,u,f,i,n),null),Xe===null)throw Error(a(349));h||(jn&127)!==0||Cd(u,n,i)}return i}function Cd(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=Ee.updateQueue,n===null?(n=Ja(),Ee.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Td(e,n,i,u){n.value=i,n.getSnapshot=u,zd(n)&&Rd(e)}function Ad(e,n,i){return i(function(){zd(n)&&Rd(e)})}function zd(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Qt(e,i)}catch{return!0}}function Rd(e){var n=Nl(e,2);n!==null&&jt(n,e,2)}function bs(e){var n=Ct();if(typeof e=="function"){var i=e;if(e=i(),Gl){Rt(!0);try{i()}finally{Rt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:e},n}function Od(e,n,i,u){return e.baseState=i,gs(e,Qe,typeof u=="function"?u:Un)}function Y1(e,n,i,u,f){if(tu(e))throw Error(a(485));if(e=n.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};_.T!==null?i(!0):h.isTransition=!1,u(h),i=n.pending,i===null?(h.next=n.pending=h,Dd(n,h)):(h.next=i.next,n.pending=i.next=h)}}function Dd(e,n){var i=n.action,u=n.payload,f=e.state;if(n.isTransition){var h=_.T,b={};_.T=b;try{var S=i(f,u),C=_.S;C!==null&&C(b,S),Md(e,n,S)}catch(L){vs(e,n,L)}finally{h!==null&&b.types!==null&&(h.types=b.types),_.T=h}}else try{h=i(f,u),Md(e,n,h)}catch(L){vs(e,n,L)}}function Md(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(u){_d(e,n,u)},function(u){return vs(e,n,u)}):_d(e,n,i)}function _d(e,n,i){n.status="fulfilled",n.value=i,Nd(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Dd(e,i)))}function vs(e,n,i){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=i,Nd(n),n=n.next;while(n!==u)}e.action=null}function Nd(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Ld(e,n){return n}function jd(e,n){if(_e){var i=Xe.formState;if(i!==null){e:{var u=Ee;if(_e){if(Ke){t:{for(var f=Ke,h=rn;f.nodeType!==8;){if(!h){f=null;break t}if(f=un(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Ke=un(f.nextSibling),u=f.data==="F!";break e}}ll(u)}u=!1}u&&(n=i[0])}}return i=Ct(),i.memoizedState=i.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ld,lastRenderedState:n},i.queue=u,i=tm.bind(null,Ee,u),u.dispatch=i,u=bs(!1),h=Cs.bind(null,Ee,!1,u.queue),u=Ct(),f={state:n,dispatch:null,action:e,pending:null},u.queue=f,i=Y1.bind(null,Ee,f,h,i),f.dispatch=i,u.memoizedState=e,[n,i,!1]}function Ud(e){var n=nt();return Bd(n,Qe,e)}function Bd(e,n,i){if(n=gs(e,n,Ld)[0],e=$a(Un)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Sr(n)}catch(b){throw b===Ti?Fa:b}else u=n;n=nt();var f=n.queue,h=f.dispatch;return i!==n.memoizedState&&(Ee.flags|=2048,Di(9,{destroy:void 0},V1.bind(null,f,i),null)),[u,h,e]}function V1(e,n){e.action=n}function Hd(e){var n=nt(),i=Qe;if(i!==null)return Bd(n,i,e);nt(),n=n.memoizedState,i=nt();var u=i.queue.dispatch;return i.memoizedState=e,[n,u,!1]}function Di(e,n,i,u){return e={tag:e,create:i,deps:u,inst:n,next:null},n=Ee.updateQueue,n===null&&(n=Ja(),Ee.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(u=i.next,i.next=e,e.next=u,n.lastEffect=e),e}function qd(){return nt().memoizedState}function Wa(e,n,i,u){var f=Ct();Ee.flags|=e,f.memoizedState=Di(1|n,{destroy:void 0},i,u===void 0?null:u)}function eu(e,n,i,u){var f=nt();u=u===void 0?null:u;var h=f.memoizedState.inst;Qe!==null&&u!==null&&cs(u,Qe.memoizedState.deps)?f.memoizedState=Di(n,h,i,u):(Ee.flags|=e,f.memoizedState=Di(1|n,h,i,u))}function Qd(e,n){Wa(8390656,8,e,n)}function xs(e,n){eu(2048,8,e,n)}function X1(e){Ee.flags|=4;var n=Ee.updateQueue;if(n===null)n=Ja(),Ee.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Fd(e){var n=nt().memoizedState;return X1({ref:n,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function Gd(e,n){return eu(4,2,e,n)}function Yd(e,n){return eu(4,4,e,n)}function Vd(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Xd(e,n,i){i=i!=null?i.concat([e]):null,eu(4,4,Vd.bind(null,n,e),i)}function Ss(){}function Zd(e,n){var i=nt();n=n===void 0?null:n;var u=i.memoizedState;return n!==null&&cs(n,u[1])?u[0]:(i.memoizedState=[e,n],e)}function Id(e,n){var i=nt();n=n===void 0?null:n;var u=i.memoizedState;if(n!==null&&cs(n,u[1]))return u[0];if(u=e(),Gl){Rt(!0);try{e()}finally{Rt(!1)}}return i.memoizedState=[u,n],u}function ks(e,n,i){return i===void 0||(jn&1073741824)!==0&&(De&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=Km(),Ee.lanes|=e,hl|=e,i)}function Kd(e,n,i,u){return Qt(i,n)?i:zi.current!==null?(e=ks(e,i,u),Qt(e,n)||(rt=!0),e):(jn&42)===0||(jn&1073741824)!==0&&(De&261930)===0?(rt=!0,e.memoizedState=i):(e=Km(),Ee.lanes|=e,hl|=e,n)}function Jd(e,n,i,u,f){var h=K.p;K.p=h!==0&&8>h?h:8;var b=_.T,S={};_.T=S,Cs(e,!1,n,i);try{var C=f(),L=_.S;if(L!==null&&L(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var G=Q1(C,u);kr(e,n,G,Zt(e))}else kr(e,n,u,Zt(e))}catch(I){kr(e,n,{then:function(){},status:"rejected",reason:I},Zt())}finally{K.p=h,b!==null&&S.types!==null&&(b.types=S.types),_.T=b}}function Z1(){}function Es(e,n,i,u){if(e.tag!==5)throw Error(a(476));var f=Pd(e).queue;Jd(e,f,n,he,i===null?Z1:function(){return $d(e),i(u)})}function Pd(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:he},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function $d(e){var n=Pd(e);n.next===null&&(n=e.alternate.memoizedState),kr(e,n.next.queue,{},Zt())}function ws(){return pt(Hr)}function Wd(){return nt().memoizedState}function em(){return nt().memoizedState}function I1(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Zt();e=al(i);var u=ul(n,e,i);u!==null&&(jt(u,n,i),yr(u,n,i)),n={cache:Wo()},e.payload=n;return}n=n.return}}function K1(e,n,i){var u=Zt();i={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},tu(e)?nm(n,i):(i=Fo(e,n,i,u),i!==null&&(jt(i,e,u),lm(i,n,u)))}function tm(e,n,i){var u=Zt();kr(e,n,i,u)}function kr(e,n,i,u){var f={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(tu(e))nm(n,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,S=h(b,i);if(f.hasEagerState=!0,f.eagerState=S,Qt(S,b))return La(e,n,f,0),Xe===null&&Na(),!1}catch{}if(i=Fo(e,n,f,u),i!==null)return jt(i,e,u),lm(i,n,u),!0}return!1}function Cs(e,n,i,u){if(u={lane:2,revertLane:lc(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},tu(e)){if(n)throw Error(a(479))}else n=Fo(e,i,u,2),n!==null&&jt(n,e,2)}function tu(e){var n=e.alternate;return e===Ee||n!==null&&n===Ee}function nm(e,n){Ri=Ia=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function lm(e,n,i){if((i&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,oh(e,i)}}var Er={readContext:pt,use:Pa,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};Er.useEffectEvent=We;var im={readContext:pt,use:Pa,useCallback:function(e,n){return Ct().memoizedState=[e,n===void 0?null:n],e},useContext:pt,useEffect:Qd,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,Wa(4194308,4,Vd.bind(null,n,e),i)},useLayoutEffect:function(e,n){return Wa(4194308,4,e,n)},useInsertionEffect:function(e,n){Wa(4,2,e,n)},useMemo:function(e,n){var i=Ct();n=n===void 0?null:n;var u=e();if(Gl){Rt(!0);try{e()}finally{Rt(!1)}}return i.memoizedState=[u,n],u},useReducer:function(e,n,i){var u=Ct();if(i!==void 0){var f=i(n);if(Gl){Rt(!0);try{i(n)}finally{Rt(!1)}}}else f=n;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=K1.bind(null,Ee,e),[u.memoizedState,e]},useRef:function(e){var n=Ct();return e={current:e},n.memoizedState=e},useState:function(e){e=bs(e);var n=e.queue,i=tm.bind(null,Ee,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Ss,useDeferredValue:function(e,n){var i=Ct();return ks(i,e,n)},useTransition:function(){var e=bs(!1);return e=Jd.bind(null,Ee,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var u=Ee,f=Ct();if(_e){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),Xe===null)throw Error(a(349));(De&127)!==0||Cd(u,n,i)}f.memoizedState=i;var h={value:i,getSnapshot:n};return f.queue=h,Qd(Ad.bind(null,u,h,e),[e]),u.flags|=2048,Di(9,{destroy:void 0},Td.bind(null,u,h,i,n),null),i},useId:function(){var e=Ct(),n=Xe.identifierPrefix;if(_e){var i=kn,u=Sn;i=(u&~(1<<32-Ve(u)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Ka++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=F1++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:ws,useFormState:jd,useActionState:jd,useOptimistic:function(e){var n=Ct();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Cs.bind(null,Ee,!0,i),i.dispatch=n,[e,n]},useMemoCache:ps,useCacheRefresh:function(){return Ct().memoizedState=I1.bind(null,Ee)},useEffectEvent:function(e){var n=Ct(),i={impl:e};return n.memoizedState=i,function(){if((Ue&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},Ts={readContext:pt,use:Pa,useCallback:Zd,useContext:pt,useEffect:xs,useImperativeHandle:Xd,useInsertionEffect:Gd,useLayoutEffect:Yd,useMemo:Id,useReducer:$a,useRef:qd,useState:function(){return $a(Un)},useDebugValue:Ss,useDeferredValue:function(e,n){var i=nt();return Kd(i,Qe.memoizedState,e,n)},useTransition:function(){var e=$a(Un)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:Sr(e),n]},useSyncExternalStore:wd,useId:Wd,useHostTransitionStatus:ws,useFormState:Ud,useActionState:Ud,useOptimistic:function(e,n){var i=nt();return Od(i,Qe,e,n)},useMemoCache:ps,useCacheRefresh:em};Ts.useEffectEvent=Fd;var rm={readContext:pt,use:Pa,useCallback:Zd,useContext:pt,useEffect:xs,useImperativeHandle:Xd,useInsertionEffect:Gd,useLayoutEffect:Yd,useMemo:Id,useReducer:ys,useRef:qd,useState:function(){return ys(Un)},useDebugValue:Ss,useDeferredValue:function(e,n){var i=nt();return Qe===null?ks(i,e,n):Kd(i,Qe.memoizedState,e,n)},useTransition:function(){var e=ys(Un)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:Sr(e),n]},useSyncExternalStore:wd,useId:Wd,useHostTransitionStatus:ws,useFormState:Hd,useActionState:Hd,useOptimistic:function(e,n){var i=nt();return Qe!==null?Od(i,Qe,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:ps,useCacheRefresh:em};rm.useEffectEvent=Fd;function As(e,n,i,u){n=e.memoizedState,i=i(u,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var zs={enqueueSetState:function(e,n,i){e=e._reactInternals;var u=Zt(),f=al(u);f.payload=n,i!=null&&(f.callback=i),n=ul(e,f,u),n!==null&&(jt(n,e,u),yr(n,e,u))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var u=Zt(),f=al(u);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=ul(e,f,u),n!==null&&(jt(n,e,u),yr(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=Zt(),u=al(i);u.tag=2,n!=null&&(u.callback=n),n=ul(e,u,i),n!==null&&(jt(n,e,i),yr(n,e,i))}};function am(e,n,i,u,f,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,b):n.prototype&&n.prototype.isPureReactComponent?!sr(i,u)||!sr(f,h):!0}function um(e,n,i,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,u),n.state!==e&&zs.enqueueReplaceState(n,n.state,null)}function Yl(e,n){var i=n;if("ref"in n){i={};for(var u in n)u!=="ref"&&(i[u]=n[u])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function om(e){_a(e)}function sm(e){console.error(e)}function cm(e){_a(e)}function nu(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function fm(e,n,i){try{var u=e.onCaughtError;u(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Rs(e,n,i){return i=al(i),i.tag=3,i.payload={element:null},i.callback=function(){nu(e,n)},i}function hm(e){return e=al(e),e.tag=3,e}function dm(e,n,i,u){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;e.payload=function(){return f(h)},e.callback=function(){fm(n,i,u)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){fm(n,i,u),typeof f!="function"&&(dl===null?dl=new Set([this]):dl.add(this));var S=u.stack;this.componentDidCatch(u.value,{componentStack:S!==null?S:""})})}function J1(e,n,i,u,f){if(i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=i.alternate,n!==null&&Ei(n,i,f,!0),i=Gt.current,i!==null){switch(i.tag){case 31:case 13:return an===null?mu():i.alternate===null&&et===0&&(et=3),i.flags&=-257,i.flags|=65536,i.lanes=f,u===Ga?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([u]):n.add(u),ec(e,u,f)),!1;case 22:return i.flags|=65536,u===Ga?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([u]):i.add(u)),ec(e,u,f)),!1}throw Error(a(435,i.tag))}return ec(e,u,f),mu(),!1}if(_e)return n=Gt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,u!==Io&&(e=Error(a(422),{cause:u}),hr(tn(e,i)))):(u!==Io&&(n=Error(a(423),{cause:u}),hr(tn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=tn(u,i),f=Rs(e.stateNode,u,f),rs(e,f),et!==4&&(et=2)),!1;var h=Error(a(520),{cause:u});if(h=tn(h,i),Dr===null?Dr=[h]:Dr.push(h),et!==4&&(et=2),n===null)return!0;u=tn(u,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=Rs(i.stateNode,u,e),rs(i,e),!1;case 1:if(n=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(dl===null||!dl.has(h))))return i.flags|=65536,f&=-f,i.lanes|=f,f=hm(f),dm(f,e,i,u),rs(i,f),!1}i=i.return}while(i!==null);return!1}var Os=Error(a(461)),rt=!1;function gt(e,n,i,u){n.child=e===null?yd(n,null,i,u):Fl(n,e.child,i,u)}function mm(e,n,i,u,f){i=i.render;var h=n.ref;if("ref"in u){var b={};for(var S in u)S!=="ref"&&(b[S]=u[S])}else b=u;return Bl(n),u=fs(e,n,i,b,h,f),S=hs(),e!==null&&!rt?(ds(e,n,f),Bn(e,n,f)):(_e&&S&&Xo(n),n.flags|=1,gt(e,n,u,f),n.child)}function pm(e,n,i,u,f){if(e===null){var h=i.type;return typeof h=="function"&&!Go(h)&&h.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=h,gm(e,n,h,u,f)):(e=Ua(i.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!Bs(e,f)){var b=h.memoizedProps;if(i=i.compare,i=i!==null?i:sr,i(b,u)&&e.ref===n.ref)return Bn(e,n,f)}return n.flags|=1,e=Mn(h,u),e.ref=n.ref,e.return=n,n.child=e}function gm(e,n,i,u,f){if(e!==null){var h=e.memoizedProps;if(sr(h,u)&&e.ref===n.ref)if(rt=!1,n.pendingProps=u=h,Bs(e,f))(e.flags&131072)!==0&&(rt=!0);else return n.lanes=e.lanes,Bn(e,n,f)}return Ds(e,n,i,u,f)}function ym(e,n,i,u){var f=u.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|i:i,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,n.child=null;return bm(e,n,h,i,u)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qa(n,h!==null?h.cachePool:null),h!==null?xd(n,h):us(),Sd(n);else return u=n.lanes=536870912,bm(e,n,h!==null?h.baseLanes|i:i,i,u)}else h!==null?(Qa(n,h.cachePool),xd(n,h),sl(),n.memoizedState=null):(e!==null&&Qa(n,null),us(),sl());return gt(e,n,f,i),n.child}function wr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function bm(e,n,i,u,f){var h=ts();return h=h===null?null:{parent:lt._currentValue,pool:h},n.memoizedState={baseLanes:i,cachePool:h},e!==null&&Qa(n,null),us(),Sd(n),e!==null&&Ei(e,n,u,!0),n.childLanes=f,null}function lu(e,n){return n=ru({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function vm(e,n,i){return Fl(n,e.child,null,i),e=lu(n,n.pendingProps),e.flags|=2,Yt(n),n.memoizedState=null,e}function P1(e,n,i){var u=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(_e){if(u.mode==="hidden")return e=lu(n,u),n.lanes=536870912,wr(null,e);if(ss(n),(e=Ke)?(e=Dp(e,rn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:tl!==null?{id:Sn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},i=nd(e),i.return=n,n.child=i,mt=n,Ke=null)):e=null,e===null)throw ll(n);return n.lanes=536870912,null}return lu(n,u)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(ss(n),f)if(n.flags&256)n.flags&=-257,n=vm(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(rt||Ei(e,n,i,!1),f=(i&e.childLanes)!==0,rt||f){if(u=Xe,u!==null&&(b=sh(u,i),b!==0&&b!==h.retryLane))throw h.retryLane=b,Nl(e,b),jt(u,e,b),Os;mu(),n=vm(e,n,i)}else e=h.treeContext,Ke=un(b.nextSibling),mt=n,_e=!0,nl=null,rn=!1,e!==null&&rd(n,e),n=lu(n,u),n.flags|=4096;return n}return e=Mn(e.child,{mode:u.mode,children:u.children}),e.ref=n.ref,n.child=e,e.return=n,e}function iu(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Ds(e,n,i,u,f){return Bl(n),i=fs(e,n,i,u,void 0,f),u=hs(),e!==null&&!rt?(ds(e,n,f),Bn(e,n,f)):(_e&&u&&Xo(n),n.flags|=1,gt(e,n,i,f),n.child)}function xm(e,n,i,u,f,h){return Bl(n),n.updateQueue=null,i=Ed(n,u,i,f),kd(e),u=hs(),e!==null&&!rt?(ds(e,n,h),Bn(e,n,h)):(_e&&u&&Xo(n),n.flags|=1,gt(e,n,i,h),n.child)}function Sm(e,n,i,u,f){if(Bl(n),n.stateNode===null){var h=vi,b=i.contextType;typeof b=="object"&&b!==null&&(h=pt(b)),h=new i(u,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=zs,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=u,h.state=n.memoizedState,h.refs={},ls(n),b=i.contextType,h.context=typeof b=="object"&&b!==null?pt(b):vi,h.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(As(n,i,b,u),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&zs.enqueueReplaceState(h,h.state,null),vr(n,u,h,f),br(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){h=n.stateNode;var S=n.memoizedProps,C=Yl(i,S);h.props=C;var L=h.context,G=i.contextType;b=vi,typeof G=="object"&&G!==null&&(b=pt(G));var I=i.getDerivedStateFromProps;G=typeof I=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,G||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||L!==b)&&um(n,h,u,b),rl=!1;var U=n.memoizedState;h.state=U,vr(n,u,h,f),br(),L=n.memoizedState,S||U!==L||rl?(typeof I=="function"&&(As(n,i,I,u),L=n.memoizedState),(C=rl||am(n,i,C,u,U,L,b))?(G||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=L),h.props=u,h.state=L,h.context=b,u=C):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{h=n.stateNode,is(e,n),b=n.memoizedProps,G=Yl(i,b),h.props=G,I=n.pendingProps,U=h.context,L=i.contextType,C=vi,typeof L=="object"&&L!==null&&(C=pt(L)),S=i.getDerivedStateFromProps,(L=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==I||U!==C)&&um(n,h,u,C),rl=!1,U=n.memoizedState,h.state=U,vr(n,u,h,f),br();var F=n.memoizedState;b!==I||U!==F||rl||e!==null&&e.dependencies!==null&&Ha(e.dependencies)?(typeof S=="function"&&(As(n,i,S,u),F=n.memoizedState),(G=rl||am(n,i,G,u,U,F,C)||e!==null&&e.dependencies!==null&&Ha(e.dependencies))?(L||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,F,C),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,F,C)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=F),h.props=u,h.state=F,h.context=C,u=G):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(n.flags|=1024),u=!1)}return h=u,iu(e,n),u=(n.flags&128)!==0,h||u?(h=n.stateNode,i=u&&typeof i.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&u?(n.child=Fl(n,e.child,null,f),n.child=Fl(n,null,i,f)):gt(e,n,i,f),n.memoizedState=h.state,e=n.child):e=Bn(e,n,f),e}function km(e,n,i,u){return jl(),n.flags|=256,gt(e,n,i,u),n.child}var Ms={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _s(e){return{baseLanes:e,cachePool:fd()}}function Ns(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=Xt),e}function Em(e,n,i){var u=n.pendingProps,f=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),b&&(f=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(_e){if(f?ol(n):sl(),(e=Ke)?(e=Dp(e,rn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:tl!==null?{id:Sn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},i=nd(e),i.return=n,n.child=i,mt=n,Ke=null)):e=null,e===null)throw ll(n);return gc(e)?n.lanes=32:n.lanes=536870912,null}var S=u.children;return u=u.fallback,f?(sl(),f=n.mode,S=ru({mode:"hidden",children:S},f),u=Ll(u,f,i,null),S.return=n,u.return=n,S.sibling=u,n.child=S,u=n.child,u.memoizedState=_s(i),u.childLanes=Ns(e,b,i),n.memoizedState=Ms,wr(null,u)):(ol(n),Ls(n,S))}var C=e.memoizedState;if(C!==null&&(S=C.dehydrated,S!==null)){if(h)n.flags&256?(ol(n),n.flags&=-257,n=js(e,n,i)):n.memoizedState!==null?(sl(),n.child=e.child,n.flags|=128,n=null):(sl(),S=u.fallback,f=n.mode,u=ru({mode:"visible",children:u.children},f),S=Ll(S,f,i,null),S.flags|=2,u.return=n,S.return=n,u.sibling=S,n.child=u,Fl(n,e.child,null,i),u=n.child,u.memoizedState=_s(i),u.childLanes=Ns(e,b,i),n.memoizedState=Ms,n=wr(null,u));else if(ol(n),gc(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var L=b.dgst;b=L,u=Error(a(419)),u.stack="",u.digest=b,hr({value:u,source:null,stack:null}),n=js(e,n,i)}else if(rt||Ei(e,n,i,!1),b=(i&e.childLanes)!==0,rt||b){if(b=Xe,b!==null&&(u=sh(b,i),u!==0&&u!==C.retryLane))throw C.retryLane=u,Nl(e,u),jt(b,e,u),Os;pc(S)||mu(),n=js(e,n,i)}else pc(S)?(n.flags|=192,n.child=e.child,n=null):(e=C.treeContext,Ke=un(S.nextSibling),mt=n,_e=!0,nl=null,rn=!1,e!==null&&rd(n,e),n=Ls(n,u.children),n.flags|=4096);return n}return f?(sl(),S=u.fallback,f=n.mode,C=e.child,L=C.sibling,u=Mn(C,{mode:"hidden",children:u.children}),u.subtreeFlags=C.subtreeFlags&65011712,L!==null?S=Mn(L,S):(S=Ll(S,f,i,null),S.flags|=2),S.return=n,u.return=n,u.sibling=S,n.child=u,wr(null,u),u=n.child,S=e.child.memoizedState,S===null?S=_s(i):(f=S.cachePool,f!==null?(C=lt._currentValue,f=f.parent!==C?{parent:C,pool:C}:f):f=fd(),S={baseLanes:S.baseLanes|i,cachePool:f}),u.memoizedState=S,u.childLanes=Ns(e,b,i),n.memoizedState=Ms,wr(e.child,u)):(ol(n),i=e.child,e=i.sibling,i=Mn(i,{mode:"visible",children:u.children}),i.return=n,i.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=i,n.memoizedState=null,i)}function Ls(e,n){return n=ru({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function ru(e,n){return e=Ft(22,e,null,n),e.lanes=0,e}function js(e,n,i){return Fl(n,e.child,null,i),e=Ls(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function wm(e,n,i){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),Po(e.return,n,i)}function Us(e,n,i,u,f,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:f,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=i,b.tailMode=f,b.treeForkCount=h)}function Cm(e,n,i){var u=n.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var b=tt.current,S=(b&2)!==0;if(S?(b=b&1|2,n.flags|=128):b&=1,E(tt,b),gt(e,n,u,i),u=_e?fr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wm(e,i,n);else if(e.tag===19)wm(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&Za(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Us(n,!1,f,i,h,u);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&Za(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Us(n,!0,i,null,h,u);break;case"together":Us(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}function Bn(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),hl|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(Ei(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,i=Mn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Mn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Bs(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ha(e)))}function $1(e,n,i){switch(n.tag){case 3:Ye(n,n.stateNode.containerInfo),il(n,lt,e.memoizedState.cache),jl();break;case 27:case 5:kt(n);break;case 4:Ye(n,n.stateNode.containerInfo);break;case 10:il(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,ss(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(ol(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Em(e,n,i):(ol(n),e=Bn(e,n,i),e!==null?e.sibling:null);ol(n);break;case 19:var f=(e.flags&128)!==0;if(u=(i&n.childLanes)!==0,u||(Ei(e,n,i,!1),u=(i&n.childLanes)!==0),f){if(u)return Cm(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),E(tt,tt.current),u)break;return null;case 22:return n.lanes=0,ym(e,n,i,n.pendingProps);case 24:il(n,lt,e.memoizedState.cache)}return Bn(e,n,i)}function Tm(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)rt=!0;else{if(!Bs(e,i)&&(n.flags&128)===0)return rt=!1,$1(e,n,i);rt=(e.flags&131072)!==0}else rt=!1,_e&&(n.flags&1048576)!==0&&id(n,fr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(e=ql(n.elementType),n.type=e,typeof e=="function")Go(e)?(u=Yl(e,u),n.tag=1,n=Sm(null,n,e,u,i)):(n.tag=0,n=Ds(null,n,e,u,i));else{if(e!=null){var f=e.$$typeof;if(f===W){n.tag=11,n=mm(null,n,e,u,i);break e}else if(f===J){n.tag=14,n=pm(null,n,e,u,i);break e}}throw n=ue(e)||e,Error(a(306,n,""))}}return n;case 0:return Ds(e,n,n.type,n.pendingProps,i);case 1:return u=n.type,f=Yl(u,n.pendingProps),Sm(e,n,u,f,i);case 3:e:{if(Ye(n,n.stateNode.containerInfo),e===null)throw Error(a(387));u=n.pendingProps;var h=n.memoizedState;f=h.element,is(e,n),vr(n,u,null,i);var b=n.memoizedState;if(u=b.cache,il(n,lt,u),u!==h.cache&&$o(n,[lt],i,!0),br(),u=b.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=km(e,n,u,i);break e}else if(u!==f){f=tn(Error(a(424)),n),hr(f),n=km(e,n,u,i);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ke=un(e.firstChild),mt=n,_e=!0,nl=null,rn=!0,i=yd(n,null,u,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(jl(),u===f){n=Bn(e,n,i);break e}gt(e,n,u,i)}n=n.child}return n;case 26:return iu(e,n),e===null?(i=Up(n.type,null,n.pendingProps,null))?n.memoizedState=i:_e||(i=n.type,e=n.pendingProps,u=Su(re.current).createElement(i),u[dt]=n,u[Ot]=e,yt(u,i,e),ft(u),n.stateNode=u):n.memoizedState=Up(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return kt(n),e===null&&_e&&(u=n.stateNode=Np(n.type,n.pendingProps,re.current),mt=n,rn=!0,f=Ke,yl(n.type)?(yc=f,Ke=un(u.firstChild)):Ke=f),gt(e,n,n.pendingProps.children,i),iu(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&_e&&((f=u=Ke)&&(u=z0(u,n.type,n.pendingProps,rn),u!==null?(n.stateNode=u,mt=n,Ke=un(u.firstChild),rn=!1,f=!0):f=!1),f||ll(n)),kt(n),f=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,u=h.children,hc(f,h)?u=null:b!==null&&hc(f,b)&&(n.flags|=32),n.memoizedState!==null&&(f=fs(e,n,G1,null,null,i),Hr._currentValue=f),iu(e,n),gt(e,n,u,i),n.child;case 6:return e===null&&_e&&((e=i=Ke)&&(i=R0(i,n.pendingProps,rn),i!==null?(n.stateNode=i,mt=n,Ke=null,e=!0):e=!1),e||ll(n)),null;case 13:return Em(e,n,i);case 4:return Ye(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Fl(n,null,u,i):gt(e,n,u,i),n.child;case 11:return mm(e,n,n.type,n.pendingProps,i);case 7:return gt(e,n,n.pendingProps,i),n.child;case 8:return gt(e,n,n.pendingProps.children,i),n.child;case 12:return gt(e,n,n.pendingProps.children,i),n.child;case 10:return u=n.pendingProps,il(n,n.type,u.value),gt(e,n,u.children,i),n.child;case 9:return f=n.type._context,u=n.pendingProps.children,Bl(n),f=pt(f),u=u(f),n.flags|=1,gt(e,n,u,i),n.child;case 14:return pm(e,n,n.type,n.pendingProps,i);case 15:return gm(e,n,n.type,n.pendingProps,i);case 19:return Cm(e,n,i);case 31:return P1(e,n,i);case 22:return ym(e,n,i,n.pendingProps);case 24:return Bl(n),u=pt(lt),e===null?(f=ts(),f===null&&(f=Xe,h=Wo(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=i),f=h),n.memoizedState={parent:u,cache:f},ls(n),il(n,lt,f)):((e.lanes&i)!==0&&(is(e,n),vr(n,null,null,i),br()),f=e.memoizedState,h=n.memoizedState,f.parent!==u?(f={parent:u,cache:u},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),il(n,lt,u)):(u=h.cache,il(n,lt,u),u!==f.cache&&$o(n,[lt],i,!0))),gt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function Hn(e){e.flags|=4}function Hs(e,n,i,u,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(Wm())e.flags|=8192;else throw Ql=Ga,ns}else e.flags&=-16777217}function Am(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fp(n))if(Wm())e.flags|=8192;else throw Ql=Ga,ns}function au(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ah():536870912,e.lanes|=n,Li|=n)}function Cr(e,n){if(!_e)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Je(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,u=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=i,n}function W1(e,n,i){var u=n.pendingProps;switch(Zo(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(n),null;case 1:return Je(n),null;case 3:return i=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),Ln(lt),ve(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ki(n)?Hn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ko())),Je(n),null;case 26:var f=n.type,h=n.memoizedState;return e===null?(Hn(n),h!==null?(Je(n),Am(n,h)):(Je(n),Hs(n,f,null,u,i))):h?h!==e.memoizedState?(Hn(n),Je(n),Am(n,h)):(Je(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&Hn(n),Je(n),Hs(n,f,e,u,i)),null;case 27:if(At(n),i=re.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Hn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return Je(n),null}e=le.current,ki(n)?ad(n):(e=Np(f,u,i),n.stateNode=e,Hn(n))}return Je(n),null;case 5:if(At(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Hn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return Je(n),null}if(h=le.current,ki(n))ad(n);else{var b=Su(re.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?b.createElement(f,{is:u.is}):b.createElement(f)}}h[dt]=n,h[Ot]=u;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(yt(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Hn(n)}}return Je(n),Hs(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&Hn(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(a(166));if(e=re.current,ki(n)){if(e=n.stateNode,i=n.memoizedProps,u=null,f=mt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[dt]=n,e=!!(e.nodeValue===i||u!==null&&u.suppressHydrationWarning===!0||Ep(e.nodeValue,i)),e||ll(n,!0)}else e=Su(e).createTextNode(u),e[dt]=n,n.stateNode=e}return Je(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(u=ki(n),i!==null){if(e===null){if(!u)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[dt]=n}else jl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),e=!1}else i=Ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Yt(n),n):(Yt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return Je(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=ki(n),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[dt]=n}else jl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),f=!1}else f=Ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Yt(n),n):(Yt(n),null)}return Yt(n),(n.flags&128)!==0?(n.lanes=i,n):(i=u!==null,e=e!==null&&e.memoizedState!==null,i&&(u=n.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),au(n,n.updateQueue),Je(n),null);case 4:return ve(),e===null&&uc(n.stateNode.containerInfo),Je(n),null;case 10:return Ln(n.type),Je(n),null;case 19:if(Y(tt),u=n.memoizedState,u===null)return Je(n),null;if(f=(n.flags&128)!==0,h=u.rendering,h===null)if(f)Cr(u,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=Za(e),h!==null){for(n.flags|=128,Cr(u,!1),e=h.updateQueue,n.updateQueue=e,au(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)td(i,e),i=i.sibling;return E(tt,tt.current&1|2),_e&&_n(n,u.treeForkCount),n.child}e=e.sibling}u.tail!==null&&Et()>fu&&(n.flags|=128,f=!0,Cr(u,!1),n.lanes=4194304)}else{if(!f)if(e=Za(h),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,au(n,e),Cr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!_e)return Je(n),null}else 2*Et()-u.renderingStartTime>fu&&i!==536870912&&(n.flags|=128,f=!0,Cr(u,!1),n.lanes=4194304);u.isBackwards?(h.sibling=n.child,n.child=h):(e=u.last,e!==null?e.sibling=h:n.child=h,u.last=h)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=Et(),e.sibling=null,i=tt.current,E(tt,f?i&1|2:i&1),_e&&_n(n,u.treeForkCount),e):(Je(n),null);case 22:case 23:return Yt(n),os(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(i&536870912)!==0&&(n.flags&128)===0&&(Je(n),n.subtreeFlags&6&&(n.flags|=8192)):Je(n),i=n.updateQueue,i!==null&&au(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048),e!==null&&Y(Hl),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Ln(lt),Je(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function e0(e,n){switch(Zo(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Ln(lt),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return At(n),null;case 31:if(n.memoizedState!==null){if(Yt(n),n.alternate===null)throw Error(a(340));jl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Yt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));jl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Y(tt),null;case 4:return ve(),null;case 10:return Ln(n.type),null;case 22:case 23:return Yt(n),os(),e!==null&&Y(Hl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Ln(lt),null;case 25:return null;default:return null}}function zm(e,n){switch(Zo(n),n.tag){case 3:Ln(lt),ve();break;case 26:case 27:case 5:At(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&Yt(n);break;case 13:Yt(n);break;case 19:Y(tt);break;case 10:Ln(n.type);break;case 22:case 23:Yt(n),os(),e!==null&&Y(Hl);break;case 24:Ln(lt)}}function Tr(e,n){try{var i=n.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var f=u.next;i=f;do{if((i.tag&e)===e){u=void 0;var h=i.create,b=i.inst;u=h(),b.destroy=u}i=i.next}while(i!==f)}}catch(S){qe(n,n.return,S)}}function cl(e,n,i){try{var u=n.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&e)===e){var b=u.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,f=n;var C=i,L=S;try{L()}catch(G){qe(f,C,G)}}}u=u.next}while(u!==h)}}catch(G){qe(n,n.return,G)}}function Rm(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{vd(n,i)}catch(u){qe(e,e.return,u)}}}function Om(e,n,i){i.props=Yl(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(u){qe(e,n,u)}}function Ar(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof i=="function"?e.refCleanup=i(u):i.current=u}}catch(f){qe(e,n,f)}}function En(e,n){var i=e.ref,u=e.refCleanup;if(i!==null)if(typeof u=="function")try{u()}catch(f){qe(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){qe(e,n,f)}else i.current=null}function Dm(e){var n=e.type,i=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&u.focus();break e;case"img":i.src?u.src=i.src:i.srcSet&&(u.srcset=i.srcSet)}}catch(f){qe(e,e.return,f)}}function qs(e,n,i){try{var u=e.stateNode;k0(u,e.type,i,n),u[Ot]=n}catch(f){qe(e,e.return,f)}}function Mm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&yl(e.type)||e.tag===4}function Qs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mm(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.tag===27&&yl(e.type)||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 Fs(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=On));else if(u!==4&&(u===27&&yl(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Fs(e,n,i),e=e.sibling;e!==null;)Fs(e,n,i),e=e.sibling}function uu(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(u!==4&&(u===27&&yl(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(uu(e,n,i),e=e.sibling;e!==null;)uu(e,n,i),e=e.sibling}function _m(e){var n=e.stateNode,i=e.memoizedProps;try{for(var u=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);yt(n,u,i),n[dt]=e,n[Ot]=i}catch(h){qe(e,e.return,h)}}var qn=!1,at=!1,Gs=!1,Nm=typeof WeakSet=="function"?WeakSet:Set,ht=null;function t0(e,n){if(e=e.containerInfo,cc=zu,e=Xh(e),jo(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var b=0,S=-1,C=-1,L=0,G=0,I=e,U=null;t:for(;;){for(var F;I!==i||f!==0&&I.nodeType!==3||(S=b+f),I!==h||u!==0&&I.nodeType!==3||(C=b+u),I.nodeType===3&&(b+=I.nodeValue.length),(F=I.firstChild)!==null;)U=I,I=F;for(;;){if(I===e)break t;if(U===i&&++L===f&&(S=b),U===h&&++G===u&&(C=b),(F=I.nextSibling)!==null)break;I=U,U=I.parentNode}I=F}i=S===-1||C===-1?null:{start:S,end:C}}else i=null}i=i||{start:0,end:0}}else i=null;for(fc={focusedElem:e,selectionRange:i},zu=!1,ht=n;ht!==null;)if(n=ht,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ht=e;else for(;ht!==null;){switch(n=ht,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,i=n,f=h.memoizedProps,h=h.memoizedState,u=i.stateNode;try{var fe=Yl(i.type,f);e=u.getSnapshotBeforeUpdate(fe,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(ge){qe(i,i.return,ge)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)mc(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":mc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=n.sibling,e!==null){e.return=n.return,ht=e;break}ht=n.return}}function Lm(e,n,i){var u=i.flags;switch(i.tag){case 0:case 11:case 15:Fn(e,i),u&4&&Tr(5,i);break;case 1:if(Fn(e,i),u&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(b){qe(i,i.return,b)}else{var f=Yl(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){qe(i,i.return,b)}}u&64&&Rm(i),u&512&&Ar(i,i.return);break;case 3:if(Fn(e,i),u&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{vd(e,n)}catch(b){qe(i,i.return,b)}}break;case 27:n===null&&u&4&&_m(i);case 26:case 5:Fn(e,i),n===null&&u&4&&Dm(i),u&512&&Ar(i,i.return);break;case 12:Fn(e,i);break;case 31:Fn(e,i),u&4&&Bm(e,i);break;case 13:Fn(e,i),u&4&&Hm(e,i),u&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=c0.bind(null,i),O0(e,i))));break;case 22:if(u=i.memoizedState!==null||qn,!u){n=n!==null&&n.memoizedState!==null||at,f=qn;var h=at;qn=u,(at=n)&&!h?Gn(e,i,(i.subtreeFlags&8772)!==0):Fn(e,i),qn=f,at=h}break;case 30:break;default:Fn(e,i)}}function jm(e){var n=e.alternate;n!==null&&(e.alternate=null,jm(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&vo(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var $e=null,Mt=!1;function Qn(e,n,i){for(i=i.child;i!==null;)Um(e,n,i),i=i.sibling}function Um(e,n,i){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(wt,i)}catch{}switch(i.tag){case 26:at||En(i,n),Qn(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:at||En(i,n);var u=$e,f=Mt;yl(i.type)&&($e=i.stateNode,Mt=!1),Qn(e,n,i),jr(i.stateNode),$e=u,Mt=f;break;case 5:at||En(i,n);case 6:if(u=$e,f=Mt,$e=null,Qn(e,n,i),$e=u,Mt=f,$e!==null)if(Mt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(i.stateNode)}catch(h){qe(i,n,h)}else try{$e.removeChild(i.stateNode)}catch(h){qe(i,n,h)}break;case 18:$e!==null&&(Mt?(e=$e,Rp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Gi(e)):Rp($e,i.stateNode));break;case 4:u=$e,f=Mt,$e=i.stateNode.containerInfo,Mt=!0,Qn(e,n,i),$e=u,Mt=f;break;case 0:case 11:case 14:case 15:cl(2,i,n),at||cl(4,i,n),Qn(e,n,i);break;case 1:at||(En(i,n),u=i.stateNode,typeof u.componentWillUnmount=="function"&&Om(i,n,u)),Qn(e,n,i);break;case 21:Qn(e,n,i);break;case 22:at=(u=at)||i.memoizedState!==null,Qn(e,n,i),at=u;break;default:Qn(e,n,i)}}function Bm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gi(e)}catch(i){qe(n,n.return,i)}}}function Hm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gi(e)}catch(i){qe(n,n.return,i)}}function n0(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Nm),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Nm),n;default:throw Error(a(435,e.tag))}}function ou(e,n){var i=n0(e);n.forEach(function(u){if(!i.has(u)){i.add(u);var f=f0.bind(null,e,u);u.then(f,f)}})}function _t(e,n){var i=n.deletions;if(i!==null)for(var u=0;u<i.length;u++){var f=i[u],h=e,b=n,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(yl(S.type)){$e=S.stateNode,Mt=!1;break e}break;case 5:$e=S.stateNode,Mt=!1;break e;case 3:case 4:$e=S.stateNode.containerInfo,Mt=!0;break e}S=S.return}if($e===null)throw Error(a(160));Um(h,b,f),$e=null,Mt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)qm(n,e),n=n.sibling}var dn=null;function qm(e,n){var i=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_t(n,e),Nt(e),u&4&&(cl(3,e,e.return),Tr(3,e),cl(5,e,e.return));break;case 1:_t(n,e),Nt(e),u&512&&(at||i===null||En(i,i.return)),u&64&&qn&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?u:i.concat(u))));break;case 26:var f=dn;if(_t(n,e),Nt(e),u&512&&(at||i===null||En(i,i.return)),u&4){var h=i!==null?i.memoizedState:null;if(u=e.memoizedState,i===null)if(u===null)if(e.stateNode===null){e:{u=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[er]||h[dt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),yt(h,u,i),h[dt]=e,ft(h),u=h;break e;case"link":var b=qp("link","href",f).get(u+(i.href||""));if(b){for(var S=0;S<b.length;S++)if(h=b[S],h.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&h.getAttribute("rel")===(i.rel==null?null:i.rel)&&h.getAttribute("title")===(i.title==null?null:i.title)&&h.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(S,1);break t}}h=f.createElement(u),yt(h,u,i),f.head.appendChild(h);break;case"meta":if(b=qp("meta","content",f).get(u+(i.content||""))){for(S=0;S<b.length;S++)if(h=b[S],h.getAttribute("content")===(i.content==null?null:""+i.content)&&h.getAttribute("name")===(i.name==null?null:i.name)&&h.getAttribute("property")===(i.property==null?null:i.property)&&h.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&h.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(S,1);break t}}h=f.createElement(u),yt(h,u,i),f.head.appendChild(h);break;default:throw Error(a(468,u))}h[dt]=e,ft(h),u=h}e.stateNode=u}else Qp(f,e.type,e.stateNode);else e.stateNode=Hp(f,u,e.memoizedProps);else h!==u?(h===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):h.count--,u===null?Qp(f,e.type,e.stateNode):Hp(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&qs(e,e.memoizedProps,i.memoizedProps)}break;case 27:_t(n,e),Nt(e),u&512&&(at||i===null||En(i,i.return)),i!==null&&u&4&&qs(e,e.memoizedProps,i.memoizedProps);break;case 5:if(_t(n,e),Nt(e),u&512&&(at||i===null||En(i,i.return)),e.flags&32){f=e.stateNode;try{hi(f,"")}catch(fe){qe(e,e.return,fe)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,qs(e,f,i!==null?i.memoizedProps:f)),u&1024&&(Gs=!0);break;case 6:if(_t(n,e),Nt(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,i=e.stateNode;try{i.nodeValue=u}catch(fe){qe(e,e.return,fe)}}break;case 3:if(wu=null,f=dn,dn=ku(n.containerInfo),_t(n,e),dn=f,Nt(e),u&4&&i!==null&&i.memoizedState.isDehydrated)try{Gi(n.containerInfo)}catch(fe){qe(e,e.return,fe)}Gs&&(Gs=!1,Qm(e));break;case 4:u=dn,dn=ku(e.stateNode.containerInfo),_t(n,e),Nt(e),dn=u;break;case 12:_t(n,e),Nt(e);break;case 31:_t(n,e),Nt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ou(e,u)));break;case 13:_t(n,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(cu=Et()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ou(e,u)));break;case 22:f=e.memoizedState!==null;var C=i!==null&&i.memoizedState!==null,L=qn,G=at;if(qn=L||f,at=G||C,_t(n,e),at=G,qn=L,Nt(e),u&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||C||qn||at||Vl(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){C=i=n;try{if(h=C.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=C.stateNode;var I=C.memoizedProps.style,U=I!=null&&I.hasOwnProperty("display")?I.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(fe){qe(C,C.return,fe)}}}else if(n.tag===6){if(i===null){C=n;try{C.stateNode.nodeValue=f?"":C.memoizedProps}catch(fe){qe(C,C.return,fe)}}}else if(n.tag===18){if(i===null){C=n;try{var F=C.stateNode;f?Op(F,!0):Op(C.stateNode,!1)}catch(fe){qe(C,C.return,fe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(i=u.retryQueue,i!==null&&(u.retryQueue=null,ou(e,i))));break;case 19:_t(n,e),Nt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ou(e,u)));break;case 30:break;case 21:break;default:_t(n,e),Nt(e)}}function Nt(e){var n=e.flags;if(n&2){try{for(var i,u=e.return;u!==null;){if(Mm(u)){i=u;break}u=u.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,h=Qs(e);uu(e,h,f);break;case 5:var b=i.stateNode;i.flags&32&&(hi(b,""),i.flags&=-33);var S=Qs(e);uu(e,S,b);break;case 3:case 4:var C=i.stateNode.containerInfo,L=Qs(e);Fs(e,L,C);break;default:throw Error(a(161))}}catch(G){qe(e,e.return,G)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Qm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Qm(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Fn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Lm(e,n.alternate,n),n=n.sibling}function Vl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:cl(4,n,n.return),Vl(n);break;case 1:En(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Om(n,n.return,i),Vl(n);break;case 27:jr(n.stateNode);case 26:case 5:En(n,n.return),Vl(n);break;case 22:n.memoizedState===null&&Vl(n);break;case 30:Vl(n);break;default:Vl(n)}e=e.sibling}}function Gn(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,f=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:Gn(f,h,i),Tr(4,h);break;case 1:if(Gn(f,h,i),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(L){qe(u,u.return,L)}if(u=h,f=u.updateQueue,f!==null){var S=u.stateNode;try{var C=f.shared.hiddenCallbacks;if(C!==null)for(f.shared.hiddenCallbacks=null,f=0;f<C.length;f++)bd(C[f],S)}catch(L){qe(u,u.return,L)}}i&&b&64&&Rm(h),Ar(h,h.return);break;case 27:_m(h);case 26:case 5:Gn(f,h,i),i&&u===null&&b&4&&Dm(h),Ar(h,h.return);break;case 12:Gn(f,h,i);break;case 31:Gn(f,h,i),i&&b&4&&Bm(f,h);break;case 13:Gn(f,h,i),i&&b&4&&Hm(f,h);break;case 22:h.memoizedState===null&&Gn(f,h,i),Ar(h,h.return);break;case 30:break;default:Gn(f,h,i)}n=n.sibling}}function Ys(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&dr(i))}function Vs(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&dr(e))}function mn(e,n,i,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Fm(e,n,i,u),n=n.sibling}function Fm(e,n,i,u){var f=n.flags;switch(n.tag){case 0:case 11:case 15:mn(e,n,i,u),f&2048&&Tr(9,n);break;case 1:mn(e,n,i,u);break;case 3:mn(e,n,i,u),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&dr(e)));break;case 12:if(f&2048){mn(e,n,i,u),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,S=h.onPostCommit;typeof S=="function"&&S(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){qe(n,n.return,C)}}else mn(e,n,i,u);break;case 31:mn(e,n,i,u);break;case 13:mn(e,n,i,u);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?mn(e,n,i,u):zr(e,n):h._visibility&2?mn(e,n,i,u):(h._visibility|=2,Mi(e,n,i,u,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Ys(b,n);break;case 24:mn(e,n,i,u),f&2048&&Vs(n.alternate,n);break;default:mn(e,n,i,u)}}function Mi(e,n,i,u,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,S=i,C=u,L=b.flags;switch(b.tag){case 0:case 11:case 15:Mi(h,b,S,C,f),Tr(8,b);break;case 23:break;case 22:var G=b.stateNode;b.memoizedState!==null?G._visibility&2?Mi(h,b,S,C,f):zr(h,b):(G._visibility|=2,Mi(h,b,S,C,f)),f&&L&2048&&Ys(b.alternate,b);break;case 24:Mi(h,b,S,C,f),f&&L&2048&&Vs(b.alternate,b);break;default:Mi(h,b,S,C,f)}n=n.sibling}}function zr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,u=n,f=u.flags;switch(u.tag){case 22:zr(i,u),f&2048&&Ys(u.alternate,u);break;case 24:zr(i,u),f&2048&&Vs(u.alternate,u);break;default:zr(i,u)}n=n.sibling}}var Rr=8192;function _i(e,n,i){if(e.subtreeFlags&Rr)for(e=e.child;e!==null;)Gm(e,n,i),e=e.sibling}function Gm(e,n,i){switch(e.tag){case 26:_i(e,n,i),e.flags&Rr&&e.memoizedState!==null&&F0(i,dn,e.memoizedState,e.memoizedProps);break;case 5:_i(e,n,i);break;case 3:case 4:var u=dn;dn=ku(e.stateNode.containerInfo),_i(e,n,i),dn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Rr,Rr=16777216,_i(e,n,i),Rr=u):_i(e,n,i));break;default:_i(e,n,i)}}function Ym(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Or(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];ht=u,Xm(u,e)}Ym(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vm(e),e=e.sibling}function Vm(e){switch(e.tag){case 0:case 11:case 15:Or(e),e.flags&2048&&cl(9,e,e.return);break;case 3:Or(e);break;case 12:Or(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,su(e)):Or(e);break;default:Or(e)}}function su(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];ht=u,Xm(u,e)}Ym(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:cl(8,n,n.return),su(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,su(n));break;default:su(n)}e=e.sibling}}function Xm(e,n){for(;ht!==null;){var i=ht;switch(i.tag){case 0:case 11:case 15:cl(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var u=i.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:dr(i.memoizedState.cache)}if(u=i.child,u!==null)u.return=i,ht=u;else e:for(i=e;ht!==null;){u=ht;var f=u.sibling,h=u.return;if(jm(u),u===i){ht=null;break e}if(f!==null){f.return=h,ht=f;break e}ht=h}}}var l0={getCacheForType:function(e){var n=pt(lt),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return pt(lt).controller.signal}},i0=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Xe=null,ze=null,De=0,He=0,Vt=null,fl=!1,Ni=!1,Xs=!1,Yn=0,et=0,hl=0,Xl=0,Zs=0,Xt=0,Li=0,Dr=null,Lt=null,Is=!1,cu=0,Zm=0,fu=1/0,hu=null,dl=null,st=0,ml=null,ji=null,Vn=0,Ks=0,Js=null,Im=null,Mr=0,Ps=null;function Zt(){return(Ue&2)!==0&&De!==0?De&-De:_.T!==null?lc():ch()}function Km(){if(Xt===0)if((De&536870912)===0||_e){var e=xa;xa<<=1,(xa&3932160)===0&&(xa=262144),Xt=e}else Xt=536870912;return e=Gt.current,e!==null&&(e.flags|=32),Xt}function jt(e,n,i){(e===Xe&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Ui(e,0),pl(e,De,Xt,!1)),Wi(e,i),((Ue&2)===0||e!==Xe)&&(e===Xe&&((Ue&2)===0&&(Xl|=i),et===4&&pl(e,De,Xt,!1)),wn(e))}function Jm(e,n,i){if((Ue&6)!==0)throw Error(a(327));var u=!i&&(n&127)===0&&(n&e.expiredLanes)===0||$i(e,n),f=u?u0(e,n):Ws(e,n,!0),h=u;do{if(f===0){Ni&&!u&&pl(e,n,0,!1);break}else{if(i=e.current.alternate,h&&!r0(i)){f=Ws(e,n,!1),h=!1;continue}if(f===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var S=e;f=Dr;var C=S.current.memoizedState.isDehydrated;if(C&&(Ui(S,b).flags|=256),b=Ws(S,b,!1),b!==2){if(Xs&&!C){S.errorRecoveryDisabledLanes|=h,Xl|=h,f=4;break e}h=Lt,Lt=f,h!==null&&(Lt===null?Lt=h:Lt.push.apply(Lt,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){Ui(e,0),pl(e,n,0,!0);break}e:{switch(u=e,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:pl(u,n,Xt,!fl);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=cu+300-Et(),10<f)){if(pl(u,n,Xt,!fl),ka(u,0,!0)!==0)break e;Vn=n,u.timeoutHandle=Ap(Pm.bind(null,u,i,Lt,hu,Is,n,Xt,Xl,Li,fl,h,"Throttled",-0,0),f);break e}Pm(u,i,Lt,hu,Is,n,Xt,Xl,Li,fl,h,null,-0,0)}}break}while(!0);wn(e)}function Pm(e,n,i,u,f,h,b,S,C,L,G,I,U,F){if(e.timeoutHandle=-1,I=n.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:On},Gm(n,h,I);var fe=(h&62914560)===h?cu-Et():(h&4194048)===h?Zm-Et():0;if(fe=G0(I,fe),fe!==null){Vn=h,e.cancelPendingCommit=fe(rp.bind(null,e,n,h,i,u,f,b,S,C,G,I,null,U,F)),pl(e,h,b,!L);return}}rp(e,n,h,i,u,f,b,S,C)}function r0(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var u=0;u<i.length;u++){var f=i[u],h=f.getSnapshot;f=f.value;try{if(!Qt(h(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function pl(e,n,i,u){n&=~Zs,n&=~Xl,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var f=n;0<f;){var h=31-Ve(f),b=1<<h;u[h]=-1,f&=~b}i!==0&&uh(e,i,n)}function du(){return(Ue&6)===0?(_r(0),!1):!0}function $s(){if(ze!==null){if(He===0)var e=ze.return;else e=ze,Nn=Ul=null,ms(e),Ai=null,pr=0,e=ze;for(;e!==null;)zm(e.alternate,e),e=e.return;ze=null}}function Ui(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,C0(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Vn=0,$s(),Xe=e,ze=i=Mn(e.current,null),De=n,He=0,Vt=null,fl=!1,Ni=$i(e,n),Xs=!1,Li=Xt=Zs=Xl=hl=et=0,Lt=Dr=null,Is=!1,(n&8)!==0&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var f=31-Ve(u),h=1<<f;n|=e[f],u&=~h}return Yn=n,Na(),i}function $m(e,n){Ee=null,_.H=Er,n===Ti||n===Fa?(n=md(),He=3):n===ns?(n=md(),He=4):He=n===Os?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Vt=n,ze===null&&(et=1,nu(e,tn(n,e.current)))}function Wm(){var e=Gt.current;return e===null?!0:(De&4194048)===De?an===null:(De&62914560)===De||(De&536870912)!==0?e===an:!1}function ep(){var e=_.H;return _.H=Er,e===null?Er:e}function tp(){var e=_.A;return _.A=l0,e}function mu(){et=4,fl||(De&4194048)!==De&&Gt.current!==null||(Ni=!0),(hl&134217727)===0&&(Xl&134217727)===0||Xe===null||pl(Xe,De,Xt,!1)}function Ws(e,n,i){var u=Ue;Ue|=2;var f=ep(),h=tp();(Xe!==e||De!==n)&&(hu=null,Ui(e,n)),n=!1;var b=et;e:do try{if(He!==0&&ze!==null){var S=ze,C=Vt;switch(He){case 8:$s(),b=6;break e;case 3:case 2:case 9:case 6:Gt.current===null&&(n=!0);var L=He;if(He=0,Vt=null,Bi(e,S,C,L),i&&Ni){b=0;break e}break;default:L=He,He=0,Vt=null,Bi(e,S,C,L)}}a0(),b=et;break}catch(G){$m(e,G)}while(!0);return n&&e.shellSuspendCounter++,Nn=Ul=null,Ue=u,_.H=f,_.A=h,ze===null&&(Xe=null,De=0,Na()),b}function a0(){for(;ze!==null;)np(ze)}function u0(e,n){var i=Ue;Ue|=2;var u=ep(),f=tp();Xe!==e||De!==n?(hu=null,fu=Et()+500,Ui(e,n)):Ni=$i(e,n);e:do try{if(He!==0&&ze!==null){n=ze;var h=Vt;t:switch(He){case 1:He=0,Vt=null,Bi(e,n,h,1);break;case 2:case 9:if(hd(h)){He=0,Vt=null,lp(n);break}n=function(){He!==2&&He!==9||Xe!==e||(He=7),wn(e)},h.then(n,n);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:hd(h)?(He=0,Vt=null,lp(n)):(He=0,Vt=null,Bi(e,n,h,7));break;case 5:var b=null;switch(ze.tag){case 26:b=ze.memoizedState;case 5:case 27:var S=ze;if(b?Fp(b):S.stateNode.complete){He=0,Vt=null;var C=S.sibling;if(C!==null)ze=C;else{var L=S.return;L!==null?(ze=L,pu(L)):ze=null}break t}}He=0,Vt=null,Bi(e,n,h,5);break;case 6:He=0,Vt=null,Bi(e,n,h,6);break;case 8:$s(),et=6;break e;default:throw Error(a(462))}}o0();break}catch(G){$m(e,G)}while(!0);return Nn=Ul=null,_.H=u,_.A=f,Ue=i,ze!==null?0:(Xe=null,De=0,Na(),et)}function o0(){for(;ze!==null&&!fo();)np(ze)}function np(e){var n=Tm(e.alternate,e,Yn);e.memoizedProps=e.pendingProps,n===null?pu(e):ze=n}function lp(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=xm(i,n,n.pendingProps,n.type,void 0,De);break;case 11:n=xm(i,n,n.pendingProps,n.type.render,n.ref,De);break;case 5:ms(n);default:zm(i,n),n=ze=td(n,Yn),n=Tm(i,n,Yn)}e.memoizedProps=e.pendingProps,n===null?pu(e):ze=n}function Bi(e,n,i,u){Nn=Ul=null,ms(n),Ai=null,pr=0;var f=n.return;try{if(J1(e,f,n,i,De)){et=1,nu(e,tn(i,e.current)),ze=null;return}}catch(h){if(f!==null)throw ze=f,h;et=1,nu(e,tn(i,e.current)),ze=null;return}n.flags&32768?(_e||u===1?e=!0:Ni||(De&536870912)!==0?e=!1:(fl=e=!0,(u===2||u===9||u===3||u===6)&&(u=Gt.current,u!==null&&u.tag===13&&(u.flags|=16384))),ip(n,e)):pu(n)}function pu(e){var n=e;do{if((n.flags&32768)!==0){ip(n,fl);return}e=n.return;var i=W1(n.alternate,n,Yn);if(i!==null){ze=i;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);et===0&&(et=5)}function ip(e,n){do{var i=e0(e.alternate,e);if(i!==null){i.flags&=32767,ze=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){ze=e;return}ze=e=i}while(e!==null);et=6,ze=null}function rp(e,n,i,u,f,h,b,S,C){e.cancelPendingCommit=null;do gu();while(st!==0);if((Ue&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(h=n.lanes|n.childLanes,h|=Qo,Qv(e,i,h,b,S,C),e===Xe&&(ze=Xe=null,De=0),ji=n,ml=e,Vn=i,Ks=h,Js=f,Im=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,h0(be,function(){return cp(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=_.T,_.T=null,f=K.p,K.p=2,b=Ue,Ue|=4;try{t0(e,n,i)}finally{Ue=b,K.p=f,_.T=u}}st=1,ap(),up(),op()}}function ap(){if(st===1){st=0;var e=ml,n=ji,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=_.T,_.T=null;var u=K.p;K.p=2;var f=Ue;Ue|=4;try{qm(n,e);var h=fc,b=Xh(e.containerInfo),S=h.focusedElem,C=h.selectionRange;if(b!==S&&S&&S.ownerDocument&&Vh(S.ownerDocument.documentElement,S)){if(C!==null&&jo(S)){var L=C.start,G=C.end;if(G===void 0&&(G=L),"selectionStart"in S)S.selectionStart=L,S.selectionEnd=Math.min(G,S.value.length);else{var I=S.ownerDocument||document,U=I&&I.defaultView||window;if(U.getSelection){var F=U.getSelection(),fe=S.textContent.length,ge=Math.min(C.start,fe),Ge=C.end===void 0?ge:Math.min(C.end,fe);!F.extend&&ge>Ge&&(b=Ge,Ge=ge,ge=b);var D=Yh(S,ge),O=Yh(S,Ge);if(D&&O&&(F.rangeCount!==1||F.anchorNode!==D.node||F.anchorOffset!==D.offset||F.focusNode!==O.node||F.focusOffset!==O.offset)){var N=I.createRange();N.setStart(D.node,D.offset),F.removeAllRanges(),ge>Ge?(F.addRange(N),F.extend(O.node,O.offset)):(N.setEnd(O.node,O.offset),F.addRange(N))}}}}for(I=[],F=S;F=F.parentNode;)F.nodeType===1&&I.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<I.length;S++){var Z=I[S];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}zu=!!cc,fc=cc=null}finally{Ue=f,K.p=u,_.T=i}}e.current=n,st=2}}function up(){if(st===2){st=0;var e=ml,n=ji,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=_.T,_.T=null;var u=K.p;K.p=2;var f=Ue;Ue|=4;try{Lm(e,n.alternate,n)}finally{Ue=f,K.p=u,_.T=i}}st=3}}function op(){if(st===4||st===3){st=0,ho();var e=ml,n=ji,i=Vn,u=Im;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?st=5:(st=0,ji=ml=null,sp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(dl=null),yo(i),n=n.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(wt,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=_.T,f=K.p,K.p=2,_.T=null;try{for(var h=e.onRecoverableError,b=0;b<u.length;b++){var S=u[b];h(S.value,{componentStack:S.stack})}}finally{_.T=n,K.p=f}}(Vn&3)!==0&&gu(),wn(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===Ps?Mr++:(Mr=0,Ps=e):Mr=0,_r(0)}}function sp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,dr(n)))}function gu(){return ap(),up(),op(),cp()}function cp(){if(st!==5)return!1;var e=ml,n=Ks;Ks=0;var i=yo(Vn),u=_.T,f=K.p;try{K.p=32>i?32:i,_.T=null,i=Js,Js=null;var h=ml,b=Vn;if(st=0,ji=ml=null,Vn=0,(Ue&6)!==0)throw Error(a(331));var S=Ue;if(Ue|=4,Vm(h.current),Fm(h,h.current,b,i),Ue=S,_r(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(wt,h)}catch{}return!0}finally{K.p=f,_.T=u,sp(e,n)}}function fp(e,n,i){n=tn(i,n),n=Rs(e.stateNode,n,2),e=ul(e,n,2),e!==null&&(Wi(e,2),wn(e))}function qe(e,n,i){if(e.tag===3)fp(e,e,i);else for(;n!==null;){if(n.tag===3){fp(n,e,i);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(dl===null||!dl.has(u))){e=tn(i,e),i=hm(2),u=ul(n,i,2),u!==null&&(dm(i,u,n,e),Wi(u,2),wn(u));break}}n=n.return}}function ec(e,n,i){var u=e.pingCache;if(u===null){u=e.pingCache=new i0;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(i)||(Xs=!0,f.add(i),e=s0.bind(null,e,n,i),n.then(e,e))}function s0(e,n,i){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Xe===e&&(De&i)===i&&(et===4||et===3&&(De&62914560)===De&&300>Et()-cu?(Ue&2)===0&&Ui(e,0):Zs|=i,Li===De&&(Li=0)),wn(e)}function hp(e,n){n===0&&(n=ah()),e=Nl(e,n),e!==null&&(Wi(e,n),wn(e))}function c0(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),hp(e,i)}function f0(e,n){var i=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(n),hp(e,i)}function h0(e,n){return ri(e,n)}var yu=null,Hi=null,tc=!1,bu=!1,nc=!1,gl=0;function wn(e){e!==Hi&&e.next===null&&(Hi===null?yu=Hi=e:Hi=Hi.next=e),bu=!0,tc||(tc=!0,m0())}function _r(e,n){if(!nc&&bu){nc=!0;do for(var i=!1,u=yu;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var b=u.suspendedLanes,S=u.pingedLanes;h=(1<<31-Ve(42|e)+1)-1,h&=f&~(b&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,gp(u,h))}else h=De,h=ka(u,u===Xe?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||$i(u,h)||(i=!0,gp(u,h));u=u.next}while(i);nc=!1}}function d0(){dp()}function dp(){bu=tc=!1;var e=0;gl!==0&&w0()&&(e=gl);for(var n=Et(),i=null,u=yu;u!==null;){var f=u.next,h=mp(u,n);h===0?(u.next=null,i===null?yu=f:i.next=f,f===null&&(Hi=i)):(i=u,(e!==0||(h&3)!==0)&&(bu=!0)),u=f}st!==0&&st!==5||_r(e),gl!==0&&(gl=0)}function mp(e,n){for(var i=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ve(h),S=1<<b,C=f[b];C===-1?((S&i)===0||(S&u)!==0)&&(f[b]=qv(S,n)):C<=n&&(e.expiredLanes|=S),h&=~S}if(n=Xe,i=De,i=ka(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,i===0||e===n&&(He===2||He===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&Pi(u),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||$i(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(u!==null&&Pi(u),yo(i)){case 2:case 8:i=ne;break;case 32:i=be;break;case 268435456:i=Be;break;default:i=be}return u=pp.bind(null,e),i=ri(i,u),e.callbackPriority=n,e.callbackNode=i,n}return u!==null&&u!==null&&Pi(u),e.callbackPriority=2,e.callbackNode=null,2}function pp(e,n){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(gu()&&e.callbackNode!==i)return null;var u=De;return u=ka(e,e===Xe?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(Jm(e,u,n),mp(e,Et()),e.callbackNode!=null&&e.callbackNode===i?pp.bind(null,e):null)}function gp(e,n){if(gu())return null;Jm(e,n,!0)}function m0(){T0(function(){(Ue&6)!==0?ri(X,d0):dp()})}function lc(){if(gl===0){var e=wi;e===0&&(e=va,va<<=1,(va&261888)===0&&(va=256)),gl=e}return gl}function yp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ta(""+e)}function bp(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function p0(e,n,i,u,f){if(n==="submit"&&i&&i.stateNode===f){var h=yp((f[Ot]||null).action),b=u.submitter;b&&(n=(n=b[Ot]||null)?yp(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var S=new Oa("action","action",null,u,f);e.push({event:S,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(gl!==0){var C=b?bp(f,b):new FormData(f);Es(i,{pending:!0,data:C,method:f.method,action:h},null,C)}}else typeof h=="function"&&(S.preventDefault(),C=b?bp(f,b):new FormData(f),Es(i,{pending:!0,data:C,method:f.method,action:h},h,C))},currentTarget:f}]})}}for(var ic=0;ic<qo.length;ic++){var rc=qo[ic],g0=rc.toLowerCase(),y0=rc[0].toUpperCase()+rc.slice(1);hn(g0,"on"+y0)}hn(Kh,"onAnimationEnd"),hn(Jh,"onAnimationIteration"),hn(Ph,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(_1,"onTransitionRun"),hn(N1,"onTransitionStart"),hn(L1,"onTransitionCancel"),hn($h,"onTransitionEnd"),ci("onMouseEnter",["mouseout","mouseover"]),ci("onMouseLeave",["mouseout","mouseover"]),ci("onPointerEnter",["pointerout","pointerover"]),ci("onPointerLeave",["pointerout","pointerover"]),Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="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(" "),b0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nr));function vp(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var u=e[i],f=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var b=u.length-1;0<=b;b--){var S=u[b],C=S.instance,L=S.currentTarget;if(S=S.listener,C!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=L;try{h(f)}catch(G){_a(G)}f.currentTarget=null,h=C}else for(b=0;b<u.length;b++){if(S=u[b],C=S.instance,L=S.currentTarget,S=S.listener,C!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=L;try{h(f)}catch(G){_a(G)}f.currentTarget=null,h=C}}}}function Re(e,n){var i=n[bo];i===void 0&&(i=n[bo]=new Set);var u=e+"__bubble";i.has(u)||(xp(n,e,2,!1),i.add(u))}function ac(e,n,i){var u=0;n&&(u|=4),xp(i,e,u,n)}var vu="_reactListening"+Math.random().toString(36).slice(2);function uc(e){if(!e[vu]){e[vu]=!0,dh.forEach(function(i){i!=="selectionchange"&&(b0.has(i)||ac(i,!1,e),ac(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[vu]||(n[vu]=!0,ac("selectionchange",!1,n))}}function xp(e,n,i,u){switch(Kp(n)){case 2:var f=X0;break;case 8:f=Z0;break;default:f=kc}i=f.bind(null,n,i,e),f=void 0,!Ao||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function oc(e,n,i,u,f){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var S=u.stateNode.containerInfo;if(S===f)break;if(b===4)for(b=u.return;b!==null;){var C=b.tag;if((C===3||C===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;S!==null;){if(b=ui(S),b===null)return;if(C=b.tag,C===5||C===6||C===26||C===27){u=h=b;continue e}S=S.parentNode}}u=u.return}Ch(function(){var L=h,G=Co(i),I=[];e:{var U=Wh.get(e);if(U!==void 0){var F=Oa,fe=e;switch(e){case"keypress":if(za(i)===0)break e;case"keydown":case"keyup":F=f1;break;case"focusin":fe="focus",F=Do;break;case"focusout":fe="blur",F=Do;break;case"beforeblur":case"afterblur":F=Do;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=zh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=m1;break;case Kh:case Jh:case Ph:F=n1;break;case $h:F=g1;break;case"scroll":case"scrollend":F=Pv;break;case"wheel":F=b1;break;case"copy":case"cut":case"paste":F=i1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Oh;break;case"toggle":case"beforetoggle":F=x1}var ge=(n&4)!==0,Ge=!ge&&(e==="scroll"||e==="scrollend"),D=ge?U!==null?U+"Capture":null:U;ge=[];for(var O=L,N;O!==null;){var Z=O;if(N=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||N===null||D===null||(Z=nr(O,D),Z!=null&&ge.push(Lr(O,Z,N))),Ge)break;O=O.return}0<ge.length&&(U=new F(U,fe,null,i,G),I.push({event:U,listeners:ge}))}}if((n&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",U&&i!==wo&&(fe=i.relatedTarget||i.fromElement)&&(ui(fe)||fe[ai]))break e;if((F||U)&&(U=G.window===G?G:(U=G.ownerDocument)?U.defaultView||U.parentWindow:window,F?(fe=i.relatedTarget||i.toElement,F=L,fe=fe?ui(fe):null,fe!==null&&(Ge=s(fe),ge=fe.tag,fe!==Ge||ge!==5&&ge!==27&&ge!==6)&&(fe=null)):(F=null,fe=L),F!==fe)){if(ge=zh,Z="onMouseLeave",D="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Oh,Z="onPointerLeave",D="onPointerEnter",O="pointer"),Ge=F==null?U:tr(F),N=fe==null?U:tr(fe),U=new ge(Z,O+"leave",F,i,G),U.target=Ge,U.relatedTarget=N,Z=null,ui(G)===L&&(ge=new ge(D,O+"enter",fe,i,G),ge.target=N,ge.relatedTarget=Ge,Z=ge),Ge=Z,F&&fe)t:{for(ge=v0,D=F,O=fe,N=0,Z=D;Z;Z=ge(Z))N++;Z=0;for(var me=O;me;me=ge(me))Z++;for(;0<N-Z;)D=ge(D),N--;for(;0<Z-N;)O=ge(O),Z--;for(;N--;){if(D===O||O!==null&&D===O.alternate){ge=D;break t}D=ge(D),O=ge(O)}ge=null}else ge=null;F!==null&&Sp(I,U,F,ge,!1),fe!==null&&Ge!==null&&Sp(I,Ge,fe,ge,!0)}}e:{if(U=L?tr(L):window,F=U.nodeName&&U.nodeName.toLowerCase(),F==="select"||F==="input"&&U.type==="file")var Le=Bh;else if(jh(U))if(Hh)Le=O1;else{Le=z1;var de=A1}else F=U.nodeName,!F||F.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?L&&Eo(L.elementType)&&(Le=Bh):Le=R1;if(Le&&(Le=Le(e,L))){Uh(I,Le,i,G);break e}de&&de(e,U,L),e==="focusout"&&L&&U.type==="number"&&L.memoizedProps.value!=null&&ko(U,"number",U.value)}switch(de=L?tr(L):window,e){case"focusin":(jh(de)||de.contentEditable==="true")&&(gi=de,Uo=L,cr=null);break;case"focusout":cr=Uo=gi=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,Zh(I,i,G);break;case"selectionchange":if(M1)break;case"keydown":case"keyup":Zh(I,i,G)}var Ce;if(_o)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else pi?Nh(e,i)&&(Me="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Me="onCompositionStart");Me&&(Dh&&i.locale!=="ko"&&(pi||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&pi&&(Ce=Th()):(el=G,zo="value"in el?el.value:el.textContent,pi=!0)),de=xu(L,Me),0<de.length&&(Me=new Rh(Me,e,null,i,G),I.push({event:Me,listeners:de}),Ce?Me.data=Ce:(Ce=Lh(i),Ce!==null&&(Me.data=Ce)))),(Ce=k1?E1(e,i):w1(e,i))&&(Me=xu(L,"onBeforeInput"),0<Me.length&&(de=new Rh("onBeforeInput","beforeinput",null,i,G),I.push({event:de,listeners:Me}),de.data=Ce)),p0(I,e,L,i,G)}vp(I,n)})}function Lr(e,n,i){return{instance:e,listener:n,currentTarget:i}}function xu(e,n){for(var i=n+"Capture",u=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=nr(e,i),f!=null&&u.unshift(Lr(e,f,h)),f=nr(e,n),f!=null&&u.push(Lr(e,f,h))),e.tag===3)return u;e=e.return}return[]}function v0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sp(e,n,i,u,f){for(var h=n._reactName,b=[];i!==null&&i!==u;){var S=i,C=S.alternate,L=S.stateNode;if(S=S.tag,C!==null&&C===u)break;S!==5&&S!==26&&S!==27||L===null||(C=L,f?(L=nr(i,h),L!=null&&b.unshift(Lr(i,L,C))):f||(L=nr(i,h),L!=null&&b.push(Lr(i,L,C)))),i=i.return}b.length!==0&&e.push({event:n,listeners:b})}var x0=/\r\n?/g,S0=/\u0000|\uFFFD/g;function kp(e){return(typeof e=="string"?e:""+e).replace(x0,`
|
|
9
9
|
`).replace(S0,"")}function Ep(e,n){return n=kp(n),kp(e)===n}function Fe(e,n,i,u,f,h){switch(i){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||hi(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&hi(e,""+u);break;case"className":wa(e,"class",u);break;case"tabIndex":wa(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":wa(e,i,u);break;case"style":Eh(e,u,h);break;case"data":if(n!=="object"){wa(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Ta(""+u),e.setAttribute(i,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(i==="formAction"?(n!=="input"&&Fe(e,n,"name",f.name,f,null),Fe(e,n,"formEncType",f.formEncType,f,null),Fe(e,n,"formMethod",f.formMethod,f,null),Fe(e,n,"formTarget",f.formTarget,f,null)):(Fe(e,n,"encType",f.encType,f,null),Fe(e,n,"method",f.method,f,null),Fe(e,n,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Ta(""+u),e.setAttribute(i,u);break;case"onClick":u!=null&&(e.onclick=On);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}i=Ta(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""+u):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":u===!0?e.setAttribute(i,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,u):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(i,u):e.removeAttribute(i);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(i):e.setAttribute(i,u);break;case"popover":Re("beforetoggle",e),Re("toggle",e),Ea(e,"popover",u);break;case"xlinkActuate":Rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Rn(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Rn(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Rn(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Rn(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Ea(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Kv.get(i)||i,Ea(e,i,u))}}function sc(e,n,i,u,f,h){switch(i){case"style":Eh(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"children":typeof u=="string"?hi(e,u):(typeof u=="number"||typeof u=="bigint")&&hi(e,""+u);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"onClick":u!=null&&(e.onclick=On);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),h=e[Ot]||null,h=h!=null?h[i]:null,typeof h=="function"&&e.removeEventListener(n,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,u,f);break e}i in e?e[i]=u:u===!0?e.setAttribute(i,""):Ea(e,i,u)}}}function yt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var u=!1,f=!1,h;for(h in i)if(i.hasOwnProperty(h)){var b=i[h];if(b!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,h,b,i,null)}}f&&Fe(e,n,"srcSet",i.srcSet,i,null),u&&Fe(e,n,"src",i.src,i,null);return;case"input":Re("invalid",e);var S=h=b=f=null,C=null,L=null;for(u in i)if(i.hasOwnProperty(u)){var G=i[u];if(G!=null)switch(u){case"name":f=G;break;case"type":b=G;break;case"checked":C=G;break;case"defaultChecked":L=G;break;case"value":h=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:Fe(e,n,u,G,i,null)}}vh(e,h,S,C,L,b,f,!1);return;case"select":Re("invalid",e),u=b=h=null;for(f in i)if(i.hasOwnProperty(f)&&(S=i[f],S!=null))switch(f){case"value":h=S;break;case"defaultValue":b=S;break;case"multiple":u=S;default:Fe(e,n,f,S,i,null)}n=h,i=b,e.multiple=!!u,n!=null?fi(e,!!u,n,!1):i!=null&&fi(e,!!u,i,!0);return;case"textarea":Re("invalid",e),h=f=u=null;for(b in i)if(i.hasOwnProperty(b)&&(S=i[b],S!=null))switch(b){case"value":u=S;break;case"defaultValue":f=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:Fe(e,n,b,S,i,null)}Sh(e,u,f,h);return;case"option":for(C in i)i.hasOwnProperty(C)&&(u=i[C],u!=null)&&(C==="selected"?e.selected=u&&typeof u!="function"&&typeof u!="symbol":Fe(e,n,C,u,i,null));return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(u=0;u<Nr.length;u++)Re(Nr[u],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in i)if(i.hasOwnProperty(L)&&(u=i[L],u!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,L,u,i,null)}return;default:if(Eo(n)){for(G in i)i.hasOwnProperty(G)&&(u=i[G],u!==void 0&&sc(e,n,G,u,i,void 0));return}}for(S in i)i.hasOwnProperty(S)&&(u=i[S],u!=null&&Fe(e,n,S,u,i,null))}function k0(e,n,i,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,S=null,C=null,L=null,G=null;for(F in i){var I=i[F];if(i.hasOwnProperty(F)&&I!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":C=I;default:u.hasOwnProperty(F)||Fe(e,n,F,null,u,I)}}for(var U in u){var F=u[U];if(I=i[U],u.hasOwnProperty(U)&&(F!=null||I!=null))switch(U){case"type":h=F;break;case"name":f=F;break;case"checked":L=F;break;case"defaultChecked":G=F;break;case"value":b=F;break;case"defaultValue":S=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,n));break;default:F!==I&&Fe(e,n,U,F,u,I)}}So(e,b,S,C,L,G,h,f);return;case"select":F=b=S=U=null;for(h in i)if(C=i[h],i.hasOwnProperty(h)&&C!=null)switch(h){case"value":break;case"multiple":F=C;default:u.hasOwnProperty(h)||Fe(e,n,h,null,u,C)}for(f in u)if(h=u[f],C=i[f],u.hasOwnProperty(f)&&(h!=null||C!=null))switch(f){case"value":U=h;break;case"defaultValue":S=h;break;case"multiple":b=h;default:h!==C&&Fe(e,n,f,h,u,C)}n=S,i=b,u=F,U!=null?fi(e,!!i,U,!1):!!u!=!!i&&(n!=null?fi(e,!!i,n,!0):fi(e,!!i,i?[]:"",!1));return;case"textarea":F=U=null;for(S in i)if(f=i[S],i.hasOwnProperty(S)&&f!=null&&!u.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Fe(e,n,S,null,u,f)}for(b in u)if(f=u[b],h=i[b],u.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":U=f;break;case"defaultValue":F=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Fe(e,n,b,f,u,h)}xh(e,U,F);return;case"option":for(var fe in i)U=i[fe],i.hasOwnProperty(fe)&&U!=null&&!u.hasOwnProperty(fe)&&(fe==="selected"?e.selected=!1:Fe(e,n,fe,null,u,U));for(C in u)U=u[C],F=i[C],u.hasOwnProperty(C)&&U!==F&&(U!=null||F!=null)&&(C==="selected"?e.selected=U&&typeof U!="function"&&typeof U!="symbol":Fe(e,n,C,U,u,F));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ge in i)U=i[ge],i.hasOwnProperty(ge)&&U!=null&&!u.hasOwnProperty(ge)&&Fe(e,n,ge,null,u,U);for(L in u)if(U=u[L],F=i[L],u.hasOwnProperty(L)&&U!==F&&(U!=null||F!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(a(137,n));break;default:Fe(e,n,L,U,u,F)}return;default:if(Eo(n)){for(var Ge in i)U=i[Ge],i.hasOwnProperty(Ge)&&U!==void 0&&!u.hasOwnProperty(Ge)&&sc(e,n,Ge,void 0,u,U);for(G in u)U=u[G],F=i[G],!u.hasOwnProperty(G)||U===F||U===void 0&&F===void 0||sc(e,n,G,U,u,F);return}}for(var D in i)U=i[D],i.hasOwnProperty(D)&&U!=null&&!u.hasOwnProperty(D)&&Fe(e,n,D,null,u,U);for(I in u)U=u[I],F=i[I],!u.hasOwnProperty(I)||U===F||U==null&&F==null||Fe(e,n,I,U,u,F)}function wp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),u=0;u<i.length;u++){var f=i[u],h=f.transferSize,b=f.initiatorType,S=f.duration;if(h&&S&&wp(b)){for(b=0,S=f.responseEnd,u+=1;u<i.length;u++){var C=i[u],L=C.startTime;if(L>S)break;var G=C.transferSize,I=C.initiatorType;G&&wp(I)&&(C=C.responseEnd,b+=G*(C<S?1:(S-L)/(C-L)))}if(--u,n+=8*(h+b)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var cc=null,fc=null;function Su(e){return e.nodeType===9?e:e.ownerDocument}function Cp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tp(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function hc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var dc=null;function w0(){var e=window.event;return e&&e.type==="popstate"?e===dc?!1:(dc=e,!0):(dc=null,!1)}var Ap=typeof setTimeout=="function"?setTimeout:void 0,C0=typeof clearTimeout=="function"?clearTimeout:void 0,zp=typeof Promise=="function"?Promise:void 0,T0=typeof queueMicrotask=="function"?queueMicrotask:typeof zp<"u"?function(e){return zp.resolve(null).then(e).catch(A0)}:Ap;function A0(e){setTimeout(function(){throw e})}function yl(e){return e==="head"}function Rp(e,n){var i=n,u=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(u===0){e.removeChild(f),Gi(n);return}u--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")u++;else if(i==="html")jr(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,jr(i);for(var h=i.firstChild;h;){var b=h.nextSibling,S=h.nodeName;h[er]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||i.removeChild(h),h=b}}else i==="body"&&jr(e.ownerDocument.body);i=f}while(i);Gi(n)}function Op(e,n){var i=e;e=0;do{var u=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),u&&u.nodeType===8)if(i=u.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=u}while(i)}function mc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":mc(i),vo(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function z0(e,n,i,u){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[er])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=un(e.nextSibling),e===null)break}return null}function R0(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=un(e.nextSibling),e===null))return null;return e}function Dp(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=un(e.nextSibling),e===null))return null;return e}function pc(e){return e.data==="$?"||e.data==="$~"}function gc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function O0(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var u=function(){n(),i.removeEventListener("DOMContentLoaded",u)};i.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function un(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var yc=null;function Mp(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return un(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function _p(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Np(e,n,i){switch(n=Su(i),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function jr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);vo(e)}var on=new Map,Lp=new Set;function ku(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Xn=K.d;K.d={f:D0,r:M0,D:_0,C:N0,L:L0,m:j0,X:B0,S:U0,M:H0};function D0(){var e=Xn.f(),n=du();return e||n}function M0(e){var n=oi(e);n!==null&&n.tag===5&&n.type==="form"?$d(n):Xn.r(e)}var qi=typeof document>"u"?null:document;function jp(e,n,i){var u=qi;if(u&&typeof n=="string"&&n){var f=Wt(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Lp.has(f)||(Lp.add(f),e={rel:e,crossOrigin:i,href:n},u.querySelector(f)===null&&(n=u.createElement("link"),yt(n,"link",e),ft(n),u.head.appendChild(n)))}}function _0(e){Xn.D(e),jp("dns-prefetch",e,null)}function N0(e,n){Xn.C(e,n),jp("preconnect",e,n)}function L0(e,n,i){Xn.L(e,n,i);var u=qi;if(u&&e&&n){var f='link[rel="preload"][as="'+Wt(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Wt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Wt(i.imageSizes)+'"]')):f+='[href="'+Wt(e)+'"]';var h=f;switch(n){case"style":h=Qi(e);break;case"script":h=Fi(e)}on.has(h)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),on.set(h,e),u.querySelector(f)!==null||n==="style"&&u.querySelector(Ur(h))||n==="script"&&u.querySelector(Br(h))||(n=u.createElement("link"),yt(n,"link",e),ft(n),u.head.appendChild(n)))}}function j0(e,n){Xn.m(e,n);var i=qi;if(i&&e){var u=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+Wt(u)+'"][href="'+Wt(e)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Fi(e)}if(!on.has(h)&&(e=g({rel:"modulepreload",href:e},n),on.set(h,e),i.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Br(h)))return}u=i.createElement("link"),yt(u,"link",e),ft(u),i.head.appendChild(u)}}}function U0(e,n,i){Xn.S(e,n,i);var u=qi;if(u&&e){var f=si(u).hoistableStyles,h=Qi(e);n=n||"default";var b=f.get(h);if(!b){var S={loading:0,preload:null};if(b=u.querySelector(Ur(h)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=on.get(h))&&bc(e,i);var C=b=u.createElement("link");ft(C),yt(C,"link",e),C._p=new Promise(function(L,G){C.onload=L,C.onerror=G}),C.addEventListener("load",function(){S.loading|=1}),C.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Eu(b,n,u)}b={type:"stylesheet",instance:b,count:1,state:S},f.set(h,b)}}}function B0(e,n){Xn.X(e,n);var i=qi;if(i&&e){var u=si(i).hoistableScripts,f=Fi(e),h=u.get(f);h||(h=i.querySelector(Br(f)),h||(e=g({src:e,async:!0},n),(n=on.get(f))&&vc(e,n),h=i.createElement("script"),ft(h),yt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function H0(e,n){Xn.M(e,n);var i=qi;if(i&&e){var u=si(i).hoistableScripts,f=Fi(e),h=u.get(f);h||(h=i.querySelector(Br(f)),h||(e=g({src:e,async:!0,type:"module"},n),(n=on.get(f))&&vc(e,n),h=i.createElement("script"),ft(h),yt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function Up(e,n,i,u){var f=(f=re.current)?ku(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Qi(i.href),i=si(f).hoistableStyles,u=i.get(n),u||(u={type:"style",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Qi(i.href);var h=si(f).hoistableStyles,b=h.get(e);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=f.querySelector(Ur(e)))&&!h._p&&(b.instance=h,b.state.loading=5),on.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},on.set(e,i),h||q0(f,e,i,b.state))),n&&u===null)throw Error(a(528,""));return b}if(n&&u!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Fi(i),i=si(f).hoistableScripts,u=i.get(n),u||(u={type:"script",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Qi(e){return'href="'+Wt(e)+'"'}function Ur(e){return'link[rel="stylesheet"]['+e+"]"}function Bp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function q0(e,n,i,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),yt(n,"link",i),ft(n),e.head.appendChild(n))}function Fi(e){return'[src="'+Wt(e)+'"]'}function Br(e){return"script[async]"+e}function Hp(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+Wt(i.href)+'"]');if(u)return n.instance=u,ft(u),u;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),ft(u),yt(u,"style",f),Eu(u,i.precedence,e),n.instance=u;case"stylesheet":f=Qi(i.href);var h=e.querySelector(Ur(f));if(h)return n.state.loading|=4,n.instance=h,ft(h),h;u=Bp(i),(f=on.get(f))&&bc(u,f),h=(e.ownerDocument||e).createElement("link"),ft(h);var b=h;return b._p=new Promise(function(S,C){b.onload=S,b.onerror=C}),yt(h,"link",u),n.state.loading|=4,Eu(h,i.precedence,e),n.instance=h;case"script":return h=Fi(i.src),(f=e.querySelector(Br(h)))?(n.instance=f,ft(f),f):(u=i,(f=on.get(h))&&(u=g({},i),vc(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),ft(f),yt(f,"link",u),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,Eu(u,i.precedence,e));return n.instance}function Eu(e,n,i){for(var u=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,b=0;b<u.length;b++){var S=u[b];if(S.dataset.precedence===n)h=S;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function bc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function vc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var wu=null;function qp(e,n,i){if(wu===null){var u=new Map,f=wu=new Map;f.set(i,u)}else f=wu,u=f.get(i),u||(u=new Map,f.set(i,u));if(u.has(e))return u;for(u.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var h=i[f];if(!(h[er]||h[dt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var S=u.get(b);S?S.push(h):u.set(b,[h])}}return u}function Qp(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function Q0(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Fp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function F0(e,n,i,u){if(i.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=Qi(u.href),h=n.querySelector(Ur(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Cu.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=h,ft(h);return}h=n.ownerDocument||n,u=Bp(u),(f=on.get(f))&&bc(u,f),h=h.createElement("link"),ft(h);var b=h;b._p=new Promise(function(S,C){b.onload=S,b.onerror=C}),yt(h,"link",u),i.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Cu.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var xc=0;function G0(e,n){return e.stylesheets&&e.count===0&&Au(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var u=setTimeout(function(){if(e.stylesheets&&Au(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&xc===0&&(xc=62500*E0());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Au(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>xc?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Cu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Au(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tu=null;function Au(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tu=new Map,n.forEach(Y0,e),Tu=null,Cu.call(e))}function Y0(e,n){if(!(n.state.loading&4)){var i=Tu.get(e);if(i)var u=i.get(null);else{i=new Map,Tu.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),u=b)}u&&i.set(null,u)}f=n.instance,b=f.getAttribute("data-precedence"),h=i.get(b)||u,h===u&&i.set(null,f),i.set(b,f),this.count++,u=Cu.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var Hr={$$typeof:j,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function V0(e,n,i,u,f,h,b,S,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.hiddenUpdates=po(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Gp(e,n,i,u,f,h,b,S,C,L,G,I){return e=new V0(e,n,i,b,C,L,G,I,S),n=1,h===!0&&(n|=24),h=Ft(3,null,null,n),e.current=h,h.stateNode=e,n=Wo(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:u,isDehydrated:i,cache:n},ls(h),e}function Yp(e){return e?(e=vi,e):vi}function Vp(e,n,i,u,f,h){f=Yp(f),u.context===null?u.context=f:u.pendingContext=f,u=al(n),u.payload={element:i},h=h===void 0?null:h,h!==null&&(u.callback=h),i=ul(e,u,n),i!==null&&(jt(i,e,n),yr(i,e,n))}function Xp(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Sc(e,n){Xp(e,n),(e=e.alternate)&&Xp(e,n)}function Zp(e){if(e.tag===13||e.tag===31){var n=Nl(e,67108864);n!==null&&jt(n,e,67108864),Sc(e,67108864)}}function Ip(e){if(e.tag===13||e.tag===31){var n=Zt();n=go(n);var i=Nl(e,n);i!==null&&jt(i,e,n),Sc(e,n)}}var zu=!0;function X0(e,n,i,u){var f=_.T;_.T=null;var h=K.p;try{K.p=2,kc(e,n,i,u)}finally{K.p=h,_.T=f}}function Z0(e,n,i,u){var f=_.T;_.T=null;var h=K.p;try{K.p=8,kc(e,n,i,u)}finally{K.p=h,_.T=f}}function kc(e,n,i,u){if(zu){var f=Ec(u);if(f===null)oc(e,n,u,Ru,i),Jp(e,u);else if(K0(f,e,n,i,u))u.stopPropagation();else if(Jp(e,u),n&4&&-1<I0.indexOf(e)){for(;f!==null;){var h=oi(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Rl(h.pendingLanes);if(b!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var C=1<<31-Ve(b);S.entanglements[1]|=C,b&=~C}wn(h),(Ue&6)===0&&(fu=Et()+500,_r(0))}}break;case 31:case 13:S=Nl(h,2),S!==null&&jt(S,h,2),du(),Sc(h,2)}if(h=Ec(u),h===null&&oc(e,n,u,Ru,i),h===f)break;f=h}f!==null&&u.stopPropagation()}else oc(e,n,u,null,i)}}function Ec(e){return e=Co(e),wc(e)}var Ru=null;function wc(e){if(Ru=null,e=ui(e),e!==null){var n=s(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===31){if(e=d(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Ru=e,null}function Kp(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mo()){case X:return 2;case ne:return 8;case be:case Ae:return 32;case Be:return 268435456;default:return 32}default:return 32}}var Cc=!1,bl=null,vl=null,xl=null,qr=new Map,Qr=new Map,Sl=[],I0="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".split(" ");function Jp(e,n){switch(e){case"focusin":case"focusout":bl=null;break;case"dragenter":case"dragleave":vl=null;break;case"mouseover":case"mouseout":xl=null;break;case"pointerover":case"pointerout":qr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qr.delete(n.pointerId)}}function Fr(e,n,i,u,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:i,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},n!==null&&(n=oi(n),n!==null&&Zp(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function K0(e,n,i,u,f){switch(n){case"focusin":return bl=Fr(bl,e,n,i,u,f),!0;case"dragenter":return vl=Fr(vl,e,n,i,u,f),!0;case"mouseover":return xl=Fr(xl,e,n,i,u,f),!0;case"pointerover":var h=f.pointerId;return qr.set(h,Fr(qr.get(h)||null,e,n,i,u,f)),!0;case"gotpointercapture":return h=f.pointerId,Qr.set(h,Fr(Qr.get(h)||null,e,n,i,u,f)),!0}return!1}function Pp(e){var n=ui(e.target);if(n!==null){var i=s(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,fh(e.priority,function(){Ip(i)});return}}else if(n===31){if(n=d(i),n!==null){e.blockedOn=n,fh(e.priority,function(){Ip(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ou(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Ec(e.nativeEvent);if(i===null){i=e.nativeEvent;var u=new i.constructor(i.type,i);wo=u,i.target.dispatchEvent(u),wo=null}else return n=oi(i),n!==null&&Zp(n),e.blockedOn=i,!1;n.shift()}return!0}function $p(e,n,i){Ou(e)&&i.delete(n)}function J0(){Cc=!1,bl!==null&&Ou(bl)&&(bl=null),vl!==null&&Ou(vl)&&(vl=null),xl!==null&&Ou(xl)&&(xl=null),qr.forEach($p),Qr.forEach($p)}function Du(e,n){e.blockedOn===n&&(e.blockedOn=null,Cc||(Cc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,J0)))}var Mu=null;function Wp(e){Mu!==e&&(Mu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mu===e&&(Mu=null);for(var n=0;n<e.length;n+=3){var i=e[n],u=e[n+1],f=e[n+2];if(typeof u!="function"){if(wc(u||i)===null)continue;break}var h=oi(i);h!==null&&(e.splice(n,3),n-=3,Es(h,{pending:!0,data:f,method:i.method,action:u},u,f))}}))}function Gi(e){function n(C){return Du(C,e)}bl!==null&&Du(bl,e),vl!==null&&Du(vl,e),xl!==null&&Du(xl,e),qr.forEach(n),Qr.forEach(n);for(var i=0;i<Sl.length;i++){var u=Sl[i];u.blockedOn===e&&(u.blockedOn=null)}for(;0<Sl.length&&(i=Sl[0],i.blockedOn===null);)Pp(i),i.blockedOn===null&&Sl.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(u=0;u<i.length;u+=3){var f=i[u],h=i[u+1],b=f[Ot]||null;if(typeof h=="function")b||Wp(i);else if(b){var S=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Ot]||null)S=b.formAction;else if(wc(f)!==null)continue}else S=b.action;typeof S=="function"?i[u+1]=S:(i.splice(u,3),u-=3),Wp(i)}}}function eg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),u||setTimeout(i,20)}function i(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Tc(e){this._internalRoot=e}_u.prototype.render=Tc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,u=Zt();Vp(i,u,e,n,null,null)},_u.prototype.unmount=Tc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Vp(e.current,2,null,e,null,null),du(),n[ai]=null}};function _u(e){this._internalRoot=e}_u.prototype.unstable_scheduleHydration=function(e){if(e){var n=ch();e={blockedOn:null,target:e,priority:n};for(var i=0;i<Sl.length&&n!==0&&n<Sl[i].priority;i++);Sl.splice(i,0,e),i===0&&Pp(e)}};var tg=l.version;if(tg!=="19.2.7")throw Error(a(527,tg,"19.2.7"));K.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=p(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var P0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{wt=Nu.inject(P0),ot=Nu}catch{}}return Yr.createRoot=function(e,n){if(!o(e))throw Error(a(299));var i=!1,u="",f=om,h=sm,b=cm;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=Gp(e,1,!1,null,null,i,u,null,f,h,b,eg),e[ai]=n.current,uc(e),new Tc(n)},Yr.hydrateRoot=function(e,n,i){if(!o(e))throw Error(a(299));var u=!1,f="",h=om,b=sm,S=cm,C=null;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.formState!==void 0&&(C=i.formState)),n=Gp(e,1,!0,n,i??null,u,f,C,h,b,S,eg),n.context=Yp(null),i=n.current,u=Zt(),u=go(u),f=al(u),f.callback=null,ul(i,f,u),i=u,n.current.lanes=i,Wi(n,i),wn(n),e[ai]=n.current,uc(e),new _u(n)},Yr.version="19.2.7",Yr}var kg;function Jx(){if(kg)return Rc.exports;kg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Rc.exports=Kx(),Rc.exports}var Px=Jx();var Df=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Qy=/^[\\/]{2}/;function $x(t,l){return l+t.replace(/\\/g,"/")}var Eg="popstate";function wg(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function Wx(t={}){function l(a,o){let s=o.state?.masked,{pathname:c,search:d,hash:m}=s||a.location;return of("",{pathname:c,search:d,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default",s?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,o){return typeof o=="string"?o:ra(o)}return tS(l,r,null,t)}function Pe(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function yn(t,l){if(!t){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function eS(){return Math.random().toString(36).substring(2,10)}function Cg(t,l){return{usr:t.state,key:t.key,idx:l,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function of(t,l,r=null,a,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof l=="string"?Zi(l):l,state:r,key:l&&l.key||a||eS(),mask:o}}function ra({pathname:t="/",search:l="",hash:r=""}){return l&&l!=="?"&&(t+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Zi(t){let l={};if(t){let r=t.indexOf("#");r>=0&&(l.hash=t.substring(r),t=t.substring(0,r));let a=t.indexOf("?");a>=0&&(l.search=t.substring(a),t=t.substring(0,a)),t&&(l.pathname=t)}return l}function tS(t,l,r,a={}){let{window:o=document.defaultView,v5Compat:s=!1}=a,c=o.history,d="POP",m=null,p=y();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function y(){return(c.state||{idx:null}).idx}function g(){d="POP";let A=y(),z=A==null?null:A-p;p=A,m&&m({action:d,location:T.location,delta:z})}function v(A,z){d="PUSH";let Q=wg(A)?A:of(T.location,A,z);p=y()+1;let j=Cg(Q,p),W=T.createHref(Q.mask||Q);try{c.pushState(j,"",W)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;o.location.assign(W)}s&&m&&m({action:d,location:T.location,delta:1})}function x(A,z){d="REPLACE";let Q=wg(A)?A:of(T.location,A,z);p=y();let j=Cg(Q,p),W=T.createHref(Q.mask||Q);c.replaceState(j,"",W),s&&m&&m({action:d,location:T.location,delta:0})}function w(A){return nS(o,A)}let T={get action(){return d},get location(){return t(o,c)},listen(A){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(Eg,g),m=A,()=>{o.removeEventListener(Eg,g),m=null}},createHref(A){return l(o,A)},createURL:w,encodeLocation(A){let z=w(A);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:v,replace:x,go(A){return c.go(A)}};return T}function nS(t,l,r=!1){let a="http://localhost";t&&(a=t.location.origin!=="null"?t.location.origin:t.location.href),Pe(a,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:ra(l);return o=o.replace(/ $/,"%20"),!r&&Qy.test(o)&&(o=a+o),new URL(o,a)}function Fy(t,l,r="/"){return lS(t,l,r,!1)}function lS(t,l,r,a,o){let s=typeof l=="string"?Zi(l):l,c=In(s.pathname||"/",r);if(c==null)return null;let d=iS(t),m=null,p=Zy(c);for(let y=0;m==null&&y<d.length;++y)m=mS(d[y],p,a);return m}function iS(t){let l=Gy(t);return rS(l),l}function Gy(t,l=[],r=[],a="",o=!1){let s=(c,d,m=o,p)=>{let y={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(a)&&m)return;Pe(y.relativePath.startsWith(a),`Absolute route path "${y.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(a.length)}let g=pn([a,y.relativePath]),v=r.concat(y);c.children&&c.children.length>0&&(Pe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Gy(c.children,l,v,g,m)),!(c.path==null&&!c.index)&&l.push({path:g,score:hS(g,c.index),routesMeta:v.map((x,w)=>{let[T,A]=Xy(x.relativePath,x.caseSensitive,w===v.length-1);return{...x,matcher:T,compiledParams:A}})})};return t.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))s(c,d);else for(let m of Yy(c.path))s(c,d,!0,m)}),l}function Yy(t){let l=t.split("/");if(l.length===0)return[];let[r,...a]=l,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(a.length===0)return o?[s,""]:[s];let c=Yy(a.join("/")),d=[];return d.push(...c.map(m=>m===""?s:[s,m].join("/"))),o&&d.push(...c),d.map(m=>t.startsWith("/")&&m===""?"/":m)}function rS(t){t.sort((l,r)=>l.score!==r.score?r.score-l.score:dS(l.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var aS=/^:[\w-]+$/,uS=3,oS=2,sS=1,cS=10,fS=-2,Tg=t=>t==="*";function hS(t,l){let r=t.split("/"),a=r.length;return r.some(Tg)&&(a+=fS),l&&(a+=oS),r.filter(o=>!Tg(o)).reduce((o,s)=>o+(aS.test(s)?uS:s===""?sS:cS),a)}function dS(t,l){return t.length===l.length&&t.slice(0,-1).every((a,o)=>a===l[o])?t[t.length-1]-l[l.length-1]:0}function mS(t,l,r=!1){let{routesMeta:a}=t,o={},s="/",c=[];for(let d=0;d<a.length;++d){let m=a[d],p=d===a.length-1,y=s==="/"?l:l.slice(s.length)||"/",g={path:m.relativePath,caseSensitive:m.caseSensitive,end:p},v=m.matcher&&m.compiledParams?Vy(g,y,m.matcher,m.compiledParams):aa(g,y),x=m.route;if(!v&&p&&r&&!a[a.length-1].route.index&&(v=aa({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:pn([s,v.pathname]),pathnameBase:yS(pn([s,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(s=pn([s,v.pathnameBase]))}return c}function aa(t,l){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,a]=Xy(t.path,t.caseSensitive,t.end);return Vy(t,l,r,a)}function Vy(t,l,r,a){let o=l.match(r);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:a.reduce((p,{paramName:y,isOptional:g},v)=>{if(y==="*"){let w=d[v]||"";c=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const x=d[v];return g&&!x?p[y]=void 0:p[y]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:c,pattern:t}}function Xy(t,l=!1,r=!0){yn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let a=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,m,p,y)=>{if(a.push({paramName:d,isOptional:m!=null}),m){let g=y.charAt(p+c.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(a.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,l?void 0:"i"),a]}function Zy(t){try{return t.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return yn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),t}}function In(t,l){if(l==="/")return t;if(!t.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,a=t.charAt(r);return a&&a!=="/"?null:t.slice(r)||"/"}function pS(t,l="/"){let{pathname:r,search:a="",hash:o=""}=typeof t=="string"?Zi(t):t,s;return r?(r=Iy(r),r.startsWith("/")?s=Ag(r.substring(1),"/"):s=Ag(r,l)):s=l,{pathname:s,search:bS(a),hash:vS(o)}}function Ag(t,l){let r=Iu(l).split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function _c(t,l,r,a){return`Cannot include a '${t}' character in a manually specified \`to.${l}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gS(t){return t.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function Mf(t){let l=gS(t);return l.map((r,a)=>a===l.length-1?r.pathname:r.pathnameBase)}function eo(t,l,r,a=!1){let o;typeof t=="string"?o=Zi(t):(o={...t},Pe(!o.pathname||!o.pathname.includes("?"),_c("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),_c("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),_c("#","search","hash",o)));let s=t===""||o.pathname==="",c=s?"/":o.pathname,d;if(c==null)d=r;else{let g=l.length-1;if(!a&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),g-=1;o.pathname=v.join("/")}d=g>=0?l[g]:"/"}let m=pS(o,d),p=c&&c!=="/"&&c.endsWith("/"),y=(s||c===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||y)&&(m.pathname+="/"),m}var Iy=t=>t.replace(/[\\/]{2,}/g,"/"),pn=t=>Iy(t.join("/")),Iu=t=>t.replace(/\/+$/,""),yS=t=>Iu(t).replace(/^\/*/,"/"),bS=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,vS=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,xS=class{constructor(t,l,r,a=!1){this.status=t,this.statusText=l||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function SS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function kS(t){let l=t.map(r=>r.route.path).filter(Boolean);return pn(l)||"/"}var Ky=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jy(t,l){let r=t;if(typeof r!="string"||!Df.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,o=!1;if(Ky)try{let s=new URL(window.location.href),c=Qy.test(r)?new URL($x(r,s.protocol)):new URL(r),d=In(c.pathname,l);c.origin===s.origin&&d!=null?r=d+c.search+c.hash:o=!0}catch{yn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Py=["POST","PUT","PATCH","DELETE"];new Set(Py);var ES=["GET",...Py];new Set(ES);var wS=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function CS(t){try{return wS.includes(new URL(t).protocol)}catch{return!1}}var Ii=M.createContext(null);Ii.displayName="DataRouter";var to=M.createContext(null);to.displayName="DataRouterState";var $y=M.createContext(!1);function TS(){return M.useContext($y)}var Wy=M.createContext({isTransitioning:!1});Wy.displayName="ViewTransition";var AS=M.createContext(new Map);AS.displayName="Fetchers";var zS=M.createContext(null);zS.displayName="Await";var Pt=M.createContext(null);Pt.displayName="Navigation";var ca=M.createContext(null);ca.displayName="Location";var cn=M.createContext({outlet:null,matches:[],isDataRoute:!1});cn.displayName="Route";var _f=M.createContext(null);_f.displayName="RouteError";var eb="REACT_ROUTER_ERROR",RS="REDIRECT",OS="ROUTE_ERROR_RESPONSE";function DS(t){if(t.startsWith(`${eb}:${RS}:{`))try{let l=JSON.parse(t.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function MS(t){if(t.startsWith(`${eb}:${OS}:{`))try{let l=JSON.parse(t.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new xS(l.status,l.statusText,l.data)}catch{}}function _S(t,{relative:l}={}){Pe(Wl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=M.useContext(Pt),{hash:o,pathname:s,search:c}=fa(t,{relative:l}),d=s;return r!=="/"&&(d=s==="/"?r:pn([r,s])),a.createHref({pathname:d,search:c,hash:o})}function Wl(){return M.useContext(ca)!=null}function vn(){return Pe(Wl(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(ca).location}function NS(t){Pe(Wl(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:l}=vn();return M.useMemo(()=>aa(t,Zy(l)),[l,t])}var tb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nb(t){M.useContext(Pt).static||M.useLayoutEffect(t)}function Nf(){let{isDataRoute:t}=M.useContext(cn);return t?JS():LS()}function LS(){Pe(Wl(),"useNavigate() may be used only in the context of a <Router> component.");let t=M.useContext(Ii),{basename:l,navigator:r}=M.useContext(Pt),{matches:a}=M.useContext(cn),{pathname:o}=vn(),s=JSON.stringify(Mf(a)),c=M.useRef(!1);return nb(()=>{c.current=!0}),M.useCallback((m,p={})=>{if(yn(c.current,tb),!c.current)return;if(typeof m=="number"){r.go(m);return}let y=eo(m,JSON.parse(s),o,p.relative==="path");t==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:pn([l,y.pathname])),(p.replace?r.replace:r.push)(y,p.state,p)},[l,r,s,o,t])}var jS=M.createContext(null);function US(t){let l=M.useContext(cn).outlet;return M.useMemo(()=>l&&M.createElement(jS.Provider,{value:t},l),[l,t])}function BS(){let{matches:t}=M.useContext(cn);return t[t.length-1]?.params??{}}function fa(t,{relative:l}={}){let{matches:r}=M.useContext(cn),{pathname:a}=vn(),o=JSON.stringify(Mf(r));return M.useMemo(()=>eo(t,JSON.parse(o),a,l==="path"),[t,o,a,l])}function HS(t,l){return lb(t,l)}function lb(t,l,r){Pe(Wl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=M.useContext(Pt),{matches:o}=M.useContext(cn),s=o[o.length-1],c=s?s.params:{},d=s?s.pathname:"/",m=s?s.pathnameBase:"/",p=s&&s.route;{let A=p&&p.path||"";rb(d,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
10
|
|
|
11
|
-
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let y=vn(),g;if(l){let A=typeof l=="string"?Zi(l):l;Pe(m==="/"||A.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),g=A}else g=y;let v=g.pathname||"/",x=v;if(m!=="/"){let A=m.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(A.length).join("/")}let w=r&&r.state.matches.length?r.state.matches.map(A=>Object.assign(A,{route:r.manifest[A.route.id]||A.route})):Fy(t,{pathname:x});yn(p||w!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),yn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=YS(w&&w.map(A=>Object.assign({},A,{params:Object.assign({},c,A.params),pathname:pn([m,a.encodeLocation?a.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:pn([m,a.encodeLocation?a.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),o,r);return l&&T?M.createElement(ca.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},T):T}function qS(){let t=KS(),l=SS(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",t),c=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:s},"ErrorBoundary")," or"," ",M.createElement("code",{style:s},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},l),r?M.createElement("pre",{style:o},r):null,c)}var QS=M.createElement(qS,null),ib=class extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,l){return l.location!==t.location||l.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:l.error,location:l.location,revalidation:t.revalidation||l.revalidation}}componentDidCatch(t,l){this.props.onError?this.props.onError(t,l):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=MS(t.digest);r&&(t=r)}let l=t!==void 0?M.createElement(cn.Provider,{value:this.props.routeContext},M.createElement(_f.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?M.createElement(FS,{error:t},l):l}};ib.contextType=$y;var Nc=new WeakMap;function FS({children:t,error:l}){let{basename:r}=M.useContext(Pt);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let a=DS(l.digest);if(a){let o=Nc.get(l);if(o)throw o;let s=Jy(a.location,r),c=s.absoluteURL||s.to;if(CS(c))throw new Error("Invalid redirect location");if(Ky&&!Nc.get(l))if(s.isExternal||a.reloadDocument)window.location.href=c;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw Nc.set(l,d),d}return M.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c}`})}}return t}function GS({routeContext:t,match:l,children:r}){let a=M.useContext(Ii);return a&&a.static&&a.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=l.route.id),M.createElement(cn.Provider,{value:t},r)}function YS(t,l=[],r){let a=r?.state;if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(l.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let o=t,s=a?.errors;if(s!=null){let y=o.findIndex(g=>g.route.id&&s?.[g.route.id]!==void 0);Pe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let c=!1,d=-1;if(r&&a){c=a.renderFallback;for(let y=0;y<o.length;y++){let g=o[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=y),g.route.id){let{loaderData:v,errors:x}=a,w=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||w){r.isStatic&&(c=!0),d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}}let m=r?.onError,p=a&&m?(y,g)=>{m(y,{location:a.location,params:a.matches?.[0]?.params??{},pattern:kS(a.matches),errorInfo:g})}:void 0;return o.reduceRight((y,g,v)=>{let x,w=!1,T=null,A=null;a&&(x=s&&g.route.id?s[g.route.id]:void 0,T=g.route.errorElement||QS,c&&(d<0&&v===0?(rb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,A=null):d===v&&(w=!0,A=g.route.hydrateFallbackElement||null)));let z=l.concat(o.slice(0,v+1)),Q=()=>{let j;return x?j=T:w?j=A:g.route.Component?j=M.createElement(g.route.Component,null):g.route.element?j=g.route.element:j=y,M.createElement(GS,{match:g,routeContext:{outlet:y,matches:z,isDataRoute:a!=null},children:j})};return a&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?M.createElement(ib,{location:a.location,revalidation:a.revalidation,component:T,error:x,children:Q(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:p}):Q()},null)}function Lf(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VS(t){let l=M.useContext(Ii);return Pe(l,Lf(t)),l}function XS(t){let l=M.useContext(to);return Pe(l,Lf(t)),l}function ZS(t){let l=M.useContext(cn);return Pe(l,Lf(t)),l}function jf(t){let l=ZS(t),r=l.matches[l.matches.length-1];return Pe(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function IS(){return jf("useRouteId")}function KS(){let t=M.useContext(_f),l=XS("useRouteError"),r=jf("useRouteError");return t!==void 0?t:l.errors?.[r]}function JS(){let{router:t}=VS("useNavigate"),l=jf("useNavigate"),r=M.useRef(!1);return nb(()=>{r.current=!0}),M.useCallback(async(o,s={})=>{yn(r.current,tb),r.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:l,...s}))},[t,l])}var zg={};function rb(t,l,r){!l&&!zg[t]&&(zg[t]=!0,yn(!1,r))}M.memo(PS);function PS({routes:t,manifest:l,future:r,state:a,isStatic:o,onError:s}){return lb(t,void 0,{manifest:l,state:a,isStatic:o,onError:s})}function $S({to:t,replace:l,state:r,relative:a}){Pe(Wl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=M.useContext(Pt);yn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=M.useContext(cn),{pathname:c}=vn(),d=Nf(),m=eo(t,Mf(s),c,a==="path"),p=JSON.stringify(m);return M.useEffect(()=>{d(JSON.parse(p),{replace:l,state:r,relative:a})},[d,p,a,l,r]),null}function WS(t){return US(t.context)}function $r(t){Pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ek({basename:t="/",children:l=null,location:r,navigationType:a="POP",navigator:o,static:s=!1,useTransitions:c}){Pe(!Wl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),m=M.useMemo(()=>({basename:d,navigator:o,static:s,useTransitions:c,future:{}}),[d,o,s,c]);typeof r=="string"&&(r=Zi(r));let{pathname:p="/",search:y="",hash:g="",state:v=null,key:x="default",mask:w}=r,T=M.useMemo(()=>{let A=In(p,d);return A==null?null:{location:{pathname:A,search:y,hash:g,state:v,key:x,mask:w},navigationType:a}},[d,p,y,g,v,x,a,w]);return yn(T!=null,`<Router basename="${d}"> is not able to match the URL "${p}${y}${g}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:M.createElement(Pt.Provider,{value:m},M.createElement(ca.Provider,{children:l,value:T}))}function tk({children:t,location:l}){return HS(sf(t),l)}function sf(t,l=[]){let r=[];return M.Children.forEach(t,(a,o)=>{if(!M.isValidElement(a))return;let s=[...l,o];if(a.type===M.Fragment){r.push.apply(r,sf(a.props.children,s));return}Pe(a.type===$r,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=sf(a.props.children,s)),r.push(c)}),r}var Yu="get",Vu="application/x-www-form-urlencoded";function no(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function nk(t){return no(t)&&t.tagName.toLowerCase()==="button"}function lk(t){return no(t)&&t.tagName.toLowerCase()==="form"}function ik(t){return no(t)&&t.tagName.toLowerCase()==="input"}function rk(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function ak(t,l){return t.button===0&&(!l||l==="_self")&&!rk(t)}var Uu=null;function uk(){if(Uu===null)try{new FormData(document.createElement("form"),0),Uu=!1}catch{Uu=!0}return Uu}var ok=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lc(t){return t!=null&&!ok.has(t)?(yn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vu}"`),null):t}function sk(t,l){let r,a,o,s,c;if(lk(t)){let d=t.getAttribute("action");a=d?In(d,l):null,r=t.getAttribute("method")||Yu,o=Lc(t.getAttribute("enctype"))||Vu,s=new FormData(t)}else if(nk(t)||ik(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=t.getAttribute("formaction")||d.getAttribute("action");if(a=m?In(m,l):null,r=t.getAttribute("formmethod")||d.getAttribute("method")||Yu,o=Lc(t.getAttribute("formenctype"))||Lc(d.getAttribute("enctype"))||Vu,s=new FormData(d,t),!uk()){let{name:p,type:y,value:g}=t;if(y==="image"){let v=p?`${p}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else p&&s.append(p,g)}}else{if(no(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Yu,a=null,o=Vu,c=t}return s&&o==="text/plain"&&(c=s,s=void 0),{action:a,method:r.toLowerCase(),encType:o,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Uf(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function ab(t,l,r,a){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${a}`:o.pathname=`${o.pathname}.${a}`:o.pathname==="/"?o.pathname=`_root.${a}`:l&&In(o.pathname,l)==="/"?o.pathname=`${Iu(l)}/_root.${a}`:o.pathname=`${Iu(o.pathname)}.${a}`,o}async function ck(t,l){if(t.id in l)return l[t.id];try{let r=await import(t.module);return l[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fk(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function hk(t,l,r){let a=await Promise.all(t.map(async o=>{let s=l.routes[o.route.id];if(s){let c=await ck(s,r);return c.links?c.links():[]}return[]}));return gk(a.flat(1).filter(fk).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Rg(t,l,r,a,o,s){let c=(m,p)=>r[p]?m.route.id!==r[p].route.id:!0,d=(m,p)=>r[p].pathname!==m.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==m.params["*"];return s==="assets"?l.filter((m,p)=>c(m,p)||d(m,p)):s==="data"?l.filter((m,p)=>{let y=a.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(c(m,p)||d(m,p))return!0;if(m.route.shouldRevalidate){let g=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function dk(t,l,{includeHydrateFallback:r}={}){return mk(t.map(a=>{let o=l.routes[a.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function mk(t){return[...new Set(t)]}function pk(t){let l={},r=Object.keys(t).sort();for(let a of r)l[a]=t[a];return l}function gk(t,l){let r=new Set;return new Set(l),t.reduce((a,o)=>{let s=JSON.stringify(pk(o));return r.has(s)||(r.add(s),a.push({key:s,link:o})),a},[])}function Bf(){let t=M.useContext(Ii);return Uf(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function yk(){let t=M.useContext(to);return Uf(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Hf=M.createContext(void 0);Hf.displayName="FrameworkContext";function lo(){let t=M.useContext(Hf);return Uf(t,"You must render this element inside a <HydratedRouter> element"),t}function bk(t,l){let r=M.useContext(Hf),[a,o]=M.useState(!1),[s,c]=M.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:p,onMouseLeave:y,onTouchStart:g}=l,v=M.useRef(null);M.useEffect(()=>{if(t==="render"&&c(!0),t==="viewport"){let T=z=>{z.forEach(Q=>{c(Q.isIntersecting)})},A=new IntersectionObserver(T,{threshold:.5});return v.current&&A.observe(v.current),()=>{A.disconnect()}}},[t]),M.useEffect(()=>{if(a){let T=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(T)}}},[a]);let x=()=>{o(!0)},w=()=>{o(!1),c(!1)};return r?t!=="intent"?[s,v,{}]:[s,v,{onFocus:Vr(d,x),onBlur:Vr(m,w),onMouseEnter:Vr(p,x),onMouseLeave:Vr(y,w),onTouchStart:Vr(g,x)}]:[!1,v,{}]}function Vr(t,l){return r=>{t&&t(r),r.defaultPrevented||l(r)}}function vk({page:t,...l}){let r=TS(),{nonce:a}=lo(),{router:o}=Bf(),s=M.useMemo(()=>Fy(o.routes,t,o.basename),[o.routes,t,o.basename]);return s?(l.nonce==null&&a&&(l={...l,nonce:a}),r?M.createElement(Sk,{page:t,matches:s,...l}):M.createElement(kk,{page:t,matches:s,...l})):null}function xk(t){let{manifest:l,routeModules:r}=lo(),[a,o]=M.useState([]);return M.useEffect(()=>{let s=!1;return hk(t,l,r).then(c=>{s||o(c)}),()=>{s=!0}},[t,l,r]),a}function Sk({page:t,matches:l,...r}){let a=vn(),{future:o}=lo(),{basename:s}=Bf(),c=M.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let d=ab(t,s,o.v8_trailingSlashAwareDataRequests,"rsc"),m=!1,p=[];for(let y of l)typeof y.route.shouldRevalidate=="function"?m=!0:p.push(y.route.id);return m&&p.length>0&&d.searchParams.set("_routes",p.join(",")),[d.pathname+d.search]},[s,o.v8_trailingSlashAwareDataRequests,t,a,l]);return M.createElement(M.Fragment,null,c.map(d=>M.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...r})))}function kk({page:t,matches:l,...r}){let a=vn(),{future:o,manifest:s,routeModules:c}=lo(),{basename:d}=Bf(),{loaderData:m,matches:p}=yk(),y=M.useMemo(()=>Rg(t,l,p,s,a,"data"),[t,l,p,s,a]),g=M.useMemo(()=>Rg(t,l,p,s,a,"assets"),[t,l,p,s,a]),v=M.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let T=new Set,A=!1;if(l.forEach(Q=>{let j=s.routes[Q.route.id];!j||!j.hasLoader||(!y.some(W=>W.route.id===Q.route.id)&&Q.route.id in m&&c[Q.route.id]?.shouldRevalidate||j.hasClientLoader?A=!0:T.add(Q.route.id))}),T.size===0)return[];let z=ab(t,d,o.v8_trailingSlashAwareDataRequests,"data");return A&&T.size>0&&z.searchParams.set("_routes",l.filter(Q=>T.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[z.pathname+z.search]},[d,o.v8_trailingSlashAwareDataRequests,m,a,s,y,l,t,c]),x=M.useMemo(()=>dk(g,s),[g,s]),w=xk(g);return M.createElement(M.Fragment,null,v.map(T=>M.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...r})),x.map(T=>M.createElement("link",{key:T,rel:"modulepreload",href:T,...r})),w.map(({key:T,link:A})=>M.createElement("link",{key:T,nonce:r.nonce,...A,crossOrigin:A.crossOrigin??r.crossOrigin})))}function Ek(...t){return l=>{t.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var wk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wk&&(window.__reactRouterVersion="7.18.1")}catch{}function Ck({basename:t,children:l,useTransitions:r,window:a}){let o=M.useRef();o.current==null&&(o.current=Wx({window:a,v5Compat:!0}));let s=o.current,[c,d]=M.useState({action:s.action,location:s.location}),m=M.useCallback(p=>{r===!1?d(p):M.startTransition(()=>d(p))},[r]);return M.useLayoutEffect(()=>s.listen(m),[s,m]),M.createElement(ek,{basename:t,children:l,location:c.location,navigationType:c.action,navigator:s,useTransitions:r})}var ub=M.forwardRef(function({onClick:l,discover:r="render",prefetch:a="none",relative:o,reloadDocument:s,replace:c,mask:d,state:m,target:p,to:y,preventScrollReset:g,viewTransition:v,defaultShouldRevalidate:x,...w},T){let{basename:A,navigator:z,useTransitions:Q}=M.useContext(Pt),j=typeof y=="string"&&Df.test(y),W=Jy(y,A);y=W.to;let ee=_S(y,{relative:o}),q=vn(),J=null;if(d){let P=eo(d,[],q.mask?q.mask.pathname:"/",!0);A!=="/"&&(P.pathname=P.pathname==="/"?A:pn([A,P.pathname])),J=z.createHref(P)}let[V,ae,B]=bk(a,w),ie=Rk(y,{replace:c,mask:d,state:m,target:p,preventScrollReset:g,relative:o,viewTransition:v,defaultShouldRevalidate:x,useTransitions:Q});function te(P){l&&l(P),P.defaultPrevented||ie(P)}let ye=!(W.isExternal||s),ue=M.createElement("a",{...w,...B,href:(ye?J:void 0)||W.absoluteURL||ee,onClick:ye?te:l,ref:Ek(T,ae),target:p,"data-discover":!j&&r==="render"?"true":void 0});return V&&!j?M.createElement(M.Fragment,null,ue,M.createElement(vk,{page:ee})):ue});ub.displayName="Link";var Tk=M.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:a="",end:o=!1,style:s,to:c,viewTransition:d,children:m,...p},y){let g=fa(c,{relative:p.relative}),v=vn(),x=M.useContext(to),{navigator:w,basename:T}=M.useContext(Pt),A=x!=null&&Nk(g)&&d===!0,z=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,Q=v.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(Q=Q.toLowerCase(),j=j?j.toLowerCase():null,z=z.toLowerCase()),j&&T&&(j=In(j,T)||j);const W=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let ee=Q===z||!o&&Q.startsWith(z)&&Q.charAt(W)==="/",q=j!=null&&(j===z||!o&&j.startsWith(z)&&j.charAt(z.length)==="/"),J={isActive:ee,isPending:q,isTransitioning:A},V=ee?l:void 0,ae;typeof a=="function"?ae=a(J):ae=[a,ee?"active":null,q?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let B=typeof s=="function"?s(J):s;return M.createElement(ub,{...p,"aria-current":V,className:ae,ref:y,style:B,to:c,viewTransition:d},typeof m=="function"?m(J):m)});Tk.displayName="NavLink";var Ak=M.forwardRef(({discover:t="render",fetcherKey:l,navigate:r,reloadDocument:a,replace:o,state:s,method:c=Yu,action:d,onSubmit:m,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v,...x},w)=>{let{useTransitions:T}=M.useContext(Pt),A=Mk(),z=_k(d,{relative:p}),Q=c.toLowerCase()==="get"?"get":"post",j=typeof d=="string"&&Df.test(d),W=ee=>{if(m&&m(ee),ee.defaultPrevented)return;ee.preventDefault();let q=ee.nativeEvent.submitter,J=q?.getAttribute("formmethod")||c,V=()=>A(q||ee.currentTarget,{fetcherKey:l,method:J,navigate:r,replace:o,state:s,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v});T&&r!==!1?M.startTransition(()=>V()):V()};return M.createElement("form",{ref:w,method:Q,action:z,onSubmit:a?m:W,...x,"data-discover":!j&&t==="render"?"true":void 0})});Ak.displayName="Form";function zk(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ob(t){let l=M.useContext(Ii);return Pe(l,zk(t)),l}function Rk(t,{target:l,replace:r,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:m,useTransitions:p}={}){let y=Nf(),g=vn(),v=fa(t,{relative:c});return M.useCallback(x=>{if(ak(x,l)){x.preventDefault();let w=r!==void 0?r:ra(g)===ra(v),T=()=>y(t,{replace:w,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:m});p?M.startTransition(()=>T()):T()}},[g,y,v,r,a,o,l,t,s,c,d,m,p])}var Ok=0,Dk=()=>`__${String(++Ok)}__`;function Mk(){let{router:t}=ob("useSubmit"),{basename:l}=M.useContext(Pt),r=IS(),a=t.fetch,o=t.navigate;return M.useCallback(async(s,c={})=>{let{action:d,method:m,encType:p,formData:y,body:g}=sk(s,l);if(c.navigate===!1){let v=c.fetcherKey||Dk();await a(v,r,c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||m,formEncType:c.encType||p,flushSync:c.flushSync})}else await o(c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||m,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,o,l,r])}function _k(t,{relative:l}={}){let{basename:r}=M.useContext(Pt),a=M.useContext(cn);Pe(a,"useFormAction must be used inside a RouteContext");let[o]=a.matches.slice(-1),s={...fa(t||".",{relative:l})},c=vn();if(t==null){s.search=c.search;let d=new URLSearchParams(s.search),m=d.getAll("index");if(m.some(y=>y==="")){d.delete("index"),m.filter(g=>g).forEach(g=>d.append("index",g));let y=d.toString();s.search=y?`?${y}`:""}}return(!t||t===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:pn([r,s.pathname])),ra(s)}function Nk(t,{relative:l}={}){let r=M.useContext(Wy);Pe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=ob("useViewTransitionState"),o=fa(t,{relative:l});if(!r.isTransitioning)return!1;let s=In(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=In(r.nextLocation.pathname,a)||r.nextLocation.pathname;return aa(o.pathname,c)!=null||aa(o.pathname,s)!=null}const sb=(...t)=>t.filter((l,r,a)=>!!l&&l.trim()!==""&&a.indexOf(l)===r).join(" ").trim();const Lk=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const jk=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,a)=>a?a.toUpperCase():r.toLowerCase());const Og=t=>{const l=jk(t);return l.charAt(0).toUpperCase()+l.slice(1)};var Uk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Bk=t=>{for(const l in t)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const Hk=M.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:s,iconNode:c,...d},m)=>M.createElement("svg",{ref:m,...Uk,width:l,height:l,stroke:t,strokeWidth:a?Number(r)*24/Number(l):r,className:sb("lucide",o),...!s&&!Bk(d)&&{"aria-hidden":"true"},...d},[...c.map(([p,y])=>M.createElement(p,y)),...Array.isArray(s)?s:[s]]));const ha=(t,l)=>{const r=M.forwardRef(({className:a,...o},s)=>M.createElement(Hk,{ref:s,iconNode:l,className:sb(`lucide-${Lk(Og(t))}`,`lucide-${t}`,a),...o}));return r.displayName=Og(t),r};const qk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Qk=ha("arrow-up",qk);const Fk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],Gk=ha("file-diff",Fk);const Yk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Vk=ha("info",Yk);const Xk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Zk=ha("panel-left",Xk);const Ik=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],cb=ha("x",Ik),cf="conductor-remote-token";function Kk(){const l=new URLSearchParams(location.hash.slice(1)).get("token");return l&&(localStorage.setItem(cf,l),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(cf)}function Jk(){return localStorage.getItem(cf)}class fb extends Error{constructor(l,r){super(l),this.status=r}status}async function Xr(t,l={}){const r=Jk(),a=await fetch(t,{...l,headers:{authorization:`Bearer ${r??""}`,"content-type":"application/json",...l.headers}});if(!a.ok){const o=await a.json().catch(()=>({}));throw new fb(o.error||`HTTP ${a.status}`,a.status)}return a.json()}const da={state:()=>Xr("/api/state"),sessions:t=>Xr(`/api/workspaces/${encodeURIComponent(t)}/sessions`),messages:(t,l)=>Xr(`/api/sessions/${encodeURIComponent(t)}/messages?after=${l}`),diff:t=>Xr(`/api/workspaces/${encodeURIComponent(t)}/diff`),sendPrompt:(t,l,r)=>Xr(`/api/sessions/${encodeURIComponent(t)}/prompt`,{method:"POST",body:JSON.stringify({text:l,workspaceId:r})})},Dg=t=>{let l;const r=new Set,a=(p,y)=>{const g=typeof p=="function"?p(l):p;if(!Object.is(g,l)){const v=l;l=y??(typeof g!="object"||g===null)?g:Object.assign({},l,g),r.forEach(x=>x(l,v))}},o=()=>l,d={setState:a,getState:o,getInitialState:()=>m,subscribe:p=>(r.add(p),()=>r.delete(p))},m=l=t(a,o,d);return d},Pk=(t=>t?Dg(t):Dg),$k=t=>t;function Wk(t,l=$k){const r=ju.useSyncExternalStore(t.subscribe,ju.useCallback(()=>l(t.getState()),[t,l]),ju.useCallback(()=>l(t.getInitialState()),[t,l]));return ju.useDebugValue(r),r}const Mg=t=>{const l=Pk(t),r=a=>Wk(l,a);return Object.assign(r,l),r},eE=(t=>t?Mg(t):Mg),Kn=eE(t=>({token:Kk(),online:!0,sidebarOpen:!location.pathname.startsWith("/w/"),setToken:l=>t({token:l}),setOnline:l=>t({online:l}),setSidebarOpen:l=>t({sidebarOpen:l})}));function io(){const t=Kn(r=>r.setOnline),l=Kn(r=>r.setToken);return M.useCallback((r,a)=>{t(r),a instanceof fb&&a.status===401&&l(null)},[t,l])}function hb(){const t=io(),l=Of({queryKey:["state"],queryFn:()=>da.state(),refetchInterval:2500});return M.useEffect(()=>{l.isSuccess&&t(!0),l.isError&&t(!1,l.error)},[l.isSuccess,l.isError,l.error,t]),l}function tE(t){const l=io(),r=Of({queryKey:["sessions",t],queryFn:()=>da.sessions(t),enabled:!!t,refetchInterval:4e3});return M.useEffect(()=>{r.isError&&l(!1,r.error)},[r.isError,r.error,l]),r}function nE(t,l){const r=io(),a=Of({queryKey:["diff",t],queryFn:()=>da.diff(t),enabled:!!t,refetchInterval:5e3});return M.useEffect(()=>{a.isError&&r(!1,a.error)},[a.isError,a.error,r]),a}function lE(t){const l=io(),[r,a]=M.useState({entries:[],loading:!0,error:null}),o=M.useRef(0);return M.useEffect(()=>{if(!t){a({entries:[],loading:!1,error:null});return}o.current=0,a({entries:[],loading:!0,error:null});let s=!0;const c=async()=>{try{const{entries:m,cursor:p}=await da.messages(t,o.current);if(!s)return;l(!0),m.length?(o.current=p,a(y=>({entries:[...y.entries,...m],loading:!1,error:null}))):a(y=>y.loading?{...y,loading:!1}:y)}catch(m){if(!s)return;l(!1,m),a(p=>({...p,loading:!1,error:m instanceof Error?m.message:String(m)}))}};c();const d=setInterval(c,1800);return()=>{s=!1,clearInterval(d)}},[t,l]),r}function db(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(r=db(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function iE(){for(var t,l,r=0,a="",o=arguments.length;r<o;r++)(t=arguments[r])&&(l=db(t))&&(a&&(a+=" "),a+=l);return a}const rE=(t,l)=>{const r=new Array(t.length+l.length);for(let a=0;a<t.length;a++)r[a]=t[a];for(let a=0;a<l.length;a++)r[t.length+a]=l[a];return r},aE=(t,l)=>({classGroupId:t,validator:l}),mb=(t=new Map,l=null,r)=>({nextPart:t,validators:l,classGroupId:r}),Ku="-",_g=[],uE="arbitrary..",oE=t=>{const l=cE(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return sE(c);const d=c.split(Ku),m=d[0]===""&&d.length>1?1:0;return pb(d,m,l)},getConflictingClassGroupIds:(c,d)=>{if(d){const m=a[c],p=r[c];return m?p?rE(p,m):m:p||_g}return r[c]||_g}}},pb=(t,l,r)=>{if(t.length-l===0)return r.classGroupId;const o=t[l],s=r.nextPart.get(o);if(s){const p=pb(t,l+1,s);if(p)return p}const c=r.validators;if(c===null)return;const d=l===0?t.join(Ku):t.slice(l).join(Ku),m=c.length;for(let p=0;p<m;p++){const y=c[p];if(y.validator(d))return y.classGroupId}},sE=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=t.slice(1,-1),r=l.indexOf(":"),a=l.slice(0,r);return a?uE+a:void 0})(),cE=t=>{const{theme:l,classGroups:r}=t;return fE(r,l)},fE=(t,l)=>{const r=mb();for(const a in t){const o=t[a];qf(o,r,a,l)}return r},qf=(t,l,r,a)=>{const o=t.length;for(let s=0;s<o;s++){const c=t[s];hE(c,l,r,a)}},hE=(t,l,r,a)=>{if(typeof t=="string"){dE(t,l,r);return}if(typeof t=="function"){mE(t,l,r,a);return}pE(t,l,r,a)},dE=(t,l,r)=>{const a=t===""?l:gb(l,t);a.classGroupId=r},mE=(t,l,r,a)=>{if(gE(t)){qf(t(a),l,r,a);return}l.validators===null&&(l.validators=[]),l.validators.push(aE(r,t))},pE=(t,l,r,a)=>{const o=Object.entries(t),s=o.length;for(let c=0;c<s;c++){const[d,m]=o[c];qf(m,gb(l,d),r,a)}},gb=(t,l)=>{let r=t;const a=l.split(Ku),o=a.length;for(let s=0;s<o;s++){const c=a[s];let d=r.nextPart.get(c);d||(d=mb(),r.nextPart.set(c,d)),r=d}return r},gE=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,yE=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=Object.create(null),a=Object.create(null);const o=(s,c)=>{r[s]=c,l++,l>t&&(l=0,a=r,r=Object.create(null))};return{get(s){let c=r[s];if(c!==void 0)return c;if((c=a[s])!==void 0)return o(s,c),c},set(s,c){s in r?r[s]=c:o(s,c)}}},ff="!",Ng=":",bE=[],Lg=(t,l,r,a,o)=>({modifiers:t,hasImportantModifier:l,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),vE=t=>{const{prefix:l,experimentalParseClassName:r}=t;let a=o=>{const s=[];let c=0,d=0,m=0,p;const y=o.length;for(let T=0;T<y;T++){const A=o[T];if(c===0&&d===0){if(A===Ng){s.push(o.slice(m,T)),m=T+1;continue}if(A==="/"){p=T;continue}}A==="["?c++:A==="]"?c--:A==="("?d++:A===")"&&d--}const g=s.length===0?o:o.slice(m);let v=g,x=!1;g.endsWith(ff)?(v=g.slice(0,-1),x=!0):g.startsWith(ff)&&(v=g.slice(1),x=!0);const w=p&&p>m?p-m:void 0;return Lg(s,x,v,w)};if(l){const o=l+Ng,s=a;a=c=>c.startsWith(o)?s(c.slice(o.length)):Lg(bE,!1,c,void 0,!0)}if(r){const o=a;a=s=>r({className:s,parseClassName:o})}return a},xE=t=>{const l=new Map;return t.orderSensitiveModifiers.forEach((r,a)=>{l.set(r,1e6+a)}),r=>{const a=[];let o=[];for(let s=0;s<r.length;s++){const c=r[s],d=c[0]==="[",m=l.has(c);d||m?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},SE=t=>({cache:yE(t.cacheSize),parseClassName:vE(t),sortModifiers:xE(t),postfixLookupClassGroupIds:kE(t),...oE(t)}),kE=t=>{const l=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let a=0;a<r.length;a++)l[r[a]]=!0;return l},EE=/\s+/,wE=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:c}=l,d=[],m=t.trim().split(EE);let p="";for(let y=m.length-1;y>=0;y-=1){const g=m[y],{isExternal:v,modifiers:x,hasImportantModifier:w,baseClassName:T,maybePostfixModifierPosition:A}=r(g);if(v){p=g+(p.length>0?" "+p:p);continue}let z=!!A,Q;if(z){const J=T.substring(0,A);Q=a(J);const V=Q&&c[Q]?a(T):void 0;V&&V!==Q&&(Q=V,z=!1)}else Q=a(T);if(!Q){if(!z){p=g+(p.length>0?" "+p:p);continue}if(Q=a(T),!Q){p=g+(p.length>0?" "+p:p);continue}z=!1}const j=x.length===0?"":x.length===1?x[0]:s(x).join(":"),W=w?j+ff:j,ee=W+Q;if(d.indexOf(ee)>-1)continue;d.push(ee);const q=o(Q,z);for(let J=0;J<q.length;++J){const V=q[J];d.push(W+V)}p=g+(p.length>0?" "+p:p)}return p},CE=(...t)=>{let l=0,r,a,o="";for(;l<t.length;)(r=t[l++])&&(a=yb(r))&&(o&&(o+=" "),o+=a);return o},yb=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=yb(t[a]))&&(r&&(r+=" "),r+=l);return r},TE=(t,...l)=>{let r,a,o,s;const c=m=>{const p=l.reduce((y,g)=>g(y),t());return r=SE(p),a=r.cache.get,o=r.cache.set,s=d,d(m)},d=m=>{const p=a(m);if(p)return p;const y=wE(m,r);return o(m,y),y};return s=c,(...m)=>s(CE(...m))},AE=[],ct=t=>{const l=r=>r[t]||AE;return l.isThemeGetter=!0,l},bb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,RE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,DE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ME=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,El=t=>zE.test(t),Te=t=>!!t&&!Number.isNaN(Number(t)),Cn=t=>!!t&&Number.isInteger(Number(t)),jc=t=>t.endsWith("%")&&Te(t.slice(0,-1)),Zn=t=>RE.test(t),xb=()=>!0,NE=t=>OE.test(t)&&!DE.test(t),Qf=()=>!1,LE=t=>ME.test(t),jE=t=>_E.test(t),UE=t=>!oe(t)&&!ce(t),BE=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),HE=t=>Al(t,Eb,Qf),oe=t=>bb.test(t),Zl=t=>Al(t,wb,NE),jg=t=>Al(t,ZE,Te),qE=t=>Al(t,Tb,xb),QE=t=>Al(t,Cb,Qf),Ug=t=>Al(t,Sb,Qf),FE=t=>Al(t,kb,jE),Bu=t=>Al(t,Ab,LE),ce=t=>vb.test(t),Zr=t=>ei(t,wb),GE=t=>ei(t,Cb),Bg=t=>ei(t,Sb),YE=t=>ei(t,Eb),VE=t=>ei(t,kb),Hu=t=>ei(t,Ab,!0),XE=t=>ei(t,Tb,!0),Al=(t,l,r)=>{const a=bb.exec(t);return a?a[1]?l(a[1]):r(a[2]):!1},ei=(t,l,r=!1)=>{const a=vb.exec(t);return a?a[1]?l(a[1]):r:!1},Sb=t=>t==="position"||t==="percentage",kb=t=>t==="image"||t==="url",Eb=t=>t==="length"||t==="size"||t==="bg-size",wb=t=>t==="length",ZE=t=>t==="number",Cb=t=>t==="family-name",Tb=t=>t==="number"||t==="weight",Ab=t=>t==="shadow",IE=()=>{const t=ct("color"),l=ct("font"),r=ct("text"),a=ct("font-weight"),o=ct("tracking"),s=ct("leading"),c=ct("breakpoint"),d=ct("container"),m=ct("spacing"),p=ct("radius"),y=ct("shadow"),g=ct("inset-shadow"),v=ct("text-shadow"),x=ct("drop-shadow"),w=ct("blur"),T=ct("perspective"),A=ct("aspect"),z=ct("ease"),Q=ct("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ee=()=>[...W(),ce,oe],q=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],V=()=>[ce,oe,m],ae=()=>[El,"full","auto",...V()],B=()=>[Cn,"none","subgrid",ce,oe],ie=()=>["auto",{span:["full",Cn,ce,oe]},Cn,ce,oe],te=()=>[Cn,"auto",ce,oe],ye=()=>["auto","min","max","fr",ce,oe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...V()],K=()=>[El,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],he=()=>[El,"screen","full","dvw","lvw","svw","min","max","fit",...V()],ke=()=>[El,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],k=()=>[t,ce,oe],R=()=>[...W(),Bg,Ug,{position:[ce,oe]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",YE,HE,{size:[ce,oe]}],le=()=>[jc,Zr,Zl],se=()=>["","none","full",p,ce,oe],re=()=>["",Te,Zr,Zl],we=()=>["solid","dashed","dotted","double"],Ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Te,jc,Bg,Ug],kt=()=>["","none",w,ce,oe],At=()=>["none",Te,ce,oe],xn=()=>["none",Te,ce,oe],Pn=()=>[Te,ce,oe],zt=()=>[El,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zn],breakpoint:[Zn],color:[xb],container:[Zn],"drop-shadow":[Zn],ease:["in","out","in-out"],font:[UE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zn],shadow:[Zn],spacing:["px",Te],text:[Zn],"text-shadow":[Zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",El,oe,ce,A]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,oe]}],"container-named":[BE],columns:[{columns:[Te,oe,ce,d]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ee()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Cn,"auto",ce,oe]}],basis:[{basis:[El,"full","auto",d,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,El,"auto","initial","none",oe]}],grow:[{grow:["",Te,ce,oe]}],shrink:[{shrink:["",Te,ce,oe]}],order:[{order:[Cn,"first","last","none",ce,oe]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...ke()]}],"min-block-size":[{"min-block":["auto",...ke()]}],"max-block-size":[{"max-block":["none",...ke()]}],w:[{w:[d,"screen",...K()]}],"min-w":[{"min-w":[d,"screen","none",...K()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,Zr,Zl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,XE,qE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jc,oe]}],"font-family":[{font:[GE,QE,l]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ce,oe]}],"line-clamp":[{"line-clamp":[Te,"none",ce,jg]}],leading:[{leading:[s,...V()]}],"list-image":[{"list-image":["none",ce,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ce,Zl]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[Te,"auto",ce,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"tab-size":[{tab:[Cn,ce,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Cn,ce,oe],radial:["",ce,oe],conic:[Cn,ce,oe]},VE,FE]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ce,oe]}],"outline-w":[{outline:["",Te,Zr,Zl]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",y,Hu,Bu]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",g,Hu,Bu]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[Te,Zl]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",v,Hu,Bu]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[Te,ce,oe]}],"mix-blend":[{"mix-blend":[...Ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[ce,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,oe]}],filter:[{filter:["","none",ce,oe]}],blur:[{blur:kt()}],brightness:[{brightness:[Te,ce,oe]}],contrast:[{contrast:[Te,ce,oe]}],"drop-shadow":[{"drop-shadow":["","none",x,Hu,Bu]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",Te,ce,oe]}],"hue-rotate":[{"hue-rotate":[Te,ce,oe]}],invert:[{invert:["",Te,ce,oe]}],saturate:[{saturate:[Te,ce,oe]}],sepia:[{sepia:["",Te,ce,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,oe]}],"backdrop-blur":[{"backdrop-blur":kt()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ce,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ce,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ce,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ce,oe]}],"backdrop-invert":[{"backdrop-invert":["",Te,ce,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ce,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ce,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ce,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ce,oe]}],ease:[{ease:["linear","initial",z,ce,oe]}],delay:[{delay:[Te,ce,oe]}],animate:[{animate:["none",Q,ce,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,ce,oe]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:At()}],"rotate-x":[{"rotate-x":At()}],"rotate-y":[{"rotate-y":At()}],"rotate-z":[{"rotate-z":At()}],scale:[{scale:xn()}],"scale-x":[{"scale-x":xn()}],"scale-y":[{"scale-y":xn()}],"scale-z":[{"scale-z":xn()}],"scale-3d":["scale-3d"],skew:[{skew:Pn()}],"skew-x":[{"skew-x":Pn()}],"skew-y":[{"skew-y":Pn()}],transform:[{transform:[ce,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:zt()}],"translate-x":[{"translate-x":zt()}],"translate-y":[{"translate-y":zt()}],"translate-z":[{"translate-z":zt()}],"translate-none":["translate-none"],zoom:[{zoom:[Cn,ce,oe]}],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,oe]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[Te,Zr,Zl,jg]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},KE=TE(IE);function bn(...t){return KE(iE(t))}function zb(t){return t.workspace_name||t.directory_name||t.id.slice(0,8)}function Rb(t){return t.session_status==="working"?"working":t.derived_status==="done"||t.manual_status==="done"?"done":"idle"}function JE(t){const l=Rb(t);return l==="working"?"working":l==="done"?"done":t.session_status||"idle"}function Ob(t){return t?t.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}function PE(t){const l=new Date(t).getTime();if(!Number.isFinite(l))return"";const r=Math.round((Date.now()-l)/1e3);if(r<45)return"now";if(r<90)return"1m";const a=Math.round(r/60);if(a<60)return`${a}m`;const o=Math.round(a/60);return o<24?`${o}h`:`${Math.round(o/24)}d`}function $E({sessionId:t,workspaceId:l,actuator:r}){const[a,o]=M.useState(""),[s,c]=M.useState(!1),[d,m]=M.useState(null),p=M.useRef(null);M.useEffect(()=>{if(!d)return;const w=setTimeout(()=>m(null),d.kind==="err"?5e3:2800);return()=>clearTimeout(w)},[d]);const y=()=>{const w=p.current;w&&(w.style.height="auto",w.style.height=`${Math.min(w.scrollHeight,160)}px`)},g=async()=>{const w=a.trim();if(!(!w||!t||s)){c(!0);try{const T=await da.sendPrompt(t,w,l);T.ok?(o(""),requestAnimationFrame(y),m({kind:T.warning?"warn":"ok",msg:T.warning||"Sent"})):m({kind:"err",msg:T.error||"Send failed"})}catch(T){m({kind:"err",msg:T instanceof Error?T.message:String(T)})}finally{c(!1)}}},v=!t,x=r?.precise&&r.available;return H.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[d?H.jsx("div",{className:bn("mb-2 rounded-lg px-3 py-1.5 text-xs",d.kind==="ok"&&"bg-idle/10 text-idle",d.kind==="warn"&&"bg-working/10 text-working",d.kind==="err"&&"bg-del/10 text-del"),children:d.msg}):H.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[H.jsx(Vk,{size:12}),x?"Precise send — targets this session directly":r?.caveat||"Sends to the focused session"]}),H.jsxs("div",{className:"flex items-end gap-2 rounded-2xl border border-border bg-surface px-2.5 py-1.5 focus-within:border-accent/60",children:[H.jsx("textarea",{ref:p,rows:1,value:a,disabled:v,placeholder:v?"No active session":"Send a prompt…",className:"max-h-40 flex-1 resize-none bg-transparent py-1.5 text-[15px] outline-none placeholder:text-faint disabled:opacity-50",onChange:w=>{o(w.target.value),y()},onKeyDown:w=>{w.key==="Enter"&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),g())}}),H.jsx("button",{type:"button",onClick:g,disabled:v||s||!a.trim(),"aria-label":"Send",className:"mb-0.5 flex size-9 shrink-0 items-center justify-center rounded-full bg-accent text-white transition active:scale-90 disabled:bg-surface-2 disabled:text-faint",children:H.jsx(Qk,{size:19})})]})]})}function WE({status:t,className:l}){return H.jsx("span",{className:bn("dot",`dot-${t}`,l)})}function ew(){const t=Kn(l=>l.online);return H.jsx("span",{title:t?"connected":"offline",className:"dot",style:{background:t?"var(--color-idle)":"var(--color-del)"}})}function Hg({children:t,className:l}){return H.jsx("span",{className:bn("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",l),children:t})}function Db({children:t}){return H.jsx("span",{className:"grid min-w-5 place-items-center rounded-full bg-accent px-1.5 text-[11px] font-bold text-white",children:t})}function Tl({children:t}){return H.jsx("div",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:t})}function ro({label:t}){return H.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-muted",children:[H.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-accent"}),t]})}function tw({workspaceId:t}){const{data:l,isLoading:r,isError:a,error:o}=nE(t);return r&&!l?H.jsx(ro,{label:"Computing diff…"}):a?H.jsx(Tl,{children:o?.message}):l?l.files.length===0?H.jsxs(Tl,{children:["No changes vs ",H.jsx("span",{className:"font-mono",children:l.base}),"."]}):H.jsxs("div",{className:"pb-safe flex-1 overflow-y-auto",children:[H.jsxs("div",{className:"border-b border-border-soft px-3 py-2 text-xs text-muted",children:["vs ",H.jsx("span",{className:"font-mono text-faint",children:l.base})," · ",l.files.length," file",l.files.length===1?"":"s"]}),H.jsx("ul",{className:"flex flex-col gap-1 px-3 py-3",children:l.files.map(s=>H.jsxs("li",{className:"flex items-center gap-2 font-mono text-[12px]",children:[H.jsx("span",{className:"truncate text-muted",children:s.path}),H.jsxs("span",{className:"ml-auto shrink-0 text-add",children:["+",s.added]}),H.jsxs("span",{className:"shrink-0 text-del",children:["−",s.removed]})]},s.path))}),H.jsx(nw,{patch:l.patch,truncated:l.truncated})]}):H.jsx(Tl,{children:"No diff."})}function nw({patch:t,truncated:l}){const r=M.useMemo(()=>t.split(`
|
|
12
|
-
`),[t]);return H.jsxs("pre",{className:"overflow-x-auto border-t border-border-soft px-3 py-3 font-mono text-[11.5px] leading-[1.5]",children:[r.map((a,o)=>H.jsx("div",{className:bn("whitespace-pre",lw(a)),children:a||" "},o)),l?H.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function lw(t){return t.startsWith("+")&&!t.startsWith("+++")?"text-add":t.startsWith("-")&&!t.startsWith("---")?"text-del":t.startsWith("@@")?"text-accent":t.startsWith("diff ")||t.startsWith("index ")||t.startsWith("+++")||t.startsWith("---")?"text-faint":"text-muted"}function hf({title:t,subtitle:l,menu:r,right:a}){const o=Kn(s=>s.setSidebarOpen);return H.jsxs("header",{className:"pt-safe sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft bg-bg/80 px-3 pb-2.5 backdrop-blur-xl",children:[r?H.jsx("button",{type:"button",onClick:()=>o(!0),"aria-label":"Open workspaces",className:"-ml-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:H.jsx(Zk,{size:20})}):H.jsx("span",{className:"w-1"}),H.jsxs("div",{className:"min-w-0 flex-1",children:[H.jsx("div",{className:"truncate text-[15px] font-semibold leading-tight",children:t}),l?H.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:l}):null]}),a,H.jsx(ew,{})]})}function iw(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const rw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uw={};function qg(t,l){return(uw.jsx?aw:rw).test(t)}const ow=/[ \t\n\f\r]/g;function sw(t){return typeof t=="object"?t.type==="text"?Qg(t.value):!1:Qg(t)}function Qg(t){return t.replace(ow,"")===""}class ma{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}ma.prototype.normal={};ma.prototype.property={};ma.prototype.space=void 0;function Mb(t,l){const r={},a={};for(const o of t)Object.assign(r,o.property),Object.assign(a,o.normal);return new ma(r,a,l)}function df(t){return t.toLowerCase()}class Ht{constructor(l,r){this.attribute=r,this.property=l}}Ht.prototype.attribute="";Ht.prototype.booleanish=!1;Ht.prototype.boolean=!1;Ht.prototype.commaOrSpaceSeparated=!1;Ht.prototype.commaSeparated=!1;Ht.prototype.defined=!1;Ht.prototype.mustUseProperty=!1;Ht.prototype.number=!1;Ht.prototype.overloadedBoolean=!1;Ht.prototype.property="";Ht.prototype.spaceSeparated=!1;Ht.prototype.space=void 0;let cw=0;const xe=ti(),ut=ti(),mf=ti(),$=ti(),Ze=ti(),Pl=ti(),It=ti();function ti(){return 2**++cw}const pf=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:ut,commaOrSpaceSeparated:It,commaSeparated:Pl,number:$,overloadedBoolean:mf,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),Uc=Object.keys(pf);class Ff extends Ht{constructor(l,r,a,o){let s=-1;if(super(l,r),Fg(this,"space",o),typeof a=="number")for(;++s<Uc.length;){const c=Uc[s];Fg(this,Uc[s],(a&pf[c])===pf[c])}}}Ff.prototype.defined=!0;function Fg(t,l,r){r&&(t[l]=r)}function Ki(t){const l={},r={};for(const[a,o]of Object.entries(t.properties)){const s=new Ff(a,t.transform(t.attributes||{},a),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),l[a]=s,r[df(a)]=a,r[df(s.attribute)]=a}return new ma(l,r,t.space)}const _b=Ki({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Ze,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:$,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Ze,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:ut,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Nb(t,l){return l in t?t[l]:l}function Lb(t,l){return Nb(t,l.toLowerCase())}const fw=Ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pl,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alpha:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:Ze,autoFocus:xe,autoPlay:xe,blocking:Ze,capture:null,charSet:null,checked:xe,cite:null,className:Ze,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:ut,controls:xe,controlsList:Ze,coords:$|Pl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:mf,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:Ze,height:$,hidden:mf,high:$,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:xe,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xe,optimum:$,pattern:null,ping:Ze,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:Ze,required:xe,reversed:xe,rows:$,rowSpan:$,sandbox:Ze,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootCustomElementRegistry:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shadowRootSerializable:xe,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:ut,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:xe,disablePictureInPicture:xe,disableRemotePlayback:xe,exportParts:Pl,part:Ze,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:Lb}),hw=Ki({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:It,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pl,g2:Pl,glyphName:Pl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Nb}),jb=Ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Ub=Ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Lb}),Bb=Ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),dw={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},mw=/[A-Z]/g,Gg=/-[a-z]/g,pw=/^data[-\w.:]+$/i;function gw(t,l){const r=df(l);let a=l,o=Ht;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&pw.test(l)){if(l.charAt(4)==="-"){const s=l.slice(5).replace(Gg,bw);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=l.slice(4);if(!Gg.test(s)){let c=s.replace(mw,yw);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}o=Ff}return new o(a,l)}function yw(t){return"-"+t.toLowerCase()}function bw(t){return t.charAt(1).toUpperCase()}const vw=Mb([_b,fw,jb,Ub,Bb],"html"),Gf=Mb([_b,hw,jb,Ub,Bb],"svg");function xw(t){return t.join(" ").trim()}var Yi={},Bc,Yg;function Sw(){if(Yg)return Bc;Yg=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
|
|
13
|
-
`,p="/",y="*",g="",v="comment",x="declaration";function w(A,z){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];z=z||{};var Q=1,j=1;function W(ue){var P=ue.match(l);P&&(Q+=P.length);var _=ue.lastIndexOf(m);j=~_?ue.length-_:j+ue.length}function ee(){var ue={line:Q,column:j};return function(P){return P.position=new q(ue),ae(),P}}function q(ue){this.start=ue,this.end={line:Q,column:j},this.source=z.source}q.prototype.content=A;function J(ue){var P=new Error(z.source+":"+Q+":"+j+": "+ue);if(P.reason=ue,P.filename=z.source,P.line=Q,P.column=j,P.source=A,!z.silent)throw P}function V(ue){var P=ue.exec(A);if(P){var _=P[0];return W(_),A=A.slice(_.length),P}}function ae(){V(r)}function B(ue){var P;for(ue=ue||[];P=ie();)P!==!1&&ue.push(P);return ue}function ie(){var ue=ee();if(!(p!=A.charAt(0)||y!=A.charAt(1))){for(var P=2;g!=A.charAt(P)&&(y!=A.charAt(P)||p!=A.charAt(P+1));)++P;if(P+=2,g===A.charAt(P-1))return J("End of comment missing");var _=A.slice(2,P-2);return j+=2,W(_),A=A.slice(P),j+=2,ue({type:v,comment:_})}}function te(){var ue=ee(),P=V(a);if(P){if(ie(),!V(o))return J("property missing ':'");var _=V(s),K=ue({type:x,property:T(P[0].replace(t,g)),value:_?T(_[0].replace(t,g)):g});return V(c),K}}function ye(){var ue=[];B(ue);for(var P;P=te();)P!==!1&&(ue.push(P),B(ue));return ue}return ae(),ye()}function T(A){return A?A.replace(d,g):g}return Bc=w,Bc}var Vg;function kw(){if(Vg)return Yi;Vg=1;var t=Yi&&Yi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=r;const l=t(Sw());function r(a,o){let s=null;if(!a||typeof a!="string")return s;const c=(0,l.default)(a),d=typeof o=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:y}=m;d?o(p,y,m):y&&(s=s||{},s[p]=y)}),s}return Yi}var Ir={},Xg;function Ew(){if(Xg)return Ir;Xg=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(p){return!p||r.test(p)||t.test(p)},c=function(p,y){return y.toUpperCase()},d=function(p,y){return"".concat(y,"-")},m=function(p,y){return y===void 0&&(y={}),s(p)?p:(p=p.toLowerCase(),y.reactCompat?p=p.replace(o,d):p=p.replace(a,d),p.replace(l,c))};return Ir.camelCase=m,Ir}var Kr,Zg;function ww(){if(Zg)return Kr;Zg=1;var t=Kr&&Kr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=t(kw()),r=Ew();function a(o,s){var c={};return!o||typeof o!="string"||(0,l.default)(o,function(d,m){d&&m&&(c[(0,r.camelCase)(d,s)]=m)}),c}return a.default=a,Kr=a,Kr}var Cw=ww();const Tw=wf(Cw),Hb=qb("end"),Yf=qb("start");function qb(t){return l;function l(r){const a=r&&r.position&&r.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function Aw(t){const l=Yf(t),r=Hb(t);if(l&&r)return{start:l,end:r}}function Wr(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Ig(t.position):"start"in t||"end"in t?Ig(t):"line"in t||"column"in t?gf(t):""}function gf(t){return Kg(t&&t.line)+":"+Kg(t&&t.column)}function Ig(t){return gf(t&&t.start)+"-"+gf(t&&t.end)}function Kg(t){return t&&typeof t=="number"?t:1}class St extends Error{constructor(l,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof l=="string"?o=l:!s.cause&&l&&(c=!0,o=l.message,s.cause=l),!s.ruleId&&!s.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?s.ruleId=a:(s.source=a.slice(0,m),s.ruleId=a.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=Wr(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}St.prototype.file="";St.prototype.name="";St.prototype.reason="";St.prototype.message="";St.prototype.stack="";St.prototype.column=void 0;St.prototype.line=void 0;St.prototype.ancestors=void 0;St.prototype.cause=void 0;St.prototype.fatal=void 0;St.prototype.place=void 0;St.prototype.ruleId=void 0;St.prototype.source=void 0;const Vf={}.hasOwnProperty,zw=new Map,Rw=/[A-Z]/g,Ow=new Set(["table","tbody","thead","tfoot","tr"]),Dw=new Set(["td","th"]),Qb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Mw(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=qw(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=Hw(r,l.jsx,l.jsxs)}const o={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Gf:vw,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},s=Fb(o,t,void 0);return s&&typeof s!="string"?s:o.create(t,o.Fragment,{children:s||void 0},void 0)}function Fb(t,l,r){if(l.type==="element")return _w(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return Nw(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return jw(t,l,r);if(l.type==="mdxjsEsm")return Lw(t,l);if(l.type==="root")return Uw(t,l,r);if(l.type==="text")return Bw(t,l)}function _w(t,l,r){const a=t.schema;let o=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Gf,t.schema=o),t.ancestors.push(l);const s=Yb(t,l.tagName,!1),c=Qw(t,l);let d=Zf(t,l);return Ow.has(l.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!sw(m):!0})),Gb(t,c,s,l),Xf(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function Nw(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}ua(t,l.position)}function Lw(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);ua(t,l.position)}function jw(t,l,r){const a=t.schema;let o=a;l.name==="svg"&&a.space==="html"&&(o=Gf,t.schema=o),t.ancestors.push(l);const s=l.name===null?t.Fragment:Yb(t,l.name,!0),c=Fw(t,l),d=Zf(t,l);return Gb(t,c,s,l),Xf(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function Uw(t,l,r){const a={};return Xf(a,Zf(t,l)),t.create(l,t.Fragment,a,r)}function Bw(t,l){return l.value}function Gb(t,l,r,a){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=a)}function Xf(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function Hw(t,l,r){return a;function a(o,s,c,d){const p=Array.isArray(c.children)?r:l;return d?p(s,c,d):p(s,c)}}function qw(t,l){return r;function r(a,o,s,c){const d=Array.isArray(s.children),m=Yf(a);return l(o,s,c,d,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function Qw(t,l){const r={};let a,o;for(o in l.properties)if(o!=="children"&&Vf.call(l.properties,o)){const s=Gw(t,o,l.properties[o]);if(s){const[c,d]=s;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&Dw.has(l.tagName)?a=d:r[c]=d}}if(a){const s=r.style||(r.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function Fw(t,l){const r={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else ua(t,l.position);else{const o=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,s=t.evaluater.evaluateExpression(d.expression)}else ua(t,l.position);else s=a.value===null?!0:a.value;r[o]=s}return r}function Zf(t,l){const r=[];let a=-1;const o=t.passKeys?new Map:zw;for(;++a<l.children.length;){const s=l.children[a];let c;if(t.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const p=o.get(m)||0;c=m+"-"+p,o.set(m,p+1)}}const d=Fb(t,s,c);d!==void 0&&r.push(d)}return r}function Gw(t,l,r){const a=gw(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?iw(r):xw(r)),a.property==="style"){let o=typeof r=="object"?r:Yw(t,String(r));return t.stylePropertyNameCase==="css"&&(o=Vw(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&a.space?dw[a.property]||a.property:a.attribute,r]}}function Yw(t,l){try{return Tw(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const a=r,o=new St("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=Qb+"#cannot-parse-style-attribute",o}}function Yb(t,l,r){let a;if(!r)a={type:"Literal",value:l};else if(l.includes(".")){const o=l.split(".");let s=-1,c;for(;++s<o.length;){const d=qg(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}a=c}else a=qg(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const o=a.value;return Vf.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(a);ua(t)}function ua(t,l){const r=new St("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=Qb+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Vw(t){const l={};let r;for(r in t)Vf.call(t,r)&&(l[Xw(r)]=t[r]);return l}function Xw(t){let l=t.replace(Rw,Zw);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function Zw(t){return"-"+t.toLowerCase()}const Hc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Iw={};function If(t,l){const r=Iw,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Vb(t,a,o)}function Vb(t,l,r){if(Kw(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Jg(t.children,l,r)}return Array.isArray(t)?Jg(t,l,r):""}function Jg(t,l,r){const a=[];let o=-1;for(;++o<t.length;)a[o]=Vb(t[o],l,r);return a.join("")}function Kw(t){return!!(t&&typeof t=="object")}const Pg=document.createElement("i");function Kf(t){const l="&"+t+";";Pg.innerHTML=l;const r=Pg.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function Jt(t,l,r,a){const o=t.length;let s=0,c;if(l<0?l=-l>o?0:o+l:l=l>o?o:l,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);s<a.length;)c=a.slice(s,s+1e4),c.unshift(l,0),t.splice(...c),s+=1e4,l+=1e4}function sn(t,l){return t.length>0?(Jt(t,t.length,0,l),t):l}const $g={}.hasOwnProperty;function Xb(t){const l={};let r=-1;for(;++r<t.length;)Jw(l,t[r]);return l}function Jw(t,l){let r;for(r in l){const o=($g.call(t,r)?t[r]:void 0)||(t[r]={}),s=l[r];let c;if(s)for(c in s){$g.call(o,c)||(o[c]=[]);const d=s[c];Pw(o[c],Array.isArray(d)?d:d?[d]:[])}}}function Pw(t,l){let r=-1;const a=[];for(;++r<l.length;)(l[r].add==="after"?t:a).push(l[r]);Jt(t,0,0,a)}function Zb(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function gn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=zl(/[A-Za-z]/),xt=zl(/[\dA-Za-z]/),$w=zl(/[#-'*+\--9=?A-Z^-~]/);function Ju(t){return t!==null&&(t<32||t===127)}const yf=zl(/\d/),Ww=zl(/[\dA-Fa-f]/),eC=zl(/[!-/:-@[-`{-~]/);function pe(t){return t!==null&&t<-2}function Ie(t){return t!==null&&(t<0||t===32)}function Oe(t){return t===-2||t===-1||t===32}const ao=zl(new RegExp("\\p{P}|\\p{S}","u")),$l=zl(/\s/);function zl(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Ji(t){const l=[];let r=-1,a=0,o=0;for(;++r<t.length;){const s=t.charCodeAt(r);let c="";if(s===37&&xt(t.charCodeAt(r+1))&&xt(t.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=t.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(l.push(t.slice(a,r),encodeURIComponent(c)),a=r+o+1,c=""),o&&(r+=o,o=0)}return l.join("")+t.slice(a)}function Ne(t,l,r,a){const o=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(m){return Oe(m)?(t.enter(r),d(m)):l(m)}function d(m){return Oe(m)&&s++<o?(t.consume(m),d):(t.exit(r),l(m))}}const tC={tokenize:nC};function nC(t){const l=t.attempt(this.parser.constructs.contentInitial,a,o);let r;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Ne(t,l,"linePrefix")}function o(d){return t.enter("paragraph"),s(d)}function s(d){const m=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=m),r=m,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return pe(d)?(t.consume(d),t.exit("chunkText"),s):(t.consume(d),c)}}const lC={tokenize:iC},Wg={tokenize:rC};function iC(t){const l=this,r=[];let a=0,o,s,c;return d;function d(j){if(a<r.length){const W=r[a];return l.containerState=W[1],t.attempt(W[0].continuation,m,p)(j)}return p(j)}function m(j){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,o&&Q();const W=l.events.length;let ee=W,q;for(;ee--;)if(l.events[ee][0]==="exit"&&l.events[ee][1].type==="chunkFlow"){q=l.events[ee][1].end;break}z(a);let J=W;for(;J<l.events.length;)l.events[J][1].end={...q},J++;return Jt(l.events,ee+1,0,l.events.slice(W)),l.events.length=J,p(j)}return d(j)}function p(j){if(a===r.length){if(!o)return v(j);if(o.currentConstruct&&o.currentConstruct.concrete)return w(j);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(Wg,y,g)(j)}function y(j){return o&&Q(),z(a),v(j)}function g(j){return l.parser.lazy[l.now().line]=a!==r.length,c=l.now().offset,w(j)}function v(j){return l.containerState={},t.attempt(Wg,x,w)(j)}function x(j){return a++,r.push([l.currentConstruct,l.containerState]),v(j)}function w(j){if(j===null){o&&Q(),z(0),t.consume(j);return}return o=o||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),T(j)}function T(j){if(j===null){A(t.exit("chunkFlow"),!0),z(0),t.consume(j);return}return pe(j)?(t.consume(j),A(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(j),T)}function A(j,W){const ee=l.sliceStream(j);if(W&&ee.push(null),j.previous=s,s&&(s.next=j),s=j,o.defineSkip(j.start),o.write(ee),l.parser.lazy[j.start.line]){let q=o.events.length;for(;q--;)if(o.events[q][1].start.offset<c&&(!o.events[q][1].end||o.events[q][1].end.offset>c))return;const J=l.events.length;let V=J,ae,B;for(;V--;)if(l.events[V][0]==="exit"&&l.events[V][1].type==="chunkFlow"){if(ae){B=l.events[V][1].end;break}ae=!0}for(z(a),q=J;q<l.events.length;)l.events[q][1].end={...B},q++;Jt(l.events,V+1,0,l.events.slice(J)),l.events.length=q}}function z(j){let W=r.length;for(;W-- >j;){const ee=r[W];l.containerState=ee[1],ee[0].exit.call(l,t)}r.length=j}function Q(){o.write([null]),s=void 0,o=void 0,l.containerState._closeFlow=void 0}}function rC(t,l,r){return Ne(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xi(t){if(t===null||Ie(t)||$l(t))return 1;if(ao(t))return 2}function uo(t,l,r){const a=[];let o=-1;for(;++o<t.length;){const s=t[o].resolveAll;s&&!a.includes(s)&&(l=s(l,r),a.push(s))}return l}const bf={name:"attention",resolveAll:aC,tokenize:uC};function aC(t,l){let r=-1,a,o,s,c,d,m,p,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(a=r;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[a][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;m=t[a][1].end.offset-t[a][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[a][1].end},v={...t[r][1].start};ey(g,-m),ey(v,m),c={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},s={type:m>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[r][1].start}},o={type:m>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[r][1].start={...d.end},p=[],t[a][1].end.offset-t[a][1].start.offset&&(p=sn(p,[["enter",t[a][1],l],["exit",t[a][1],l]])),p=sn(p,[["enter",o,l],["enter",c,l],["exit",c,l],["enter",s,l]]),p=sn(p,uo(l.parser.constructs.insideSpan.null,t.slice(a+1,r),l)),p=sn(p,[["exit",s,l],["enter",d,l],["exit",d,l],["exit",o,l]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,p=sn(p,[["enter",t[r][1],l],["exit",t[r][1],l]])):y=0,Jt(t,a-1,r-a+3,p),r=a+p.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function uC(t,l){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,o=Xi(a);let s;return c;function c(m){return s=m,t.enter("attentionSequence"),d(m)}function d(m){if(m===s)return t.consume(m),d;const p=t.exit("attentionSequence"),y=Xi(m),g=!y||y===2&&o||r.includes(m),v=!o||o===2&&y||r.includes(a);return p._open=!!(s===42?g:g&&(o||!v)),p._close=!!(s===42?v:v&&(y||!g)),l(m)}}function ey(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const oC={name:"autolink",tokenize:sC};function sC(t,l,r){let a=0;return o;function o(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(x){return Tt(x)?(t.consume(x),c):x===64?r(x):p(x)}function c(x){return x===43||x===45||x===46||xt(x)?(a=1,d(x)):p(x)}function d(x){return x===58?(t.consume(x),a=0,m):(x===43||x===45||x===46||xt(x))&&a++<32?(t.consume(x),d):(a=0,p(x))}function m(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):x===null||x===32||x===60||Ju(x)?r(x):(t.consume(x),m)}function p(x){return x===64?(t.consume(x),y):$w(x)?(t.consume(x),p):r(x)}function y(x){return xt(x)?g(x):r(x)}function g(x){return x===46?(t.consume(x),a=0,y):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):v(x)}function v(x){if((x===45||xt(x))&&a++<63){const w=x===45?v:g;return t.consume(x),w}return r(x)}}const pa={partial:!0,tokenize:cC};function cC(t,l,r){return a;function a(s){return Oe(s)?Ne(t,o,"linePrefix")(s):o(s)}function o(s){return s===null||pe(s)?l(s):r(s)}}const Ib={continuation:{tokenize:hC},exit:dC,name:"blockQuote",tokenize:fC};function fC(t,l,r){const a=this;return o;function o(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Oe(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function hC(t,l,r){const a=this;return o;function o(c){return Oe(c)?Ne(t,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return t.attempt(Ib,l,r)(c)}}function dC(t){t.exit("blockQuote")}const Kb={name:"characterEscape",tokenize:mC};function mC(t,l,r){return a;function a(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),o}function o(s){return eC(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(s)}}const Jb={name:"characterReference",tokenize:pC};function pC(t,l,r){const a=this;let o=0,s,c;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),m}function m(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),s=31,c=xt,y(g))}function p(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,c=Ww,y):(t.enter("characterReferenceValue"),s=7,c=yf,y(g))}function y(g){if(g===59&&o){const v=t.exit("characterReferenceValue");return c===xt&&!Kf(a.sliceSerialize(v))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(g)&&o++<s?(t.consume(g),y):r(g)}}const ty={partial:!0,tokenize:yC},ny={concrete:!0,name:"codeFenced",tokenize:gC};function gC(t,l,r){const a=this,o={partial:!0,tokenize:ee};let s=0,c=0,d;return m;function m(q){return p(q)}function p(q){const J=a.events[a.events.length-1];return s=J&&J[1].type==="linePrefix"?J[2].sliceSerialize(J[1],!0).length:0,d=q,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(q)}function y(q){return q===d?(c++,t.consume(q),y):c<3?r(q):(t.exit("codeFencedFenceSequence"),Oe(q)?Ne(t,g,"whitespace")(q):g(q))}function g(q){return q===null||pe(q)?(t.exit("codeFencedFence"),a.interrupt?l(q):t.check(ty,T,W)(q)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(q))}function v(q){return q===null||pe(q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(q)):Oe(q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ne(t,x,"whitespace")(q)):q===96&&q===d?r(q):(t.consume(q),v)}function x(q){return q===null||pe(q)?g(q):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),w(q))}function w(q){return q===null||pe(q)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(q)):q===96&&q===d?r(q):(t.consume(q),w)}function T(q){return t.attempt(o,W,A)(q)}function A(q){return t.enter("lineEnding"),t.consume(q),t.exit("lineEnding"),z}function z(q){return s>0&&Oe(q)?Ne(t,Q,"linePrefix",s+1)(q):Q(q)}function Q(q){return q===null||pe(q)?t.check(ty,T,W)(q):(t.enter("codeFlowValue"),j(q))}function j(q){return q===null||pe(q)?(t.exit("codeFlowValue"),Q(q)):(t.consume(q),j)}function W(q){return t.exit("codeFenced"),l(q)}function ee(q,J,V){let ae=0;return B;function B(P){return q.enter("lineEnding"),q.consume(P),q.exit("lineEnding"),ie}function ie(P){return q.enter("codeFencedFence"),Oe(P)?Ne(q,te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):te(P)}function te(P){return P===d?(q.enter("codeFencedFenceSequence"),ye(P)):V(P)}function ye(P){return P===d?(ae++,q.consume(P),ye):ae>=c?(q.exit("codeFencedFenceSequence"),Oe(P)?Ne(q,ue,"whitespace")(P):ue(P)):V(P)}function ue(P){return P===null||pe(P)?(q.exit("codeFencedFence"),J(P)):V(P)}}}function yC(t,l,r){const a=this;return o;function o(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}const qc={name:"codeIndented",tokenize:vC},bC={partial:!0,tokenize:xC};function vC(t,l,r){const a=this;return o;function o(p){return t.enter("codeIndented"),Ne(t,s,"linePrefix",5)(p)}function s(p){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(p):r(p)}function c(p){return p===null?m(p):pe(p)?t.attempt(bC,c,m)(p):(t.enter("codeFlowValue"),d(p))}function d(p){return p===null||pe(p)?(t.exit("codeFlowValue"),c(p)):(t.consume(p),d)}function m(p){return t.exit("codeIndented"),l(p)}}function xC(t,l,r){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?r(c):pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):Ne(t,s,"linePrefix",5)(c)}function s(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):pe(c)?o(c):r(c)}}const SC={name:"codeText",previous:EC,resolve:kC,tokenize:wC};function kC(t){let l=t.length-4,r=3,a,o;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=r;++a<l;)if(t[a][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(a=r-1,l++;++a<=l;)o===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(o=a):(a===l||t[a][1].type==="lineEnding")&&(t[o][1].type="codeTextData",a!==o+2&&(t[o][1].end=t[a-1][1].end,t.splice(o+2,a-o-2),l-=a-o-2,a=o+2),o=void 0);return t}function EC(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wC(t,l,r){let a=0,o,s;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),m(g))}function m(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),m):g===96?(s=t.enter("codeTextSequence"),o=0,y(g)):pe(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||pe(g)?(t.exit("codeTextData"),m(g)):(t.consume(g),p)}function y(g){return g===96?(t.consume(g),o++,y):o===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(s.type="codeTextData",p(g))}}class CC{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,r,a){const o=r||0;this.setCursor(Math.trunc(l));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&Jr(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),Jr(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),Jr(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);Jr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);Jr(this.left,r.reverse())}}}function Jr(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function Pb(t){const l={};let r=-1,a,o,s,c,d,m,p;const y=new CC(t);for(;++r<y.length;){for(;r in l;)r=l[r];if(a=y.get(r),r&&a[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,TC(y,r)),r=l[r],p=!0);else if(a[1]._container){for(s=r,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},d=y.slice(o,r),d.unshift(a),y.splice(o,r-o+1,d))}}return Jt(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!p}function TC(t,l){const r=t.get(l)[1],a=t.get(l)[2];let o=l-1;const s=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,m=[],p={};let y,g,v=-1,x=r,w=0,T=0;const A=[T];for(;x;){for(;t.get(++o)[1]!==x;);s.push(o),x._tokenizer||(y=a.sliceStream(x),x.next||y.push(null),g&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(T=v+1,A.push(T),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):A.pop(),v=A.length;v--;){const z=d.slice(A[v],A[v+1]),Q=s.pop();m.push([Q,Q+z.length-1]),t.splice(Q,2,z)}for(m.reverse(),v=-1;++v<m.length;)p[w+m[v][0]]=w+m[v][1],w+=m[v][1]-m[v][0]-1;return p}const AC={resolve:RC,tokenize:OC},zC={partial:!0,tokenize:DC};function RC(t){return Pb(t),t}function OC(t,l){let r;return a;function a(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):pe(d)?t.check(zC,c,s)(d):(t.consume(d),o)}function s(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function DC(t,l,r){const a=this;return o;function o(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ne(t,s,"linePrefix")}function s(c){if(c===null||pe(c))return r(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):t.interrupt(a.parser.constructs.flow,r,l)(c)}}function $b(t,l,r,a,o,s,c,d,m){const p=m||Number.POSITIVE_INFINITY;let y=0;return g;function g(z){return z===60?(t.enter(a),t.enter(o),t.enter(s),t.consume(z),t.exit(s),v):z===null||z===32||z===41||Ju(z)?r(z):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),T(z))}function v(z){return z===62?(t.enter(s),t.consume(z),t.exit(s),t.exit(o),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),x(z))}function x(z){return z===62?(t.exit("chunkString"),t.exit(d),v(z)):z===null||z===60||pe(z)?r(z):(t.consume(z),z===92?w:x)}function w(z){return z===60||z===62||z===92?(t.consume(z),x):x(z)}function T(z){return!y&&(z===null||z===41||Ie(z))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),l(z)):y<p&&z===40?(t.consume(z),y++,T):z===41?(t.consume(z),y--,T):z===null||z===32||z===40||Ju(z)?r(z):(t.consume(z),z===92?A:T)}function A(z){return z===40||z===41||z===92?(t.consume(z),T):T(z)}}function Wb(t,l,r,a,o,s){const c=this;let d=0,m;return p;function p(x){return t.enter(a),t.enter(o),t.consume(x),t.exit(o),t.enter(s),y}function y(x){return d>999||x===null||x===91||x===93&&!m||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(t.exit(s),t.enter(o),t.consume(x),t.exit(o),t.exit(a),l):pe(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||pe(x)||d++>999?(t.exit("chunkString"),y(x)):(t.consume(x),m||(m=!Oe(x)),x===92?v:g)}function v(x){return x===91||x===92||x===93?(t.consume(x),d++,g):g(x)}}function ev(t,l,r,a,o,s){let c;return d;function d(v){return v===34||v===39||v===40?(t.enter(a),t.enter(o),t.consume(v),t.exit(o),c=v===40?41:v,m):r(v)}function m(v){return v===c?(t.enter(o),t.consume(v),t.exit(o),t.exit(a),l):(t.enter(s),p(v))}function p(v){return v===c?(t.exit(s),m(c)):v===null?r(v):pe(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ne(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||pe(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?g:y)}function g(v){return v===c||v===92?(t.consume(v),y):y(v)}}function ea(t,l){let r;return a;function a(o){return pe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r=!0,a):Oe(o)?Ne(t,a,r?"linePrefix":"lineSuffix")(o):l(o)}}const MC={name:"definition",tokenize:NC},_C={partial:!0,tokenize:LC};function NC(t,l,r){const a=this;let o;return s;function s(x){return t.enter("definition"),c(x)}function c(x){return Wb.call(a,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return o=gn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),m):r(x)}function m(x){return Ie(x)?ea(t,p)(x):p(x)}function p(x){return $b(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function y(x){return t.attempt(_C,g,g)(x)}function g(x){return Oe(x)?Ne(t,v,"whitespace")(x):v(x)}function v(x){return x===null||pe(x)?(t.exit("definition"),a.parser.defined.push(o),l(x)):r(x)}}function LC(t,l,r){return a;function a(d){return Ie(d)?ea(t,o)(d):r(d)}function o(d){return ev(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Oe(d)?Ne(t,c,"whitespace")(d):c(d)}function c(d){return d===null||pe(d)?l(d):r(d)}}const jC={name:"hardBreakEscape",tokenize:UC};function UC(t,l,r){return a;function a(s){return t.enter("hardBreakEscape"),t.consume(s),o}function o(s){return pe(s)?(t.exit("hardBreakEscape"),l(s)):r(s)}}const BC={name:"headingAtx",resolve:HC,tokenize:qC};function HC(t,l){let r=t.length-2,a=3,o,s;return t[a][1].type==="whitespace"&&(a+=2),r-2>a&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&t[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(o={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},s={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},Jt(t,a,r-a+1,[["enter",o,l],["enter",s,l],["exit",s,l],["exit",o,l]])),t}function qC(t,l,r){let a=0;return o;function o(y){return t.enter("atxHeading"),s(y)}function s(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(t.consume(y),c):y===null||Ie(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),m(y)):y===null||pe(y)?(t.exit("atxHeading"),l(y)):Oe(y)?Ne(t,d,"whitespace")(y):(t.enter("atxHeadingText"),p(y))}function m(y){return y===35?(t.consume(y),m):(t.exit("atxHeadingSequence"),d(y))}function p(y){return y===null||y===35||Ie(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),p)}}const QC=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ly=["pre","script","style","textarea"],FC={concrete:!0,name:"htmlFlow",resolveTo:VC,tokenize:XC},GC={partial:!0,tokenize:IC},YC={partial:!0,tokenize:ZC};function VC(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function XC(t,l,r){const a=this;let o,s,c,d,m;return p;function p(E){return y(E)}function y(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),g}function g(E){return E===33?(t.consume(E),v):E===47?(t.consume(E),s=!0,T):E===63?(t.consume(E),o=3,a.interrupt?l:k):Tt(E)?(t.consume(E),c=String.fromCharCode(E),A):r(E)}function v(E){return E===45?(t.consume(E),o=2,x):E===91?(t.consume(E),o=5,d=0,w):Tt(E)?(t.consume(E),o=4,a.interrupt?l:k):r(E)}function x(E){return E===45?(t.consume(E),a.interrupt?l:k):r(E)}function w(E){const le="CDATA[";return E===le.charCodeAt(d++)?(t.consume(E),d===le.length?a.interrupt?l:te:w):r(E)}function T(E){return Tt(E)?(t.consume(E),c=String.fromCharCode(E),A):r(E)}function A(E){if(E===null||E===47||E===62||Ie(E)){const le=E===47,se=c.toLowerCase();return!le&&!s&&ly.includes(se)?(o=1,a.interrupt?l(E):te(E)):QC.includes(c.toLowerCase())?(o=6,le?(t.consume(E),z):a.interrupt?l(E):te(E)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(E):s?Q(E):j(E))}return E===45||xt(E)?(t.consume(E),c+=String.fromCharCode(E),A):r(E)}function z(E){return E===62?(t.consume(E),a.interrupt?l:te):r(E)}function Q(E){return Oe(E)?(t.consume(E),Q):B(E)}function j(E){return E===47?(t.consume(E),B):E===58||E===95||Tt(E)?(t.consume(E),W):Oe(E)?(t.consume(E),j):B(E)}function W(E){return E===45||E===46||E===58||E===95||xt(E)?(t.consume(E),W):ee(E)}function ee(E){return E===61?(t.consume(E),q):Oe(E)?(t.consume(E),ee):j(E)}function q(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(t.consume(E),m=E,J):Oe(E)?(t.consume(E),q):V(E)}function J(E){return E===m?(t.consume(E),m=null,ae):E===null||pe(E)?r(E):(t.consume(E),J)}function V(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ie(E)?ee(E):(t.consume(E),V)}function ae(E){return E===47||E===62||Oe(E)?j(E):r(E)}function B(E){return E===62?(t.consume(E),ie):r(E)}function ie(E){return E===null||pe(E)?te(E):Oe(E)?(t.consume(E),ie):r(E)}function te(E){return E===45&&o===2?(t.consume(E),_):E===60&&o===1?(t.consume(E),K):E===62&&o===4?(t.consume(E),R):E===63&&o===3?(t.consume(E),k):E===93&&o===5?(t.consume(E),ke):pe(E)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(GC,Y,ye)(E)):E===null||pe(E)?(t.exit("htmlFlowData"),ye(E)):(t.consume(E),te)}function ye(E){return t.check(YC,ue,Y)(E)}function ue(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),P}function P(E){return E===null||pe(E)?ye(E):(t.enter("htmlFlowData"),te(E))}function _(E){return E===45?(t.consume(E),k):te(E)}function K(E){return E===47?(t.consume(E),c="",he):te(E)}function he(E){if(E===62){const le=c.toLowerCase();return ly.includes(le)?(t.consume(E),R):te(E)}return Tt(E)&&c.length<8?(t.consume(E),c+=String.fromCharCode(E),he):te(E)}function ke(E){return E===93?(t.consume(E),k):te(E)}function k(E){return E===62?(t.consume(E),R):E===45&&o===2?(t.consume(E),k):te(E)}function R(E){return E===null||pe(E)?(t.exit("htmlFlowData"),Y(E)):(t.consume(E),R)}function Y(E){return t.exit("htmlFlow"),l(E)}}function ZC(t,l,r){const a=this;return o;function o(c){return pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):r(c)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}function IC(t,l,r){return a;function a(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(pa,l,r)}}const KC={name:"htmlText",tokenize:JC};function JC(t,l,r){const a=this;let o,s,c;return d;function d(k){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(k),m}function m(k){return k===33?(t.consume(k),p):k===47?(t.consume(k),ee):k===63?(t.consume(k),j):Tt(k)?(t.consume(k),V):r(k)}function p(k){return k===45?(t.consume(k),y):k===91?(t.consume(k),s=0,w):Tt(k)?(t.consume(k),Q):r(k)}function y(k){return k===45?(t.consume(k),x):r(k)}function g(k){return k===null?r(k):k===45?(t.consume(k),v):pe(k)?(c=g,K(k)):(t.consume(k),g)}function v(k){return k===45?(t.consume(k),x):g(k)}function x(k){return k===62?_(k):k===45?v(k):g(k)}function w(k){const R="CDATA[";return k===R.charCodeAt(s++)?(t.consume(k),s===R.length?T:w):r(k)}function T(k){return k===null?r(k):k===93?(t.consume(k),A):pe(k)?(c=T,K(k)):(t.consume(k),T)}function A(k){return k===93?(t.consume(k),z):T(k)}function z(k){return k===62?_(k):k===93?(t.consume(k),z):T(k)}function Q(k){return k===null||k===62?_(k):pe(k)?(c=Q,K(k)):(t.consume(k),Q)}function j(k){return k===null?r(k):k===63?(t.consume(k),W):pe(k)?(c=j,K(k)):(t.consume(k),j)}function W(k){return k===62?_(k):j(k)}function ee(k){return Tt(k)?(t.consume(k),q):r(k)}function q(k){return k===45||xt(k)?(t.consume(k),q):J(k)}function J(k){return pe(k)?(c=J,K(k)):Oe(k)?(t.consume(k),J):_(k)}function V(k){return k===45||xt(k)?(t.consume(k),V):k===47||k===62||Ie(k)?ae(k):r(k)}function ae(k){return k===47?(t.consume(k),_):k===58||k===95||Tt(k)?(t.consume(k),B):pe(k)?(c=ae,K(k)):Oe(k)?(t.consume(k),ae):_(k)}function B(k){return k===45||k===46||k===58||k===95||xt(k)?(t.consume(k),B):ie(k)}function ie(k){return k===61?(t.consume(k),te):pe(k)?(c=ie,K(k)):Oe(k)?(t.consume(k),ie):ae(k)}function te(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(t.consume(k),o=k,ye):pe(k)?(c=te,K(k)):Oe(k)?(t.consume(k),te):(t.consume(k),ue)}function ye(k){return k===o?(t.consume(k),o=void 0,P):k===null?r(k):pe(k)?(c=ye,K(k)):(t.consume(k),ye)}function ue(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||Ie(k)?ae(k):(t.consume(k),ue)}function P(k){return k===47||k===62||Ie(k)?ae(k):r(k)}function _(k){return k===62?(t.consume(k),t.exit("htmlTextData"),t.exit("htmlText"),l):r(k)}function K(k){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),he}function he(k){return Oe(k)?Ne(t,ke,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):ke(k)}function ke(k){return t.enter("htmlTextData"),c(k)}}const Jf={name:"labelEnd",resolveAll:e2,resolveTo:t2,tokenize:n2},PC={tokenize:l2},$C={tokenize:i2},WC={tokenize:r2};function e2(t){let l=-1;const r=[];for(;++l<t.length;){const a=t[l][1];if(r.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",l+=o}}return t.length!==r.length&&Jt(t,0,t.length,r),t}function t2(t,l){let r=t.length,a=0,o,s,c,d;for(;r--;)if(o=t[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=r);const m={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[s][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[s+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",m,l],["enter",p,l]],d=sn(d,t.slice(s+1,s+a+3)),d=sn(d,[["enter",y,l]]),d=sn(d,uo(l.parser.constructs.insideSpan.null,t.slice(s+a+4,c-3),l)),d=sn(d,[["exit",y,l],t[c-2],t[c-1],["exit",p,l]]),d=sn(d,t.slice(c+1)),d=sn(d,[["exit",m,l]]),Jt(t,s,t.length,d),t}function n2(t,l,r){const a=this;let o=a.events.length,s,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){s=a.events[o][1];break}return d;function d(v){return s?s._inactive?g(v):(c=a.parser.defined.includes(gn(a.sliceSerialize({start:s.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),m):r(v)}function m(v){return v===40?t.attempt(PC,y,c?y:g)(v):v===91?t.attempt($C,y,c?p:g)(v):c?y(v):g(v)}function p(v){return t.attempt(WC,y,g)(v)}function y(v){return l(v)}function g(v){return s._balanced=!0,r(v)}}function l2(t,l,r){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),o}function o(g){return Ie(g)?ea(t,s)(g):s(g)}function s(g){return g===41?y(g):$b(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Ie(g)?ea(t,m)(g):y(g)}function d(g){return r(g)}function m(g){return g===34||g===39||g===40?ev(t,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function p(g){return Ie(g)?ea(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):r(g)}}function i2(t,l,r){const a=this;return o;function o(d){return Wb.call(a,t,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return a.parser.defined.includes(gn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function r2(t,l,r){return a;function a(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),o}function o(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),l):r(s)}}const a2={name:"labelStartImage",resolveAll:Jf.resolveAll,tokenize:u2};function u2(t,l,r){const a=this;return o;function o(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),s}function s(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):l(d)}}const o2={name:"labelStartLink",resolveAll:Jf.resolveAll,tokenize:s2};function s2(t,l,r){const a=this;return o;function o(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):l(c)}}const Qc={name:"lineEnding",tokenize:c2};function c2(t,l){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ne(t,l,"linePrefix")}}const Xu={name:"thematicBreak",tokenize:f2};function f2(t,l,r){let a=0,o;return s;function s(p){return t.enter("thematicBreak"),c(p)}function c(p){return o=p,d(p)}function d(p){return p===o?(t.enter("thematicBreakSequence"),m(p)):a>=3&&(p===null||pe(p))?(t.exit("thematicBreak"),l(p)):r(p)}function m(p){return p===o?(t.consume(p),a++,m):(t.exit("thematicBreakSequence"),Oe(p)?Ne(t,d,"whitespace")(p):d(p))}}const Ut={continuation:{tokenize:p2},exit:y2,name:"list",tokenize:m2},h2={partial:!0,tokenize:b2},d2={partial:!0,tokenize:g2};function m2(t,l,r){const a=this,o=a.events[a.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(x){const w=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:yf(x)){if(a.containerState.type||(a.containerState.type=w,t.enter(w,{_container:!0})),w==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(Xu,r,p)(x):p(x);if(!a.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(x)}return r(x)}function m(x){return yf(x)&&++c<10?(t.consume(x),m):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),p(x)):r(x)}function p(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,t.check(pa,a.interrupt?r:y,t.attempt(h2,v,g))}function y(x){return a.containerState.initialBlankLine=!0,s++,v(x)}function g(x){return Oe(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),v):r(x)}function v(x){return a.containerState.size=s+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(x)}}function p2(t,l,r){const a=this;return a.containerState._closeFlow=void 0,t.check(pa,o,s);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ne(t,l,"listItemIndent",a.containerState.size+1)(d)}function s(d){return a.containerState.furtherBlankLines||!Oe(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(d2,l,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ne(t,t.attempt(Ut,l,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function g2(t,l,r){const a=this;return Ne(t,o,"listItemIndent",a.containerState.size+1);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?l(s):r(s)}}function y2(t){t.exit(this.containerState.type)}function b2(t,l,r){const a=this;return Ne(t,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=a.events[a.events.length-1];return!Oe(s)&&c&&c[1].type==="listItemPrefixWhitespace"?l(s):r(s)}}const iy={name:"setextUnderline",resolveTo:v2,tokenize:x2};function v2(t,l){let r=t.length,a,o,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){a=r;break}t[r][1].type==="paragraph"&&(o=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",s?(t.splice(o,0,["enter",c,l]),t.splice(s+1,0,["exit",t[a][1],l]),t[a][1].end={...t[s][1].end}):t[a][1]=c,t.push(["exit",c,l]),t}function x2(t,l,r){const a=this;let o;return s;function s(p){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),o=p,c(p)):r(p)}function c(p){return t.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===o?(t.consume(p),d):(t.exit("setextHeadingLineSequence"),Oe(p)?Ne(t,m,"lineSuffix")(p):m(p))}function m(p){return p===null||pe(p)?(t.exit("setextHeadingLine"),l(p)):r(p)}}const S2={tokenize:k2};function k2(t){const l=this,r=t.attempt(pa,a,t.attempt(this.parser.constructs.flowInitial,o,Ne(t,t.attempt(this.parser.constructs.flow,o,t.attempt(AC,o)),"linePrefix")));return r;function a(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function o(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const E2={resolveAll:nv()},w2=tv("string"),C2=tv("text");function tv(t){return{resolveAll:nv(t==="text"?T2:void 0),tokenize:l};function l(r){const a=this,o=this.parser.constructs[t],s=r.attempt(o,c,d);return c;function c(y){return p(y)?s(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),m}function m(y){return p(y)?(r.exit("data"),s(y)):(r.consume(y),m)}function p(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const x=g[v];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function nv(t){return l;function l(r,a){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return t?t(r,a):r}}function T2(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const a=t[r-1][1],o=l.sliceStream(a);let s=o.length,c=-1,d=0,m;for(;s--;){const p=o[s];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)m=!0,d++;else if(p!==-1){s++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const p={type:r===t.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:a.start._bufferIndex+c,_index:a.start._index+s,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(t.splice(r,0,["enter",p,l],["exit",p,l]),r+=2)}r++}return t}const A2={42:Ut,43:Ut,45:Ut,48:Ut,49:Ut,50:Ut,51:Ut,52:Ut,53:Ut,54:Ut,55:Ut,56:Ut,57:Ut,62:Ib},z2={91:MC},R2={[-2]:qc,[-1]:qc,32:qc},O2={35:BC,42:Xu,45:[iy,Xu],60:FC,61:iy,95:Xu,96:ny,126:ny},D2={38:Jb,92:Kb},M2={[-5]:Qc,[-4]:Qc,[-3]:Qc,33:a2,38:Jb,42:bf,60:[oC,KC],91:o2,92:[jC,Kb],93:Jf,95:bf,96:SC},_2={null:[bf,E2]},N2={null:[42,95]},L2={null:[]},j2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:N2,contentInitial:z2,disable:L2,document:A2,flow:O2,flowInitial:R2,insideSpan:_2,string:D2,text:M2},Symbol.toStringTag,{value:"Module"}));function U2(t,l,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],d=[];const m={attempt:J(ee),check:J(q),consume:Q,enter:j,exit:W,interrupt:J(q,{interrupt:!0})},p={code:null,containerState:{},defineSkip:T,events:[],now:w,parser:t,previous:null,sliceSerialize:v,sliceStream:x,write:g};let y=l.tokenize.call(p,m);return l.resolveAll&&s.push(l),p;function g(ie){return c=sn(c,ie),A(),c[c.length-1]!==null?[]:(V(l,0),p.events=uo(s,p.events,p),p.events)}function v(ie,te){return H2(x(ie),te)}function x(ie){return B2(c,ie)}function w(){const{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}=a;return{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}}function T(ie){o[ie.line]=ie.column,B()}function A(){let ie;for(;a._index<c.length;){const te=c[a._index];if(typeof te=="string")for(ie=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ie&&a._bufferIndex<te.length;)z(te.charCodeAt(a._bufferIndex));else z(te)}}function z(ie){y=y(ie)}function Q(ie){pe(ie)?(a.line++,a.column=1,a.offset+=ie===-3?2:1,B()):ie!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=ie}function j(ie,te){const ye=te||{};return ye.type=ie,ye.start=w(),p.events.push(["enter",ye,p]),d.push(ye),ye}function W(ie){const te=d.pop();return te.end=w(),p.events.push(["exit",te,p]),te}function ee(ie,te){V(ie,te.from)}function q(ie,te){te.restore()}function J(ie,te){return ye;function ye(ue,P,_){let K,he,ke,k;return Array.isArray(ue)?Y(ue):"tokenize"in ue?Y([ue]):R(ue);function R(re){return we;function we(Ye){const ve=Ye!==null&&re[Ye],kt=Ye!==null&&re.null,At=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(kt)?kt:kt?[kt]:[]];return Y(At)(Ye)}}function Y(re){return K=re,he=0,re.length===0?_:E(re[he])}function E(re){return we;function we(Ye){return k=ae(),ke=re,re.partial||(p.currentConstruct=re),re.name&&p.parser.constructs.disable.null.includes(re.name)?se():re.tokenize.call(te?Object.assign(Object.create(p),te):p,m,le,se)(Ye)}}function le(re){return ie(ke,k),P}function se(re){return k.restore(),++he<K.length?E(K[he]):_}}}function V(ie,te){ie.resolveAll&&!s.includes(ie)&&s.push(ie),ie.resolve&&Jt(p.events,te,p.events.length-te,ie.resolve(p.events.slice(te),p)),ie.resolveTo&&(p.events=ie.resolveTo(p.events,p))}function ae(){const ie=w(),te=p.previous,ye=p.currentConstruct,ue=p.events.length,P=Array.from(d);return{from:ue,restore:_};function _(){a=ie,p.previous=te,p.currentConstruct=ye,p.events.length=ue,d=P,B()}}function B(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function B2(t,l){const r=l.start._index,a=l.start._bufferIndex,o=l.end._index,s=l.end._bufferIndex;let c;if(r===o)c=[t[r].slice(a,s)];else{if(c=t.slice(r,o),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}s>0&&c.push(t[o].slice(0,s))}return c}function H2(t,l){let r=-1;const a=[];let o;for(;++r<t.length;){const s=t[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
11
|
+
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let y=vn(),g;if(l){let A=typeof l=="string"?Zi(l):l;Pe(m==="/"||A.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),g=A}else g=y;let v=g.pathname||"/",x=v;if(m!=="/"){let A=m.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(A.length).join("/")}let w=r&&r.state.matches.length?r.state.matches.map(A=>Object.assign(A,{route:r.manifest[A.route.id]||A.route})):Fy(t,{pathname:x});yn(p||w!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),yn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=YS(w&&w.map(A=>Object.assign({},A,{params:Object.assign({},c,A.params),pathname:pn([m,a.encodeLocation?a.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:pn([m,a.encodeLocation?a.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),o,r);return l&&T?M.createElement(ca.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},T):T}function qS(){let t=KS(),l=SS(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",t),c=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:s},"ErrorBoundary")," or"," ",M.createElement("code",{style:s},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},l),r?M.createElement("pre",{style:o},r):null,c)}var QS=M.createElement(qS,null),ib=class extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,l){return l.location!==t.location||l.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:l.error,location:l.location,revalidation:t.revalidation||l.revalidation}}componentDidCatch(t,l){this.props.onError?this.props.onError(t,l):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=MS(t.digest);r&&(t=r)}let l=t!==void 0?M.createElement(cn.Provider,{value:this.props.routeContext},M.createElement(_f.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?M.createElement(FS,{error:t},l):l}};ib.contextType=$y;var Nc=new WeakMap;function FS({children:t,error:l}){let{basename:r}=M.useContext(Pt);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let a=DS(l.digest);if(a){let o=Nc.get(l);if(o)throw o;let s=Jy(a.location,r),c=s.absoluteURL||s.to;if(CS(c))throw new Error("Invalid redirect location");if(Ky&&!Nc.get(l))if(s.isExternal||a.reloadDocument)window.location.href=c;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw Nc.set(l,d),d}return M.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c}`})}}return t}function GS({routeContext:t,match:l,children:r}){let a=M.useContext(Ii);return a&&a.static&&a.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=l.route.id),M.createElement(cn.Provider,{value:t},r)}function YS(t,l=[],r){let a=r?.state;if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(l.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let o=t,s=a?.errors;if(s!=null){let y=o.findIndex(g=>g.route.id&&s?.[g.route.id]!==void 0);Pe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let c=!1,d=-1;if(r&&a){c=a.renderFallback;for(let y=0;y<o.length;y++){let g=o[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=y),g.route.id){let{loaderData:v,errors:x}=a,w=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||w){r.isStatic&&(c=!0),d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}}let m=r?.onError,p=a&&m?(y,g)=>{m(y,{location:a.location,params:a.matches?.[0]?.params??{},pattern:kS(a.matches),errorInfo:g})}:void 0;return o.reduceRight((y,g,v)=>{let x,w=!1,T=null,A=null;a&&(x=s&&g.route.id?s[g.route.id]:void 0,T=g.route.errorElement||QS,c&&(d<0&&v===0?(rb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,A=null):d===v&&(w=!0,A=g.route.hydrateFallbackElement||null)));let z=l.concat(o.slice(0,v+1)),Q=()=>{let j;return x?j=T:w?j=A:g.route.Component?j=M.createElement(g.route.Component,null):g.route.element?j=g.route.element:j=y,M.createElement(GS,{match:g,routeContext:{outlet:y,matches:z,isDataRoute:a!=null},children:j})};return a&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?M.createElement(ib,{location:a.location,revalidation:a.revalidation,component:T,error:x,children:Q(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:p}):Q()},null)}function Lf(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VS(t){let l=M.useContext(Ii);return Pe(l,Lf(t)),l}function XS(t){let l=M.useContext(to);return Pe(l,Lf(t)),l}function ZS(t){let l=M.useContext(cn);return Pe(l,Lf(t)),l}function jf(t){let l=ZS(t),r=l.matches[l.matches.length-1];return Pe(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function IS(){return jf("useRouteId")}function KS(){let t=M.useContext(_f),l=XS("useRouteError"),r=jf("useRouteError");return t!==void 0?t:l.errors?.[r]}function JS(){let{router:t}=VS("useNavigate"),l=jf("useNavigate"),r=M.useRef(!1);return nb(()=>{r.current=!0}),M.useCallback(async(o,s={})=>{yn(r.current,tb),r.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:l,...s}))},[t,l])}var zg={};function rb(t,l,r){!l&&!zg[t]&&(zg[t]=!0,yn(!1,r))}M.memo(PS);function PS({routes:t,manifest:l,future:r,state:a,isStatic:o,onError:s}){return lb(t,void 0,{manifest:l,state:a,isStatic:o,onError:s})}function $S({to:t,replace:l,state:r,relative:a}){Pe(Wl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=M.useContext(Pt);yn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=M.useContext(cn),{pathname:c}=vn(),d=Nf(),m=eo(t,Mf(s),c,a==="path"),p=JSON.stringify(m);return M.useEffect(()=>{d(JSON.parse(p),{replace:l,state:r,relative:a})},[d,p,a,l,r]),null}function WS(t){return US(t.context)}function $r(t){Pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ek({basename:t="/",children:l=null,location:r,navigationType:a="POP",navigator:o,static:s=!1,useTransitions:c}){Pe(!Wl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),m=M.useMemo(()=>({basename:d,navigator:o,static:s,useTransitions:c,future:{}}),[d,o,s,c]);typeof r=="string"&&(r=Zi(r));let{pathname:p="/",search:y="",hash:g="",state:v=null,key:x="default",mask:w}=r,T=M.useMemo(()=>{let A=In(p,d);return A==null?null:{location:{pathname:A,search:y,hash:g,state:v,key:x,mask:w},navigationType:a}},[d,p,y,g,v,x,a,w]);return yn(T!=null,`<Router basename="${d}"> is not able to match the URL "${p}${y}${g}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:M.createElement(Pt.Provider,{value:m},M.createElement(ca.Provider,{children:l,value:T}))}function tk({children:t,location:l}){return HS(sf(t),l)}function sf(t,l=[]){let r=[];return M.Children.forEach(t,(a,o)=>{if(!M.isValidElement(a))return;let s=[...l,o];if(a.type===M.Fragment){r.push.apply(r,sf(a.props.children,s));return}Pe(a.type===$r,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=sf(a.props.children,s)),r.push(c)}),r}var Yu="get",Vu="application/x-www-form-urlencoded";function no(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function nk(t){return no(t)&&t.tagName.toLowerCase()==="button"}function lk(t){return no(t)&&t.tagName.toLowerCase()==="form"}function ik(t){return no(t)&&t.tagName.toLowerCase()==="input"}function rk(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function ak(t,l){return t.button===0&&(!l||l==="_self")&&!rk(t)}var Uu=null;function uk(){if(Uu===null)try{new FormData(document.createElement("form"),0),Uu=!1}catch{Uu=!0}return Uu}var ok=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lc(t){return t!=null&&!ok.has(t)?(yn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vu}"`),null):t}function sk(t,l){let r,a,o,s,c;if(lk(t)){let d=t.getAttribute("action");a=d?In(d,l):null,r=t.getAttribute("method")||Yu,o=Lc(t.getAttribute("enctype"))||Vu,s=new FormData(t)}else if(nk(t)||ik(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=t.getAttribute("formaction")||d.getAttribute("action");if(a=m?In(m,l):null,r=t.getAttribute("formmethod")||d.getAttribute("method")||Yu,o=Lc(t.getAttribute("formenctype"))||Lc(d.getAttribute("enctype"))||Vu,s=new FormData(d,t),!uk()){let{name:p,type:y,value:g}=t;if(y==="image"){let v=p?`${p}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else p&&s.append(p,g)}}else{if(no(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Yu,a=null,o=Vu,c=t}return s&&o==="text/plain"&&(c=s,s=void 0),{action:a,method:r.toLowerCase(),encType:o,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Uf(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function ab(t,l,r,a){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${a}`:o.pathname=`${o.pathname}.${a}`:o.pathname==="/"?o.pathname=`_root.${a}`:l&&In(o.pathname,l)==="/"?o.pathname=`${Iu(l)}/_root.${a}`:o.pathname=`${Iu(o.pathname)}.${a}`,o}async function ck(t,l){if(t.id in l)return l[t.id];try{let r=await import(t.module);return l[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fk(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function hk(t,l,r){let a=await Promise.all(t.map(async o=>{let s=l.routes[o.route.id];if(s){let c=await ck(s,r);return c.links?c.links():[]}return[]}));return gk(a.flat(1).filter(fk).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Rg(t,l,r,a,o,s){let c=(m,p)=>r[p]?m.route.id!==r[p].route.id:!0,d=(m,p)=>r[p].pathname!==m.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==m.params["*"];return s==="assets"?l.filter((m,p)=>c(m,p)||d(m,p)):s==="data"?l.filter((m,p)=>{let y=a.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(c(m,p)||d(m,p))return!0;if(m.route.shouldRevalidate){let g=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function dk(t,l,{includeHydrateFallback:r}={}){return mk(t.map(a=>{let o=l.routes[a.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function mk(t){return[...new Set(t)]}function pk(t){let l={},r=Object.keys(t).sort();for(let a of r)l[a]=t[a];return l}function gk(t,l){let r=new Set;return new Set(l),t.reduce((a,o)=>{let s=JSON.stringify(pk(o));return r.has(s)||(r.add(s),a.push({key:s,link:o})),a},[])}function Bf(){let t=M.useContext(Ii);return Uf(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function yk(){let t=M.useContext(to);return Uf(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Hf=M.createContext(void 0);Hf.displayName="FrameworkContext";function lo(){let t=M.useContext(Hf);return Uf(t,"You must render this element inside a <HydratedRouter> element"),t}function bk(t,l){let r=M.useContext(Hf),[a,o]=M.useState(!1),[s,c]=M.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:p,onMouseLeave:y,onTouchStart:g}=l,v=M.useRef(null);M.useEffect(()=>{if(t==="render"&&c(!0),t==="viewport"){let T=z=>{z.forEach(Q=>{c(Q.isIntersecting)})},A=new IntersectionObserver(T,{threshold:.5});return v.current&&A.observe(v.current),()=>{A.disconnect()}}},[t]),M.useEffect(()=>{if(a){let T=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(T)}}},[a]);let x=()=>{o(!0)},w=()=>{o(!1),c(!1)};return r?t!=="intent"?[s,v,{}]:[s,v,{onFocus:Vr(d,x),onBlur:Vr(m,w),onMouseEnter:Vr(p,x),onMouseLeave:Vr(y,w),onTouchStart:Vr(g,x)}]:[!1,v,{}]}function Vr(t,l){return r=>{t&&t(r),r.defaultPrevented||l(r)}}function vk({page:t,...l}){let r=TS(),{nonce:a}=lo(),{router:o}=Bf(),s=M.useMemo(()=>Fy(o.routes,t,o.basename),[o.routes,t,o.basename]);return s?(l.nonce==null&&a&&(l={...l,nonce:a}),r?M.createElement(Sk,{page:t,matches:s,...l}):M.createElement(kk,{page:t,matches:s,...l})):null}function xk(t){let{manifest:l,routeModules:r}=lo(),[a,o]=M.useState([]);return M.useEffect(()=>{let s=!1;return hk(t,l,r).then(c=>{s||o(c)}),()=>{s=!0}},[t,l,r]),a}function Sk({page:t,matches:l,...r}){let a=vn(),{future:o}=lo(),{basename:s}=Bf(),c=M.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let d=ab(t,s,o.v8_trailingSlashAwareDataRequests,"rsc"),m=!1,p=[];for(let y of l)typeof y.route.shouldRevalidate=="function"?m=!0:p.push(y.route.id);return m&&p.length>0&&d.searchParams.set("_routes",p.join(",")),[d.pathname+d.search]},[s,o.v8_trailingSlashAwareDataRequests,t,a,l]);return M.createElement(M.Fragment,null,c.map(d=>M.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...r})))}function kk({page:t,matches:l,...r}){let a=vn(),{future:o,manifest:s,routeModules:c}=lo(),{basename:d}=Bf(),{loaderData:m,matches:p}=yk(),y=M.useMemo(()=>Rg(t,l,p,s,a,"data"),[t,l,p,s,a]),g=M.useMemo(()=>Rg(t,l,p,s,a,"assets"),[t,l,p,s,a]),v=M.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let T=new Set,A=!1;if(l.forEach(Q=>{let j=s.routes[Q.route.id];!j||!j.hasLoader||(!y.some(W=>W.route.id===Q.route.id)&&Q.route.id in m&&c[Q.route.id]?.shouldRevalidate||j.hasClientLoader?A=!0:T.add(Q.route.id))}),T.size===0)return[];let z=ab(t,d,o.v8_trailingSlashAwareDataRequests,"data");return A&&T.size>0&&z.searchParams.set("_routes",l.filter(Q=>T.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[z.pathname+z.search]},[d,o.v8_trailingSlashAwareDataRequests,m,a,s,y,l,t,c]),x=M.useMemo(()=>dk(g,s),[g,s]),w=xk(g);return M.createElement(M.Fragment,null,v.map(T=>M.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...r})),x.map(T=>M.createElement("link",{key:T,rel:"modulepreload",href:T,...r})),w.map(({key:T,link:A})=>M.createElement("link",{key:T,nonce:r.nonce,...A,crossOrigin:A.crossOrigin??r.crossOrigin})))}function Ek(...t){return l=>{t.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var wk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wk&&(window.__reactRouterVersion="7.18.1")}catch{}function Ck({basename:t,children:l,useTransitions:r,window:a}){let o=M.useRef();o.current==null&&(o.current=Wx({window:a,v5Compat:!0}));let s=o.current,[c,d]=M.useState({action:s.action,location:s.location}),m=M.useCallback(p=>{r===!1?d(p):M.startTransition(()=>d(p))},[r]);return M.useLayoutEffect(()=>s.listen(m),[s,m]),M.createElement(ek,{basename:t,children:l,location:c.location,navigationType:c.action,navigator:s,useTransitions:r})}var ub=M.forwardRef(function({onClick:l,discover:r="render",prefetch:a="none",relative:o,reloadDocument:s,replace:c,mask:d,state:m,target:p,to:y,preventScrollReset:g,viewTransition:v,defaultShouldRevalidate:x,...w},T){let{basename:A,navigator:z,useTransitions:Q}=M.useContext(Pt),j=typeof y=="string"&&Df.test(y),W=Jy(y,A);y=W.to;let ee=_S(y,{relative:o}),q=vn(),J=null;if(d){let P=eo(d,[],q.mask?q.mask.pathname:"/",!0);A!=="/"&&(P.pathname=P.pathname==="/"?A:pn([A,P.pathname])),J=z.createHref(P)}let[V,ae,B]=bk(a,w),ie=Rk(y,{replace:c,mask:d,state:m,target:p,preventScrollReset:g,relative:o,viewTransition:v,defaultShouldRevalidate:x,useTransitions:Q});function te(P){l&&l(P),P.defaultPrevented||ie(P)}let ye=!(W.isExternal||s),ue=M.createElement("a",{...w,...B,href:(ye?J:void 0)||W.absoluteURL||ee,onClick:ye?te:l,ref:Ek(T,ae),target:p,"data-discover":!j&&r==="render"?"true":void 0});return V&&!j?M.createElement(M.Fragment,null,ue,M.createElement(vk,{page:ee})):ue});ub.displayName="Link";var Tk=M.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:a="",end:o=!1,style:s,to:c,viewTransition:d,children:m,...p},y){let g=fa(c,{relative:p.relative}),v=vn(),x=M.useContext(to),{navigator:w,basename:T}=M.useContext(Pt),A=x!=null&&Nk(g)&&d===!0,z=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,Q=v.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(Q=Q.toLowerCase(),j=j?j.toLowerCase():null,z=z.toLowerCase()),j&&T&&(j=In(j,T)||j);const W=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let ee=Q===z||!o&&Q.startsWith(z)&&Q.charAt(W)==="/",q=j!=null&&(j===z||!o&&j.startsWith(z)&&j.charAt(z.length)==="/"),J={isActive:ee,isPending:q,isTransitioning:A},V=ee?l:void 0,ae;typeof a=="function"?ae=a(J):ae=[a,ee?"active":null,q?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let B=typeof s=="function"?s(J):s;return M.createElement(ub,{...p,"aria-current":V,className:ae,ref:y,style:B,to:c,viewTransition:d},typeof m=="function"?m(J):m)});Tk.displayName="NavLink";var Ak=M.forwardRef(({discover:t="render",fetcherKey:l,navigate:r,reloadDocument:a,replace:o,state:s,method:c=Yu,action:d,onSubmit:m,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v,...x},w)=>{let{useTransitions:T}=M.useContext(Pt),A=Mk(),z=_k(d,{relative:p}),Q=c.toLowerCase()==="get"?"get":"post",j=typeof d=="string"&&Df.test(d),W=ee=>{if(m&&m(ee),ee.defaultPrevented)return;ee.preventDefault();let q=ee.nativeEvent.submitter,J=q?.getAttribute("formmethod")||c,V=()=>A(q||ee.currentTarget,{fetcherKey:l,method:J,navigate:r,replace:o,state:s,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v});T&&r!==!1?M.startTransition(()=>V()):V()};return M.createElement("form",{ref:w,method:Q,action:z,onSubmit:a?m:W,...x,"data-discover":!j&&t==="render"?"true":void 0})});Ak.displayName="Form";function zk(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ob(t){let l=M.useContext(Ii);return Pe(l,zk(t)),l}function Rk(t,{target:l,replace:r,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:m,useTransitions:p}={}){let y=Nf(),g=vn(),v=fa(t,{relative:c});return M.useCallback(x=>{if(ak(x,l)){x.preventDefault();let w=r!==void 0?r:ra(g)===ra(v),T=()=>y(t,{replace:w,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:m});p?M.startTransition(()=>T()):T()}},[g,y,v,r,a,o,l,t,s,c,d,m,p])}var Ok=0,Dk=()=>`__${String(++Ok)}__`;function Mk(){let{router:t}=ob("useSubmit"),{basename:l}=M.useContext(Pt),r=IS(),a=t.fetch,o=t.navigate;return M.useCallback(async(s,c={})=>{let{action:d,method:m,encType:p,formData:y,body:g}=sk(s,l);if(c.navigate===!1){let v=c.fetcherKey||Dk();await a(v,r,c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||m,formEncType:c.encType||p,flushSync:c.flushSync})}else await o(c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||m,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,o,l,r])}function _k(t,{relative:l}={}){let{basename:r}=M.useContext(Pt),a=M.useContext(cn);Pe(a,"useFormAction must be used inside a RouteContext");let[o]=a.matches.slice(-1),s={...fa(t||".",{relative:l})},c=vn();if(t==null){s.search=c.search;let d=new URLSearchParams(s.search),m=d.getAll("index");if(m.some(y=>y==="")){d.delete("index"),m.filter(g=>g).forEach(g=>d.append("index",g));let y=d.toString();s.search=y?`?${y}`:""}}return(!t||t===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:pn([r,s.pathname])),ra(s)}function Nk(t,{relative:l}={}){let r=M.useContext(Wy);Pe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=ob("useViewTransitionState"),o=fa(t,{relative:l});if(!r.isTransitioning)return!1;let s=In(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=In(r.nextLocation.pathname,a)||r.nextLocation.pathname;return aa(o.pathname,c)!=null||aa(o.pathname,s)!=null}const sb=(...t)=>t.filter((l,r,a)=>!!l&&l.trim()!==""&&a.indexOf(l)===r).join(" ").trim();const Lk=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const jk=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,a)=>a?a.toUpperCase():r.toLowerCase());const Og=t=>{const l=jk(t);return l.charAt(0).toUpperCase()+l.slice(1)};var Uk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Bk=t=>{for(const l in t)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const Hk=M.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:s,iconNode:c,...d},m)=>M.createElement("svg",{ref:m,...Uk,width:l,height:l,stroke:t,strokeWidth:a?Number(r)*24/Number(l):r,className:sb("lucide",o),...!s&&!Bk(d)&&{"aria-hidden":"true"},...d},[...c.map(([p,y])=>M.createElement(p,y)),...Array.isArray(s)?s:[s]]));const ha=(t,l)=>{const r=M.forwardRef(({className:a,...o},s)=>M.createElement(Hk,{ref:s,iconNode:l,className:sb(`lucide-${Lk(Og(t))}`,`lucide-${t}`,a),...o}));return r.displayName=Og(t),r};const qk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Qk=ha("arrow-up",qk);const Fk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],Gk=ha("file-diff",Fk);const Yk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Vk=ha("info",Yk);const Xk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Zk=ha("panel-left",Xk);const Ik=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],cb=ha("x",Ik),cf="conductor-remote-token";function Kk(){const l=new URLSearchParams(location.hash.slice(1)).get("token");return l&&(localStorage.setItem(cf,l),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(cf)}function Jk(){return localStorage.getItem(cf)}class fb extends Error{constructor(l,r){super(l),this.status=r}status}async function Xr(t,l={}){const r=Jk(),a=await fetch(t,{...l,headers:{authorization:`Bearer ${r??""}`,"content-type":"application/json",...l.headers}});if(!a.ok){const o=await a.json().catch(()=>({}));throw new fb(o.error||`HTTP ${a.status}`,a.status)}return a.json()}const da={state:()=>Xr("/api/state"),sessions:t=>Xr(`/api/workspaces/${encodeURIComponent(t)}/sessions`),messages:(t,l)=>Xr(`/api/sessions/${encodeURIComponent(t)}/messages?after=${l}`),diff:t=>Xr(`/api/workspaces/${encodeURIComponent(t)}/diff`),sendPrompt:(t,l,r)=>Xr(`/api/sessions/${encodeURIComponent(t)}/prompt`,{method:"POST",body:JSON.stringify({text:l,workspaceId:r})})},Dg=t=>{let l;const r=new Set,a=(p,y)=>{const g=typeof p=="function"?p(l):p;if(!Object.is(g,l)){const v=l;l=y??(typeof g!="object"||g===null)?g:Object.assign({},l,g),r.forEach(x=>x(l,v))}},o=()=>l,d={setState:a,getState:o,getInitialState:()=>m,subscribe:p=>(r.add(p),()=>r.delete(p))},m=l=t(a,o,d);return d},Pk=(t=>t?Dg(t):Dg),$k=t=>t;function Wk(t,l=$k){const r=ju.useSyncExternalStore(t.subscribe,ju.useCallback(()=>l(t.getState()),[t,l]),ju.useCallback(()=>l(t.getInitialState()),[t,l]));return ju.useDebugValue(r),r}const Mg=t=>{const l=Pk(t),r=a=>Wk(l,a);return Object.assign(r,l),r},eE=(t=>t?Mg(t):Mg),Kn=eE(t=>({token:Kk(),online:!0,sidebarOpen:!location.pathname.startsWith("/w/"),setToken:l=>t({token:l}),setOnline:l=>t({online:l}),setSidebarOpen:l=>t({sidebarOpen:l})}));function io(){const t=Kn(r=>r.setOnline),l=Kn(r=>r.setToken);return M.useCallback((r,a)=>{t(r),a instanceof fb&&a.status===401&&l(null)},[t,l])}function hb(){const t=io(),l=Of({queryKey:["state"],queryFn:()=>da.state(),refetchInterval:2500});return M.useEffect(()=>{l.isSuccess&&t(!0),l.isError&&t(!1,l.error)},[l.isSuccess,l.isError,l.error,t]),l}function tE(t){const l=io(),r=Of({queryKey:["sessions",t],queryFn:()=>da.sessions(t),enabled:!!t,refetchInterval:4e3});return M.useEffect(()=>{r.isError&&l(!1,r.error)},[r.isError,r.error,l]),r}function nE(t,l){const r=io(),a=Of({queryKey:["diff",t],queryFn:()=>da.diff(t),enabled:!!t,refetchInterval:5e3});return M.useEffect(()=>{a.isError&&r(!1,a.error)},[a.isError,a.error,r]),a}function lE(t){const l=io(),[r,a]=M.useState({entries:[],loading:!0,error:null}),o=M.useRef(0);return M.useEffect(()=>{if(!t){a({entries:[],loading:!1,error:null});return}o.current=0,a({entries:[],loading:!0,error:null});let s=!0;const c=async()=>{try{const{entries:m,cursor:p}=await da.messages(t,o.current);if(!s)return;l(!0),m.length?(o.current=p,a(y=>({entries:[...y.entries,...m],loading:!1,error:null}))):a(y=>y.loading?{...y,loading:!1}:y)}catch(m){if(!s)return;l(!1,m),a(p=>({...p,loading:!1,error:m instanceof Error?m.message:String(m)}))}};c();const d=setInterval(c,1800);return()=>{s=!1,clearInterval(d)}},[t,l]),r}function db(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(r=db(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function iE(){for(var t,l,r=0,a="",o=arguments.length;r<o;r++)(t=arguments[r])&&(l=db(t))&&(a&&(a+=" "),a+=l);return a}const rE=(t,l)=>{const r=new Array(t.length+l.length);for(let a=0;a<t.length;a++)r[a]=t[a];for(let a=0;a<l.length;a++)r[t.length+a]=l[a];return r},aE=(t,l)=>({classGroupId:t,validator:l}),mb=(t=new Map,l=null,r)=>({nextPart:t,validators:l,classGroupId:r}),Ku="-",_g=[],uE="arbitrary..",oE=t=>{const l=cE(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return sE(c);const d=c.split(Ku),m=d[0]===""&&d.length>1?1:0;return pb(d,m,l)},getConflictingClassGroupIds:(c,d)=>{if(d){const m=a[c],p=r[c];return m?p?rE(p,m):m:p||_g}return r[c]||_g}}},pb=(t,l,r)=>{if(t.length-l===0)return r.classGroupId;const o=t[l],s=r.nextPart.get(o);if(s){const p=pb(t,l+1,s);if(p)return p}const c=r.validators;if(c===null)return;const d=l===0?t.join(Ku):t.slice(l).join(Ku),m=c.length;for(let p=0;p<m;p++){const y=c[p];if(y.validator(d))return y.classGroupId}},sE=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=t.slice(1,-1),r=l.indexOf(":"),a=l.slice(0,r);return a?uE+a:void 0})(),cE=t=>{const{theme:l,classGroups:r}=t;return fE(r,l)},fE=(t,l)=>{const r=mb();for(const a in t){const o=t[a];qf(o,r,a,l)}return r},qf=(t,l,r,a)=>{const o=t.length;for(let s=0;s<o;s++){const c=t[s];hE(c,l,r,a)}},hE=(t,l,r,a)=>{if(typeof t=="string"){dE(t,l,r);return}if(typeof t=="function"){mE(t,l,r,a);return}pE(t,l,r,a)},dE=(t,l,r)=>{const a=t===""?l:gb(l,t);a.classGroupId=r},mE=(t,l,r,a)=>{if(gE(t)){qf(t(a),l,r,a);return}l.validators===null&&(l.validators=[]),l.validators.push(aE(r,t))},pE=(t,l,r,a)=>{const o=Object.entries(t),s=o.length;for(let c=0;c<s;c++){const[d,m]=o[c];qf(m,gb(l,d),r,a)}},gb=(t,l)=>{let r=t;const a=l.split(Ku),o=a.length;for(let s=0;s<o;s++){const c=a[s];let d=r.nextPart.get(c);d||(d=mb(),r.nextPart.set(c,d)),r=d}return r},gE=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,yE=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=Object.create(null),a=Object.create(null);const o=(s,c)=>{r[s]=c,l++,l>t&&(l=0,a=r,r=Object.create(null))};return{get(s){let c=r[s];if(c!==void 0)return c;if((c=a[s])!==void 0)return o(s,c),c},set(s,c){s in r?r[s]=c:o(s,c)}}},ff="!",Ng=":",bE=[],Lg=(t,l,r,a,o)=>({modifiers:t,hasImportantModifier:l,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),vE=t=>{const{prefix:l,experimentalParseClassName:r}=t;let a=o=>{const s=[];let c=0,d=0,m=0,p;const y=o.length;for(let T=0;T<y;T++){const A=o[T];if(c===0&&d===0){if(A===Ng){s.push(o.slice(m,T)),m=T+1;continue}if(A==="/"){p=T;continue}}A==="["?c++:A==="]"?c--:A==="("?d++:A===")"&&d--}const g=s.length===0?o:o.slice(m);let v=g,x=!1;g.endsWith(ff)?(v=g.slice(0,-1),x=!0):g.startsWith(ff)&&(v=g.slice(1),x=!0);const w=p&&p>m?p-m:void 0;return Lg(s,x,v,w)};if(l){const o=l+Ng,s=a;a=c=>c.startsWith(o)?s(c.slice(o.length)):Lg(bE,!1,c,void 0,!0)}if(r){const o=a;a=s=>r({className:s,parseClassName:o})}return a},xE=t=>{const l=new Map;return t.orderSensitiveModifiers.forEach((r,a)=>{l.set(r,1e6+a)}),r=>{const a=[];let o=[];for(let s=0;s<r.length;s++){const c=r[s],d=c[0]==="[",m=l.has(c);d||m?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},SE=t=>({cache:yE(t.cacheSize),parseClassName:vE(t),sortModifiers:xE(t),postfixLookupClassGroupIds:kE(t),...oE(t)}),kE=t=>{const l=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let a=0;a<r.length;a++)l[r[a]]=!0;return l},EE=/\s+/,wE=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:c}=l,d=[],m=t.trim().split(EE);let p="";for(let y=m.length-1;y>=0;y-=1){const g=m[y],{isExternal:v,modifiers:x,hasImportantModifier:w,baseClassName:T,maybePostfixModifierPosition:A}=r(g);if(v){p=g+(p.length>0?" "+p:p);continue}let z=!!A,Q;if(z){const J=T.substring(0,A);Q=a(J);const V=Q&&c[Q]?a(T):void 0;V&&V!==Q&&(Q=V,z=!1)}else Q=a(T);if(!Q){if(!z){p=g+(p.length>0?" "+p:p);continue}if(Q=a(T),!Q){p=g+(p.length>0?" "+p:p);continue}z=!1}const j=x.length===0?"":x.length===1?x[0]:s(x).join(":"),W=w?j+ff:j,ee=W+Q;if(d.indexOf(ee)>-1)continue;d.push(ee);const q=o(Q,z);for(let J=0;J<q.length;++J){const V=q[J];d.push(W+V)}p=g+(p.length>0?" "+p:p)}return p},CE=(...t)=>{let l=0,r,a,o="";for(;l<t.length;)(r=t[l++])&&(a=yb(r))&&(o&&(o+=" "),o+=a);return o},yb=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=yb(t[a]))&&(r&&(r+=" "),r+=l);return r},TE=(t,...l)=>{let r,a,o,s;const c=m=>{const p=l.reduce((y,g)=>g(y),t());return r=SE(p),a=r.cache.get,o=r.cache.set,s=d,d(m)},d=m=>{const p=a(m);if(p)return p;const y=wE(m,r);return o(m,y),y};return s=c,(...m)=>s(CE(...m))},AE=[],ct=t=>{const l=r=>r[t]||AE;return l.isThemeGetter=!0,l},bb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,vb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,RE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,DE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ME=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,El=t=>zE.test(t),Te=t=>!!t&&!Number.isNaN(Number(t)),Cn=t=>!!t&&Number.isInteger(Number(t)),jc=t=>t.endsWith("%")&&Te(t.slice(0,-1)),Zn=t=>RE.test(t),xb=()=>!0,NE=t=>OE.test(t)&&!DE.test(t),Qf=()=>!1,LE=t=>ME.test(t),jE=t=>_E.test(t),UE=t=>!oe(t)&&!ce(t),BE=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),HE=t=>Al(t,Eb,Qf),oe=t=>bb.test(t),Zl=t=>Al(t,wb,NE),jg=t=>Al(t,ZE,Te),qE=t=>Al(t,Tb,xb),QE=t=>Al(t,Cb,Qf),Ug=t=>Al(t,Sb,Qf),FE=t=>Al(t,kb,jE),Bu=t=>Al(t,Ab,LE),ce=t=>vb.test(t),Zr=t=>ei(t,wb),GE=t=>ei(t,Cb),Bg=t=>ei(t,Sb),YE=t=>ei(t,Eb),VE=t=>ei(t,kb),Hu=t=>ei(t,Ab,!0),XE=t=>ei(t,Tb,!0),Al=(t,l,r)=>{const a=bb.exec(t);return a?a[1]?l(a[1]):r(a[2]):!1},ei=(t,l,r=!1)=>{const a=vb.exec(t);return a?a[1]?l(a[1]):r:!1},Sb=t=>t==="position"||t==="percentage",kb=t=>t==="image"||t==="url",Eb=t=>t==="length"||t==="size"||t==="bg-size",wb=t=>t==="length",ZE=t=>t==="number",Cb=t=>t==="family-name",Tb=t=>t==="number"||t==="weight",Ab=t=>t==="shadow",IE=()=>{const t=ct("color"),l=ct("font"),r=ct("text"),a=ct("font-weight"),o=ct("tracking"),s=ct("leading"),c=ct("breakpoint"),d=ct("container"),m=ct("spacing"),p=ct("radius"),y=ct("shadow"),g=ct("inset-shadow"),v=ct("text-shadow"),x=ct("drop-shadow"),w=ct("blur"),T=ct("perspective"),A=ct("aspect"),z=ct("ease"),Q=ct("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ee=()=>[...W(),ce,oe],q=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],V=()=>[ce,oe,m],ae=()=>[El,"full","auto",...V()],B=()=>[Cn,"none","subgrid",ce,oe],ie=()=>["auto",{span:["full",Cn,ce,oe]},Cn,ce,oe],te=()=>[Cn,"auto",ce,oe],ye=()=>["auto","min","max","fr",ce,oe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...V()],K=()=>[El,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],he=()=>[El,"screen","full","dvw","lvw","svw","min","max","fit",...V()],ke=()=>[El,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],k=()=>[t,ce,oe],R=()=>[...W(),Bg,Ug,{position:[ce,oe]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",YE,HE,{size:[ce,oe]}],le=()=>[jc,Zr,Zl],se=()=>["","none","full",p,ce,oe],re=()=>["",Te,Zr,Zl],we=()=>["solid","dashed","dotted","double"],Ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Te,jc,Bg,Ug],kt=()=>["","none",w,ce,oe],At=()=>["none",Te,ce,oe],xn=()=>["none",Te,ce,oe],Pn=()=>[Te,ce,oe],zt=()=>[El,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zn],breakpoint:[Zn],color:[xb],container:[Zn],"drop-shadow":[Zn],ease:["in","out","in-out"],font:[UE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zn],shadow:[Zn],spacing:["px",Te],text:[Zn],"text-shadow":[Zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",El,oe,ce,A]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,oe]}],"container-named":[BE],columns:[{columns:[Te,oe,ce,d]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ee()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Cn,"auto",ce,oe]}],basis:[{basis:[El,"full","auto",d,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,El,"auto","initial","none",oe]}],grow:[{grow:["",Te,ce,oe]}],shrink:[{shrink:["",Te,ce,oe]}],order:[{order:[Cn,"first","last","none",ce,oe]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...ke()]}],"min-block-size":[{"min-block":["auto",...ke()]}],"max-block-size":[{"max-block":["none",...ke()]}],w:[{w:[d,"screen",...K()]}],"min-w":[{"min-w":[d,"screen","none",...K()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,Zr,Zl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,XE,qE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jc,oe]}],"font-family":[{font:[GE,QE,l]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ce,oe]}],"line-clamp":[{"line-clamp":[Te,"none",ce,jg]}],leading:[{leading:[s,...V()]}],"list-image":[{"list-image":["none",ce,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ce,Zl]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[Te,"auto",ce,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"tab-size":[{tab:[Cn,ce,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Cn,ce,oe],radial:["",ce,oe],conic:[Cn,ce,oe]},VE,FE]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ce,oe]}],"outline-w":[{outline:["",Te,Zr,Zl]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",y,Hu,Bu]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",g,Hu,Bu]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[Te,Zl]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",v,Hu,Bu]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[Te,ce,oe]}],"mix-blend":[{"mix-blend":[...Ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[ce,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,oe]}],filter:[{filter:["","none",ce,oe]}],blur:[{blur:kt()}],brightness:[{brightness:[Te,ce,oe]}],contrast:[{contrast:[Te,ce,oe]}],"drop-shadow":[{"drop-shadow":["","none",x,Hu,Bu]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",Te,ce,oe]}],"hue-rotate":[{"hue-rotate":[Te,ce,oe]}],invert:[{invert:["",Te,ce,oe]}],saturate:[{saturate:[Te,ce,oe]}],sepia:[{sepia:["",Te,ce,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,oe]}],"backdrop-blur":[{"backdrop-blur":kt()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ce,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ce,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ce,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ce,oe]}],"backdrop-invert":[{"backdrop-invert":["",Te,ce,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ce,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ce,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ce,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ce,oe]}],ease:[{ease:["linear","initial",z,ce,oe]}],delay:[{delay:[Te,ce,oe]}],animate:[{animate:["none",Q,ce,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,ce,oe]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:At()}],"rotate-x":[{"rotate-x":At()}],"rotate-y":[{"rotate-y":At()}],"rotate-z":[{"rotate-z":At()}],scale:[{scale:xn()}],"scale-x":[{"scale-x":xn()}],"scale-y":[{"scale-y":xn()}],"scale-z":[{"scale-z":xn()}],"scale-3d":["scale-3d"],skew:[{skew:Pn()}],"skew-x":[{"skew-x":Pn()}],"skew-y":[{"skew-y":Pn()}],transform:[{transform:[ce,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:zt()}],"translate-x":[{"translate-x":zt()}],"translate-y":[{"translate-y":zt()}],"translate-z":[{"translate-z":zt()}],"translate-none":["translate-none"],zoom:[{zoom:[Cn,ce,oe]}],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,oe]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[Te,Zr,Zl,jg]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},KE=TE(IE);function bn(...t){return KE(iE(t))}function zb(t){return t.workspace_name||JE(t.branch)||t.directory_name||t.id.slice(0,8)}function JE(t){if(!t)return"";const r=(t.includes("/")?t.slice(t.indexOf("/")+1):t).replace(/[-_]/g," ").trim();return r?r[0].toUpperCase()+r.slice(1):""}function Rb(t){return t.session_status==="working"?"working":t.derived_status==="done"||t.manual_status==="done"?"done":"idle"}function PE(t){const l=Rb(t);return l==="working"?"working":l==="done"?"done":t.session_status||"idle"}function Ob(t){return t?t.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}function $E(t){const l=new Date(t).getTime();if(!Number.isFinite(l))return"";const r=Math.round((Date.now()-l)/1e3);if(r<45)return"now";if(r<90)return"1m";const a=Math.round(r/60);if(a<60)return`${a}m`;const o=Math.round(a/60);return o<24?`${o}h`:`${Math.round(o/24)}d`}function WE({sessionId:t,workspaceId:l,actuator:r}){const[a,o]=M.useState(""),[s,c]=M.useState(!1),[d,m]=M.useState(null),p=M.useRef(null);M.useEffect(()=>{if(!d)return;const w=setTimeout(()=>m(null),d.kind==="err"?5e3:2800);return()=>clearTimeout(w)},[d]);const y=()=>{const w=p.current;w&&(w.style.height="auto",w.style.height=`${Math.min(w.scrollHeight,160)}px`)},g=async()=>{const w=a.trim();if(!(!w||!t||s)){c(!0);try{const T=await da.sendPrompt(t,w,l);T.ok?(o(""),requestAnimationFrame(y),m({kind:T.warning?"warn":"ok",msg:T.warning||"Sent"})):m({kind:"err",msg:T.error||"Send failed"})}catch(T){m({kind:"err",msg:T instanceof Error?T.message:String(T)})}finally{c(!1)}}},v=!t,x=r?.precise&&r.available;return H.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[d?H.jsx("div",{className:bn("mb-2 rounded-lg px-3 py-1.5 text-xs",d.kind==="ok"&&"bg-idle/10 text-idle",d.kind==="warn"&&"bg-working/10 text-working",d.kind==="err"&&"bg-del/10 text-del"),children:d.msg}):H.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[H.jsx(Vk,{size:12}),x?"Precise send — targets this session directly":r?.caveat||"Sends to the focused session"]}),H.jsxs("div",{className:"flex items-end gap-2 rounded-2xl border border-border bg-surface px-2.5 py-1.5 focus-within:border-accent/60",children:[H.jsx("textarea",{ref:p,rows:1,value:a,disabled:v,placeholder:v?"No active session":"Send a prompt…",className:"max-h-40 flex-1 resize-none bg-transparent py-1.5 text-[15px] outline-none placeholder:text-faint disabled:opacity-50",onChange:w=>{o(w.target.value),y()},onKeyDown:w=>{w.key==="Enter"&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),g())}}),H.jsx("button",{type:"button",onClick:g,disabled:v||s||!a.trim(),"aria-label":"Send",className:"mb-0.5 flex size-9 shrink-0 items-center justify-center rounded-full bg-accent text-white transition active:scale-90 disabled:bg-surface-2 disabled:text-faint",children:H.jsx(Qk,{size:19})})]})]})}function ew({status:t,className:l}){return H.jsx("span",{className:bn("dot",`dot-${t}`,l)})}function tw(){const t=Kn(l=>l.online);return H.jsx("span",{title:t?"connected":"offline",className:"dot",style:{background:t?"var(--color-idle)":"var(--color-del)"}})}function Hg({children:t,className:l}){return H.jsx("span",{className:bn("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",l),children:t})}function Db({children:t}){return H.jsx("span",{className:"grid min-w-5 place-items-center rounded-full bg-accent px-1.5 text-[11px] font-bold text-white",children:t})}function Tl({children:t}){return H.jsx("div",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:t})}function ro({label:t}){return H.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-muted",children:[H.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-accent"}),t]})}function nw({workspaceId:t}){const{data:l,isLoading:r,isError:a,error:o}=nE(t);return r&&!l?H.jsx(ro,{label:"Computing diff…"}):a?H.jsx(Tl,{children:o?.message}):l?l.files.length===0?H.jsxs(Tl,{children:["No changes vs ",H.jsx("span",{className:"font-mono",children:l.base}),"."]}):H.jsxs("div",{className:"pb-safe flex-1 overflow-y-auto",children:[H.jsxs("div",{className:"border-b border-border-soft px-3 py-2 text-xs text-muted",children:["vs ",H.jsx("span",{className:"font-mono text-faint",children:l.base})," · ",l.files.length," file",l.files.length===1?"":"s"]}),H.jsx("ul",{className:"flex flex-col gap-1 px-3 py-3",children:l.files.map(s=>H.jsxs("li",{className:"flex items-center gap-2 font-mono text-[12px]",children:[H.jsx("span",{className:"truncate text-muted",children:s.path}),H.jsxs("span",{className:"ml-auto shrink-0 text-add",children:["+",s.added]}),H.jsxs("span",{className:"shrink-0 text-del",children:["−",s.removed]})]},s.path))}),H.jsx(lw,{patch:l.patch,truncated:l.truncated})]}):H.jsx(Tl,{children:"No diff."})}function lw({patch:t,truncated:l}){const r=M.useMemo(()=>t.split(`
|
|
12
|
+
`),[t]);return H.jsxs("pre",{className:"overflow-x-auto border-t border-border-soft px-3 py-3 font-mono text-[11.5px] leading-[1.5]",children:[r.map((a,o)=>H.jsx("div",{className:bn("whitespace-pre",iw(a)),children:a||" "},o)),l?H.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function iw(t){return t.startsWith("+")&&!t.startsWith("+++")?"text-add":t.startsWith("-")&&!t.startsWith("---")?"text-del":t.startsWith("@@")?"text-accent":t.startsWith("diff ")||t.startsWith("index ")||t.startsWith("+++")||t.startsWith("---")?"text-faint":"text-muted"}function hf({title:t,subtitle:l,menu:r,right:a}){const o=Kn(s=>s.setSidebarOpen);return H.jsxs("header",{className:"pt-safe sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft bg-bg/80 px-3 pb-2.5 backdrop-blur-xl",children:[r?H.jsx("button",{type:"button",onClick:()=>o(!0),"aria-label":"Open workspaces",className:"-ml-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:H.jsx(Zk,{size:20})}):H.jsx("span",{className:"w-1"}),H.jsxs("div",{className:"min-w-0 flex-1",children:[H.jsx("div",{className:"truncate text-[15px] font-semibold leading-tight",children:t}),l?H.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:l}):null]}),a,H.jsx(tw,{})]})}function rw(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const aw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ow={};function qg(t,l){return(ow.jsx?uw:aw).test(t)}const sw=/[ \t\n\f\r]/g;function cw(t){return typeof t=="object"?t.type==="text"?Qg(t.value):!1:Qg(t)}function Qg(t){return t.replace(sw,"")===""}class ma{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}ma.prototype.normal={};ma.prototype.property={};ma.prototype.space=void 0;function Mb(t,l){const r={},a={};for(const o of t)Object.assign(r,o.property),Object.assign(a,o.normal);return new ma(r,a,l)}function df(t){return t.toLowerCase()}class Ht{constructor(l,r){this.attribute=r,this.property=l}}Ht.prototype.attribute="";Ht.prototype.booleanish=!1;Ht.prototype.boolean=!1;Ht.prototype.commaOrSpaceSeparated=!1;Ht.prototype.commaSeparated=!1;Ht.prototype.defined=!1;Ht.prototype.mustUseProperty=!1;Ht.prototype.number=!1;Ht.prototype.overloadedBoolean=!1;Ht.prototype.property="";Ht.prototype.spaceSeparated=!1;Ht.prototype.space=void 0;let fw=0;const xe=ti(),ut=ti(),mf=ti(),$=ti(),Ze=ti(),Pl=ti(),It=ti();function ti(){return 2**++fw}const pf=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:ut,commaOrSpaceSeparated:It,commaSeparated:Pl,number:$,overloadedBoolean:mf,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),Uc=Object.keys(pf);class Ff extends Ht{constructor(l,r,a,o){let s=-1;if(super(l,r),Fg(this,"space",o),typeof a=="number")for(;++s<Uc.length;){const c=Uc[s];Fg(this,Uc[s],(a&pf[c])===pf[c])}}}Ff.prototype.defined=!0;function Fg(t,l,r){r&&(t[l]=r)}function Ki(t){const l={},r={};for(const[a,o]of Object.entries(t.properties)){const s=new Ff(a,t.transform(t.attributes||{},a),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),l[a]=s,r[df(a)]=a,r[df(s.attribute)]=a}return new ma(l,r,t.space)}const _b=Ki({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Ze,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:$,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Ze,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:ut,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Nb(t,l){return l in t?t[l]:l}function Lb(t,l){return Nb(t,l.toLowerCase())}const hw=Ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pl,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alpha:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:Ze,autoFocus:xe,autoPlay:xe,blocking:Ze,capture:null,charSet:null,checked:xe,cite:null,className:Ze,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:ut,controls:xe,controlsList:Ze,coords:$|Pl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:mf,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:Ze,height:$,hidden:mf,high:$,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:xe,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xe,optimum:$,pattern:null,ping:Ze,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:Ze,required:xe,reversed:xe,rows:$,rowSpan:$,sandbox:Ze,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootCustomElementRegistry:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shadowRootSerializable:xe,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:ut,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:xe,disablePictureInPicture:xe,disableRemotePlayback:xe,exportParts:Pl,part:Ze,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:Lb}),dw=Ki({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:It,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pl,g2:Pl,glyphName:Pl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Nb}),jb=Ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Ub=Ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Lb}),Bb=Ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),mw={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},pw=/[A-Z]/g,Gg=/-[a-z]/g,gw=/^data[-\w.:]+$/i;function yw(t,l){const r=df(l);let a=l,o=Ht;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&gw.test(l)){if(l.charAt(4)==="-"){const s=l.slice(5).replace(Gg,vw);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=l.slice(4);if(!Gg.test(s)){let c=s.replace(pw,bw);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}o=Ff}return new o(a,l)}function bw(t){return"-"+t.toLowerCase()}function vw(t){return t.charAt(1).toUpperCase()}const xw=Mb([_b,hw,jb,Ub,Bb],"html"),Gf=Mb([_b,dw,jb,Ub,Bb],"svg");function Sw(t){return t.join(" ").trim()}var Yi={},Bc,Yg;function kw(){if(Yg)return Bc;Yg=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
|
|
13
|
+
`,p="/",y="*",g="",v="comment",x="declaration";function w(A,z){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];z=z||{};var Q=1,j=1;function W(ue){var P=ue.match(l);P&&(Q+=P.length);var _=ue.lastIndexOf(m);j=~_?ue.length-_:j+ue.length}function ee(){var ue={line:Q,column:j};return function(P){return P.position=new q(ue),ae(),P}}function q(ue){this.start=ue,this.end={line:Q,column:j},this.source=z.source}q.prototype.content=A;function J(ue){var P=new Error(z.source+":"+Q+":"+j+": "+ue);if(P.reason=ue,P.filename=z.source,P.line=Q,P.column=j,P.source=A,!z.silent)throw P}function V(ue){var P=ue.exec(A);if(P){var _=P[0];return W(_),A=A.slice(_.length),P}}function ae(){V(r)}function B(ue){var P;for(ue=ue||[];P=ie();)P!==!1&&ue.push(P);return ue}function ie(){var ue=ee();if(!(p!=A.charAt(0)||y!=A.charAt(1))){for(var P=2;g!=A.charAt(P)&&(y!=A.charAt(P)||p!=A.charAt(P+1));)++P;if(P+=2,g===A.charAt(P-1))return J("End of comment missing");var _=A.slice(2,P-2);return j+=2,W(_),A=A.slice(P),j+=2,ue({type:v,comment:_})}}function te(){var ue=ee(),P=V(a);if(P){if(ie(),!V(o))return J("property missing ':'");var _=V(s),K=ue({type:x,property:T(P[0].replace(t,g)),value:_?T(_[0].replace(t,g)):g});return V(c),K}}function ye(){var ue=[];B(ue);for(var P;P=te();)P!==!1&&(ue.push(P),B(ue));return ue}return ae(),ye()}function T(A){return A?A.replace(d,g):g}return Bc=w,Bc}var Vg;function Ew(){if(Vg)return Yi;Vg=1;var t=Yi&&Yi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=r;const l=t(kw());function r(a,o){let s=null;if(!a||typeof a!="string")return s;const c=(0,l.default)(a),d=typeof o=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:y}=m;d?o(p,y,m):y&&(s=s||{},s[p]=y)}),s}return Yi}var Ir={},Xg;function ww(){if(Xg)return Ir;Xg=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(p){return!p||r.test(p)||t.test(p)},c=function(p,y){return y.toUpperCase()},d=function(p,y){return"".concat(y,"-")},m=function(p,y){return y===void 0&&(y={}),s(p)?p:(p=p.toLowerCase(),y.reactCompat?p=p.replace(o,d):p=p.replace(a,d),p.replace(l,c))};return Ir.camelCase=m,Ir}var Kr,Zg;function Cw(){if(Zg)return Kr;Zg=1;var t=Kr&&Kr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=t(Ew()),r=ww();function a(o,s){var c={};return!o||typeof o!="string"||(0,l.default)(o,function(d,m){d&&m&&(c[(0,r.camelCase)(d,s)]=m)}),c}return a.default=a,Kr=a,Kr}var Tw=Cw();const Aw=wf(Tw),Hb=qb("end"),Yf=qb("start");function qb(t){return l;function l(r){const a=r&&r.position&&r.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function zw(t){const l=Yf(t),r=Hb(t);if(l&&r)return{start:l,end:r}}function Wr(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Ig(t.position):"start"in t||"end"in t?Ig(t):"line"in t||"column"in t?gf(t):""}function gf(t){return Kg(t&&t.line)+":"+Kg(t&&t.column)}function Ig(t){return gf(t&&t.start)+"-"+gf(t&&t.end)}function Kg(t){return t&&typeof t=="number"?t:1}class St extends Error{constructor(l,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof l=="string"?o=l:!s.cause&&l&&(c=!0,o=l.message,s.cause=l),!s.ruleId&&!s.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?s.ruleId=a:(s.source=a.slice(0,m),s.ruleId=a.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=Wr(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}St.prototype.file="";St.prototype.name="";St.prototype.reason="";St.prototype.message="";St.prototype.stack="";St.prototype.column=void 0;St.prototype.line=void 0;St.prototype.ancestors=void 0;St.prototype.cause=void 0;St.prototype.fatal=void 0;St.prototype.place=void 0;St.prototype.ruleId=void 0;St.prototype.source=void 0;const Vf={}.hasOwnProperty,Rw=new Map,Ow=/[A-Z]/g,Dw=new Set(["table","tbody","thead","tfoot","tr"]),Mw=new Set(["td","th"]),Qb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _w(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=Qw(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=qw(r,l.jsx,l.jsxs)}const o={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Gf:xw,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},s=Fb(o,t,void 0);return s&&typeof s!="string"?s:o.create(t,o.Fragment,{children:s||void 0},void 0)}function Fb(t,l,r){if(l.type==="element")return Nw(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return Lw(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return Uw(t,l,r);if(l.type==="mdxjsEsm")return jw(t,l);if(l.type==="root")return Bw(t,l,r);if(l.type==="text")return Hw(t,l)}function Nw(t,l,r){const a=t.schema;let o=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Gf,t.schema=o),t.ancestors.push(l);const s=Yb(t,l.tagName,!1),c=Fw(t,l);let d=Zf(t,l);return Dw.has(l.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!cw(m):!0})),Gb(t,c,s,l),Xf(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function Lw(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}ua(t,l.position)}function jw(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);ua(t,l.position)}function Uw(t,l,r){const a=t.schema;let o=a;l.name==="svg"&&a.space==="html"&&(o=Gf,t.schema=o),t.ancestors.push(l);const s=l.name===null?t.Fragment:Yb(t,l.name,!0),c=Gw(t,l),d=Zf(t,l);return Gb(t,c,s,l),Xf(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function Bw(t,l,r){const a={};return Xf(a,Zf(t,l)),t.create(l,t.Fragment,a,r)}function Hw(t,l){return l.value}function Gb(t,l,r,a){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=a)}function Xf(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function qw(t,l,r){return a;function a(o,s,c,d){const p=Array.isArray(c.children)?r:l;return d?p(s,c,d):p(s,c)}}function Qw(t,l){return r;function r(a,o,s,c){const d=Array.isArray(s.children),m=Yf(a);return l(o,s,c,d,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function Fw(t,l){const r={};let a,o;for(o in l.properties)if(o!=="children"&&Vf.call(l.properties,o)){const s=Yw(t,o,l.properties[o]);if(s){const[c,d]=s;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&Mw.has(l.tagName)?a=d:r[c]=d}}if(a){const s=r.style||(r.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function Gw(t,l){const r={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else ua(t,l.position);else{const o=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,s=t.evaluater.evaluateExpression(d.expression)}else ua(t,l.position);else s=a.value===null?!0:a.value;r[o]=s}return r}function Zf(t,l){const r=[];let a=-1;const o=t.passKeys?new Map:Rw;for(;++a<l.children.length;){const s=l.children[a];let c;if(t.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const p=o.get(m)||0;c=m+"-"+p,o.set(m,p+1)}}const d=Fb(t,s,c);d!==void 0&&r.push(d)}return r}function Yw(t,l,r){const a=yw(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?rw(r):Sw(r)),a.property==="style"){let o=typeof r=="object"?r:Vw(t,String(r));return t.stylePropertyNameCase==="css"&&(o=Xw(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&a.space?mw[a.property]||a.property:a.attribute,r]}}function Vw(t,l){try{return Aw(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const a=r,o=new St("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=Qb+"#cannot-parse-style-attribute",o}}function Yb(t,l,r){let a;if(!r)a={type:"Literal",value:l};else if(l.includes(".")){const o=l.split(".");let s=-1,c;for(;++s<o.length;){const d=qg(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}a=c}else a=qg(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const o=a.value;return Vf.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(a);ua(t)}function ua(t,l){const r=new St("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=Qb+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Xw(t){const l={};let r;for(r in t)Vf.call(t,r)&&(l[Zw(r)]=t[r]);return l}function Zw(t){let l=t.replace(Ow,Iw);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function Iw(t){return"-"+t.toLowerCase()}const Hc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Kw={};function If(t,l){const r=Kw,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Vb(t,a,o)}function Vb(t,l,r){if(Jw(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Jg(t.children,l,r)}return Array.isArray(t)?Jg(t,l,r):""}function Jg(t,l,r){const a=[];let o=-1;for(;++o<t.length;)a[o]=Vb(t[o],l,r);return a.join("")}function Jw(t){return!!(t&&typeof t=="object")}const Pg=document.createElement("i");function Kf(t){const l="&"+t+";";Pg.innerHTML=l;const r=Pg.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function Jt(t,l,r,a){const o=t.length;let s=0,c;if(l<0?l=-l>o?0:o+l:l=l>o?o:l,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);s<a.length;)c=a.slice(s,s+1e4),c.unshift(l,0),t.splice(...c),s+=1e4,l+=1e4}function sn(t,l){return t.length>0?(Jt(t,t.length,0,l),t):l}const $g={}.hasOwnProperty;function Xb(t){const l={};let r=-1;for(;++r<t.length;)Pw(l,t[r]);return l}function Pw(t,l){let r;for(r in l){const o=($g.call(t,r)?t[r]:void 0)||(t[r]={}),s=l[r];let c;if(s)for(c in s){$g.call(o,c)||(o[c]=[]);const d=s[c];$w(o[c],Array.isArray(d)?d:d?[d]:[])}}}function $w(t,l){let r=-1;const a=[];for(;++r<l.length;)(l[r].add==="after"?t:a).push(l[r]);Jt(t,0,0,a)}function Zb(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function gn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=zl(/[A-Za-z]/),xt=zl(/[\dA-Za-z]/),Ww=zl(/[#-'*+\--9=?A-Z^-~]/);function Ju(t){return t!==null&&(t<32||t===127)}const yf=zl(/\d/),eC=zl(/[\dA-Fa-f]/),tC=zl(/[!-/:-@[-`{-~]/);function pe(t){return t!==null&&t<-2}function Ie(t){return t!==null&&(t<0||t===32)}function Oe(t){return t===-2||t===-1||t===32}const ao=zl(new RegExp("\\p{P}|\\p{S}","u")),$l=zl(/\s/);function zl(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Ji(t){const l=[];let r=-1,a=0,o=0;for(;++r<t.length;){const s=t.charCodeAt(r);let c="";if(s===37&&xt(t.charCodeAt(r+1))&&xt(t.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=t.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(l.push(t.slice(a,r),encodeURIComponent(c)),a=r+o+1,c=""),o&&(r+=o,o=0)}return l.join("")+t.slice(a)}function Ne(t,l,r,a){const o=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(m){return Oe(m)?(t.enter(r),d(m)):l(m)}function d(m){return Oe(m)&&s++<o?(t.consume(m),d):(t.exit(r),l(m))}}const nC={tokenize:lC};function lC(t){const l=t.attempt(this.parser.constructs.contentInitial,a,o);let r;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Ne(t,l,"linePrefix")}function o(d){return t.enter("paragraph"),s(d)}function s(d){const m=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=m),r=m,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return pe(d)?(t.consume(d),t.exit("chunkText"),s):(t.consume(d),c)}}const iC={tokenize:rC},Wg={tokenize:aC};function rC(t){const l=this,r=[];let a=0,o,s,c;return d;function d(j){if(a<r.length){const W=r[a];return l.containerState=W[1],t.attempt(W[0].continuation,m,p)(j)}return p(j)}function m(j){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,o&&Q();const W=l.events.length;let ee=W,q;for(;ee--;)if(l.events[ee][0]==="exit"&&l.events[ee][1].type==="chunkFlow"){q=l.events[ee][1].end;break}z(a);let J=W;for(;J<l.events.length;)l.events[J][1].end={...q},J++;return Jt(l.events,ee+1,0,l.events.slice(W)),l.events.length=J,p(j)}return d(j)}function p(j){if(a===r.length){if(!o)return v(j);if(o.currentConstruct&&o.currentConstruct.concrete)return w(j);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(Wg,y,g)(j)}function y(j){return o&&Q(),z(a),v(j)}function g(j){return l.parser.lazy[l.now().line]=a!==r.length,c=l.now().offset,w(j)}function v(j){return l.containerState={},t.attempt(Wg,x,w)(j)}function x(j){return a++,r.push([l.currentConstruct,l.containerState]),v(j)}function w(j){if(j===null){o&&Q(),z(0),t.consume(j);return}return o=o||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),T(j)}function T(j){if(j===null){A(t.exit("chunkFlow"),!0),z(0),t.consume(j);return}return pe(j)?(t.consume(j),A(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(j),T)}function A(j,W){const ee=l.sliceStream(j);if(W&&ee.push(null),j.previous=s,s&&(s.next=j),s=j,o.defineSkip(j.start),o.write(ee),l.parser.lazy[j.start.line]){let q=o.events.length;for(;q--;)if(o.events[q][1].start.offset<c&&(!o.events[q][1].end||o.events[q][1].end.offset>c))return;const J=l.events.length;let V=J,ae,B;for(;V--;)if(l.events[V][0]==="exit"&&l.events[V][1].type==="chunkFlow"){if(ae){B=l.events[V][1].end;break}ae=!0}for(z(a),q=J;q<l.events.length;)l.events[q][1].end={...B},q++;Jt(l.events,V+1,0,l.events.slice(J)),l.events.length=q}}function z(j){let W=r.length;for(;W-- >j;){const ee=r[W];l.containerState=ee[1],ee[0].exit.call(l,t)}r.length=j}function Q(){o.write([null]),s=void 0,o=void 0,l.containerState._closeFlow=void 0}}function aC(t,l,r){return Ne(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xi(t){if(t===null||Ie(t)||$l(t))return 1;if(ao(t))return 2}function uo(t,l,r){const a=[];let o=-1;for(;++o<t.length;){const s=t[o].resolveAll;s&&!a.includes(s)&&(l=s(l,r),a.push(s))}return l}const bf={name:"attention",resolveAll:uC,tokenize:oC};function uC(t,l){let r=-1,a,o,s,c,d,m,p,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(a=r;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[a][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;m=t[a][1].end.offset-t[a][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[a][1].end},v={...t[r][1].start};ey(g,-m),ey(v,m),c={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},s={type:m>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[r][1].start}},o={type:m>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[r][1].start={...d.end},p=[],t[a][1].end.offset-t[a][1].start.offset&&(p=sn(p,[["enter",t[a][1],l],["exit",t[a][1],l]])),p=sn(p,[["enter",o,l],["enter",c,l],["exit",c,l],["enter",s,l]]),p=sn(p,uo(l.parser.constructs.insideSpan.null,t.slice(a+1,r),l)),p=sn(p,[["exit",s,l],["enter",d,l],["exit",d,l],["exit",o,l]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,p=sn(p,[["enter",t[r][1],l],["exit",t[r][1],l]])):y=0,Jt(t,a-1,r-a+3,p),r=a+p.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function oC(t,l){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,o=Xi(a);let s;return c;function c(m){return s=m,t.enter("attentionSequence"),d(m)}function d(m){if(m===s)return t.consume(m),d;const p=t.exit("attentionSequence"),y=Xi(m),g=!y||y===2&&o||r.includes(m),v=!o||o===2&&y||r.includes(a);return p._open=!!(s===42?g:g&&(o||!v)),p._close=!!(s===42?v:v&&(y||!g)),l(m)}}function ey(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const sC={name:"autolink",tokenize:cC};function cC(t,l,r){let a=0;return o;function o(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(x){return Tt(x)?(t.consume(x),c):x===64?r(x):p(x)}function c(x){return x===43||x===45||x===46||xt(x)?(a=1,d(x)):p(x)}function d(x){return x===58?(t.consume(x),a=0,m):(x===43||x===45||x===46||xt(x))&&a++<32?(t.consume(x),d):(a=0,p(x))}function m(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):x===null||x===32||x===60||Ju(x)?r(x):(t.consume(x),m)}function p(x){return x===64?(t.consume(x),y):Ww(x)?(t.consume(x),p):r(x)}function y(x){return xt(x)?g(x):r(x)}function g(x){return x===46?(t.consume(x),a=0,y):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):v(x)}function v(x){if((x===45||xt(x))&&a++<63){const w=x===45?v:g;return t.consume(x),w}return r(x)}}const pa={partial:!0,tokenize:fC};function fC(t,l,r){return a;function a(s){return Oe(s)?Ne(t,o,"linePrefix")(s):o(s)}function o(s){return s===null||pe(s)?l(s):r(s)}}const Ib={continuation:{tokenize:dC},exit:mC,name:"blockQuote",tokenize:hC};function hC(t,l,r){const a=this;return o;function o(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Oe(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function dC(t,l,r){const a=this;return o;function o(c){return Oe(c)?Ne(t,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return t.attempt(Ib,l,r)(c)}}function mC(t){t.exit("blockQuote")}const Kb={name:"characterEscape",tokenize:pC};function pC(t,l,r){return a;function a(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),o}function o(s){return tC(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(s)}}const Jb={name:"characterReference",tokenize:gC};function gC(t,l,r){const a=this;let o=0,s,c;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),m}function m(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),s=31,c=xt,y(g))}function p(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,c=eC,y):(t.enter("characterReferenceValue"),s=7,c=yf,y(g))}function y(g){if(g===59&&o){const v=t.exit("characterReferenceValue");return c===xt&&!Kf(a.sliceSerialize(v))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(g)&&o++<s?(t.consume(g),y):r(g)}}const ty={partial:!0,tokenize:bC},ny={concrete:!0,name:"codeFenced",tokenize:yC};function yC(t,l,r){const a=this,o={partial:!0,tokenize:ee};let s=0,c=0,d;return m;function m(q){return p(q)}function p(q){const J=a.events[a.events.length-1];return s=J&&J[1].type==="linePrefix"?J[2].sliceSerialize(J[1],!0).length:0,d=q,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(q)}function y(q){return q===d?(c++,t.consume(q),y):c<3?r(q):(t.exit("codeFencedFenceSequence"),Oe(q)?Ne(t,g,"whitespace")(q):g(q))}function g(q){return q===null||pe(q)?(t.exit("codeFencedFence"),a.interrupt?l(q):t.check(ty,T,W)(q)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(q))}function v(q){return q===null||pe(q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(q)):Oe(q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ne(t,x,"whitespace")(q)):q===96&&q===d?r(q):(t.consume(q),v)}function x(q){return q===null||pe(q)?g(q):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),w(q))}function w(q){return q===null||pe(q)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(q)):q===96&&q===d?r(q):(t.consume(q),w)}function T(q){return t.attempt(o,W,A)(q)}function A(q){return t.enter("lineEnding"),t.consume(q),t.exit("lineEnding"),z}function z(q){return s>0&&Oe(q)?Ne(t,Q,"linePrefix",s+1)(q):Q(q)}function Q(q){return q===null||pe(q)?t.check(ty,T,W)(q):(t.enter("codeFlowValue"),j(q))}function j(q){return q===null||pe(q)?(t.exit("codeFlowValue"),Q(q)):(t.consume(q),j)}function W(q){return t.exit("codeFenced"),l(q)}function ee(q,J,V){let ae=0;return B;function B(P){return q.enter("lineEnding"),q.consume(P),q.exit("lineEnding"),ie}function ie(P){return q.enter("codeFencedFence"),Oe(P)?Ne(q,te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):te(P)}function te(P){return P===d?(q.enter("codeFencedFenceSequence"),ye(P)):V(P)}function ye(P){return P===d?(ae++,q.consume(P),ye):ae>=c?(q.exit("codeFencedFenceSequence"),Oe(P)?Ne(q,ue,"whitespace")(P):ue(P)):V(P)}function ue(P){return P===null||pe(P)?(q.exit("codeFencedFence"),J(P)):V(P)}}}function bC(t,l,r){const a=this;return o;function o(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}const qc={name:"codeIndented",tokenize:xC},vC={partial:!0,tokenize:SC};function xC(t,l,r){const a=this;return o;function o(p){return t.enter("codeIndented"),Ne(t,s,"linePrefix",5)(p)}function s(p){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(p):r(p)}function c(p){return p===null?m(p):pe(p)?t.attempt(vC,c,m)(p):(t.enter("codeFlowValue"),d(p))}function d(p){return p===null||pe(p)?(t.exit("codeFlowValue"),c(p)):(t.consume(p),d)}function m(p){return t.exit("codeIndented"),l(p)}}function SC(t,l,r){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?r(c):pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):Ne(t,s,"linePrefix",5)(c)}function s(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):pe(c)?o(c):r(c)}}const kC={name:"codeText",previous:wC,resolve:EC,tokenize:CC};function EC(t){let l=t.length-4,r=3,a,o;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=r;++a<l;)if(t[a][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(a=r-1,l++;++a<=l;)o===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(o=a):(a===l||t[a][1].type==="lineEnding")&&(t[o][1].type="codeTextData",a!==o+2&&(t[o][1].end=t[a-1][1].end,t.splice(o+2,a-o-2),l-=a-o-2,a=o+2),o=void 0);return t}function wC(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function CC(t,l,r){let a=0,o,s;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),m(g))}function m(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),m):g===96?(s=t.enter("codeTextSequence"),o=0,y(g)):pe(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||pe(g)?(t.exit("codeTextData"),m(g)):(t.consume(g),p)}function y(g){return g===96?(t.consume(g),o++,y):o===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(s.type="codeTextData",p(g))}}class TC{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,r,a){const o=r||0;this.setCursor(Math.trunc(l));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&Jr(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),Jr(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),Jr(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);Jr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);Jr(this.left,r.reverse())}}}function Jr(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function Pb(t){const l={};let r=-1,a,o,s,c,d,m,p;const y=new TC(t);for(;++r<y.length;){for(;r in l;)r=l[r];if(a=y.get(r),r&&a[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,AC(y,r)),r=l[r],p=!0);else if(a[1]._container){for(s=r,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},d=y.slice(o,r),d.unshift(a),y.splice(o,r-o+1,d))}}return Jt(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!p}function AC(t,l){const r=t.get(l)[1],a=t.get(l)[2];let o=l-1;const s=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,m=[],p={};let y,g,v=-1,x=r,w=0,T=0;const A=[T];for(;x;){for(;t.get(++o)[1]!==x;);s.push(o),x._tokenizer||(y=a.sliceStream(x),x.next||y.push(null),g&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(T=v+1,A.push(T),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):A.pop(),v=A.length;v--;){const z=d.slice(A[v],A[v+1]),Q=s.pop();m.push([Q,Q+z.length-1]),t.splice(Q,2,z)}for(m.reverse(),v=-1;++v<m.length;)p[w+m[v][0]]=w+m[v][1],w+=m[v][1]-m[v][0]-1;return p}const zC={resolve:OC,tokenize:DC},RC={partial:!0,tokenize:MC};function OC(t){return Pb(t),t}function DC(t,l){let r;return a;function a(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):pe(d)?t.check(RC,c,s)(d):(t.consume(d),o)}function s(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function MC(t,l,r){const a=this;return o;function o(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ne(t,s,"linePrefix")}function s(c){if(c===null||pe(c))return r(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):t.interrupt(a.parser.constructs.flow,r,l)(c)}}function $b(t,l,r,a,o,s,c,d,m){const p=m||Number.POSITIVE_INFINITY;let y=0;return g;function g(z){return z===60?(t.enter(a),t.enter(o),t.enter(s),t.consume(z),t.exit(s),v):z===null||z===32||z===41||Ju(z)?r(z):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),T(z))}function v(z){return z===62?(t.enter(s),t.consume(z),t.exit(s),t.exit(o),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),x(z))}function x(z){return z===62?(t.exit("chunkString"),t.exit(d),v(z)):z===null||z===60||pe(z)?r(z):(t.consume(z),z===92?w:x)}function w(z){return z===60||z===62||z===92?(t.consume(z),x):x(z)}function T(z){return!y&&(z===null||z===41||Ie(z))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),l(z)):y<p&&z===40?(t.consume(z),y++,T):z===41?(t.consume(z),y--,T):z===null||z===32||z===40||Ju(z)?r(z):(t.consume(z),z===92?A:T)}function A(z){return z===40||z===41||z===92?(t.consume(z),T):T(z)}}function Wb(t,l,r,a,o,s){const c=this;let d=0,m;return p;function p(x){return t.enter(a),t.enter(o),t.consume(x),t.exit(o),t.enter(s),y}function y(x){return d>999||x===null||x===91||x===93&&!m||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(t.exit(s),t.enter(o),t.consume(x),t.exit(o),t.exit(a),l):pe(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||pe(x)||d++>999?(t.exit("chunkString"),y(x)):(t.consume(x),m||(m=!Oe(x)),x===92?v:g)}function v(x){return x===91||x===92||x===93?(t.consume(x),d++,g):g(x)}}function ev(t,l,r,a,o,s){let c;return d;function d(v){return v===34||v===39||v===40?(t.enter(a),t.enter(o),t.consume(v),t.exit(o),c=v===40?41:v,m):r(v)}function m(v){return v===c?(t.enter(o),t.consume(v),t.exit(o),t.exit(a),l):(t.enter(s),p(v))}function p(v){return v===c?(t.exit(s),m(c)):v===null?r(v):pe(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ne(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||pe(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?g:y)}function g(v){return v===c||v===92?(t.consume(v),y):y(v)}}function ea(t,l){let r;return a;function a(o){return pe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r=!0,a):Oe(o)?Ne(t,a,r?"linePrefix":"lineSuffix")(o):l(o)}}const _C={name:"definition",tokenize:LC},NC={partial:!0,tokenize:jC};function LC(t,l,r){const a=this;let o;return s;function s(x){return t.enter("definition"),c(x)}function c(x){return Wb.call(a,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return o=gn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),m):r(x)}function m(x){return Ie(x)?ea(t,p)(x):p(x)}function p(x){return $b(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function y(x){return t.attempt(NC,g,g)(x)}function g(x){return Oe(x)?Ne(t,v,"whitespace")(x):v(x)}function v(x){return x===null||pe(x)?(t.exit("definition"),a.parser.defined.push(o),l(x)):r(x)}}function jC(t,l,r){return a;function a(d){return Ie(d)?ea(t,o)(d):r(d)}function o(d){return ev(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Oe(d)?Ne(t,c,"whitespace")(d):c(d)}function c(d){return d===null||pe(d)?l(d):r(d)}}const UC={name:"hardBreakEscape",tokenize:BC};function BC(t,l,r){return a;function a(s){return t.enter("hardBreakEscape"),t.consume(s),o}function o(s){return pe(s)?(t.exit("hardBreakEscape"),l(s)):r(s)}}const HC={name:"headingAtx",resolve:qC,tokenize:QC};function qC(t,l){let r=t.length-2,a=3,o,s;return t[a][1].type==="whitespace"&&(a+=2),r-2>a&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&t[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(o={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},s={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},Jt(t,a,r-a+1,[["enter",o,l],["enter",s,l],["exit",s,l],["exit",o,l]])),t}function QC(t,l,r){let a=0;return o;function o(y){return t.enter("atxHeading"),s(y)}function s(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(t.consume(y),c):y===null||Ie(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),m(y)):y===null||pe(y)?(t.exit("atxHeading"),l(y)):Oe(y)?Ne(t,d,"whitespace")(y):(t.enter("atxHeadingText"),p(y))}function m(y){return y===35?(t.consume(y),m):(t.exit("atxHeadingSequence"),d(y))}function p(y){return y===null||y===35||Ie(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),p)}}const FC=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ly=["pre","script","style","textarea"],GC={concrete:!0,name:"htmlFlow",resolveTo:XC,tokenize:ZC},YC={partial:!0,tokenize:KC},VC={partial:!0,tokenize:IC};function XC(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function ZC(t,l,r){const a=this;let o,s,c,d,m;return p;function p(E){return y(E)}function y(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),g}function g(E){return E===33?(t.consume(E),v):E===47?(t.consume(E),s=!0,T):E===63?(t.consume(E),o=3,a.interrupt?l:k):Tt(E)?(t.consume(E),c=String.fromCharCode(E),A):r(E)}function v(E){return E===45?(t.consume(E),o=2,x):E===91?(t.consume(E),o=5,d=0,w):Tt(E)?(t.consume(E),o=4,a.interrupt?l:k):r(E)}function x(E){return E===45?(t.consume(E),a.interrupt?l:k):r(E)}function w(E){const le="CDATA[";return E===le.charCodeAt(d++)?(t.consume(E),d===le.length?a.interrupt?l:te:w):r(E)}function T(E){return Tt(E)?(t.consume(E),c=String.fromCharCode(E),A):r(E)}function A(E){if(E===null||E===47||E===62||Ie(E)){const le=E===47,se=c.toLowerCase();return!le&&!s&&ly.includes(se)?(o=1,a.interrupt?l(E):te(E)):FC.includes(c.toLowerCase())?(o=6,le?(t.consume(E),z):a.interrupt?l(E):te(E)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(E):s?Q(E):j(E))}return E===45||xt(E)?(t.consume(E),c+=String.fromCharCode(E),A):r(E)}function z(E){return E===62?(t.consume(E),a.interrupt?l:te):r(E)}function Q(E){return Oe(E)?(t.consume(E),Q):B(E)}function j(E){return E===47?(t.consume(E),B):E===58||E===95||Tt(E)?(t.consume(E),W):Oe(E)?(t.consume(E),j):B(E)}function W(E){return E===45||E===46||E===58||E===95||xt(E)?(t.consume(E),W):ee(E)}function ee(E){return E===61?(t.consume(E),q):Oe(E)?(t.consume(E),ee):j(E)}function q(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(t.consume(E),m=E,J):Oe(E)?(t.consume(E),q):V(E)}function J(E){return E===m?(t.consume(E),m=null,ae):E===null||pe(E)?r(E):(t.consume(E),J)}function V(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ie(E)?ee(E):(t.consume(E),V)}function ae(E){return E===47||E===62||Oe(E)?j(E):r(E)}function B(E){return E===62?(t.consume(E),ie):r(E)}function ie(E){return E===null||pe(E)?te(E):Oe(E)?(t.consume(E),ie):r(E)}function te(E){return E===45&&o===2?(t.consume(E),_):E===60&&o===1?(t.consume(E),K):E===62&&o===4?(t.consume(E),R):E===63&&o===3?(t.consume(E),k):E===93&&o===5?(t.consume(E),ke):pe(E)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(YC,Y,ye)(E)):E===null||pe(E)?(t.exit("htmlFlowData"),ye(E)):(t.consume(E),te)}function ye(E){return t.check(VC,ue,Y)(E)}function ue(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),P}function P(E){return E===null||pe(E)?ye(E):(t.enter("htmlFlowData"),te(E))}function _(E){return E===45?(t.consume(E),k):te(E)}function K(E){return E===47?(t.consume(E),c="",he):te(E)}function he(E){if(E===62){const le=c.toLowerCase();return ly.includes(le)?(t.consume(E),R):te(E)}return Tt(E)&&c.length<8?(t.consume(E),c+=String.fromCharCode(E),he):te(E)}function ke(E){return E===93?(t.consume(E),k):te(E)}function k(E){return E===62?(t.consume(E),R):E===45&&o===2?(t.consume(E),k):te(E)}function R(E){return E===null||pe(E)?(t.exit("htmlFlowData"),Y(E)):(t.consume(E),R)}function Y(E){return t.exit("htmlFlow"),l(E)}}function IC(t,l,r){const a=this;return o;function o(c){return pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):r(c)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}function KC(t,l,r){return a;function a(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(pa,l,r)}}const JC={name:"htmlText",tokenize:PC};function PC(t,l,r){const a=this;let o,s,c;return d;function d(k){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(k),m}function m(k){return k===33?(t.consume(k),p):k===47?(t.consume(k),ee):k===63?(t.consume(k),j):Tt(k)?(t.consume(k),V):r(k)}function p(k){return k===45?(t.consume(k),y):k===91?(t.consume(k),s=0,w):Tt(k)?(t.consume(k),Q):r(k)}function y(k){return k===45?(t.consume(k),x):r(k)}function g(k){return k===null?r(k):k===45?(t.consume(k),v):pe(k)?(c=g,K(k)):(t.consume(k),g)}function v(k){return k===45?(t.consume(k),x):g(k)}function x(k){return k===62?_(k):k===45?v(k):g(k)}function w(k){const R="CDATA[";return k===R.charCodeAt(s++)?(t.consume(k),s===R.length?T:w):r(k)}function T(k){return k===null?r(k):k===93?(t.consume(k),A):pe(k)?(c=T,K(k)):(t.consume(k),T)}function A(k){return k===93?(t.consume(k),z):T(k)}function z(k){return k===62?_(k):k===93?(t.consume(k),z):T(k)}function Q(k){return k===null||k===62?_(k):pe(k)?(c=Q,K(k)):(t.consume(k),Q)}function j(k){return k===null?r(k):k===63?(t.consume(k),W):pe(k)?(c=j,K(k)):(t.consume(k),j)}function W(k){return k===62?_(k):j(k)}function ee(k){return Tt(k)?(t.consume(k),q):r(k)}function q(k){return k===45||xt(k)?(t.consume(k),q):J(k)}function J(k){return pe(k)?(c=J,K(k)):Oe(k)?(t.consume(k),J):_(k)}function V(k){return k===45||xt(k)?(t.consume(k),V):k===47||k===62||Ie(k)?ae(k):r(k)}function ae(k){return k===47?(t.consume(k),_):k===58||k===95||Tt(k)?(t.consume(k),B):pe(k)?(c=ae,K(k)):Oe(k)?(t.consume(k),ae):_(k)}function B(k){return k===45||k===46||k===58||k===95||xt(k)?(t.consume(k),B):ie(k)}function ie(k){return k===61?(t.consume(k),te):pe(k)?(c=ie,K(k)):Oe(k)?(t.consume(k),ie):ae(k)}function te(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(t.consume(k),o=k,ye):pe(k)?(c=te,K(k)):Oe(k)?(t.consume(k),te):(t.consume(k),ue)}function ye(k){return k===o?(t.consume(k),o=void 0,P):k===null?r(k):pe(k)?(c=ye,K(k)):(t.consume(k),ye)}function ue(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||Ie(k)?ae(k):(t.consume(k),ue)}function P(k){return k===47||k===62||Ie(k)?ae(k):r(k)}function _(k){return k===62?(t.consume(k),t.exit("htmlTextData"),t.exit("htmlText"),l):r(k)}function K(k){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),he}function he(k){return Oe(k)?Ne(t,ke,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):ke(k)}function ke(k){return t.enter("htmlTextData"),c(k)}}const Jf={name:"labelEnd",resolveAll:t2,resolveTo:n2,tokenize:l2},$C={tokenize:i2},WC={tokenize:r2},e2={tokenize:a2};function t2(t){let l=-1;const r=[];for(;++l<t.length;){const a=t[l][1];if(r.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",l+=o}}return t.length!==r.length&&Jt(t,0,t.length,r),t}function n2(t,l){let r=t.length,a=0,o,s,c,d;for(;r--;)if(o=t[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=r);const m={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[s][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[s+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",m,l],["enter",p,l]],d=sn(d,t.slice(s+1,s+a+3)),d=sn(d,[["enter",y,l]]),d=sn(d,uo(l.parser.constructs.insideSpan.null,t.slice(s+a+4,c-3),l)),d=sn(d,[["exit",y,l],t[c-2],t[c-1],["exit",p,l]]),d=sn(d,t.slice(c+1)),d=sn(d,[["exit",m,l]]),Jt(t,s,t.length,d),t}function l2(t,l,r){const a=this;let o=a.events.length,s,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){s=a.events[o][1];break}return d;function d(v){return s?s._inactive?g(v):(c=a.parser.defined.includes(gn(a.sliceSerialize({start:s.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),m):r(v)}function m(v){return v===40?t.attempt($C,y,c?y:g)(v):v===91?t.attempt(WC,y,c?p:g)(v):c?y(v):g(v)}function p(v){return t.attempt(e2,y,g)(v)}function y(v){return l(v)}function g(v){return s._balanced=!0,r(v)}}function i2(t,l,r){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),o}function o(g){return Ie(g)?ea(t,s)(g):s(g)}function s(g){return g===41?y(g):$b(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Ie(g)?ea(t,m)(g):y(g)}function d(g){return r(g)}function m(g){return g===34||g===39||g===40?ev(t,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function p(g){return Ie(g)?ea(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):r(g)}}function r2(t,l,r){const a=this;return o;function o(d){return Wb.call(a,t,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return a.parser.defined.includes(gn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function a2(t,l,r){return a;function a(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),o}function o(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),l):r(s)}}const u2={name:"labelStartImage",resolveAll:Jf.resolveAll,tokenize:o2};function o2(t,l,r){const a=this;return o;function o(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),s}function s(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):l(d)}}const s2={name:"labelStartLink",resolveAll:Jf.resolveAll,tokenize:c2};function c2(t,l,r){const a=this;return o;function o(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):l(c)}}const Qc={name:"lineEnding",tokenize:f2};function f2(t,l){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ne(t,l,"linePrefix")}}const Xu={name:"thematicBreak",tokenize:h2};function h2(t,l,r){let a=0,o;return s;function s(p){return t.enter("thematicBreak"),c(p)}function c(p){return o=p,d(p)}function d(p){return p===o?(t.enter("thematicBreakSequence"),m(p)):a>=3&&(p===null||pe(p))?(t.exit("thematicBreak"),l(p)):r(p)}function m(p){return p===o?(t.consume(p),a++,m):(t.exit("thematicBreakSequence"),Oe(p)?Ne(t,d,"whitespace")(p):d(p))}}const Ut={continuation:{tokenize:g2},exit:b2,name:"list",tokenize:p2},d2={partial:!0,tokenize:v2},m2={partial:!0,tokenize:y2};function p2(t,l,r){const a=this,o=a.events[a.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(x){const w=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:yf(x)){if(a.containerState.type||(a.containerState.type=w,t.enter(w,{_container:!0})),w==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(Xu,r,p)(x):p(x);if(!a.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(x)}return r(x)}function m(x){return yf(x)&&++c<10?(t.consume(x),m):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),p(x)):r(x)}function p(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,t.check(pa,a.interrupt?r:y,t.attempt(d2,v,g))}function y(x){return a.containerState.initialBlankLine=!0,s++,v(x)}function g(x){return Oe(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),v):r(x)}function v(x){return a.containerState.size=s+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(x)}}function g2(t,l,r){const a=this;return a.containerState._closeFlow=void 0,t.check(pa,o,s);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ne(t,l,"listItemIndent",a.containerState.size+1)(d)}function s(d){return a.containerState.furtherBlankLines||!Oe(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(m2,l,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ne(t,t.attempt(Ut,l,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function y2(t,l,r){const a=this;return Ne(t,o,"listItemIndent",a.containerState.size+1);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?l(s):r(s)}}function b2(t){t.exit(this.containerState.type)}function v2(t,l,r){const a=this;return Ne(t,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=a.events[a.events.length-1];return!Oe(s)&&c&&c[1].type==="listItemPrefixWhitespace"?l(s):r(s)}}const iy={name:"setextUnderline",resolveTo:x2,tokenize:S2};function x2(t,l){let r=t.length,a,o,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){a=r;break}t[r][1].type==="paragraph"&&(o=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",s?(t.splice(o,0,["enter",c,l]),t.splice(s+1,0,["exit",t[a][1],l]),t[a][1].end={...t[s][1].end}):t[a][1]=c,t.push(["exit",c,l]),t}function S2(t,l,r){const a=this;let o;return s;function s(p){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),o=p,c(p)):r(p)}function c(p){return t.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===o?(t.consume(p),d):(t.exit("setextHeadingLineSequence"),Oe(p)?Ne(t,m,"lineSuffix")(p):m(p))}function m(p){return p===null||pe(p)?(t.exit("setextHeadingLine"),l(p)):r(p)}}const k2={tokenize:E2};function E2(t){const l=this,r=t.attempt(pa,a,t.attempt(this.parser.constructs.flowInitial,o,Ne(t,t.attempt(this.parser.constructs.flow,o,t.attempt(zC,o)),"linePrefix")));return r;function a(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function o(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const w2={resolveAll:nv()},C2=tv("string"),T2=tv("text");function tv(t){return{resolveAll:nv(t==="text"?A2:void 0),tokenize:l};function l(r){const a=this,o=this.parser.constructs[t],s=r.attempt(o,c,d);return c;function c(y){return p(y)?s(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),m}function m(y){return p(y)?(r.exit("data"),s(y)):(r.consume(y),m)}function p(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const x=g[v];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function nv(t){return l;function l(r,a){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return t?t(r,a):r}}function A2(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const a=t[r-1][1],o=l.sliceStream(a);let s=o.length,c=-1,d=0,m;for(;s--;){const p=o[s];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)m=!0,d++;else if(p!==-1){s++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const p={type:r===t.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:a.start._bufferIndex+c,_index:a.start._index+s,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(t.splice(r,0,["enter",p,l],["exit",p,l]),r+=2)}r++}return t}const z2={42:Ut,43:Ut,45:Ut,48:Ut,49:Ut,50:Ut,51:Ut,52:Ut,53:Ut,54:Ut,55:Ut,56:Ut,57:Ut,62:Ib},R2={91:_C},O2={[-2]:qc,[-1]:qc,32:qc},D2={35:HC,42:Xu,45:[iy,Xu],60:GC,61:iy,95:Xu,96:ny,126:ny},M2={38:Jb,92:Kb},_2={[-5]:Qc,[-4]:Qc,[-3]:Qc,33:u2,38:Jb,42:bf,60:[sC,JC],91:s2,92:[UC,Kb],93:Jf,95:bf,96:kC},N2={null:[bf,w2]},L2={null:[42,95]},j2={null:[]},U2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:L2,contentInitial:R2,disable:j2,document:z2,flow:D2,flowInitial:O2,insideSpan:N2,string:M2,text:_2},Symbol.toStringTag,{value:"Module"}));function B2(t,l,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],d=[];const m={attempt:J(ee),check:J(q),consume:Q,enter:j,exit:W,interrupt:J(q,{interrupt:!0})},p={code:null,containerState:{},defineSkip:T,events:[],now:w,parser:t,previous:null,sliceSerialize:v,sliceStream:x,write:g};let y=l.tokenize.call(p,m);return l.resolveAll&&s.push(l),p;function g(ie){return c=sn(c,ie),A(),c[c.length-1]!==null?[]:(V(l,0),p.events=uo(s,p.events,p),p.events)}function v(ie,te){return q2(x(ie),te)}function x(ie){return H2(c,ie)}function w(){const{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}=a;return{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}}function T(ie){o[ie.line]=ie.column,B()}function A(){let ie;for(;a._index<c.length;){const te=c[a._index];if(typeof te=="string")for(ie=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ie&&a._bufferIndex<te.length;)z(te.charCodeAt(a._bufferIndex));else z(te)}}function z(ie){y=y(ie)}function Q(ie){pe(ie)?(a.line++,a.column=1,a.offset+=ie===-3?2:1,B()):ie!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=ie}function j(ie,te){const ye=te||{};return ye.type=ie,ye.start=w(),p.events.push(["enter",ye,p]),d.push(ye),ye}function W(ie){const te=d.pop();return te.end=w(),p.events.push(["exit",te,p]),te}function ee(ie,te){V(ie,te.from)}function q(ie,te){te.restore()}function J(ie,te){return ye;function ye(ue,P,_){let K,he,ke,k;return Array.isArray(ue)?Y(ue):"tokenize"in ue?Y([ue]):R(ue);function R(re){return we;function we(Ye){const ve=Ye!==null&&re[Ye],kt=Ye!==null&&re.null,At=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(kt)?kt:kt?[kt]:[]];return Y(At)(Ye)}}function Y(re){return K=re,he=0,re.length===0?_:E(re[he])}function E(re){return we;function we(Ye){return k=ae(),ke=re,re.partial||(p.currentConstruct=re),re.name&&p.parser.constructs.disable.null.includes(re.name)?se():re.tokenize.call(te?Object.assign(Object.create(p),te):p,m,le,se)(Ye)}}function le(re){return ie(ke,k),P}function se(re){return k.restore(),++he<K.length?E(K[he]):_}}}function V(ie,te){ie.resolveAll&&!s.includes(ie)&&s.push(ie),ie.resolve&&Jt(p.events,te,p.events.length-te,ie.resolve(p.events.slice(te),p)),ie.resolveTo&&(p.events=ie.resolveTo(p.events,p))}function ae(){const ie=w(),te=p.previous,ye=p.currentConstruct,ue=p.events.length,P=Array.from(d);return{from:ue,restore:_};function _(){a=ie,p.previous=te,p.currentConstruct=ye,p.events.length=ue,d=P,B()}}function B(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function H2(t,l){const r=l.start._index,a=l.start._bufferIndex,o=l.end._index,s=l.end._bufferIndex;let c;if(r===o)c=[t[r].slice(a,s)];else{if(c=t.slice(r,o),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}s>0&&c.push(t[o].slice(0,s))}return c}function q2(t,l){let r=-1;const a=[];let o;for(;++r<t.length;){const s=t[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
14
14
|
`;break}case-3:{c=`\r
|
|
15
|
-
`;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,a.push(c)}return a.join("")}function q2(t){const a={constructs:Xb([j2,...(t||{}).extensions||[]]),content:o(tC),defined:[],document:o(lC),flow:o(S2),lazy:{},string:o(w2),text:o(C2)};return a;function o(s){return c;function c(d){return U2(a,s,d)}}}function Q2(t){for(;!Pb(t););return t}const ry=/[\0\t\n\r]/g;function F2(){let t=1,l="",r=!0,a;return o;function o(s,c,d){const m=[];let p,y,g,v,x;for(s=l+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,l="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(ry.lastIndex=g,p=ry.exec(s),v=p&&p.index!==void 0?p.index:s.length,x=s.charCodeAt(v),!p){l=s.slice(g);break}if(x===10&&g===v&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),g<v&&(m.push(s.slice(g,v)),t+=v-g),x){case 0:{m.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,m.push(-2);t++<y;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:a=!0,t=1}g=v+1}return d&&(a&&m.push(-5),l&&m.push(l),m.push(null)),m}}const G2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Y2(t){return t.replace(G2,V2)}function V2(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return Zb(r.slice(s?2:1),s?16:10)}return Kf(r)||t}const lv={}.hasOwnProperty;function X2(t,l,r){return l&&typeof l=="object"&&(r=l,l=void 0),Z2(r)(Q2(q2(r).document().write(F2()(t,l,!0))))}function Z2(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ii),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:s(ni),blockQuote:s(kt),characterEscape:ae,characterReference:ae,codeFenced:s(At),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(At,c),codeText:s(xn,c),codeTextData:ae,data:ae,codeFlowValue:ae,definition:s(Pn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(zt),hardBreakEscape:s(li),hardBreakTrailing:s(li),htmlFlow:s(ya,c),htmlFlowData:ae,htmlText:s(ya,c),htmlTextData:ae,image:s(ba),label:c,link:s(ii),listItem:s(Pi),listItemValue:v,listOrdered:s(ri,g),listUnordered:s(ri),paragraph:s(fo),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ni),strong:s(ho),thematicBreak:s(mo)},exit:{atxHeading:m(),atxHeadingSequence:ee,autolink:m(),autolinkEmail:ve,autolinkProtocol:Ye,blockQuote:m(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:re,characterReference:we,codeFenced:m(A),codeFencedFence:T,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:B,codeIndented:m(z),codeText:m(P),codeTextData:B,data:B,definition:m(),definitionDestinationString:W,definitionLabelString:Q,definitionTitleString:j,emphasis:m(),hardBreakEscape:m(te),hardBreakTrailing:m(te),htmlFlow:m(ye),htmlFlowData:B,htmlText:m(ue),htmlTextData:B,image:m(K),label:ke,labelText:he,lineEnding:ie,link:m(_),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:le,resourceDestinationString:k,resourceTitleString:R,resource:Y,setextHeading:m(V),setextHeadingLineSequence:J,setextHeadingText:q,strong:m(),thematicBreak:m()}};iv(l,(t||{}).mdastExtensions||[]);const r={};return a;function a(X){let ne={type:"root",children:[]};const be={stack:[ne],tokenStack:[],config:l,enter:d,exit:p,buffer:c,resume:y,data:r},Ae=[];let Be=-1;for(;++Be<X.length;)if(X[Be][1].type==="listOrdered"||X[Be][1].type==="listUnordered")if(X[Be][0]==="enter")Ae.push(Be);else{const qt=Ae.pop();Be=o(X,qt,Be)}for(Be=-1;++Be<X.length;){const qt=l[X[Be][0]];lv.call(qt,X[Be][1].type)&&qt[X[Be][1].type].call(Object.assign({sliceSerialize:X[Be][2].sliceSerialize},be),X[Be][1])}if(be.tokenStack.length>0){const qt=be.tokenStack[be.tokenStack.length-1];(qt[1]||ay).call(be,void 0,qt[0])}for(ne.position={start:wl(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:wl(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<l.transforms.length;)ne=l.transforms[Be](ne)||ne;return ne}function o(X,ne,be){let Ae=ne-1,Be=-1,qt=!1,zn,wt,ot,Rt;for(;++Ae<=be;){const Ve=X[Ae];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?Be++:Be--,Rt=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(zn&&!Rt&&!Be&&!ot&&(ot=Ae),Rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rt=void 0}if(!Be&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Be===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(zn){let $n=Ae;for(wt=void 0;$n--;){const fn=X[$n];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;wt&&(X[wt][1].type="lineEndingBlank",qt=!0),fn[1].type="lineEnding",wt=$n}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}ot&&(!wt||ot<wt)&&(zn._spread=!0),zn.end=Object.assign({},wt?X[wt][1].start:Ve[1].end),X.splice(wt||Ae,0,["exit",zn,Ve[2]]),Ae++,be++}if(Ve[1].type==="listItemPrefix"){const $n={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};zn=$n,X.splice(Ae,0,["enter",$n,Ve[2]]),Ae++,be++,ot=void 0,Rt=!0}}}return X[ne][1]._spread=qt,be}function s(X,ne){return be;function be(Ae){d.call(this,X(Ae),Ae),ne&&ne.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(X,ne,be){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ne,be||void 0]),X.position={start:wl(ne.start),end:void 0}}function m(X){return ne;function ne(be){X&&X.call(this,be),p.call(this,be)}}function p(X,ne){const be=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==X.type&&(ne?ne.call(this,X,Ae[0]):(Ae[1]||ay).call(this,X,Ae[0]));else throw new Error("Cannot close `"+X.type+"` ("+Wr({start:X.start,end:X.end})+"): it’s not open");be.position.end=wl(X.end)}function y(){return If(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function x(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=X}function w(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=X}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function z(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/(\r?\n|\r)$/g,"")}function Q(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=gn(this.sliceSerialize(X)).toLowerCase()}function j(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function W(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function ee(X){const ne=this.stack[this.stack.length-1];if(!ne.depth){const be=this.sliceSerialize(X).length;ne.depth=be}}function q(){this.data.setextHeadingSlurpLineEnding=!0}function J(X){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(X){const be=this.stack[this.stack.length-1].children;let Ae=be[be.length-1];(!Ae||Ae.type!=="text")&&(Ae=Et(),Ae.position={start:wl(X.start),end:void 0},be.push(Ae)),this.stack.push(Ae)}function B(X){const ne=this.stack.pop();ne.value+=this.sliceSerialize(X),ne.position.end=wl(X.end)}function ie(X){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=ne.children[ne.children.length-1];be.position.end=wl(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(ne.type)&&(ae.call(this,X),B.call(this,X))}function te(){this.data.atHardBreak=!0}function ye(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function ue(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function P(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function _(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function K(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function he(X){const ne=this.sliceSerialize(X),be=this.stack[this.stack.length-2];be.label=Y2(ne),be.identifier=gn(ne).toLowerCase()}function ke(){const X=this.stack[this.stack.length-1],ne=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ae=X.children;be.children=Ae}else be.alt=ne}function k(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function R(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function Y(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function le(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=gn(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function se(X){this.data.characterReferenceType=X.type}function re(X){const ne=this.sliceSerialize(X),be=this.data.characterReferenceType;let Ae;be?(Ae=Zb(ne,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Kf(ne);const Be=this.stack[this.stack.length-1];Be.value+=Ae}function we(X){const ne=this.stack.pop();ne.position.end=wl(X.end)}function Ye(X){B.call(this,X);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(X)}function ve(X){B.call(this,X);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(X)}function kt(){return{type:"blockquote",children:[]}}function At(){return{type:"code",lang:null,meta:null,value:""}}function xn(){return{type:"inlineCode",value:""}}function Pn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zt(){return{type:"emphasis",children:[]}}function ni(){return{type:"heading",depth:0,children:[]}}function li(){return{type:"break"}}function ya(){return{type:"html",value:""}}function ba(){return{type:"image",title:null,url:"",alt:null}}function ii(){return{type:"link",title:null,url:"",children:[]}}function ri(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Pi(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function fo(){return{type:"paragraph",children:[]}}function ho(){return{type:"strong",children:[]}}function Et(){return{type:"text",value:""}}function mo(){return{type:"thematicBreak"}}}function wl(t){return{line:t.line,column:t.column,offset:t.offset}}function iv(t,l){let r=-1;for(;++r<l.length;){const a=l[r];Array.isArray(a)?iv(t,a):I2(t,a)}}function I2(t,l){let r;for(r in l)if(lv.call(l,r))switch(r){case"canContainEols":{const a=l[r];a&&t[r].push(...a);break}case"transforms":{const a=l[r];a&&t[r].push(...a);break}case"enter":case"exit":{const a=l[r];a&&Object.assign(t[r],a);break}}}function ay(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+Wr({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+Wr({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+Wr({start:l.start,end:l.end})+") is still open")}function K2(t){const l=this;l.parser=r;function r(a){return X2(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function J2(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function P2(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
|
|
16
|
-
`}]}function
|
|
17
|
-
`:"",a={},o=l.lang?l.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return l.meta&&(s.data={meta:l.meta}),t.patch(l,s),s=t.applyData(l,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(l,s),s}function
|
|
15
|
+
`;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,a.push(c)}return a.join("")}function Q2(t){const a={constructs:Xb([U2,...(t||{}).extensions||[]]),content:o(nC),defined:[],document:o(iC),flow:o(k2),lazy:{},string:o(C2),text:o(T2)};return a;function o(s){return c;function c(d){return B2(a,s,d)}}}function F2(t){for(;!Pb(t););return t}const ry=/[\0\t\n\r]/g;function G2(){let t=1,l="",r=!0,a;return o;function o(s,c,d){const m=[];let p,y,g,v,x;for(s=l+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,l="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(ry.lastIndex=g,p=ry.exec(s),v=p&&p.index!==void 0?p.index:s.length,x=s.charCodeAt(v),!p){l=s.slice(g);break}if(x===10&&g===v&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),g<v&&(m.push(s.slice(g,v)),t+=v-g),x){case 0:{m.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,m.push(-2);t++<y;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:a=!0,t=1}g=v+1}return d&&(a&&m.push(-5),l&&m.push(l),m.push(null)),m}}const Y2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function V2(t){return t.replace(Y2,X2)}function X2(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return Zb(r.slice(s?2:1),s?16:10)}return Kf(r)||t}const lv={}.hasOwnProperty;function Z2(t,l,r){return l&&typeof l=="object"&&(r=l,l=void 0),I2(r)(F2(Q2(r).document().write(G2()(t,l,!0))))}function I2(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ii),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:s(ni),blockQuote:s(kt),characterEscape:ae,characterReference:ae,codeFenced:s(At),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(At,c),codeText:s(xn,c),codeTextData:ae,data:ae,codeFlowValue:ae,definition:s(Pn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(zt),hardBreakEscape:s(li),hardBreakTrailing:s(li),htmlFlow:s(ya,c),htmlFlowData:ae,htmlText:s(ya,c),htmlTextData:ae,image:s(ba),label:c,link:s(ii),listItem:s(Pi),listItemValue:v,listOrdered:s(ri,g),listUnordered:s(ri),paragraph:s(fo),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ni),strong:s(ho),thematicBreak:s(mo)},exit:{atxHeading:m(),atxHeadingSequence:ee,autolink:m(),autolinkEmail:ve,autolinkProtocol:Ye,blockQuote:m(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:re,characterReference:we,codeFenced:m(A),codeFencedFence:T,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:B,codeIndented:m(z),codeText:m(P),codeTextData:B,data:B,definition:m(),definitionDestinationString:W,definitionLabelString:Q,definitionTitleString:j,emphasis:m(),hardBreakEscape:m(te),hardBreakTrailing:m(te),htmlFlow:m(ye),htmlFlowData:B,htmlText:m(ue),htmlTextData:B,image:m(K),label:ke,labelText:he,lineEnding:ie,link:m(_),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:le,resourceDestinationString:k,resourceTitleString:R,resource:Y,setextHeading:m(V),setextHeadingLineSequence:J,setextHeadingText:q,strong:m(),thematicBreak:m()}};iv(l,(t||{}).mdastExtensions||[]);const r={};return a;function a(X){let ne={type:"root",children:[]};const be={stack:[ne],tokenStack:[],config:l,enter:d,exit:p,buffer:c,resume:y,data:r},Ae=[];let Be=-1;for(;++Be<X.length;)if(X[Be][1].type==="listOrdered"||X[Be][1].type==="listUnordered")if(X[Be][0]==="enter")Ae.push(Be);else{const qt=Ae.pop();Be=o(X,qt,Be)}for(Be=-1;++Be<X.length;){const qt=l[X[Be][0]];lv.call(qt,X[Be][1].type)&&qt[X[Be][1].type].call(Object.assign({sliceSerialize:X[Be][2].sliceSerialize},be),X[Be][1])}if(be.tokenStack.length>0){const qt=be.tokenStack[be.tokenStack.length-1];(qt[1]||ay).call(be,void 0,qt[0])}for(ne.position={start:wl(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:wl(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<l.transforms.length;)ne=l.transforms[Be](ne)||ne;return ne}function o(X,ne,be){let Ae=ne-1,Be=-1,qt=!1,zn,wt,ot,Rt;for(;++Ae<=be;){const Ve=X[Ae];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?Be++:Be--,Rt=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(zn&&!Rt&&!Be&&!ot&&(ot=Ae),Rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rt=void 0}if(!Be&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Be===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(zn){let $n=Ae;for(wt=void 0;$n--;){const fn=X[$n];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;wt&&(X[wt][1].type="lineEndingBlank",qt=!0),fn[1].type="lineEnding",wt=$n}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}ot&&(!wt||ot<wt)&&(zn._spread=!0),zn.end=Object.assign({},wt?X[wt][1].start:Ve[1].end),X.splice(wt||Ae,0,["exit",zn,Ve[2]]),Ae++,be++}if(Ve[1].type==="listItemPrefix"){const $n={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};zn=$n,X.splice(Ae,0,["enter",$n,Ve[2]]),Ae++,be++,ot=void 0,Rt=!0}}}return X[ne][1]._spread=qt,be}function s(X,ne){return be;function be(Ae){d.call(this,X(Ae),Ae),ne&&ne.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(X,ne,be){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ne,be||void 0]),X.position={start:wl(ne.start),end:void 0}}function m(X){return ne;function ne(be){X&&X.call(this,be),p.call(this,be)}}function p(X,ne){const be=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==X.type&&(ne?ne.call(this,X,Ae[0]):(Ae[1]||ay).call(this,X,Ae[0]));else throw new Error("Cannot close `"+X.type+"` ("+Wr({start:X.start,end:X.end})+"): it’s not open");be.position.end=wl(X.end)}function y(){return If(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function x(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=X}function w(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=X}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function z(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/(\r?\n|\r)$/g,"")}function Q(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=gn(this.sliceSerialize(X)).toLowerCase()}function j(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function W(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function ee(X){const ne=this.stack[this.stack.length-1];if(!ne.depth){const be=this.sliceSerialize(X).length;ne.depth=be}}function q(){this.data.setextHeadingSlurpLineEnding=!0}function J(X){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(X){const be=this.stack[this.stack.length-1].children;let Ae=be[be.length-1];(!Ae||Ae.type!=="text")&&(Ae=Et(),Ae.position={start:wl(X.start),end:void 0},be.push(Ae)),this.stack.push(Ae)}function B(X){const ne=this.stack.pop();ne.value+=this.sliceSerialize(X),ne.position.end=wl(X.end)}function ie(X){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=ne.children[ne.children.length-1];be.position.end=wl(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(ne.type)&&(ae.call(this,X),B.call(this,X))}function te(){this.data.atHardBreak=!0}function ye(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function ue(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function P(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function _(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function K(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function he(X){const ne=this.sliceSerialize(X),be=this.stack[this.stack.length-2];be.label=V2(ne),be.identifier=gn(ne).toLowerCase()}function ke(){const X=this.stack[this.stack.length-1],ne=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ae=X.children;be.children=Ae}else be.alt=ne}function k(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function R(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function Y(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function le(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=gn(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function se(X){this.data.characterReferenceType=X.type}function re(X){const ne=this.sliceSerialize(X),be=this.data.characterReferenceType;let Ae;be?(Ae=Zb(ne,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Kf(ne);const Be=this.stack[this.stack.length-1];Be.value+=Ae}function we(X){const ne=this.stack.pop();ne.position.end=wl(X.end)}function Ye(X){B.call(this,X);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(X)}function ve(X){B.call(this,X);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(X)}function kt(){return{type:"blockquote",children:[]}}function At(){return{type:"code",lang:null,meta:null,value:""}}function xn(){return{type:"inlineCode",value:""}}function Pn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zt(){return{type:"emphasis",children:[]}}function ni(){return{type:"heading",depth:0,children:[]}}function li(){return{type:"break"}}function ya(){return{type:"html",value:""}}function ba(){return{type:"image",title:null,url:"",alt:null}}function ii(){return{type:"link",title:null,url:"",children:[]}}function ri(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Pi(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function fo(){return{type:"paragraph",children:[]}}function ho(){return{type:"strong",children:[]}}function Et(){return{type:"text",value:""}}function mo(){return{type:"thematicBreak"}}}function wl(t){return{line:t.line,column:t.column,offset:t.offset}}function iv(t,l){let r=-1;for(;++r<l.length;){const a=l[r];Array.isArray(a)?iv(t,a):K2(t,a)}}function K2(t,l){let r;for(r in l)if(lv.call(l,r))switch(r){case"canContainEols":{const a=l[r];a&&t[r].push(...a);break}case"transforms":{const a=l[r];a&&t[r].push(...a);break}case"enter":case"exit":{const a=l[r];a&&Object.assign(t[r],a);break}}}function ay(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+Wr({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+Wr({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+Wr({start:l.start,end:l.end})+") is still open")}function J2(t){const l=this;l.parser=r;function r(a){return Z2(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function P2(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function $2(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
|
|
16
|
+
`}]}function W2(t,l){const r=l.value?l.value+`
|
|
17
|
+
`:"",a={},o=l.lang?l.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return l.meta&&(s.data={meta:l.meta}),t.patch(l,s),s=t.applyData(l,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(l,s),s}function eT(t,l){const r={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function tT(t,l){const r={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function nT(t,l){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(l.identifier).toUpperCase(),o=Ji(a.toLowerCase()),s=t.footnoteOrder.indexOf(a);let c,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),c=t.footnoteOrder.length):c=s+1,d+=1,t.footnoteCounts.set(a,d);const m={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(l,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return t.patch(l,p),t.applyData(l,p)}function lT(t,l){const r={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function iT(t,l){if(t.options.allowDangerousHtml){const r={type:"raw",value:l.value};return t.patch(l,r),t.applyData(l,r)}}function rv(t,l){const r=l.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+a}];const o=t.all(l),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=a:o.push({type:"text",value:a}),o}function rT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return rv(t,l);const o={src:Ji(a.url||""),alt:l.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return t.patch(l,s),t.applyData(l,s)}function aT(t,l){const r={src:Ji(l.url)};l.alt!==null&&l.alt!==void 0&&(r.alt=l.alt),l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"img",properties:r,children:[]};return t.patch(l,a),t.applyData(l,a)}function uT(t,l){const r={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(l,a),t.applyData(l,a)}function oT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return rv(t,l);const o={href:Ji(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:t.all(l)};return t.patch(l,s),t.applyData(l,s)}function sT(t,l){const r={href:Ji(l.url)};l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"a",properties:r,children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function cT(t,l,r){const a=t.all(l),o=r?fT(r):av(l),s={},c=[];if(typeof l.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
|
|
18
18
|
`}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const m=a[a.length-1];m&&(o||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
19
|
-
`});const p={type:"element",tagName:"li",properties:s,children:c};return t.patch(l,p),t.applyData(l,p)}function
|
|
19
|
+
`});const p={type:"element",tagName:"li",properties:s,children:c};return t.patch(l,p),t.applyData(l,p)}function fT(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const r=t.children;let a=-1;for(;!l&&++a<r.length;)l=av(r[a])}return l}function av(t){const l=t.spread;return l??t.children.length>1}function hT(t,l){const r={},a=t.all(l);let o=-1;for(typeof l.start=="number"&&l.start!==1&&(r.start=l.start);++o<a.length;){const c=a[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:l.ordered?"ol":"ul",properties:r,children:t.wrap(a,!0)};return t.patch(l,s),t.applyData(l,s)}function dT(t,l){const r={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function mT(t,l){const r={type:"root",children:t.wrap(t.all(l))};return t.patch(l,r),t.applyData(l,r)}function pT(t,l){const r={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function gT(t,l){const r=t.all(l),a=r.shift(),o=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(l.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=Yf(l.children[1]),m=Hb(l.children[l.children.length-1]);d&&m&&(c.position={start:d,end:m}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(l,s),t.applyData(l,s)}function yT(t,l,r){const a=r?r.children:void 0,s=(a?a.indexOf(l):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:l.children.length;let m=-1;const p=[];for(;++m<d;){const g=l.children[m],v={},x=c?c[m]:void 0;x&&(v.align=x);let w={type:"element",tagName:s,properties:v,children:[]};g&&(w.children=t.all(g),t.patch(g,w),w=t.applyData(g,w)),p.push(w)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(l,y),t.applyData(l,y)}function bT(t,l){const r={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}const uy=9,oy=32;function vT(t){const l=String(t),r=/\r?\n|\r/g;let a=r.exec(l),o=0;const s=[];for(;a;)s.push(sy(l.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(l);return s.push(sy(l.slice(o),o>0,!1)),s.join("")}function sy(t,l,r){let a=0,o=t.length;if(l){let s=t.codePointAt(a);for(;s===uy||s===oy;)a++,s=t.codePointAt(a)}if(r){let s=t.codePointAt(o-1);for(;s===uy||s===oy;)o--,s=t.codePointAt(o-1)}return o>a?t.slice(a,o):""}function xT(t,l){const r={type:"text",value:vT(String(l.value))};return t.patch(l,r),t.applyData(l,r)}function ST(t,l){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,r),t.applyData(l,r)}const kT={blockquote:P2,break:$2,code:W2,delete:eT,emphasis:tT,footnoteReference:nT,heading:lT,html:iT,imageReference:rT,image:aT,inlineCode:uT,linkReference:oT,link:sT,listItem:cT,list:hT,paragraph:dT,root:mT,strong:pT,table:gT,tableCell:bT,tableRow:yT,text:xT,thematicBreak:ST,toml:qu,yaml:qu,definition:qu,footnoteDefinition:qu};function qu(){}const uv=-1,oo=0,ta=1,Pu=2,Pf=3,$f=4,Wf=5,eh=6,ov=7,sv=8,cv=typeof self=="object"?self:globalThis,cy=(t,l)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new cv[t](l)},ET=(t,l)=>{const r=(o,s)=>(t.set(s,o),o),a=o=>{if(t.has(o))return t.get(o);const[s,c]=l[o];switch(s){case oo:case uv:return r(c,o);case ta:{const d=r([],o);for(const m of c)d.push(a(m));return d}case Pu:{const d=r({},o);for(const[m,p]of c)d[a(m)]=a(p);return d}case Pf:return r(new Date(c),o);case $f:{const{source:d,flags:m}=c;return r(new RegExp(d,m),o)}case Wf:{const d=r(new Map,o);for(const[m,p]of c)d.set(a(m),a(p));return d}case eh:{const d=r(new Set,o);for(const m of c)d.add(a(m));return d}case ov:{const{name:d,message:m}=c;return r(typeof cv[d]=="function"?cy(d,m):new Error(m),o)}case sv:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(cy(s,c),o)};return a},fy=t=>ET(new Map,t)(0),Kl="",{toString:wT}={},{keys:CT}=Object,Pr=t=>{const l=typeof t;if(l!=="object"||!t)return[oo,l];const r=wT.call(t).slice(8,-1);switch(r){case"Array":return[ta,Kl];case"Object":return[Pu,Kl];case"Date":return[Pf,Kl];case"RegExp":return[$f,Kl];case"Map":return[Wf,Kl];case"Set":return[eh,Kl];case"DataView":return[ta,r]}return r.includes("Array")?[ta,r]:t instanceof Error?[ov,t.name||"Error"]:[Pu,r]},Qu=([t,l])=>t===oo&&(l==="function"||l==="symbol"),TT=(t,l,r,a)=>{const o=(c,d)=>{const m=a.push(c)-1;return r.set(d,m),m},s=c=>{if(r.has(c))return r.get(c);let[d,m]=Pr(c);switch(d){case oo:{let y=c;switch(m){case"bigint":d=sv,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+m);y=null;break;case"undefined":return o([uv],c)}return o([d,y],c)}case ta:{if(m){let v=c;return m==="DataView"?v=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(c)),o([m,[...v]],c)}const y=[],g=o([d,y],c);for(const v of c)y.push(s(v));return g}case Pu:{if(m)switch(m){case"BigInt":return o([m,c.toString()],c);case"Boolean":case"Number":case"String":return o([m,c.valueOf()],c)}if(l&&"toJSON"in c)return s(c.toJSON());const y=[],g=o([d,y],c);for(const v of CT(c))(t||!Qu(Pr(c[v])))&&y.push([s(v),s(c[v])]);return g}case Pf:return o([d,isNaN(c.getTime())?Kl:c.toISOString()],c);case $f:{const{source:y,flags:g}=c;return o([d,{source:y,flags:g}],c)}case Wf:{const y=[],g=o([d,y],c);for(const[v,x]of c)(t||!(Qu(Pr(v))||Qu(Pr(x))))&&y.push([s(v),s(x)]);return g}case eh:{const y=[],g=o([d,y],c);for(const v of c)(t||!Qu(Pr(v)))&&y.push(s(v));return g}}const{message:p}=c;return o([d,{name:m,message:p}],c)};return s},hy=(t,{json:l,lossy:r}={})=>{const a=[];return TT(!(l||r),!!l,new Map,a)(t),a},$u=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?fy(hy(t,l)):structuredClone(t):(t,l)=>fy(hy(t,l));function AT(t,l){const r=[{type:"text",value:"↩"}];return l>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),r}function zT(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function RT(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||AT,a=t.options.footnoteBackLabel||zT,o=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[m]);if(!p)continue;const y=t.all(p),g=String(p.identifier).toUpperCase(),v=Ji(g.toLowerCase());let x=0;const w=[],T=t.footnoteCounts.get(g);for(;T!==void 0&&++x<=T;){w.length>0&&w.push({type:"text",value:" "});let Q=typeof r=="string"?r:r(m,x);typeof Q=="string"&&(Q={type:"text",value:Q}),w.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(m,x),className:["data-footnote-backref"]},children:Array.isArray(Q)?Q:[Q]})}const A=y[y.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const Q=A.children[A.children.length-1];Q&&Q.type==="text"?Q.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...w)}else y.push(...w);const z={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:t.wrap(y,!0)};t.patch(p,z),d.push(z)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...$u(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
20
20
|
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
|
|
21
|
-
`}]}}const so=(function(t){if(t==null)return
|
|
21
|
+
`}]}}const so=(function(t){if(t==null)return _T;if(typeof t=="function")return co(t);if(typeof t=="object")return Array.isArray(t)?OT(t):DT(t);if(typeof t=="string")return MT(t);throw new Error("Expected function, string, or object as test")});function OT(t){const l=[];let r=-1;for(;++r<t.length;)l[r]=so(t[r]);return co(a);function a(...o){let s=-1;for(;++s<l.length;)if(l[s].apply(this,o))return!0;return!1}}function DT(t){const l=t;return co(r);function r(a){const o=a;let s;for(s in t)if(o[s]!==l[s])return!1;return!0}}function MT(t){return co(l);function l(r){return r&&r.type===t}}function co(t){return l;function l(r,a,o){return!!(NT(r)&&t.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function _T(){return!0}function NT(t){return t!==null&&typeof t=="object"&&"type"in t}const fv=[],LT=!0,vf=!1,jT="skip";function hv(t,l,r,a){let o;typeof l=="function"&&typeof r!="function"?(a=r,r=l):o=l;const s=so(o),c=a?-1:1;d(t,void 0,[])();function d(m,p,y){const g=m&&typeof m=="object"?m:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=fv,w,T,A;if((!l||s(m,p,y[y.length-1]||void 0))&&(x=UT(r(m,y)),x[0]===vf))return x;if("children"in m&&m.children){const z=m;if(z.children&&x[0]!==jT)for(T=(a?z.children.length:-1)+c,A=y.concat(z);T>-1&&T<z.children.length;){const Q=z.children[T];if(w=d(Q,T,A)(),w[0]===vf)return w;T=typeof w[1]=="number"?w[1]:T+c}}return x}}}function UT(t){return Array.isArray(t)?t:typeof t=="number"?[LT,t]:t==null?fv:[t]}function th(t,l,r,a){let o,s,c;typeof l=="function"&&typeof r!="function"?(s=void 0,c=l,o=r):(s=l,c=r,o=a),hv(t,s,d,o);function d(m,p){const y=p[p.length-1],g=y?y.children.indexOf(m):void 0;return c(m,g,y)}}const xf={}.hasOwnProperty,BT={};function HT(t,l){const r=l||BT,a=new Map,o=new Map,s=new Map,c={...kT,...r.handlers},d={all:p,applyData:QT,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:m,options:r,patch:qT,wrap:GT};return th(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:o,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function m(y,g){const v=y.type,x=d.handlers[v];if(xf.call(d.handlers,v)&&x)return x(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:T,...A}=y,z=$u(A);return z.children=d.all(y),z}return $u(y)}return(d.options.unknownHandler||FT)(d,y,g)}function p(y){const g=[];if("children"in y){const v=y.children;let x=-1;for(;++x<v.length;){const w=d.one(v[x],y);if(w){if(x&&v[x-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=dy(w.value)),!Array.isArray(w)&&w.type==="element")){const T=w.children[0];T&&T.type==="text"&&(T.value=dy(T.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function qT(t,l){t.position&&(l.position=zw(t))}function QT(t,l){let r=l;if(t&&t.data){const a=t.data.hName,o=t.data.hChildren,s=t.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,$u(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function FT(t,l){const r=l.data||{},a="value"in l&&!(xf.call(r,"hProperties")||xf.call(r,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function GT(t,l){const r=[];let a=-1;for(l&&r.push({type:"text",value:`
|
|
22
22
|
`});++a<t.length;)a&&r.push({type:"text",value:`
|
|
23
23
|
`}),r.push(t[a]);return l&&t.length>0&&r.push({type:"text",value:`
|
|
24
|
-
`}),r}function dy(t){let l=0,r=t.charCodeAt(l);for(;r===9||r===32;)l++,r=t.charCodeAt(l);return t.slice(l)}function my(t,l){const r=
|
|
25
|
-
`},o),s}function GT(t,l){return t&&"run"in t?async function(r,a){const o=my(r,{file:a,...l});await t.run(o,a)}:function(r,a){return my(r,{file:a,...t||l})}}function py(t){if(t)throw t}var Fc,gy;function YT(){if(gy)return Fc;gy=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},s=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var y=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!y&&!g)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},c=function(p,y){r&&y.name==="__proto__"?r(p,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):p[y.name]=y.newValue},d=function(p,y){if(y==="__proto__")if(t.call(p,y)){if(a)return a(p,y).value}else return;return p[y]};return Fc=function m(){var p,y,g,v,x,w,T=arguments[0],A=1,z=arguments.length,Q=!1;for(typeof T=="boolean"&&(Q=T,T=arguments[1]||{},A=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});A<z;++A)if(p=arguments[A],p!=null)for(y in p)g=d(T,y),v=d(p,y),T!==v&&(Q&&v&&(s(v)||(x=o(v)))?(x?(x=!1,w=g&&o(g)?g:[]):w=g&&s(g)?g:{},c(T,{name:y,newValue:m(Q,w,v)})):typeof v<"u"&&c(T,{name:y,newValue:v}));return T},Fc}var VT=YT();const Gc=wf(VT);function Sf(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function XT(){const t=[],l={run:r,use:a};return l;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(m,...p){const y=t[++s];let g=-1;if(m){c(m);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,y?ZT(y,d)(...p):c(null,...p)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),l}}function ZT(t,l){let r;return a;function a(...c){const d=t.length>c.length;let m;d&&c.push(o);try{m=t.apply(this,c)}catch(p){const y=p;if(d&&r)throw y;return o(y)}d||(m&&m.then&&typeof m.then=="function"?m.then(s,o):m instanceof Error?o(m):s(m))}function o(c,...d){r||(r=!0,l(c,...d))}function s(c){o(null,c)}}const Tn={basename:IT,dirname:KT,extname:JT,join:PT,sep:"/"};function IT(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');ga(t);let r=0,a=-1,o=t.length,s;if(l===void 0||l.length===0||l.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":t.slice(r,a)}if(l===t)return"";let c=-1,d=l.length-1;for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),d>-1&&(t.codePointAt(o)===l.codePointAt(d--)?d<0&&(a=o):(d=-1,a=c));return r===a?a=c:a<0&&(a=t.length),t.slice(r,a)}function KT(t){if(ga(t),t.length===0)return".";let l=-1,r=t.length,a;for(;--r;)if(t.codePointAt(r)===47){if(a){l=r;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function JT(t){ga(t);let l=t.length,r=-1,a=0,o=-1,s=0,c;for(;l--;){const d=t.codePointAt(l);if(d===47){if(c){a=l+1;break}continue}r<0&&(c=!0,r=l+1),d===46?o<0?o=l:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===a+1?"":t.slice(o,r)}function PT(...t){let l=-1,r;for(;++l<t.length;)ga(t[l]),t[l]&&(r=r===void 0?t[l]:r+"/"+t[l]);return r===void 0?".":$T(r)}function $T(t){ga(t);const l=t.codePointAt(0)===47;let r=WT(t,!l);return r.length===0&&!l&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),l?"/"+r:r}function WT(t,l){let r="",a=0,o=-1,s=0,c=-1,d,m;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(m=r.lastIndexOf("/"),m!==r.length-1){m<0?(r="",a=0):(r=r.slice(0,m),a=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",a=0,o=c,s=0;continue}}l&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+t.slice(o+1,c):r=t.slice(o+1,c),a=c-o-1;o=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function ga(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const eA={cwd:tA};function tA(){return"/"}function kf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function nA(t){if(typeof t=="string")t=new URL(t);else if(!kf(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return lA(t)}function lA(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const l=t.pathname;let r=-1;for(;++r<l.length;)if(l.codePointAt(r)===37&&l.codePointAt(r+1)===50){const a=l.codePointAt(r+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(l)}const Yc=["history","path","basename","stem","extname","dirname"];class dv{constructor(l){let r;l?kf(l)?r={path:l}:typeof l=="string"||iA(l)?r={value:l}:r=l:r={},this.cwd="cwd"in r?"":eA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Yc.length;){const s=Yc[a];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)Yc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Tn.basename(this.path):void 0}set basename(l){Xc(l,"basename"),Vc(l,"basename"),this.path=Tn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?Tn.dirname(this.path):void 0}set dirname(l){yy(this.basename,"dirname"),this.path=Tn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?Tn.extname(this.path):void 0}set extname(l){if(Vc(l,"extname"),yy(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){kf(l)&&(l=nA(l)),Xc(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?Tn.basename(this.path,this.extname):void 0}set stem(l){Xc(l,"stem"),Vc(l,"stem"),this.path=Tn.join(this.dirname||"",l+(this.extname||""))}fail(l,r,a){const o=this.message(l,r,a);throw o.fatal=!0,o}info(l,r,a){const o=this.message(l,r,a);return o.fatal=void 0,o}message(l,r,a){const o=new St(l,r,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Vc(t,l){if(t&&t.includes(Tn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+Tn.sep+"`")}function Xc(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function yy(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function iA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const rA=(function(t){const a=this.constructor.prototype,o=a[t],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,a),s}),aA={}.hasOwnProperty;class nh extends rA{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=XT()}copy(){const l=new nh;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];l.use(...a)}return l.data(Gc(!0,{},this.namespace)),l}data(l,r){return typeof l=="string"?arguments.length===2?(Kc("data",this.frozen),this.namespace[l]=r,this):aA.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Kc("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=r.call(l,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const r=Fu(l),a=this.parser||this.Parser;return Zc("parse",a),a(String(r),r)}process(l,r){const a=this;return this.freeze(),Zc("process",this.parser||this.Parser),Ic("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const d=Fu(l),m=a.parse(d);a.run(m,d,function(y,g,v){if(y||!g||!v)return p(y);const x=g,w=a.stringify(x,v);sA(w)?v.value=w:v.result=w,p(y,v)});function p(y,g){y||!g?c(y):s?s(g):r(void 0,g)}}}processSync(l){let r=!1,a;return this.freeze(),Zc("processSync",this.parser||this.Parser),Ic("processSync",this.compiler||this.Compiler),this.process(l,o),vy("processSync","process",r),a;function o(s,c){r=!0,py(s),a=c}}run(l,r,a){by(l),this.freeze();const o=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?s(void 0,a):new Promise(s);function s(c,d){const m=Fu(r);o.run(l,m,p);function p(y,g,v){const x=g||l;y?d(y):c?c(x):a(void 0,x,v)}}}runSync(l,r){let a=!1,o;return this.run(l,r,s),vy("runSync","run",a),o;function s(c,d){py(c),o=d,a=!0}}stringify(l,r){this.freeze();const a=Fu(r),o=this.compiler||this.Compiler;return Ic("stringify",o),by(l),o(l,a)}use(l,...r){const a=this.attachers,o=this.namespace;if(Kc("use",this.frozen),l!=null)if(typeof l=="function")m(l,r);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function s(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[y,...g]=p;m(y,g)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=Gc(!0,o.settings,p.settings))}function d(p){let y=-1;if(p!=null)if(Array.isArray(p))for(;++y<p.length;){const g=p[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,y){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...y]);else if(y.length>0){let[x,...w]=y;const T=a[v][1];Sf(T)&&Sf(x)&&(x=Gc(!0,T,x)),a[v]=[p,x,...w]}}}}const uA=new nh().freeze();function Zc(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Ic(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Kc(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function by(t){if(!Sf(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function vy(t,l,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function Fu(t){return oA(t)?t:new dv(t)}function oA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function sA(t){return typeof t=="string"||cA(t)}function cA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const fA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",xy=[],Sy={allowDangerousHtml:!0},hA=/^(https?|ircs?|mailto|xmpp)$/i,dA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function mA(t){const l=pA(t),r=gA(t);return yA(l.runSync(l.parse(r),r),t)}function pA(t){const l=t.rehypePlugins||xy,r=t.remarkPlugins||xy,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Sy}:Sy;return uA().use(K2).use(r).use(GT,a).use(l)}function gA(t){const l=t.children||"",r=new dv;return typeof l=="string"&&(r.value=l),r}function yA(t,l){const r=l.allowedElements,a=l.allowElement,o=l.components,s=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,m=l.urlTransform||bA;for(const y of dA)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+fA+y.id,void 0);return th(t,p),Mw(t,{Fragment:H.Fragment,components:o,ignoreInvalidStyle:!0,jsx:H.jsx,jsxs:H.jsxs,passKeys:!0,passNode:!0});function p(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let x;for(x in Hc)if(Object.hasOwn(Hc,x)&&Object.hasOwn(y.properties,x)){const w=y.properties[x],T=Hc[x];(T===null||T.includes(y.tagName))&&(y.properties[x]=m(String(w||""),x,y))}}if(y.type==="element"){let x=r?!r.includes(y.tagName):s?s.includes(y.tagName):!1;if(!x&&a&&typeof g=="number"&&(x=!a(y,g,v)),x&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function bA(t){const l=t.indexOf(":"),r=t.indexOf("?"),a=t.indexOf("#"),o=t.indexOf("/");return l===-1||o!==-1&&l>o||r!==-1&&l>r||a!==-1&&l>a||hA.test(t.slice(0,l))?t:""}function vA(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function mv(t,l,r){const o=so((r||{}).ignore||[]),s=xA(l);let c=-1;for(;++c<s.length;)hv(t,"text",d);function d(p,y){let g=-1,v;for(;++g<y.length;){const x=y[g],w=v?v.children:void 0;if(o(x,w?w.indexOf(x):void 0,v))return;v=x}if(v)return m(p,y)}function m(p,y){const g=y[y.length-1],v=s[c][0],x=s[c][1];let w=0;const A=g.children.indexOf(p);let z=!1,Q=[];v.lastIndex=0;let j=v.exec(p.value);for(;j;){const W=j.index,ee={index:j.index,input:j.input,stack:[...y,p]};let q=x(...j,ee);if(typeof q=="string"&&(q=q.length>0?{type:"text",value:q}:void 0),q===!1?v.lastIndex=W+1:(w!==W&&Q.push({type:"text",value:p.value.slice(w,W)}),Array.isArray(q)?Q.push(...q):q&&Q.push(q),w=W+j[0].length,z=!0),!v.global)break;j=v.exec(p.value)}return z?(w<p.value.length&&Q.push({type:"text",value:p.value.slice(w)}),g.children.splice(A,1,...Q)):Q=[p],A+Q.length}}function xA(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<r.length;){const o=r[a];l.push([SA(o[0]),kA(o[1])])}return l}function SA(t){return typeof t=="string"?new RegExp(vA(t),"g"):t}function kA(t){return typeof t=="function"?t:function(){return t}}function EA(t){mv(t,[/\r?\n|\r/g,wA])}function wA(){return{type:"break"}}function CA(){return function(t){EA(t)}}function ky(t,l){const r=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,o=r.indexOf(l);for(;o!==-1;)a++,o=r.indexOf(l,o+l.length);return a}const Jc="phrasing",Pc=["autolink","link","image","label"];function TA(){return{transforms:[_A],enter:{literalAutolink:zA,literalAutolinkEmail:$c,literalAutolinkHttp:$c,literalAutolinkWww:$c},exit:{literalAutolink:MA,literalAutolinkEmail:DA,literalAutolinkHttp:RA,literalAutolinkWww:OA}}}function AA(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Jc,notInConstruct:Pc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Jc,notInConstruct:Pc},{character:":",before:"[ps]",after:"\\/",inConstruct:Jc,notInConstruct:Pc}]}}function zA(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function $c(t){this.config.enter.autolinkProtocol.call(this,t)}function RA(t){this.config.exit.autolinkProtocol.call(this,t)}function OA(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function DA(t){this.config.exit.autolinkEmail.call(this,t)}function MA(t){this.exit(t)}function _A(t){mv(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,NA],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),LA]],{ignore:["link","linkReference"]})}function NA(t,l,r,a,o){let s="";if(!pv(o)||(/^w/i.test(l)&&(r=l+r,l="",s="http://"),!jA(r)))return!1;const c=UA(r+a);if(!c[0])return!1;const d={type:"link",title:null,url:s+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function LA(t,l,r,a){return!pv(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+r,children:[{type:"text",value:l+"@"+r}]}}function jA(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function UA(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let r=l[0],a=r.indexOf(")");const o=ky(t,"(");let s=ky(t,")");for(;a!==-1&&o>s;)t+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[t,r]}function pv(t,l){const r=t.input.charCodeAt(t.index-1);return(t.index===0||$l(r)||ao(r))&&(!l||r!==47)}gv.peek=XA;function BA(){this.buffer()}function HA(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function qA(){this.buffer()}function QA(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function FA(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=gn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function GA(t){this.exit(t)}function YA(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=gn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function VA(t){this.exit(t)}function XA(){return"["}function gv(t,l,r,a){const o=r.createTracker(a);let s=o.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return s+=o.move(r.safe(r.associationId(t),{after:"]",before:s})),d(),c(),s+=o.move("]"),s}function ZA(){return{enter:{gfmFootnoteCallString:BA,gfmFootnoteCall:HA,gfmFootnoteDefinitionLabelString:qA,gfmFootnoteDefinition:QA},exit:{gfmFootnoteCallString:FA,gfmFootnoteCall:GA,gfmFootnoteDefinitionLabelString:YA,gfmFootnoteDefinition:VA}}}function IA(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:r,footnoteReference:gv},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,o,s,c){const d=s.createTracker(c);let m=d.move("[^");const p=s.enter("footnoteDefinition"),y=s.enter("label");return m+=d.move(s.safe(s.associationId(a),{before:m,after:"]"})),y(),m+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),m+=d.move((l?`
|
|
26
|
-
`:" ")+s.indentLines(s.containerFlow(a,d.current()),l?yv:
|
|
27
|
-
`)}function
|
|
28
|
-
`&&
|
|
29
|
-
`}function
|
|
24
|
+
`}),r}function dy(t){let l=0,r=t.charCodeAt(l);for(;r===9||r===32;)l++,r=t.charCodeAt(l);return t.slice(l)}function my(t,l){const r=HT(t,l),a=r.one(t,void 0),o=RT(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
|
|
25
|
+
`},o),s}function YT(t,l){return t&&"run"in t?async function(r,a){const o=my(r,{file:a,...l});await t.run(o,a)}:function(r,a){return my(r,{file:a,...t||l})}}function py(t){if(t)throw t}var Fc,gy;function VT(){if(gy)return Fc;gy=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},s=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var y=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!y&&!g)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},c=function(p,y){r&&y.name==="__proto__"?r(p,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):p[y.name]=y.newValue},d=function(p,y){if(y==="__proto__")if(t.call(p,y)){if(a)return a(p,y).value}else return;return p[y]};return Fc=function m(){var p,y,g,v,x,w,T=arguments[0],A=1,z=arguments.length,Q=!1;for(typeof T=="boolean"&&(Q=T,T=arguments[1]||{},A=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});A<z;++A)if(p=arguments[A],p!=null)for(y in p)g=d(T,y),v=d(p,y),T!==v&&(Q&&v&&(s(v)||(x=o(v)))?(x?(x=!1,w=g&&o(g)?g:[]):w=g&&s(g)?g:{},c(T,{name:y,newValue:m(Q,w,v)})):typeof v<"u"&&c(T,{name:y,newValue:v}));return T},Fc}var XT=VT();const Gc=wf(XT);function Sf(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ZT(){const t=[],l={run:r,use:a};return l;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(m,...p){const y=t[++s];let g=-1;if(m){c(m);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,y?IT(y,d)(...p):c(null,...p)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),l}}function IT(t,l){let r;return a;function a(...c){const d=t.length>c.length;let m;d&&c.push(o);try{m=t.apply(this,c)}catch(p){const y=p;if(d&&r)throw y;return o(y)}d||(m&&m.then&&typeof m.then=="function"?m.then(s,o):m instanceof Error?o(m):s(m))}function o(c,...d){r||(r=!0,l(c,...d))}function s(c){o(null,c)}}const Tn={basename:KT,dirname:JT,extname:PT,join:$T,sep:"/"};function KT(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');ga(t);let r=0,a=-1,o=t.length,s;if(l===void 0||l.length===0||l.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":t.slice(r,a)}if(l===t)return"";let c=-1,d=l.length-1;for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),d>-1&&(t.codePointAt(o)===l.codePointAt(d--)?d<0&&(a=o):(d=-1,a=c));return r===a?a=c:a<0&&(a=t.length),t.slice(r,a)}function JT(t){if(ga(t),t.length===0)return".";let l=-1,r=t.length,a;for(;--r;)if(t.codePointAt(r)===47){if(a){l=r;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function PT(t){ga(t);let l=t.length,r=-1,a=0,o=-1,s=0,c;for(;l--;){const d=t.codePointAt(l);if(d===47){if(c){a=l+1;break}continue}r<0&&(c=!0,r=l+1),d===46?o<0?o=l:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===a+1?"":t.slice(o,r)}function $T(...t){let l=-1,r;for(;++l<t.length;)ga(t[l]),t[l]&&(r=r===void 0?t[l]:r+"/"+t[l]);return r===void 0?".":WT(r)}function WT(t){ga(t);const l=t.codePointAt(0)===47;let r=eA(t,!l);return r.length===0&&!l&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),l?"/"+r:r}function eA(t,l){let r="",a=0,o=-1,s=0,c=-1,d,m;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(m=r.lastIndexOf("/"),m!==r.length-1){m<0?(r="",a=0):(r=r.slice(0,m),a=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",a=0,o=c,s=0;continue}}l&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+t.slice(o+1,c):r=t.slice(o+1,c),a=c-o-1;o=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function ga(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const tA={cwd:nA};function nA(){return"/"}function kf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function lA(t){if(typeof t=="string")t=new URL(t);else if(!kf(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return iA(t)}function iA(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const l=t.pathname;let r=-1;for(;++r<l.length;)if(l.codePointAt(r)===37&&l.codePointAt(r+1)===50){const a=l.codePointAt(r+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(l)}const Yc=["history","path","basename","stem","extname","dirname"];class dv{constructor(l){let r;l?kf(l)?r={path:l}:typeof l=="string"||rA(l)?r={value:l}:r=l:r={},this.cwd="cwd"in r?"":tA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Yc.length;){const s=Yc[a];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)Yc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Tn.basename(this.path):void 0}set basename(l){Xc(l,"basename"),Vc(l,"basename"),this.path=Tn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?Tn.dirname(this.path):void 0}set dirname(l){yy(this.basename,"dirname"),this.path=Tn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?Tn.extname(this.path):void 0}set extname(l){if(Vc(l,"extname"),yy(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){kf(l)&&(l=lA(l)),Xc(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?Tn.basename(this.path,this.extname):void 0}set stem(l){Xc(l,"stem"),Vc(l,"stem"),this.path=Tn.join(this.dirname||"",l+(this.extname||""))}fail(l,r,a){const o=this.message(l,r,a);throw o.fatal=!0,o}info(l,r,a){const o=this.message(l,r,a);return o.fatal=void 0,o}message(l,r,a){const o=new St(l,r,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Vc(t,l){if(t&&t.includes(Tn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+Tn.sep+"`")}function Xc(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function yy(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function rA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const aA=(function(t){const a=this.constructor.prototype,o=a[t],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,a),s}),uA={}.hasOwnProperty;class nh extends aA{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ZT()}copy(){const l=new nh;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];l.use(...a)}return l.data(Gc(!0,{},this.namespace)),l}data(l,r){return typeof l=="string"?arguments.length===2?(Kc("data",this.frozen),this.namespace[l]=r,this):uA.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Kc("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=r.call(l,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const r=Fu(l),a=this.parser||this.Parser;return Zc("parse",a),a(String(r),r)}process(l,r){const a=this;return this.freeze(),Zc("process",this.parser||this.Parser),Ic("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const d=Fu(l),m=a.parse(d);a.run(m,d,function(y,g,v){if(y||!g||!v)return p(y);const x=g,w=a.stringify(x,v);cA(w)?v.value=w:v.result=w,p(y,v)});function p(y,g){y||!g?c(y):s?s(g):r(void 0,g)}}}processSync(l){let r=!1,a;return this.freeze(),Zc("processSync",this.parser||this.Parser),Ic("processSync",this.compiler||this.Compiler),this.process(l,o),vy("processSync","process",r),a;function o(s,c){r=!0,py(s),a=c}}run(l,r,a){by(l),this.freeze();const o=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?s(void 0,a):new Promise(s);function s(c,d){const m=Fu(r);o.run(l,m,p);function p(y,g,v){const x=g||l;y?d(y):c?c(x):a(void 0,x,v)}}}runSync(l,r){let a=!1,o;return this.run(l,r,s),vy("runSync","run",a),o;function s(c,d){py(c),o=d,a=!0}}stringify(l,r){this.freeze();const a=Fu(r),o=this.compiler||this.Compiler;return Ic("stringify",o),by(l),o(l,a)}use(l,...r){const a=this.attachers,o=this.namespace;if(Kc("use",this.frozen),l!=null)if(typeof l=="function")m(l,r);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function s(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[y,...g]=p;m(y,g)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=Gc(!0,o.settings,p.settings))}function d(p){let y=-1;if(p!=null)if(Array.isArray(p))for(;++y<p.length;){const g=p[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,y){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...y]);else if(y.length>0){let[x,...w]=y;const T=a[v][1];Sf(T)&&Sf(x)&&(x=Gc(!0,T,x)),a[v]=[p,x,...w]}}}}const oA=new nh().freeze();function Zc(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Ic(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Kc(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function by(t){if(!Sf(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function vy(t,l,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function Fu(t){return sA(t)?t:new dv(t)}function sA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function cA(t){return typeof t=="string"||fA(t)}function fA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const hA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",xy=[],Sy={allowDangerousHtml:!0},dA=/^(https?|ircs?|mailto|xmpp)$/i,mA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function pA(t){const l=gA(t),r=yA(t);return bA(l.runSync(l.parse(r),r),t)}function gA(t){const l=t.rehypePlugins||xy,r=t.remarkPlugins||xy,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Sy}:Sy;return oA().use(J2).use(r).use(YT,a).use(l)}function yA(t){const l=t.children||"",r=new dv;return typeof l=="string"&&(r.value=l),r}function bA(t,l){const r=l.allowedElements,a=l.allowElement,o=l.components,s=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,m=l.urlTransform||vA;for(const y of mA)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+hA+y.id,void 0);return th(t,p),_w(t,{Fragment:H.Fragment,components:o,ignoreInvalidStyle:!0,jsx:H.jsx,jsxs:H.jsxs,passKeys:!0,passNode:!0});function p(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let x;for(x in Hc)if(Object.hasOwn(Hc,x)&&Object.hasOwn(y.properties,x)){const w=y.properties[x],T=Hc[x];(T===null||T.includes(y.tagName))&&(y.properties[x]=m(String(w||""),x,y))}}if(y.type==="element"){let x=r?!r.includes(y.tagName):s?s.includes(y.tagName):!1;if(!x&&a&&typeof g=="number"&&(x=!a(y,g,v)),x&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function vA(t){const l=t.indexOf(":"),r=t.indexOf("?"),a=t.indexOf("#"),o=t.indexOf("/");return l===-1||o!==-1&&l>o||r!==-1&&l>r||a!==-1&&l>a||dA.test(t.slice(0,l))?t:""}function xA(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function mv(t,l,r){const o=so((r||{}).ignore||[]),s=SA(l);let c=-1;for(;++c<s.length;)hv(t,"text",d);function d(p,y){let g=-1,v;for(;++g<y.length;){const x=y[g],w=v?v.children:void 0;if(o(x,w?w.indexOf(x):void 0,v))return;v=x}if(v)return m(p,y)}function m(p,y){const g=y[y.length-1],v=s[c][0],x=s[c][1];let w=0;const A=g.children.indexOf(p);let z=!1,Q=[];v.lastIndex=0;let j=v.exec(p.value);for(;j;){const W=j.index,ee={index:j.index,input:j.input,stack:[...y,p]};let q=x(...j,ee);if(typeof q=="string"&&(q=q.length>0?{type:"text",value:q}:void 0),q===!1?v.lastIndex=W+1:(w!==W&&Q.push({type:"text",value:p.value.slice(w,W)}),Array.isArray(q)?Q.push(...q):q&&Q.push(q),w=W+j[0].length,z=!0),!v.global)break;j=v.exec(p.value)}return z?(w<p.value.length&&Q.push({type:"text",value:p.value.slice(w)}),g.children.splice(A,1,...Q)):Q=[p],A+Q.length}}function SA(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<r.length;){const o=r[a];l.push([kA(o[0]),EA(o[1])])}return l}function kA(t){return typeof t=="string"?new RegExp(xA(t),"g"):t}function EA(t){return typeof t=="function"?t:function(){return t}}function wA(t){mv(t,[/\r?\n|\r/g,CA])}function CA(){return{type:"break"}}function TA(){return function(t){wA(t)}}function ky(t,l){const r=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,o=r.indexOf(l);for(;o!==-1;)a++,o=r.indexOf(l,o+l.length);return a}const Jc="phrasing",Pc=["autolink","link","image","label"];function AA(){return{transforms:[NA],enter:{literalAutolink:RA,literalAutolinkEmail:$c,literalAutolinkHttp:$c,literalAutolinkWww:$c},exit:{literalAutolink:_A,literalAutolinkEmail:MA,literalAutolinkHttp:OA,literalAutolinkWww:DA}}}function zA(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Jc,notInConstruct:Pc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Jc,notInConstruct:Pc},{character:":",before:"[ps]",after:"\\/",inConstruct:Jc,notInConstruct:Pc}]}}function RA(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function $c(t){this.config.enter.autolinkProtocol.call(this,t)}function OA(t){this.config.exit.autolinkProtocol.call(this,t)}function DA(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function MA(t){this.config.exit.autolinkEmail.call(this,t)}function _A(t){this.exit(t)}function NA(t){mv(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,LA],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),jA]],{ignore:["link","linkReference"]})}function LA(t,l,r,a,o){let s="";if(!pv(o)||(/^w/i.test(l)&&(r=l+r,l="",s="http://"),!UA(r)))return!1;const c=BA(r+a);if(!c[0])return!1;const d={type:"link",title:null,url:s+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function jA(t,l,r,a){return!pv(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+r,children:[{type:"text",value:l+"@"+r}]}}function UA(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function BA(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let r=l[0],a=r.indexOf(")");const o=ky(t,"(");let s=ky(t,")");for(;a!==-1&&o>s;)t+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[t,r]}function pv(t,l){const r=t.input.charCodeAt(t.index-1);return(t.index===0||$l(r)||ao(r))&&(!l||r!==47)}gv.peek=ZA;function HA(){this.buffer()}function qA(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function QA(){this.buffer()}function FA(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function GA(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=gn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function YA(t){this.exit(t)}function VA(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=gn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function XA(t){this.exit(t)}function ZA(){return"["}function gv(t,l,r,a){const o=r.createTracker(a);let s=o.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return s+=o.move(r.safe(r.associationId(t),{after:"]",before:s})),d(),c(),s+=o.move("]"),s}function IA(){return{enter:{gfmFootnoteCallString:HA,gfmFootnoteCall:qA,gfmFootnoteDefinitionLabelString:QA,gfmFootnoteDefinition:FA},exit:{gfmFootnoteCallString:GA,gfmFootnoteCall:YA,gfmFootnoteDefinitionLabelString:VA,gfmFootnoteDefinition:XA}}}function KA(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:r,footnoteReference:gv},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,o,s,c){const d=s.createTracker(c);let m=d.move("[^");const p=s.enter("footnoteDefinition"),y=s.enter("label");return m+=d.move(s.safe(s.associationId(a),{before:m,after:"]"})),y(),m+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),m+=d.move((l?`
|
|
26
|
+
`:" ")+s.indentLines(s.containerFlow(a,d.current()),l?yv:JA))),p(),m}}function JA(t,l,r){return l===0?t:yv(t,l,r)}function yv(t,l,r){return(r?"":" ")+t}const PA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];bv.peek=nz;function $A(){return{canContainEols:["delete"],enter:{strikethrough:ez},exit:{strikethrough:tz}}}function WA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:PA}],handlers:{delete:bv}}}function ez(t){this.enter({type:"delete",children:[]},t)}function tz(t){this.exit(t)}function bv(t,l,r,a){const o=r.createTracker(a),s=r.enter("strikethrough");let c=o.move("~~");return c+=r.containerPhrasing(t,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function nz(){return"~"}function lz(t){return t.length}function iz(t,l){const r=l||{},a=(r.align||[]).concat(),o=r.stringLength||lz,s=[],c=[],d=[],m=[];let p=0,y=-1;for(;++y<t.length;){const T=[],A=[];let z=-1;for(t[y].length>p&&(p=t[y].length);++z<t[y].length;){const Q=rz(t[y][z]);if(r.alignDelimiters!==!1){const j=o(Q);A[z]=j,(m[z]===void 0||j>m[z])&&(m[z]=j)}T.push(Q)}c[y]=T,d[y]=A}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<p;)s[g]=Ey(a[g]);else{const T=Ey(a);for(;++g<p;)s[g]=T}g=-1;const v=[],x=[];for(;++g<p;){const T=s[g];let A="",z="";T===99?(A=":",z=":"):T===108?A=":":T===114&&(z=":");let Q=r.alignDelimiters===!1?1:Math.max(1,m[g]-A.length-z.length);const j=A+"-".repeat(Q)+z;r.alignDelimiters!==!1&&(Q=A.length+Q+z.length,Q>m[g]&&(m[g]=Q),x[g]=Q),v[g]=j}c.splice(1,0,v),d.splice(1,0,x),y=-1;const w=[];for(;++y<c.length;){const T=c[y],A=d[y];g=-1;const z=[];for(;++g<p;){const Q=T[g]||"";let j="",W="";if(r.alignDelimiters!==!1){const ee=m[g]-(A[g]||0),q=s[g];q===114?j=" ".repeat(ee):q===99?ee%2?(j=" ".repeat(ee/2+.5),W=" ".repeat(ee/2-.5)):(j=" ".repeat(ee/2),W=j):W=" ".repeat(ee)}r.delimiterStart!==!1&&!g&&z.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&Q==="")&&(r.delimiterStart!==!1||g)&&z.push(" "),r.alignDelimiters!==!1&&z.push(j),z.push(Q),r.alignDelimiters!==!1&&z.push(W),r.padding!==!1&&z.push(" "),(r.delimiterEnd!==!1||g!==p-1)&&z.push("|")}w.push(r.delimiterEnd===!1?z.join("").replace(/ +$/,""):z.join(""))}return w.join(`
|
|
27
|
+
`)}function rz(t){return t==null?"":String(t)}function Ey(t){const l=typeof t=="string"?t.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function az(t,l,r,a){const o=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(t,s.current()),uz);return o(),c}function uz(t,l,r){return">"+(r?"":" ")+t}function oz(t,l){return wy(t,l.inConstruct,!0)&&!wy(t,l.notInConstruct,!1)}function wy(t,l,r){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return r;let a=-1;for(;++a<l.length;)if(t.includes(l[a]))return!0;return!1}function Cy(t,l,r,a){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
28
|
+
`&&oz(r.stack,r.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
29
|
+
`}function sz(t,l){const r=String(t);let a=r.indexOf(l),o=a,s=0,c=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>c&&(c=s):s=1,o=a+l.length,a=r.indexOf(l,o);return c}function cz(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function fz(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function hz(t,l,r,a){const o=fz(r),s=t.value||"",c=o==="`"?"GraveAccent":"Tilde";if(cz(t,r)){const g=r.enter("codeIndented"),v=r.indentLines(s,dz);return g(),v}const d=r.createTracker(a),m=o.repeat(Math.max(sz(s,o)+1,3)),p=r.enter("codeFenced");let y=d.move(m);if(t.lang){const g=r.enter(`codeFencedLang${c}`);y+=d.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${c}`);y+=d.move(" "),y+=d.move(r.safe(t.meta,{before:y,after:`
|
|
30
30
|
`,encode:["`"],...d.current()})),g()}return y+=d.move(`
|
|
31
31
|
`),s&&(y+=d.move(s+`
|
|
32
|
-
`)),y+=d.move(m),p(),y}function
|
|
33
|
-
`,...m.current()}))),d(),t.title&&(d=r.enter(`title${s}`),p+=m.move(" "+o),p+=m.move(r.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),c(),p}function
|
|
32
|
+
`)),y+=d.move(m),p(),y}function dz(t,l,r){return(r?"":" ")+t}function lh(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function mz(t,l,r,a){const o=lh(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const m=r.createTracker(a);let p=m.move("[");return p+=m.move(r.safe(r.associationId(t),{before:p,after:"]",...m.current()})),p+=m.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=r.enter("destinationRaw"),p+=m.move(r.safe(t.url,{before:p,after:t.title?" ":`
|
|
33
|
+
`,...m.current()}))),d(),t.title&&(d=r.enter(`title${s}`),p+=m.move(" "+o),p+=m.move(r.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),c(),p}function pz(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function oa(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Wu(t,l,r){const a=Xi(t),o=Xi(l);return a===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}vv.peek=gz;function vv(t,l,r,a){const o=pz(r),s=r.enter("emphasis"),c=r.createTracker(a),d=c.move(o);let m=c.move(r.containerPhrasing(t,{after:o,before:d,...c.current()}));const p=m.charCodeAt(0),y=Wu(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=oa(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=Wu(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+oa(g));const x=c.move(o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+x}function gz(t,l,r){return r.options.emphasis||"*"}function yz(t,l){let r=!1;return th(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,vf}),!!((!t.depth||t.depth<3)&&If(t)&&(l.options.setext||r))}function bz(t,l,r,a){const o=Math.max(Math.min(6,t.depth||1),1),s=r.createTracker(a);if(yz(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(t,{...s.current(),before:`
|
|
34
34
|
`,after:`
|
|
35
35
|
`});return g(),y(),v+`
|
|
36
36
|
`+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
37
37
|
`))+1))}const c="#".repeat(o),d=r.enter("headingAtx"),m=r.enter("phrasing");s.move(c+" ");let p=r.containerPhrasing(t,{before:"# ",after:`
|
|
38
|
-
`,...s.current()});return/^[\t ]/.test(p)&&(p=oa(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,r.options.closeAtx&&(p+=" "+c),m(),d(),p}xv.peek=
|
|
38
|
+
`,...s.current()});return/^[\t ]/.test(p)&&(p=oa(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,r.options.closeAtx&&(p+=" "+c),m(),d(),p}xv.peek=vz;function xv(t){return t.value||""}function vz(){return"<"}Sv.peek=xz;function Sv(t,l,r,a){const o=lh(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const m=r.createTracker(a);let p=m.move("![");return p+=m.move(r.safe(t.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=r.enter("destinationRaw"),p+=m.move(r.safe(t.url,{before:p,after:t.title?" ":")",...m.current()}))),d(),t.title&&(d=r.enter(`title${s}`),p+=m.move(" "+o),p+=m.move(r.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),p+=m.move(")"),c(),p}function xz(){return"!"}kv.peek=Sz;function kv(t,l,r,a){const o=t.referenceType,s=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let m=d.move("![");const p=r.safe(t.alt,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:m,after:"]",...d.current()});return c(),r.stack=y,s(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function Sz(){return"!"}Ev.peek=kz;function Ev(t,l,r){let a=t.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<r.unsafe.length;){const c=r.unsafe[s],d=r.compilePattern(c);let m;if(c.atBreak)for(;m=d.exec(a);){let p=m.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(m.index+1)}}return o+a+o}function kz(){return"`"}function wv(t,l){const r=If(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Cv.peek=Ez;function Cv(t,l,r,a){const o=lh(r),s=o==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,m;if(wv(t,r)){const y=r.stack;r.stack=[],d=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(t,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),r.stack=y,g}d=r.enter("link"),m=r.enter("label");let p=c.move("[");return p+=c.move(r.containerPhrasing(t,{before:p,after:"](",...c.current()})),p+=c.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=r.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(r.safe(t.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(m=r.enter("destinationRaw"),p+=c.move(r.safe(t.url,{before:p,after:t.title?" ":")",...c.current()}))),m(),t.title&&(m=r.enter(`title${s}`),p+=c.move(" "+o),p+=c.move(r.safe(t.title,{before:p,after:o,...c.current()})),p+=c.move(o),m()),p+=c.move(")"),d(),p}function Ez(t,l,r){return wv(t,r)?"<":"["}Tv.peek=wz;function Tv(t,l,r,a){const o=t.referenceType,s=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let m=d.move("[");const p=r.containerPhrasing(t,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:m,after:"]",...d.current()});return c(),r.stack=y,s(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function wz(){return"["}function ih(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function Cz(t){const l=ih(t),r=t.options.bulletOther;if(!r)return l==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Tz(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function Av(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function Az(t,l,r,a){const o=r.enter("list"),s=r.bulletCurrent;let c=t.ordered?Tz(r):ih(r);const d=t.ordered?c==="."?")":".":Cz(r);let m=l&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(m=!0),Av(r)===c&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=d),r.bulletCurrent=c;const p=r.containerFlow(t,a);return r.bulletLastUsed=c,r.bulletCurrent=s,o(),p}function zz(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function Rz(t,l,r,a){const o=zz(r);let s=r.bulletCurrent||ih(r);l&&l.type==="list"&&l.ordered&&(s=(typeof l.start=="number"&&l.start>-1?l.start:1)+(r.options.incrementListMarker===!1?0:l.children.indexOf(t))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(a);d.move(s+" ".repeat(c-s.length)),d.shift(c);const m=r.enter("listItem"),p=r.indentLines(r.containerFlow(t,d.current()),y);return m(),p;function y(g,v,x){return v?(x?"":" ".repeat(c))+g:(x?s:s+" ".repeat(c-s.length))+g}}function Oz(t,l,r,a){const o=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(t,a);return s(),o(),c}const Dz=so(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Mz(t,l,r,a){return(t.children.some(function(c){return Dz(c)})?r.containerPhrasing:r.containerFlow).call(r,t,a)}function _z(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}zv.peek=Nz;function zv(t,l,r,a){const o=_z(r),s=r.enter("strong"),c=r.createTracker(a),d=c.move(o+o);let m=c.move(r.containerPhrasing(t,{after:o,before:d,...c.current()}));const p=m.charCodeAt(0),y=Wu(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=oa(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=Wu(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+oa(g));const x=c.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+x}function Nz(t,l,r){return r.options.strong||"*"}function Lz(t,l,r,a){return r.safe(t.value,a)}function jz(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function Uz(t,l,r){const a=(Av(r)+(r.options.ruleSpaces?" ":"")).repeat(jz(r));return r.options.ruleSpaces?a.slice(0,-1):a}const Rv={blockquote:az,break:Cy,code:hz,definition:mz,emphasis:vv,hardBreak:Cy,heading:bz,html:xv,image:Sv,imageReference:kv,inlineCode:Ev,link:Cv,linkReference:Tv,list:Az,listItem:Rz,paragraph:Oz,root:Mz,strong:zv,text:Lz,thematicBreak:Uz};function Bz(){return{enter:{table:Hz,tableData:Ty,tableHeader:Ty,tableRow:Qz},exit:{codeText:Fz,table:qz,tableData:Wc,tableHeader:Wc,tableRow:Wc}}}function Hz(t){const l=t._align;this.enter({type:"table",align:l.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function qz(t){this.exit(t),this.data.inTable=void 0}function Qz(t){this.enter({type:"tableRow",children:[]},t)}function Wc(t){this.exit(t)}function Ty(t){this.enter({type:"tableCell",children:[]},t)}function Fz(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,Gz));const r=this.stack[this.stack.length-1];r.type,r.value=l,this.exit(t)}function Gz(t,l){return l==="|"?l:t}function Yz(t){const l=t||{},r=l.tableCellPadding,a=l.tablePipeAlign,o=l.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
39
39
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:m,tableRow:d}};function c(x,w,T,A){return p(y(x,T,A),x.align)}function d(x,w,T,A){const z=g(x,T,A),Q=p([z]);return Q.slice(0,Q.indexOf(`
|
|
40
|
-
`))}function m(x,w,T,A){const z=T.enter("tableCell"),Q=T.enter("phrasing"),j=T.containerPhrasing(x,{...A,before:s,after:s});return Q(),z(),j}function p(x,w){return lz(x,{align:w,alignDelimiters:a,padding:r,stringLength:o})}function y(x,w,T){const A=x.children;let z=-1;const Q=[],j=w.enter("table");for(;++z<A.length;)Q[z]=g(A[z],w,T);return j(),Q}function g(x,w,T){const A=x.children;let z=-1;const Q=[],j=w.enter("tableRow");for(;++z<A.length;)Q[z]=m(A[z],x,w,T);return j(),Q}function v(x,w,T){let A=Rv.inlineCode(x,w,T);return T.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function Yz(){return{exit:{taskListCheckValueChecked:Ay,taskListCheckValueUnchecked:Ay,paragraph:Xz}}}function Vz(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Zz}}}function Ay(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function Xz(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=l.children;let s=-1,c;for(;++s<o.length;){const d=o[s];if(d.type==="paragraph"){c=d;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function Zz(t,l,r,a){const o=t.children[0],s=typeof t.checked=="boolean"&&o&&o.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=r.createTracker(a);s&&d.move(c);let m=Rv.listItem(t,l,r,{...a,...d.current()});return s&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(y){return y+c}}function Iz(){return[TA(),ZA(),PA(),Uz(),Yz()]}function Kz(t){return{extensions:[AA(),IA(t),$A(),Gz(t),Vz()]}}const Jz={tokenize:nR,partial:!0},Ov={tokenize:lR,partial:!0},Dv={tokenize:iR,partial:!0},Mv={tokenize:rR,partial:!0},Pz={tokenize:aR,partial:!0},_v={name:"wwwAutolink",tokenize:eR,previous:Lv},Nv={name:"protocolAutolink",tokenize:tR,previous:jv},Jn={name:"emailAutolink",tokenize:Wz,previous:Uv},An={};function $z(){return{text:An}}let Il=48;for(;Il<123;)An[Il]=Jn,Il++,Il===58?Il=65:Il===91&&(Il=97);An[43]=Jn;An[45]=Jn;An[46]=Jn;An[95]=Jn;An[72]=[Jn,Nv];An[104]=[Jn,Nv];An[87]=[Jn,_v];An[119]=[Jn,_v];function Wz(t,l,r){const a=this;let o,s;return c;function c(g){return!Ef(g)||!Uv.call(a,a.previous)||rh(a.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return Ef(g)?(t.consume(g),d):g===64?(t.consume(g),m):r(g)}function m(g){return g===46?t.check(Pz,y,p)(g):g===45||g===95||xt(g)?(s=!0,t.consume(g),m):y(g)}function p(g){return t.consume(g),o=!0,m}function y(g){return s&&o&&Tt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(g)):r(g)}}function eR(t,l,r){const a=this;return o;function o(c){return c!==87&&c!==119||!Lv.call(a,a.previous)||rh(a.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Jz,t.attempt(Ov,t.attempt(Dv,s),r),r)(c))}function s(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(c)}}function tR(t,l,r){const a=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&jv.call(a,a.previous)&&!rh(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),t.consume(g),d):r(g)}function d(g){if(Tt(g)&&o.length<5)return o+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(g),m}return r(g)}function m(g){return g===47?(t.consume(g),s?p:(s=!0,m)):r(g)}function p(g){return g===null||Ju(g)||Ie(g)||$l(g)||ao(g)?r(g):t.attempt(Ov,t.attempt(Dv,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(g)}}function nR(t,l,r){let a=0;return o;function o(c){return(c===87||c===119)&&a<3?(a++,t.consume(c),o):c===46&&a===3?(t.consume(c),s):r(c)}function s(c){return c===null?r(c):l(c)}}function lR(t,l,r){let a,o,s;return c;function c(p){return p===46||p===95?t.check(Mv,m,d)(p):p===null||Ie(p)||$l(p)||p!==45&&ao(p)?m(p):(s=!0,t.consume(p),c)}function d(p){return p===95?a=!0:(o=a,a=void 0),t.consume(p),c}function m(p){return o||a||!s?r(p):l(p)}}function iR(t,l){let r=0,a=0;return o;function o(c){return c===40?(r++,t.consume(c),o):c===41&&a<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(Mv,l,s)(c):c===null||Ie(c)||$l(c)?l(c):(t.consume(c),o)}function s(c){return c===41&&a++,t.consume(c),o}}function rR(t,l,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),s):d===93?(t.consume(d),o):d===60||d===null||Ie(d)||$l(d)?l(d):r(d)}function o(d){return d===null||d===40||d===91||Ie(d)||$l(d)?l(d):a(d)}function s(d){return Tt(d)?c(d):r(d)}function c(d){return d===59?(t.consume(d),a):Tt(d)?(t.consume(d),c):r(d)}}function aR(t,l,r){return a;function a(s){return t.consume(s),o}function o(s){return xt(s)?r(s):l(s)}}function Lv(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ie(t)}function jv(t){return!Tt(t)}function Uv(t){return!(t===47||Ef(t))}function Ef(t){return t===43||t===45||t===46||t===95||xt(t)}function rh(t){let l=t.length,r=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const uR={tokenize:pR,partial:!0};function oR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:hR,continuation:{tokenize:dR},exit:mR}},text:{91:{name:"gfmFootnoteCall",tokenize:fR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sR,resolveTo:cR}}}}function sR(t,l,r){const a=this;let o=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;o--;){const m=a.events[o][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!c||!c._balanced)return r(m);const p=gn(a.sliceSerialize({start:c.end,end:a.now()}));return p.codePointAt(0)!==94||!s.includes(p.slice(1))?r(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),l(m))}}function cR(t,l){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},d=[t[r+1],t[r+2],["enter",a,l],t[r+3],t[r+4],["enter",o,l],["exit",o,l],["enter",s,l],["enter",c,l],["exit",c,l],["exit",s,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(r,t.length-r+1,...d),t}function fR(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,c;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),m}function m(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(g){if(s>999||g===93&&!c||g===null||g===91||Ie(g))return r(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(gn(a.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):r(g)}return Ie(g)||(c=!0),s++,t.consume(g),g===92?y:p}function y(g){return g===91||g===92||g===93?(t.consume(g),s++,p):p(g)}}function hR(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,c=0,d;return m;function m(w){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(w){return w===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(w)}function y(w){if(c>999||w===93&&!d||w===null||w===91||Ie(w))return r(w);if(w===93){t.exit("chunkString");const T=t.exit("gfmFootnoteDefinitionLabelString");return s=gn(a.sliceSerialize(T)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Ie(w)||(d=!0),c++,t.consume(w),w===92?g:y}function g(w){return w===91||w===92||w===93?(t.consume(w),c++,y):y(w)}function v(w){return w===58?(t.enter("definitionMarker"),t.consume(w),t.exit("definitionMarker"),o.includes(s)||o.push(s),Ne(t,x,"gfmFootnoteDefinitionWhitespace")):r(w)}function x(w){return l(w)}}function dR(t,l,r){return t.check(pa,l,t.attempt(uR,l,r))}function mR(t){t.exit("gfmFootnoteDefinition")}function pR(t,l,r){const a=this;return Ne(t,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(s):r(s)}}function gR(t){let r=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(c,d){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},g={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},v=[["enter",y,d],["enter",c[p][1],d],["exit",c[p][1],d],["enter",g,d]],x=d.parser.constructs.insideSpan.null;x&&Jt(v,v.length,0,uo(x,c.slice(p+1,m),d)),Jt(v,v.length,0,[["exit",g,d],["enter",c[m][1],d],["exit",c[m][1],d],["exit",y,d]]),Jt(c,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function s(c,d,m){const p=this.previous,y=this.events;let g=0;return v;function v(w){return p===126&&y[y.length-1][1].type!=="characterEscape"?m(w):(c.enter("strikethroughSequenceTemporary"),x(w))}function x(w){const T=Xi(p);if(w===126)return g>1?m(w):(c.consume(w),g++,x);if(g<2&&!r)return m(w);const A=c.exit("strikethroughSequenceTemporary"),z=Xi(w);return A._open=!z||z===2&&!!T,A._close=!T||T===2&&!!z,d(w)}}}class yR{constructor(){this.map=[]}add(l,r,a){bR(this,l,r,a)}consume(l){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(l.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),l.length=this.map[r][0];a.push(l.slice()),l.length=0;let o=a.pop();for(;o;){for(const s of o)l.push(s);o=a.pop()}this.map.length=0}}function bR(t,l,r,a){let o=0;if(!(r===0&&a.length===0)){for(;o<t.map.length;){if(t.map[o][0]===l){t.map[o][1]+=r,t.map[o][2].push(...a);return}o+=1}t.map.push([l,r,a])}}function vR(t,l){let r=!1;const a=[];for(;l<t.length;){const o=t[l];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const s=a.length-1;a[s]=a[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);l+=1}return a}function xR(){return{flow:{null:{name:"table",tokenize:SR,resolveAll:kR}}}}function SR(t,l,r){const a=this;let o=0,s=0,c;return d;function d(B){let ie=a.events.length-1;for(;ie>-1;){const ue=a.events[ie][1].type;if(ue==="lineEnding"||ue==="linePrefix")ie--;else break}const te=ie>-1?a.events[ie][1].type:null,ye=te==="tableHead"||te==="tableRow"?q:m;return ye===q&&a.parser.lazy[a.now().line]?r(B):ye(B)}function m(B){return t.enter("tableHead"),t.enter("tableRow"),p(B)}function p(B){return B===124||(c=!0,s+=1),y(B)}function y(B){return B===null?r(B):pe(B)?s>1?(s=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(B),t.exit("lineEnding"),x):r(B):Oe(B)?Ne(t,y,"whitespace")(B):(s+=1,c&&(c=!1,o+=1),B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),g(B)))}function g(B){return B===null||B===124||Ie(B)?(t.exit("data"),y(B)):(t.consume(B),B===92?v:g)}function v(B){return B===92||B===124?(t.consume(B),g):g(B)}function x(B){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(B):(t.enter("tableDelimiterRow"),c=!1,Oe(B)?Ne(t,w,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):w(B))}function w(B){return B===45||B===58?A(B):B===124?(c=!0,t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),T):ee(B)}function T(B){return Oe(B)?Ne(t,A,"whitespace")(B):A(B)}function A(B){return B===58?(s+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),z):B===45?(s+=1,z(B)):B===null||pe(B)?W(B):ee(B)}function z(B){return B===45?(t.enter("tableDelimiterFiller"),Q(B)):ee(B)}function Q(B){return B===45?(t.consume(B),Q):B===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),j):(t.exit("tableDelimiterFiller"),j(B))}function j(B){return Oe(B)?Ne(t,W,"whitespace")(B):W(B)}function W(B){return B===124?w(B):B===null||pe(B)?!c||o!==s?ee(B):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(B)):ee(B)}function ee(B){return r(B)}function q(B){return t.enter("tableRow"),J(B)}function J(B){return B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),J):B===null||pe(B)?(t.exit("tableRow"),l(B)):Oe(B)?Ne(t,J,"whitespace")(B):(t.enter("data"),V(B))}function V(B){return B===null||B===124||Ie(B)?(t.exit("data"),J(B)):(t.consume(B),B===92?ae:V)}function ae(B){return B===92||B===124?(t.consume(B),V):V(B)}}function kR(t,l){let r=-1,a=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],d=!1,m=0,p,y,g;const v=new yR;for(;++r<t.length;){const x=t[r],w=x[1];x[0]==="enter"?w.type==="tableHead"?(d=!1,m!==0&&(zy(v,l,m,p,y),y=void 0,m=0),p={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(r,0,[["enter",p,l]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(a=!0,g=void 0,s=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(r,0,[["enter",y,l]])),o=w.type==="tableDelimiterRow"?2:y?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=Gu(v,l,s,o,void 0,g),s=[0,0,0,0]),c[2]=r)):w.type==="tableCellDivider"&&(a?a=!1:(s[1]!==0&&(c[0]=c[1],g=Gu(v,l,s,o,void 0,g)),s=c,c=[s[1],r,0,0])):w.type==="tableHead"?(d=!0,m=r):w.type==="tableRow"||w.type==="tableDelimiterRow"?(m=r,s[1]!==0?(c[0]=c[1],g=Gu(v,l,s,o,r,g)):c[1]!==0&&(g=Gu(v,l,c,o,r,g)),o=0):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=r)}for(m!==0&&zy(v,l,m,p,y),v.consume(l.events),r=-1;++r<l.events.length;){const x=l.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=vR(l.events,r))}return t}function Gu(t,l,r,a,o,s){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(s.end=Object.assign({},Vi(l.events,r[0])),t.add(r[0],0,[["exit",s,l]]));const m=Vi(l.events,r[1]);if(s={type:c,start:Object.assign({},m),end:Object.assign({},m)},t.add(r[1],0,[["enter",s,l]]),r[2]!==0){const p=Vi(l.events,r[2]),y=Vi(l.events,r[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,l]]),a!==2){const v=l.events[r[2]],x=l.events[r[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const w=r[2]+1,T=r[3]-r[2]-1;t.add(w,T,[])}}t.add(r[3]+1,0,[["exit",g,l]])}return o!==void 0&&(s.end=Object.assign({},Vi(l.events,o)),t.add(o,0,[["exit",s,l]]),s=void 0),s}function zy(t,l,r,a,o){const s=[],c=Vi(l.events,r);o&&(o.end=Object.assign({},c),s.push(["exit",o,l])),a.end=Object.assign({},c),s.push(["exit",a,l]),t.add(r+1,0,s)}function Vi(t,l){const r=t[l],a=r[0]==="enter"?"start":"end";return r[1][a]}const ER={name:"tasklistCheck",tokenize:CR};function wR(){return{text:{91:ER}}}function CR(t,l,r){const a=this;return o;function o(m){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),s)}function s(m){return Ie(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),c):r(m)}function c(m){return m===93?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(m)}function d(m){return pe(m)?l(m):Oe(m)?t.check({tokenize:TR},l,r)(m):r(m)}}function TR(t,l,r){return Ne(t,a,"whitespace");function a(o){return o===null?r(o):l(o)}}function AR(t){return Xb([$z(),oR(),gR(t),xR(),wR()])}const zR={};function RR(t){const l=this,r=t||zR,a=l.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(AR(r)),s.push(Iz()),c.push(Kz(r))}function Ry({children:t}){return H.jsx("div",{className:"md",children:H.jsx(mA,{remarkPlugins:[RR,CA],children:t})})}function OR({sessionId:t}){const{entries:l,loading:r,error:a}=lE(t),o=M.useRef(null),s=M.useRef(!0),c=()=>{const d=o.current;d&&(s.current=d.scrollHeight-d.scrollTop-d.clientHeight<120)};return M.useLayoutEffect(()=>{const d=o.current;d&&s.current&&(d.scrollTop=d.scrollHeight)},[l]),M.useEffect(()=>{s.current=!0},[t]),t?H.jsx("div",{ref:o,onScroll:c,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:r&&l.length===0?H.jsx(ro,{label:"Loading transcript…"}):a&&l.length===0?H.jsx(Tl,{children:a}):l.length===0?H.jsx(Tl,{children:"No messages yet."}):H.jsx("div",{className:"flex min-w-0 flex-col gap-2.5",children:l.map(d=>H.jsx(DR,{e:d},`${d.rowid}-${d.id}`))})}):H.jsx(Tl,{children:"No active session in this workspace."})}function DR({e:t}){return t.role==="user"?H.jsx("div",{className:"flex justify-end",children:H.jsxs(Oy,{className:bn("max-w-[85%] bg-accent-soft text-text",t.queued&&"opacity-60"),children:[t.queued?H.jsx(MR,{children:"queued"}):null,H.jsx(Ry,{children:t.text})]})}):t.role==="tool"?H.jsx("div",{className:"overflow-hidden rounded-xl border border-border-soft bg-surface/60 px-3 py-2",children:H.jsx("pre",{className:"whitespace-pre-wrap font-mono text-[12px] leading-relaxed text-muted [overflow-wrap:anywhere]",children:t.text})}):t.role==="system"?H.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:t.text}):H.jsx("div",{className:"flex justify-start",children:H.jsx(Oy,{className:bn("max-w-[92%] bg-surface",t.role==="thinking"&&"italic text-muted"),children:H.jsx(Ry,{children:t.text})})})}function Oy({children:t,className:l}){return H.jsx("div",{className:bn("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",l),children:t})}function MR({children:t}){return H.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:t})}function _R(){const{workspaceId:t}=BS(),[l,r]=M.useState(!1),[a,o]=M.useState(null),{data:s,isLoading:c}=hb(),{data:d}=tE(t);M.useEffect(()=>o(null),[t]);const m=s?.workspaces.find(x=>x.id===t),p=s?.actuator;if(!m)return H.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[H.jsx(hf,{title:"Session",menu:!0}),c?H.jsx(ro,{}):H.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const y=d?.sessions??[],g=(a&&y.some(x=>x.id===a)?a:null)??m.active_session_id??y[0]?.id??null,v=[m.repo_name,m.branch,Ob(m.model)].filter(Boolean).join(" · ");return H.jsxs("div",{className:"flex h-full min-w-0 overflow-hidden",children:[H.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[H.jsx(hf,{title:zb(m),subtitle:v,menu:!0,right:H.jsx("button",{type:"button",onClick:()=>r(x=>!x),"aria-label":"Toggle diff panel","aria-pressed":l,className:bn("flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",l&&"bg-surface-2 text-text"),children:H.jsx(Gk,{size:19})})}),y.length>1?H.jsx(NR,{sessions:y,activeId:g,onSelect:o}):null,H.jsx(OR,{sessionId:g}),H.jsx($E,{sessionId:g,workspaceId:m.id,actuator:p})]}),l?H.jsx(LR,{workspaceId:m.id,onClose:()=>r(!1)}):null]})}function NR({sessions:t,activeId:l,onSelect:r}){return H.jsx("nav",{className:"flex shrink-0 gap-1 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:t.map(a=>H.jsxs("button",{type:"button",onClick:()=>r(a.id),className:bn("pill flex shrink-0 items-center gap-1.5",a.id===l&&"pill-active"),children:[a.status==="working"?H.jsx("span",{className:"dot dot-working size-1.5!"}):null,H.jsx("span",{className:"max-w-36 truncate",children:a.title||"Untitled"}),a.unread_count?H.jsx(Db,{children:a.unread_count}):null]},a.id))})}function LR({workspaceId:t,onClose:l}){return H.jsxs("aside",{className:"fixed inset-0 z-40 flex flex-col bg-bg lg:static lg:z-auto lg:w-[380px] lg:shrink-0 lg:border-l lg:border-border-soft xl:w-[460px]",children:[H.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[H.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Diff"}),H.jsx("button",{type:"button",onClick:l,"aria-label":"Close diff panel",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:H.jsx(cb,{size:20})})]}),H.jsx(tw,{workspaceId:t})]})}function jR(){return H.jsxs("div",{className:"pt-safe pb-safe flex h-full flex-col items-center justify-center gap-5 px-8 text-center",children:[H.jsx("img",{src:"/icon.svg",alt:"",className:"size-20 rounded-3xl"}),H.jsxs("div",{children:[H.jsx("h1",{className:"text-xl font-semibold",children:"Conductor Remote"}),H.jsx("p",{className:"mt-1 text-sm text-muted",children:"Phone control panel for your local agents"})]}),H.jsxs("p",{className:"max-w-xs text-sm leading-relaxed text-muted",children:["Open the URL the relay printed on startup — it carries your access token in the address (",H.jsx("span",{className:"font-mono text-faint",children:"/#token=…"}),"). Then use"," ",H.jsx("b",{className:"text-text",children:"Add to Home Screen"})," to install it."]})]})}function UR({selectedId:t}){const l=Nf(),r=Kn(p=>p.setSidebarOpen),{data:a,isLoading:o,isError:s,error:c}=hb(),d=a?.workspaces??[],m=p=>{l(`/w/${p}`),r(!1)};return H.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[H.jsx(hf,{title:"Workspaces",subtitle:d.length?`${d.length} active`:void 0,right:H.jsx("button",{type:"button",onClick:()=>r(!1),"aria-label":"Close workspaces",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:H.jsx(cb,{size:20})})}),H.jsx("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:o&&!a?H.jsx(ro,{label:"Loading workspaces…"}):s?H.jsxs(Tl,{children:[c?.message,H.jsx("br",{}),H.jsx("br",{}),"Check the relay is running and the token is correct."]}):d.length===0?H.jsx(Tl,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):H.jsx("ul",{className:"flex flex-col gap-2",children:d.map(p=>H.jsx("li",{className:"fade-in",children:H.jsx("button",{type:"button",className:bn("card w-full",p.id===t&&"border-accent/50 bg-surface-2"),onClick:()=>m(p.id),children:H.jsx(BR,{w:p})})},p.id))})})]})}function BR({w:t}){const l=Rb(t),r=Ob(t.model),a=t.context_used_percent;return H.jsxs(H.Fragment,{children:[H.jsx(WE,{status:l,className:"mt-1.5 self-start"}),H.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:zb(t)}),t.pinned_at?H.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,t.unread?H.jsx(Db,{children:t.unread}):null,H.jsx("span",{className:"shrink-0 text-xs capitalize text-muted",children:JE(t)})]}),H.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[t.repo_name?H.jsx("span",{className:"shrink-0 font-mono text-faint",children:t.repo_name}):null,t.branch?H.jsx(Hg,{className:"min-w-0 flex-1 truncate",children:t.branch}):null]}),H.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[r?H.jsx(Hg,{children:r}):null,typeof a=="number"&&a>0?H.jsxs("span",{className:"shrink-0 text-faint",children:[Math.round(a),"% ctx"]}):null,H.jsx("span",{className:"ml-auto shrink-0 pl-2 text-[11px] text-faint",children:PE(t.updated_at)})]})]})]})}function HR(){return Kn(l=>l.token)?H.jsxs(tk,{children:[H.jsxs($r,{element:H.jsx(qR,{}),children:[H.jsx($r,{index:!0,element:H.jsx(QR,{})}),H.jsx($r,{path:"/w/:workspaceId",element:H.jsx(_R,{})})]}),H.jsx($r,{path:"*",element:H.jsx($S,{to:"/",replace:!0})})]}):H.jsx(jR,{})}function qR(){const t=NS("/w/:workspaceId"),l=Kn(a=>a.sidebarOpen),r=Kn(a=>a.setSidebarOpen);return H.jsxs("div",{className:"flex h-full overflow-hidden",children:[l?H.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>r(!1),"aria-hidden":!0}):null,H.jsx("aside",{className:bn("fixed inset-y-0 left-0 z-50 flex w-[85%] max-w-80 flex-col border-r border-border-soft bg-bg transition-transform duration-200 ease-out","md:static md:z-auto md:w-72 md:max-w-none md:shrink-0 md:translate-x-0 md:transition-none lg:w-80",l?"translate-x-0":"-translate-x-full"),children:H.jsx(UR,{selectedId:t?.params.workspaceId})}),H.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:H.jsx(WS,{})})]})}function QR(){const t=Kn(l=>l.setSidebarOpen);return H.jsxs("div",{className:"grid h-full place-items-center",children:[H.jsx("button",{type:"button",onClick:()=>t(!0),className:"pill pill-active md:hidden",children:"Browse workspaces"}),H.jsx("span",{className:"hidden text-sm text-muted md:block",children:"Select a workspace"})]})}ix({immediate:!0});const FR=new Ox({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),Bv=document.getElementById("root");if(!Bv)throw new Error("#root missing");Px.createRoot(Bv).render(H.jsx(M.StrictMode,{children:H.jsx(_x,{client:FR,children:H.jsx(Ck,{children:H.jsx(HR,{})})})}));
|
|
40
|
+
`))}function m(x,w,T,A){const z=T.enter("tableCell"),Q=T.enter("phrasing"),j=T.containerPhrasing(x,{...A,before:s,after:s});return Q(),z(),j}function p(x,w){return iz(x,{align:w,alignDelimiters:a,padding:r,stringLength:o})}function y(x,w,T){const A=x.children;let z=-1;const Q=[],j=w.enter("table");for(;++z<A.length;)Q[z]=g(A[z],w,T);return j(),Q}function g(x,w,T){const A=x.children;let z=-1;const Q=[],j=w.enter("tableRow");for(;++z<A.length;)Q[z]=m(A[z],x,w,T);return j(),Q}function v(x,w,T){let A=Rv.inlineCode(x,w,T);return T.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function Vz(){return{exit:{taskListCheckValueChecked:Ay,taskListCheckValueUnchecked:Ay,paragraph:Zz}}}function Xz(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Iz}}}function Ay(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function Zz(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=l.children;let s=-1,c;for(;++s<o.length;){const d=o[s];if(d.type==="paragraph"){c=d;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function Iz(t,l,r,a){const o=t.children[0],s=typeof t.checked=="boolean"&&o&&o.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=r.createTracker(a);s&&d.move(c);let m=Rv.listItem(t,l,r,{...a,...d.current()});return s&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(y){return y+c}}function Kz(){return[AA(),IA(),$A(),Bz(),Vz()]}function Jz(t){return{extensions:[zA(),KA(t),WA(),Yz(t),Xz()]}}const Pz={tokenize:lR,partial:!0},Ov={tokenize:iR,partial:!0},Dv={tokenize:rR,partial:!0},Mv={tokenize:aR,partial:!0},$z={tokenize:uR,partial:!0},_v={name:"wwwAutolink",tokenize:tR,previous:Lv},Nv={name:"protocolAutolink",tokenize:nR,previous:jv},Jn={name:"emailAutolink",tokenize:eR,previous:Uv},An={};function Wz(){return{text:An}}let Il=48;for(;Il<123;)An[Il]=Jn,Il++,Il===58?Il=65:Il===91&&(Il=97);An[43]=Jn;An[45]=Jn;An[46]=Jn;An[95]=Jn;An[72]=[Jn,Nv];An[104]=[Jn,Nv];An[87]=[Jn,_v];An[119]=[Jn,_v];function eR(t,l,r){const a=this;let o,s;return c;function c(g){return!Ef(g)||!Uv.call(a,a.previous)||rh(a.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return Ef(g)?(t.consume(g),d):g===64?(t.consume(g),m):r(g)}function m(g){return g===46?t.check($z,y,p)(g):g===45||g===95||xt(g)?(s=!0,t.consume(g),m):y(g)}function p(g){return t.consume(g),o=!0,m}function y(g){return s&&o&&Tt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(g)):r(g)}}function tR(t,l,r){const a=this;return o;function o(c){return c!==87&&c!==119||!Lv.call(a,a.previous)||rh(a.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Pz,t.attempt(Ov,t.attempt(Dv,s),r),r)(c))}function s(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(c)}}function nR(t,l,r){const a=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&jv.call(a,a.previous)&&!rh(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),t.consume(g),d):r(g)}function d(g){if(Tt(g)&&o.length<5)return o+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(g),m}return r(g)}function m(g){return g===47?(t.consume(g),s?p:(s=!0,m)):r(g)}function p(g){return g===null||Ju(g)||Ie(g)||$l(g)||ao(g)?r(g):t.attempt(Ov,t.attempt(Dv,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(g)}}function lR(t,l,r){let a=0;return o;function o(c){return(c===87||c===119)&&a<3?(a++,t.consume(c),o):c===46&&a===3?(t.consume(c),s):r(c)}function s(c){return c===null?r(c):l(c)}}function iR(t,l,r){let a,o,s;return c;function c(p){return p===46||p===95?t.check(Mv,m,d)(p):p===null||Ie(p)||$l(p)||p!==45&&ao(p)?m(p):(s=!0,t.consume(p),c)}function d(p){return p===95?a=!0:(o=a,a=void 0),t.consume(p),c}function m(p){return o||a||!s?r(p):l(p)}}function rR(t,l){let r=0,a=0;return o;function o(c){return c===40?(r++,t.consume(c),o):c===41&&a<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(Mv,l,s)(c):c===null||Ie(c)||$l(c)?l(c):(t.consume(c),o)}function s(c){return c===41&&a++,t.consume(c),o}}function aR(t,l,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),s):d===93?(t.consume(d),o):d===60||d===null||Ie(d)||$l(d)?l(d):r(d)}function o(d){return d===null||d===40||d===91||Ie(d)||$l(d)?l(d):a(d)}function s(d){return Tt(d)?c(d):r(d)}function c(d){return d===59?(t.consume(d),a):Tt(d)?(t.consume(d),c):r(d)}}function uR(t,l,r){return a;function a(s){return t.consume(s),o}function o(s){return xt(s)?r(s):l(s)}}function Lv(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ie(t)}function jv(t){return!Tt(t)}function Uv(t){return!(t===47||Ef(t))}function Ef(t){return t===43||t===45||t===46||t===95||xt(t)}function rh(t){let l=t.length,r=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const oR={tokenize:gR,partial:!0};function sR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:dR,continuation:{tokenize:mR},exit:pR}},text:{91:{name:"gfmFootnoteCall",tokenize:hR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:cR,resolveTo:fR}}}}function cR(t,l,r){const a=this;let o=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;o--;){const m=a.events[o][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!c||!c._balanced)return r(m);const p=gn(a.sliceSerialize({start:c.end,end:a.now()}));return p.codePointAt(0)!==94||!s.includes(p.slice(1))?r(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),l(m))}}function fR(t,l){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},d=[t[r+1],t[r+2],["enter",a,l],t[r+3],t[r+4],["enter",o,l],["exit",o,l],["enter",s,l],["enter",c,l],["exit",c,l],["exit",s,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(r,t.length-r+1,...d),t}function hR(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,c;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),m}function m(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(g){if(s>999||g===93&&!c||g===null||g===91||Ie(g))return r(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(gn(a.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):r(g)}return Ie(g)||(c=!0),s++,t.consume(g),g===92?y:p}function y(g){return g===91||g===92||g===93?(t.consume(g),s++,p):p(g)}}function dR(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,c=0,d;return m;function m(w){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(w){return w===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(w)}function y(w){if(c>999||w===93&&!d||w===null||w===91||Ie(w))return r(w);if(w===93){t.exit("chunkString");const T=t.exit("gfmFootnoteDefinitionLabelString");return s=gn(a.sliceSerialize(T)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Ie(w)||(d=!0),c++,t.consume(w),w===92?g:y}function g(w){return w===91||w===92||w===93?(t.consume(w),c++,y):y(w)}function v(w){return w===58?(t.enter("definitionMarker"),t.consume(w),t.exit("definitionMarker"),o.includes(s)||o.push(s),Ne(t,x,"gfmFootnoteDefinitionWhitespace")):r(w)}function x(w){return l(w)}}function mR(t,l,r){return t.check(pa,l,t.attempt(oR,l,r))}function pR(t){t.exit("gfmFootnoteDefinition")}function gR(t,l,r){const a=this;return Ne(t,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(s):r(s)}}function yR(t){let r=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(c,d){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},g={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},v=[["enter",y,d],["enter",c[p][1],d],["exit",c[p][1],d],["enter",g,d]],x=d.parser.constructs.insideSpan.null;x&&Jt(v,v.length,0,uo(x,c.slice(p+1,m),d)),Jt(v,v.length,0,[["exit",g,d],["enter",c[m][1],d],["exit",c[m][1],d],["exit",y,d]]),Jt(c,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function s(c,d,m){const p=this.previous,y=this.events;let g=0;return v;function v(w){return p===126&&y[y.length-1][1].type!=="characterEscape"?m(w):(c.enter("strikethroughSequenceTemporary"),x(w))}function x(w){const T=Xi(p);if(w===126)return g>1?m(w):(c.consume(w),g++,x);if(g<2&&!r)return m(w);const A=c.exit("strikethroughSequenceTemporary"),z=Xi(w);return A._open=!z||z===2&&!!T,A._close=!T||T===2&&!!z,d(w)}}}class bR{constructor(){this.map=[]}add(l,r,a){vR(this,l,r,a)}consume(l){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(l.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),l.length=this.map[r][0];a.push(l.slice()),l.length=0;let o=a.pop();for(;o;){for(const s of o)l.push(s);o=a.pop()}this.map.length=0}}function vR(t,l,r,a){let o=0;if(!(r===0&&a.length===0)){for(;o<t.map.length;){if(t.map[o][0]===l){t.map[o][1]+=r,t.map[o][2].push(...a);return}o+=1}t.map.push([l,r,a])}}function xR(t,l){let r=!1;const a=[];for(;l<t.length;){const o=t[l];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const s=a.length-1;a[s]=a[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);l+=1}return a}function SR(){return{flow:{null:{name:"table",tokenize:kR,resolveAll:ER}}}}function kR(t,l,r){const a=this;let o=0,s=0,c;return d;function d(B){let ie=a.events.length-1;for(;ie>-1;){const ue=a.events[ie][1].type;if(ue==="lineEnding"||ue==="linePrefix")ie--;else break}const te=ie>-1?a.events[ie][1].type:null,ye=te==="tableHead"||te==="tableRow"?q:m;return ye===q&&a.parser.lazy[a.now().line]?r(B):ye(B)}function m(B){return t.enter("tableHead"),t.enter("tableRow"),p(B)}function p(B){return B===124||(c=!0,s+=1),y(B)}function y(B){return B===null?r(B):pe(B)?s>1?(s=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(B),t.exit("lineEnding"),x):r(B):Oe(B)?Ne(t,y,"whitespace")(B):(s+=1,c&&(c=!1,o+=1),B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),g(B)))}function g(B){return B===null||B===124||Ie(B)?(t.exit("data"),y(B)):(t.consume(B),B===92?v:g)}function v(B){return B===92||B===124?(t.consume(B),g):g(B)}function x(B){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(B):(t.enter("tableDelimiterRow"),c=!1,Oe(B)?Ne(t,w,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):w(B))}function w(B){return B===45||B===58?A(B):B===124?(c=!0,t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),T):ee(B)}function T(B){return Oe(B)?Ne(t,A,"whitespace")(B):A(B)}function A(B){return B===58?(s+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),z):B===45?(s+=1,z(B)):B===null||pe(B)?W(B):ee(B)}function z(B){return B===45?(t.enter("tableDelimiterFiller"),Q(B)):ee(B)}function Q(B){return B===45?(t.consume(B),Q):B===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),j):(t.exit("tableDelimiterFiller"),j(B))}function j(B){return Oe(B)?Ne(t,W,"whitespace")(B):W(B)}function W(B){return B===124?w(B):B===null||pe(B)?!c||o!==s?ee(B):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(B)):ee(B)}function ee(B){return r(B)}function q(B){return t.enter("tableRow"),J(B)}function J(B){return B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),J):B===null||pe(B)?(t.exit("tableRow"),l(B)):Oe(B)?Ne(t,J,"whitespace")(B):(t.enter("data"),V(B))}function V(B){return B===null||B===124||Ie(B)?(t.exit("data"),J(B)):(t.consume(B),B===92?ae:V)}function ae(B){return B===92||B===124?(t.consume(B),V):V(B)}}function ER(t,l){let r=-1,a=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],d=!1,m=0,p,y,g;const v=new bR;for(;++r<t.length;){const x=t[r],w=x[1];x[0]==="enter"?w.type==="tableHead"?(d=!1,m!==0&&(zy(v,l,m,p,y),y=void 0,m=0),p={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(r,0,[["enter",p,l]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(a=!0,g=void 0,s=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(r,0,[["enter",y,l]])),o=w.type==="tableDelimiterRow"?2:y?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=Gu(v,l,s,o,void 0,g),s=[0,0,0,0]),c[2]=r)):w.type==="tableCellDivider"&&(a?a=!1:(s[1]!==0&&(c[0]=c[1],g=Gu(v,l,s,o,void 0,g)),s=c,c=[s[1],r,0,0])):w.type==="tableHead"?(d=!0,m=r):w.type==="tableRow"||w.type==="tableDelimiterRow"?(m=r,s[1]!==0?(c[0]=c[1],g=Gu(v,l,s,o,r,g)):c[1]!==0&&(g=Gu(v,l,c,o,r,g)),o=0):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=r)}for(m!==0&&zy(v,l,m,p,y),v.consume(l.events),r=-1;++r<l.events.length;){const x=l.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=xR(l.events,r))}return t}function Gu(t,l,r,a,o,s){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(s.end=Object.assign({},Vi(l.events,r[0])),t.add(r[0],0,[["exit",s,l]]));const m=Vi(l.events,r[1]);if(s={type:c,start:Object.assign({},m),end:Object.assign({},m)},t.add(r[1],0,[["enter",s,l]]),r[2]!==0){const p=Vi(l.events,r[2]),y=Vi(l.events,r[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,l]]),a!==2){const v=l.events[r[2]],x=l.events[r[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const w=r[2]+1,T=r[3]-r[2]-1;t.add(w,T,[])}}t.add(r[3]+1,0,[["exit",g,l]])}return o!==void 0&&(s.end=Object.assign({},Vi(l.events,o)),t.add(o,0,[["exit",s,l]]),s=void 0),s}function zy(t,l,r,a,o){const s=[],c=Vi(l.events,r);o&&(o.end=Object.assign({},c),s.push(["exit",o,l])),a.end=Object.assign({},c),s.push(["exit",a,l]),t.add(r+1,0,s)}function Vi(t,l){const r=t[l],a=r[0]==="enter"?"start":"end";return r[1][a]}const wR={name:"tasklistCheck",tokenize:TR};function CR(){return{text:{91:wR}}}function TR(t,l,r){const a=this;return o;function o(m){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),s)}function s(m){return Ie(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),c):r(m)}function c(m){return m===93?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(m)}function d(m){return pe(m)?l(m):Oe(m)?t.check({tokenize:AR},l,r)(m):r(m)}}function AR(t,l,r){return Ne(t,a,"whitespace");function a(o){return o===null?r(o):l(o)}}function zR(t){return Xb([Wz(),sR(),yR(t),SR(),CR()])}const RR={};function OR(t){const l=this,r=t||RR,a=l.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(zR(r)),s.push(Kz()),c.push(Jz(r))}function Ry({children:t}){return H.jsx("div",{className:"md",children:H.jsx(pA,{remarkPlugins:[OR,TA],children:t})})}function DR({sessionId:t}){const{entries:l,loading:r,error:a}=lE(t),o=M.useRef(null),s=M.useRef(!0),c=()=>{const d=o.current;d&&(s.current=d.scrollHeight-d.scrollTop-d.clientHeight<120)};return M.useLayoutEffect(()=>{const d=o.current;d&&s.current&&(d.scrollTop=d.scrollHeight)},[l]),M.useEffect(()=>{s.current=!0},[t]),t?H.jsx("div",{ref:o,onScroll:c,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:r&&l.length===0?H.jsx(ro,{label:"Loading transcript…"}):a&&l.length===0?H.jsx(Tl,{children:a}):l.length===0?H.jsx(Tl,{children:"No messages yet."}):H.jsx("div",{className:"flex min-w-0 flex-col gap-2.5",children:l.map(d=>H.jsx(MR,{e:d},`${d.rowid}-${d.id}`))})}):H.jsx(Tl,{children:"No active session in this workspace."})}function MR({e:t}){return t.role==="user"?H.jsx("div",{className:"flex justify-end",children:H.jsxs(Oy,{className:bn("max-w-[85%] bg-accent-soft text-text",t.queued&&"opacity-60"),children:[t.queued?H.jsx(_R,{children:"queued"}):null,H.jsx(Ry,{children:t.text})]})}):t.role==="tool"?H.jsx("div",{className:"overflow-hidden rounded-xl border border-border-soft bg-surface/60 px-3 py-2",children:H.jsx("pre",{className:"whitespace-pre-wrap font-mono text-[12px] leading-relaxed text-muted [overflow-wrap:anywhere]",children:t.text})}):t.role==="system"?H.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:t.text}):H.jsx("div",{className:"flex justify-start",children:H.jsx(Oy,{className:bn("max-w-[92%] bg-surface",t.role==="thinking"&&"italic text-muted"),children:H.jsx(Ry,{children:t.text})})})}function Oy({children:t,className:l}){return H.jsx("div",{className:bn("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",l),children:t})}function _R({children:t}){return H.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:t})}function NR(){const{workspaceId:t}=BS(),[l,r]=M.useState(!1),[a,o]=M.useState(null),{data:s,isLoading:c}=hb(),{data:d}=tE(t);M.useEffect(()=>o(null),[t]);const m=s?.workspaces.find(x=>x.id===t),p=s?.actuator;if(!m)return H.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[H.jsx(hf,{title:"Session",menu:!0}),c?H.jsx(ro,{}):H.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const y=d?.sessions??[],g=(a&&y.some(x=>x.id===a)?a:null)??m.active_session_id??y[0]?.id??null,v=[m.repo_name,m.branch,Ob(m.model)].filter(Boolean).join(" · ");return H.jsxs("div",{className:"flex h-full min-w-0 overflow-hidden",children:[H.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[H.jsx(hf,{title:zb(m),subtitle:v,menu:!0,right:H.jsx("button",{type:"button",onClick:()=>r(x=>!x),"aria-label":"Toggle diff panel","aria-pressed":l,className:bn("flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",l&&"bg-surface-2 text-text"),children:H.jsx(Gk,{size:19})})}),y.length>1?H.jsx(LR,{sessions:y,activeId:g,onSelect:o}):null,H.jsx(DR,{sessionId:g}),H.jsx(WE,{sessionId:g,workspaceId:m.id,actuator:p})]}),l?H.jsx(jR,{workspaceId:m.id,onClose:()=>r(!1)}):null]})}function LR({sessions:t,activeId:l,onSelect:r}){return H.jsx("nav",{className:"flex shrink-0 gap-1 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:t.map(a=>H.jsxs("button",{type:"button",onClick:()=>r(a.id),className:bn("pill flex shrink-0 items-center gap-1.5",a.id===l&&"pill-active"),children:[a.status==="working"?H.jsx("span",{className:"dot dot-working size-1.5!"}):null,H.jsx("span",{className:"max-w-36 truncate",children:a.title||"Untitled"}),a.unread_count?H.jsx(Db,{children:a.unread_count}):null]},a.id))})}function jR({workspaceId:t,onClose:l}){return H.jsxs("aside",{className:"fixed inset-0 z-40 flex flex-col bg-bg lg:static lg:z-auto lg:w-[380px] lg:shrink-0 lg:border-l lg:border-border-soft xl:w-[460px]",children:[H.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[H.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Diff"}),H.jsx("button",{type:"button",onClick:l,"aria-label":"Close diff panel",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:H.jsx(cb,{size:20})})]}),H.jsx(nw,{workspaceId:t})]})}function UR(){return H.jsxs("div",{className:"pt-safe pb-safe flex h-full flex-col items-center justify-center gap-5 px-8 text-center",children:[H.jsx("img",{src:"/icon.svg",alt:"",className:"size-20 rounded-3xl"}),H.jsxs("div",{children:[H.jsx("h1",{className:"text-xl font-semibold",children:"Conductor Remote"}),H.jsx("p",{className:"mt-1 text-sm text-muted",children:"Phone control panel for your local agents"})]}),H.jsxs("p",{className:"max-w-xs text-sm leading-relaxed text-muted",children:["Open the URL the relay printed on startup — it carries your access token in the address (",H.jsx("span",{className:"font-mono text-faint",children:"/#token=…"}),"). Then use"," ",H.jsx("b",{className:"text-text",children:"Add to Home Screen"})," to install it."]})]})}function BR({selectedId:t}){const l=Nf(),r=Kn(p=>p.setSidebarOpen),{data:a,isLoading:o,isError:s,error:c}=hb(),d=a?.workspaces??[],m=p=>{l(`/w/${p}`),r(!1)};return H.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[H.jsx(hf,{title:"Workspaces",subtitle:d.length?`${d.length} active`:void 0,right:H.jsx("button",{type:"button",onClick:()=>r(!1),"aria-label":"Close workspaces",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:H.jsx(cb,{size:20})})}),H.jsx("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:o&&!a?H.jsx(ro,{label:"Loading workspaces…"}):s?H.jsxs(Tl,{children:[c?.message,H.jsx("br",{}),H.jsx("br",{}),"Check the relay is running and the token is correct."]}):d.length===0?H.jsx(Tl,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):H.jsx("ul",{className:"flex flex-col gap-2",children:d.map(p=>H.jsx("li",{className:"fade-in",children:H.jsx("button",{type:"button",className:bn("card w-full",p.id===t&&"border-accent/50 bg-surface-2"),onClick:()=>m(p.id),children:H.jsx(HR,{w:p})})},p.id))})})]})}function HR({w:t}){const l=Rb(t),r=Ob(t.model),a=t.context_used_percent;return H.jsxs(H.Fragment,{children:[H.jsx(ew,{status:l,className:"mt-1.5 self-start"}),H.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:zb(t)}),t.pinned_at?H.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,t.unread?H.jsx(Db,{children:t.unread}):null,H.jsx("span",{className:"shrink-0 text-xs capitalize text-muted",children:PE(t)})]}),H.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[t.repo_name?H.jsx("span",{className:"shrink-0 font-mono text-faint",children:t.repo_name}):null,t.branch?H.jsx(Hg,{className:"min-w-0 flex-1 truncate",children:t.branch}):null]}),H.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[r?H.jsx(Hg,{children:r}):null,typeof a=="number"&&a>0?H.jsxs("span",{className:"shrink-0 text-faint",children:[Math.round(a),"% ctx"]}):null,H.jsx("span",{className:"ml-auto shrink-0 pl-2 text-[11px] text-faint",children:$E(t.updated_at)})]})]})]})}function qR(){return Kn(l=>l.token)?H.jsxs(tk,{children:[H.jsxs($r,{element:H.jsx(QR,{}),children:[H.jsx($r,{index:!0,element:H.jsx(FR,{})}),H.jsx($r,{path:"/w/:workspaceId",element:H.jsx(NR,{})})]}),H.jsx($r,{path:"*",element:H.jsx($S,{to:"/",replace:!0})})]}):H.jsx(UR,{})}function QR(){const t=NS("/w/:workspaceId"),l=Kn(a=>a.sidebarOpen),r=Kn(a=>a.setSidebarOpen);return H.jsxs("div",{className:"flex h-full overflow-hidden",children:[l?H.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>r(!1),"aria-hidden":!0}):null,H.jsx("aside",{className:bn("fixed inset-y-0 left-0 z-50 flex w-[85%] max-w-80 flex-col border-r border-border-soft bg-bg transition-transform duration-200 ease-out","md:static md:z-auto md:w-72 md:max-w-none md:shrink-0 md:translate-x-0 md:transition-none lg:w-80",l?"translate-x-0":"-translate-x-full"),children:H.jsx(BR,{selectedId:t?.params.workspaceId})}),H.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:H.jsx(WS,{})})]})}function FR(){const t=Kn(l=>l.setSidebarOpen);return H.jsxs("div",{className:"grid h-full place-items-center",children:[H.jsx("button",{type:"button",onClick:()=>t(!0),className:"pill pill-active md:hidden",children:"Browse workspaces"}),H.jsx("span",{className:"hidden text-sm text-muted md:block",children:"Select a workspace"})]})}ix({immediate:!0});const GR=new Ox({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),Bv=document.getElementById("root");if(!Bv)throw new Error("#root missing");Px.createRoot(Bv).render(H.jsx(M.StrictMode,{children:H.jsx(_x,{client:GR,children:H.jsx(Ck,{children:H.jsx(qR,{})})})}));
|