ylcwf 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/README.md +42 -12
- package/dist/index.js +7004 -6590
- package/package.json +3 -3
- package/ui-dist/assets/{index-DLvXNvd_.js → index-YT9BW95D.js} +21 -21
- package/ui-dist/assets/{index-C9WoYI32.css → index-vNk9K1dy.css} +1 -1
- package/ui-dist/index.html +2 -2
|
@@ -6,7 +6,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
6
6
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{je=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ae(n):``}function Ne(e,t){switch(e.tag){case 26:case 27:case 5:return Ae(e.type);case 16:return Ae(`Lazy`);case 13:return e.child!==t&&t!==null?Ae(`Suspense Fallback`):Ae(`Suspense`);case 19:return Ae(`SuspenseList`);case 0:case 15:return Me(e.type,!1);case 11:return Me(e.type.render,!1);case 1:return Me(e.type,!0);case 31:return Ae(`Activity`);case 30:return Ae(`ViewTransition`);default:return``}}function Pe(e){try{var t=``,n=null;do t+=Ne(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
8
|
`+e.stack}}var Fe=Object.prototype.hasOwnProperty,Ie=t.unstable_scheduleCallback,Le=t.unstable_cancelCallback,Re=t.unstable_shouldYield,ze=t.unstable_requestPaint,Be=t.unstable_now,Ve=t.unstable_getCurrentPriorityLevel,He=t.unstable_ImmediatePriority,Ue=t.unstable_UserBlockingPriority,We=t.unstable_NormalPriority,Ge=t.unstable_LowPriority,Ke=t.unstable_IdlePriority,qe=t.log,Je=t.unstable_setDisableYieldValue,Ye=null,Xe=null;function Ze(e){if(typeof qe==`function`&&Je(e),Xe&&typeof Xe.setStrictMode==`function`)try{Xe.setStrictMode(Ye,e)}catch{}}var Qe=Math.clz32?Math.clz32:tt,$e=Math.log,et=Math.LN2;function tt(e){return e>>>=0,e===0?32:31-($e(e)/et|0)|0}var nt=256,rt=262144,it=4194304;function at(e){var t=e&42;if(t!==0)return t;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&-e;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 ot(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=at(n))):i=at(o):i=at(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=at(n))):i=at(o)):i=at(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ct(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Qe(n),i=1<<r;t|=e[r],n&=~i}return t}function lt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 ut(){var e=it;return it<<=1,!(it&62914560)&&(it=4194304),e}function dt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ft(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&mt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function mt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ht(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function gt(e,t){var n=t&-t;return n=n&42?1:_t(n),(n&(e.suspendedLanes|t))===0?n:0}function _t(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 vt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function yt(){var e=R.p;return e===0?(e=window.event,e===void 0?32:Dh(e.type)):e}function bt(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var xt=Math.random().toString(36).slice(2),St=`__reactFiber$`+xt,Ct=`__reactProps$`+xt,wt=`__reactContainer$`+xt,Tt=`__reactEvents$`+xt,Et=`__reactListeners$`+xt,Dt=`__reactHandles$`+xt,Ot=`__reactResources$`+xt,kt=`__reactMarker$`+xt,At=`__reactLoad$`+xt;function jt(e){delete e[St],delete e[Ct],delete e[Et],delete e[Dt]}function Mt(e){var t;if(t=e[St])return t;for(var n=e.parentNode;n;){if(t=n[wt]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gm(e);e!==null;){if(n=e[St])return n;e=gm(e)}return t}e=n,n=e.parentNode}return null}function Nt(e){if(e=e[St]||e[wt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ft(e){var t=e[Ot];return t||=e[Ot]={hoistableStyles:new Map,hoistableScripts:new Map},t}function It(e){e[kt]=!0}function Lt(e){e[At]=void 0}var Rt=new Set,zt={};function Bt(e,t){Vt(e,t),Vt(e+`Capture`,t)}function Vt(e,t){for(zt[e]=t,e=0;e<t.length;e++)Rt.add(t[e])}var Ht=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]*$`),Ut={},Wt={};function Gt(e){return Fe.call(Wt,e)?!0:Fe.call(Ut,e)?!1:Ht.test(e)?Wt[e]=!0:(Ut[e]=!0,!1)}var Kt=!1;function qt(){var e=Kt;return Kt=!1,e}function Jt(e,t,n){if(Gt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Yt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Xt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Zt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Qt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function $t(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function en(e){if(!e._valueTracker){var t=Qt(e)?`checked`:`value`;e._valueTracker=$t(e,t,``+e[t])}}function tn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Qt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var nn=/[\n"\\]/g;function rn(e){return e.replace(nn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function an(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Zt(t)):e.value!==``+Zt(t)&&(e.value=``+Zt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):sn(e,Zt(n)):o===`number`&&e.value==t?sn(e,Zt(e.value)):sn(e,Zt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Zt(s):e.removeAttribute(`name`)}function on(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){en(e);return}n=n==null?``:``+Zt(n),t=t==null?n:``+Zt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),en(e)}function sn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function cn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Zt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ln(e,t,n){t!=null&&(t=``+Zt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Zt(n)}function un(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(pe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Zt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),en(e)}function dn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fn=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 pn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||fn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function mn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Kt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(pn(e,a,r),Kt=!0)}else for(var o in t)t.hasOwnProperty(o)&&pn(e,o,t[o])}function hn(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 gn=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`],[`maskType`,`mask-type`],[`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`]]),_n=/^[\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 vn(e){return _n.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function yn(){}var bn=null;function xn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sn=null,Cn=null;function wn(e){var t=Nt(e);if(t&&(e=t.stateNode)){var n=e[Ct]||null;a:switch(e=t.stateNode,t.type){case`input`:if(an(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+rn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Ct]||null;if(!a)throw Error(i(90));an(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&tn(r)}break a;case`textarea`:ln(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&cn(e,!!n.multiple,t,!1)}}}var Tn=!1;function En(e,t,n){if(Tn)return e(t,n);Tn=!0;try{return e(t)}finally{if(Tn=!1,(Sn!==null||Cn!==null)&&(Bd(),Sn&&(t=Sn,e=Cn,Cn=Sn=null,wn(t),e)))for(t=0;t<e.length;t++)wn(e[t])}}function Dn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ct]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var On=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,kn=!1;if(On)try{var An={};Object.defineProperty(An,"passive",{get:function(){kn=!0}}),window.addEventListener(`test`,An,An),window.removeEventListener(`test`,An,An)}catch{kn=!1}var jn=null,Mn=null,Nn=null;function Pn(){if(Nn)return Nn;var e,t=Mn,n=t.length,r,i=`value`in jn?jn.value:jn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Nn=i.slice(e,1<r?1-r:void 0)}function Fn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function In(){return!0}function Ln(){return!1}function Rn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?In:Ln,this.isPropagationStopped=Ln,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=In)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=In)},persist:function(){},isPersistent:In}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bn=Rn(zn),Vn=D({},zn,{view:0,detail:0}),Hn=Rn(Vn),Un,Wn,Gn,Kn=D({},Vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rr,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!==Gn&&(Gn&&e.type===`mousemove`?(Un=e.screenX-Gn.screenX,Wn=e.screenY-Gn.screenY):Wn=Un=0,Gn=e),Un)},movementY:function(e){return`movementY`in e?e.movementY:Wn}}),qn=Rn(Kn),Jn=Rn(D({},Kn,{dataTransfer:0})),Yn=Rn(D({},Vn,{relatedTarget:0})),Xn=Rn(D({},zn,{animationName:0,elapsedTime:0,pseudoElement:0})),Zn=Rn(D({},zn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Qn=Rn(D({},zn,{data:0})),$n={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},er={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`},tr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function nr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tr[e])?!!t[e]:!1}function rr(){return nr}var ir=Rn(D({},Vn,{key:function(e){if(e.key){var t=$n[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Fn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?er[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rr,charCode:function(e){return e.type===`keypress`?Fn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Fn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),z=Rn(D({},Kn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ar=Rn(D({},zn,{submitter:0})),or=Rn(D({},Vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rr})),sr=Rn(D({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0})),cr=Rn(D({},Kn,{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})),lr=Rn(D({},zn,{newState:0,oldState:0,source:0})),ur=[9,13,27,32],dr=On&&`CompositionEvent`in window,fr=null;On&&`documentMode`in document&&(fr=document.documentMode);var pr=On&&`TextEvent`in window&&!fr,mr=On&&(!dr||fr&&8<fr&&11>=fr),hr=` `,gr=!1;function _r(e,t){switch(e){case`keyup`:return ur.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function vr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var yr=!1;function br(e,t){switch(e){case`compositionend`:return vr(t);case`keypress`:return t.which===32?(gr=!0,hr):null;case`textInput`:return e=t.data,e===hr&&gr?null:e;default:return null}}function xr(e,t){if(yr)return e===`compositionend`||!dr&&_r(e,t)?(e=Pn(),Nn=Mn=jn=null,yr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return mr&&t.locale!==`ko`?null:t.data;default:return null}}var Sr={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 Cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Sr[e.type]:t===`textarea`}function wr(e,t,n,r){Sn?Cn?Cn.push(r):Cn=[r]:Sn=r,t=Zf(t,`onChange`),0<t.length&&(n=new Bn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Tr=null,Er=null;function Dr(e){Uf(e,0)}function Or(e){if(tn(Pt(e)))return e}function kr(e,t){if(e===`change`)return t}var Ar=!1;if(On){var jr;if(On){var Mr=`oninput`in document;if(!Mr){var Nr=document.createElement(`div`);Nr.setAttribute(`oninput`,`return;`),Mr=typeof Nr.oninput==`function`}jr=Mr}else jr=!1;Ar=jr&&(!document.documentMode||9<document.documentMode)}function Pr(){Tr&&(Tr.detachEvent(`onpropertychange`,Fr),Er=Tr=null)}function Fr(e){if(e.propertyName===`value`&&Or(Er)){var t=[];wr(t,Er,e,xn(e)),En(Dr,t)}}function Ir(e,t,n){e===`focusin`?(Pr(),Tr=t,Er=n,Tr.attachEvent(`onpropertychange`,Fr)):e===`focusout`&&Pr()}function Lr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Or(Er)}function Rr(e,t){if(e===`click`)return Or(t)}function zr(e,t){if(e===`input`||e===`change`)return Or(t)}function Br(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Vr=typeof Object.is==`function`?Object.is:Br;function Hr(e,t){if(Vr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Fe.call(t,i)||!Vr(e[i],t[i]))return!1}return!0}function Ur(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gr(e,t){var n=Wr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Wr(n)}}function Kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ur(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ur(e.document)}return t}function Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Yr=On&&`documentMode`in document&&11>=document.documentMode,Xr=null,Zr=null,Qr=null,$r=!1;function ei(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$r||Xr==null||Xr!==Ur(r)||(r=Xr,`selectionStart`in r&&Jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qr&&Hr(Qr,r)||(Qr=r,r=Zf(Zr,`onSelect`),0<r.length&&(t=new Bn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Xr)))}function ti(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ni={animationend:ti(`Animation`,`AnimationEnd`),animationiteration:ti(`Animation`,`AnimationIteration`),animationstart:ti(`Animation`,`AnimationStart`),transitionrun:ti(`Transition`,`TransitionRun`),transitionstart:ti(`Transition`,`TransitionStart`),transitioncancel:ti(`Transition`,`TransitionCancel`),transitionend:ti(`Transition`,`TransitionEnd`)},ri={},ii={};On&&(ii=document.createElement(`div`).style,`AnimationEvent`in window||(delete ni.animationend.animation,delete ni.animationiteration.animation,delete ni.animationstart.animation),`TransitionEvent`in window||delete ni.transitionend.transition);function ai(e){if(ri[e])return ri[e];if(!ni[e])return e;var t=ni[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ii)return ri[e]=t[n];return e}var oi=ai(`animationend`),si=ai(`animationiteration`),ci=ai(`animationstart`),li=ai(`transitionrun`),ui=ai(`transitionstart`),di=ai(`transitioncancel`),fi=ai(`transitionend`),pi=new Map,mi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);mi.push(`scrollEnd`);function hi(e,t){pi.set(e,t),Bt(t,[e])}var gi=0;function _i(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=xd.identifierPrefix;var n=gi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function vi(e){if(e==null||typeof e==`string`)return e;var t=null,n=kd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function yi(e,t){return e=vi(e),t=vi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var bi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},xi=[],Si=0,Ci=0;function wi(){for(var e=Si,t=Ci=Si=0;t<e;){var n=xi[t];xi[t++]=null;var r=xi[t];xi[t++]=null;var i=xi[t];xi[t++]=null;var a=xi[t];if(xi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Oi(n,i,a)}}function Ti(e,t,n,r){xi[Si++]=e,xi[Si++]=t,xi[Si++]=n,xi[Si++]=r,Ci|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ei(e,t,n,r){return Ti(e,t,n,r),ki(e)}function Di(e,t){return Ti(e,null,null,t),ki(e)}function Oi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ki(e){if(50<Ad)throw Ad=0,jd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ai={};function ji(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mi(e,t,n,r){return new ji(e,t,n,r)}function Ni(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pi(e,t){var n=e.alternate;return n===null?(n=Mi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ii(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ni(r)&&(s=1);else if(typeof r==`string`)s=Zm(e,n,be.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ie:return e=Mi(31,n,t,a),e.elementType=ie,e.lanes=o,e;case j:return Li(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=Mi(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case ee:return e=Mi(13,n,t,a),e.elementType=ee,e.lanes=o,e;case te:return e=Mi(19,n,t,a),e.elementType=te,e.lanes=o,e;case ae:case se:return e=a|32,e=Mi(30,n,t,e),e.elementType=se,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case F:s=10;break a;case P:s=9;break a;case I:s=11;break a;case ne:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Mi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Li(e,t,n,r){return e=Mi(7,e,r,t),e.lanes=n,e}function Ri(e,t,n){return e=Mi(6,e,null,t),e.lanes=n,e}function zi(e){var t=Mi(18,null,null,0);return t.stateNode=e,t}function Bi(e,t,n){return t=Mi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vi=new WeakMap;function Hi(e,t){if(typeof e==`object`&&e){var n=Vi.get(e);return n===void 0?(t={value:e,source:t,stack:Pe(t)},Vi.set(e,t),t):n}return{value:e,source:t,stack:Pe(t)}}var Ui=[],Wi=0,Gi=null,Ki=0,qi=[],Ji=0,Yi=null,Xi=1,Zi=``;function Qi(e,t){Ui[Wi++]=Ki,Ui[Wi++]=Gi,Gi=e,Ki=t}function $i(e,t,n){qi[Ji++]=Xi,qi[Ji++]=Zi,qi[Ji++]=Yi,Yi=e;var r=Xi;e=Zi;var i=32-Qe(r)-1;r&=~(1<<i),n+=1;var a=32-Qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Xi=1<<32-Qe(t)+i|n<<i|r,Zi=a+e}else Xi=1<<a|n<<i|r,Zi=e}function ea(e){e.return!==null&&(Qi(e,1),$i(e,1,0))}function ta(e){for(;e===Gi;)Gi=Ui[--Wi],Ui[Wi]=null,Ki=Ui[--Wi],Ui[Wi]=null;for(;e===Yi;)Yi=qi[--Ji],qi[Ji]=null,Zi=qi[--Ji],qi[Ji]=null,Xi=qi[--Ji],qi[Ji]=null}function na(e,t){qi[Ji++]=Xi,qi[Ji++]=Zi,qi[Ji++]=Yi,Xi=t.id,Zi=t.overflow,Yi=e}var ra=null,ia=null,B=!1,aa=null,oa=!1,sa=Error(i(519));function ca(e){throw ma(Hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),sa}function la(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[St]=e,t[Ct]=r,n){case`dialog`:Wf(`cancel`,t),Wf(`close`,t);break;case`iframe`:case`object`:case`embed`:Wf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Vf.length;n++)Wf(Vf[n],t);break;case`source`:Wf(`error`,t);break;case`img`:case`image`:case`link`:Wf(`error`,t),Wf(`load`,t);break;case`details`:Wf(`toggle`,t);break;case`input`:Wf(`invalid`,t),on(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Wf(`invalid`,t);break;case`textarea`:Wf(`invalid`,t),un(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||rp(t.textContent,n)?(r.popover!=null&&(Wf(`beforetoggle`,t),Wf(`toggle`,t)),r.onScroll!=null&&Wf(`scroll`,t),r.onScrollEnd!=null&&Wf(`scrollend`,t),r.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||ca(e,!0)}function ua(e){for(ra=e.return;ra;)switch(ra.tag){case 5:case 31:case 13:oa=!1;return;case 27:case 3:oa=!0;return;default:ra=ra.return}}function da(e){if(e!==ra)return!1;if(!B)return ua(e),B=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||_p(e.type,e.memoizedProps)),n=!n),n&&ia&&ca(e),ua(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ia=hm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ia=hm(e)}else t===27?(t=ia,Ep(e.type)?(e=mm,mm=null,ia=e):ia=t):ia=ra?pm(e.stateNode.nextSibling):null;return!0}function fa(){ia=ra=null,B=!1}function pa(){var e=aa;return e!==null&&(pd===null?pd=e:pd.push.apply(pd,e),aa=null),e}function ma(e){aa===null?aa=[e]:aa.push(e)}var ha=_e(null),ga=null,_a=null;function va(e,t,n){ye(ha,t._currentValue),t._currentValue=n}function ya(e){e._currentValue=ha.current,ve(ha)}function ba(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function xa(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ba(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ba(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ba(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Sa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Vr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[dh]:e.push(dh))}a=a.return}return e!==null&&xa(t,e,n,r),t.flags|=262144,e!==null}function Ca(e){for(e=e.firstContext;e!==null;){if(!Vr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wa(e){ga=e,_a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ta(e){return Da(ga,e)}function Ea(e,t){return ga===null&&wa(e),Da(e,t)}function Da(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},_a===null){if(e===null)throw Error(i(308));_a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _a=_a.next=t;return n}var Oa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ka=t.unstable_scheduleCallback,Aa=t.unstable_NormalPriority,ja={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ma(){return{controller:new Oa,data:new Map,refCount:0}}function Na(e){e.refCount--,e.refCount===0&&ka(Aa,function(){e.controller.abort()})}function Pa(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Fa=null;function Ia(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var La=null,Ra=0,za=0,Ba=null;function Va(e,t){if(La===null){var n=La=[];Ra=0,za=If(),Ba={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ra++,t.then(Ha,Ha),t}function Ha(){if(--Ra===0&&(Fa=null,La!==null)){Ba!==null&&(Ba.status=`fulfilled`);var e=La;La=null,za=0,Ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ua(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Wa=L.S;L.S=function(e,t){if(gd=Be(),typeof t==`object`&&t&&typeof t.then==`function`&&Va(e,t),Fa!==null)for(var n=Sf;n!==null;)Pa(n,Fa),n=n.next;if(n=e.types,n!==null){for(var r=Sf;r!==null;)Pa(r,n),r=r.next;if(za!==0){r=Fa,r===null&&(r=Fa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Wa!==null&&Wa(e,t)};var Ga=_e(null);function Ka(){var e=Ga.current;return e===null?Qu.pooledCache:e}function qa(e,t){t===null?ye(Ga,Ga.current):ye(Ga,t.pool)}function Ja(){var e=Ka();return e===null?null:{parent:ja._currentValue,pool:e}}var Ya=Error(i(460)),Xa=Error(i(474)),Za=Error(i(542)),Qa={then:function(){}};function $a(e){return e=e.status,e===`fulfilled`||e===`rejected`}function eo(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yn,yn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,io(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(yn,yn);else{if(e=Qu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,io(e),e}throw no=t,Ya}}function to(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(no=e,Ya):e}}var no=null;function ro(){if(no===null)throw Error(i(459));var e=no;return no=null,e}function io(e){if(e===Ya||e===Za)throw Error(i(483))}var ao=null,oo=0;function so(e){var t=oo;return oo+=1,ao===null&&(ao=[]),eo(ao,e,t)}function co(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function lo(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function uo(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Pi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ri(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===j?(e=d(e,t,n.props.children,r,n.key),co(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&to(i)===t.type)?(t=a(t,n.props),co(t,n),t.return=e,t):(t=Ii(n.type,n.key,n.props,null,e.mode,r),co(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Bi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Li(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ri(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Ii(t.type,t.key,t.props,null,e.mode,n),co(n,t),n.return=e,n;case A:return t=Bi(t,e.mode,n),t.return=e,t;case re:return t=to(t),f(e,t,n)}if(pe(t)||ue(t))return t=Li(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,so(t),n);if(t.$$typeof===F)return f(e,Ea(e,t),n);lo(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case re:return n=to(n),p(e,t,n,r)}if(pe(n)||ue(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,so(n),r);if(n.$$typeof===F)return p(e,t,Ea(e,n),r);lo(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:return r=to(r),m(e,t,n,r,i)}if(pe(r)||ue(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,so(r),i);if(r.$$typeof===F)return m(e,t,n,Ea(t,r),i);lo(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),B&&Qi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return B&&Qi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),B&&Qi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),B&&Qi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return B&&Qi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),B&&Qi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),co(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&to(l)===r.type){n(e,r.sibling),c=a(r,o.props),co(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Li(o.props.children,e.mode,c,o.key),co(c,o),c.return=e,e=c):(c=Ii(o.type,o.key,o.props,null,e.mode,c),co(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Bi(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=to(o),_(e,r,o,c)}if(pe(o))return h(e,r,o,c);if(ue(o)){if(l=ue(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,so(o),c);if(o.$$typeof===F)return _(e,r,Ea(e,o),c);lo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ri(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{oo=0;var i=_(e,t,n,r);return ao=null,i}catch(t){if(t===Ya||t===Za)throw t;var a=Mi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var fo=uo(!0),po=uo(!1),mo=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _o(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Zu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ki(e),Oi(e,null,n),t}return Ti(e,r,t,n),ki(e)}function yo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}function bo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xo=!1;function So(){if(xo){var e=Ba;if(e!==null)throw e}}function Co(e,t,n,r){xo=!1;var i=e.updateQueue;mo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?($u&f)===f:(r&f)===f){f!==0&&f===za&&(xo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:mo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),sd|=o,e.lanes=o,e.memoizedState=d}}function wo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function To(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)wo(n[e],t)}var Eo=_e(null),Do=_e(0);function Oo(e,t){e=ad,ye(Do,e),ye(Eo,t),ad=e|t.baseLanes}function ko(){ye(Do,ad),ye(Eo,Eo.current)}function Ao(){ad=Do.current,ve(Eo),ve(Do)}var jo=_e(null),Mo=null;function No(e){var t=e.alternate;ye(Ro,Ro.current&1),ye(jo,e),Mo===null&&(t===null||Eo.current!==null||t.memoizedState!==null)&&(Mo=e)}function Po(e){ye(Ro,Ro.current),ye(jo,e),Mo===null&&(Mo=e)}function Fo(e){e.tag===22?(ye(Ro,Ro.current),ye(jo,e),Mo===null&&(Mo=e)):Io()}function Io(){ye(Ro,Ro.current),ye(jo,jo.current)}function Lo(e){ve(jo),Mo===e&&(Mo=null),ve(Ro)}var Ro=_e(0);function zo(e,t){ye(jo,jo.current),ye(Ro,t)}function Bo(e){ve(Ro),ve(jo),Mo===e&&(Mo=null)}function Vo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||um(n)||dm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ho=0,V=null,Uo=null,Wo=null,Go=!1,Ko=!1,qo=!1,Jo=0,Yo=0,Xo=null,Zo=0;function Qo(){throw Error(i(321))}function $o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vr(e[n],t[n]))return!1;return!0}function es(e,t,n,r,i,a){return Ho=a,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?_c:vc,qo=!1,a=n(r,i),qo=!1,Ko&&(a=ns(t,n,r,i)),ts(e),a}function ts(e){L.H=gc;var t=Uo!==null&&Uo.next!==null;if(Ho=0,Wo=Uo=V=null,Go=!1,Yo=0,Xo=null,t)throw Error(i(300));e===null||Fc||(e=e.dependencies,e!==null&&Ca(e)&&(Fc=!0))}function ns(e,t,n,r){V=e;var a=0;do{if(Ko&&(Xo=null),Yo=0,Ko=!1,25<=a)throw Error(i(301));if(a+=1,Wo=Uo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=yc,o=t(n,r)}while(Ko);return o}function rs(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?us(t):t,e=e.useState()[0],(Uo===null?null:Uo.memoizedState)!==e&&(V.flags|=1024),t}function is(){var e=Jo!==0;return Jo=0,e}function as(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function os(e){if(Go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Go=!1}Ho=0,Wo=Uo=V=null,Ko=!1,Yo=Jo=0,Xo=null}function ss(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wo===null?V.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function cs(){if(Uo===null){var e=V.alternate;e=e===null?null:e.memoizedState}else e=Uo.next;var t=Wo===null?V.memoizedState:Wo.next;if(t!==null)Wo=t,Uo=e;else{if(e===null)throw V.alternate===null?Error(i(467)):Error(i(310));Uo=e,e={memoizedState:Uo.memoizedState,baseState:Uo.baseState,baseQueue:Uo.baseQueue,queue:Uo.queue,next:null},Wo===null?V.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function ls(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function us(e){var t=Yo;return Yo+=1,Xo===null&&(Xo=[]),e=eo(Xo,e,t),t=V,(Wo===null?t.memoizedState:Wo.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?_c:vc),e}function ds(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return us(e);if(e.$$typeof===ce)return;if(e.$$typeof===F)return Ta(e)}throw Error(i(438,String(e)))}function fs(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=V.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ls(),V.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=oe;return t.index++,n}function ps(e,t){return typeof t==`function`?t(e):t}function ms(e){return hs(cs(),Uo,e)}function hs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ho&f)===f:($u&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===za&&(d=!0);else if((Ho&p)===p){u=u.next,p===za&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,V.lanes|=p,sd|=p;f=u.action,qo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,V.lanes|=f,sd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Vr(o,e.memoizedState)&&(Fc=!0,d&&(n=Ba,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function gs(e){var t=cs(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Vr(o,t.memoizedState)||(Fc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function _s(e,t,n){var r=V,a=cs(),o=B;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Vr((Uo||a).memoizedState,n);if(s&&(a.memoizedState=n,Fc=!0),a=a.queue,Hs(bs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Wo!==null&&!!(Wo.memoizedState.tag&1),Ls(e?9:8,{destroy:void 0},ys.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Qu===null)throw Error(i(349));o||Ho&127||vs(r,t,n)}return n}function vs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=ls(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ys(e,t,n,r){t.value=n,t.getSnapshot=r,xs(t)&&Ss(e)}function bs(e,t,n){return n(function(){xs(t)&&Ss(e)})}function xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vr(e,n)}catch{return!0}}function Ss(e){var t=Di(e,2);t!==null&&Fd(t,e,2)}function Cs(e){var t=ss();if(typeof e==`function`){var n=e;if(e=n(),qo){Ze(!0);try{n()}finally{Ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:e},t}function ws(e,t,n,r){return e.baseState=n,hs(e,Uo,typeof r==`function`?r:ps)}function Ts(e,t,n,r,a){if(pc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Es(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Es(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),Ds(e,t,s)}catch(n){ks(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),Ds(e,t,a)}catch(n){ks(e,t,n)}}function Ds(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Os(e,t,n)},function(n){return ks(e,t,n)}):Os(e,t,n)}function Os(e,t,n){t.status=`fulfilled`,t.value=n,As(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Es(e,n)))}function ks(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,As(t),t=t.next;while(t!==r)}e.action=null}function As(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function js(e,t){return t}function Ms(e,t){if(B){var n=Qu.formState;if(n!==null){a:{var r=V;if(B){if(ia){b:{for(var i=ia,a=oa;i.nodeType!==8;)if(!a||(i=pm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ia=pm(i.nextSibling),r=i.data===`F!`;break a}}ca(r)}r=!1}r&&(t=n[0])}}return n=ss(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:js,lastRenderedState:t},n.queue=r,n=uc.bind(null,V,r),r.dispatch=n,r=Cs(!1),a=fc.bind(null,V,!1,r.queue),r=ss(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ts.bind(null,V,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ns(e){return Ps(cs(),Uo,e)}function Ps(e,t,n){if(t=hs(e,t,js)[0],e=ms(ps)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=us(t)}catch(e){throw e===Ya?Za:e}else r=t;t=cs();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(V.flags|=2048,Ls(9,{destroy:void 0},Fs.bind(null,i,n),null)),[r,a,e]}function Fs(e,t){e.action=t}function Is(e){var t=cs(),n=Uo;if(n!==null)return Ps(t,n,e);cs(),t=t.memoizedState,n=cs();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ls(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=V.updateQueue,t===null&&(t=ls(),V.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Rs(){return cs().memoizedState}function zs(e,t,n,r){var i=ss();V.flags|=e,i.memoizedState=Ls(1|t,{destroy:void 0},n,r===void 0?null:r)}function Bs(e,t,n,r){var i=cs();r=r===void 0?null:r;var a=i.memoizedState.inst;Uo!==null&&r!==null&&$o(r,Uo.memoizedState.deps)?i.memoizedState=Ls(t,a,n,r):(V.flags|=e,i.memoizedState=Ls(1|t,a,n,r))}function Vs(e,t){zs(8390656,8,e,t)}function Hs(e,t){Bs(2048,8,e,t)}function Us(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=ls(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ws(e){var t=cs().memoizedState;return Us({ref:t,nextImpl:e}),function(){if(Zu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Gs(e,t){return Bs(4,2,e,t)}function Ks(e,t){return Bs(4,4,e,t)}function qs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Js(e,t,n){n=n==null?null:n.concat([e]),Bs(4,4,qs.bind(null,t,e),n)}function Ys(){}function Xs(e,t){var n=cs();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&$o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zs(e,t){var n=cs();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&$o(t,r[1]))return r[0];if(r=e(),qo){Ze(!0);try{e()}finally{Ze(!1)}}return n.memoizedState=[r,t],r}function Qs(e,t,n){return n===void 0||Ho&1073741824&&!($u&261930)?e.memoizedState=t:(e.memoizedState=n,e=Nd(),V.lanes|=e,sd|=e,n)}function $s(e,t,n,r){return Vr(n,t)?n:Eo.current===null?!(Ho&106)||Ho&1073741824&&!($u&261930)?(Fc=!0,e.memoizedState=n):(e=Nd(),V.lanes|=e,sd|=e,t):(e=Qs(e,n,r),Vr(e,t)||(Fc=!0),e)}function ec(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=L.T,s={};s.types=o===null?null:o.types,L.T=s,fc(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?dc(e,t,Ua(c,r),Md(e)):dc(e,t,r,Md(e))}catch(n){dc(e,t,{then:function(){},status:`rejected`,reason:n},Md())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function tc(){}function nc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=rc(e).queue;ec(e,a,t,me,n===null?tc:function(){return ic(e),n(r)})}function rc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ic(e){var t=rc(e);t.next===null&&(t=e.alternate.memoizedState),dc(e,t.next.queue,{},Md())}function ac(){return Ta(dh)}function oc(){return cs().memoizedState}function sc(){return cs().memoizedState}function cc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Md();e=_o(n);var r=vo(t,e,n);r!==null&&(Fd(r,t,n),yo(r,t,n)),t={cache:Ma()},e.payload=t;return}t=t.return}}function lc(e,t,n){var r=Md();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pc(e)?mc(t,n):(n=Ei(e,t,n,r),n!==null&&(Fd(n,e,r),hc(n,t,r)))}function uc(e,t,n){dc(e,t,n,Md())}function dc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pc(e))mc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Vr(s,o))return Ti(e,t,i,0),Qu===null&&wi(),!1}catch{}if(n=Ei(e,t,i,r),n!==null)return Fd(n,e,r),hc(n,t,r),!0}return!1}function fc(e,t,n,r){if(r={lane:2,revertLane:If(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},pc(e)){if(t)throw Error(i(479))}else t=Ei(e,n,r,2),t!==null&&Fd(t,e,2)}function pc(e){var t=e.alternate;return e===V||t!==null&&t===V}function mc(e,t){Ko=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ht(e,n)}}var gc={readContext:Ta,use:ds,useCallback:Qo,useContext:Qo,useEffect:Qo,useImperativeHandle:Qo,useLayoutEffect:Qo,useInsertionEffect:Qo,useMemo:Qo,useReducer:Qo,useRef:Qo,useState:Qo,useDebugValue:Qo,useDeferredValue:Qo,useTransition:Qo,useSyncExternalStore:Qo,useId:Qo,useHostTransitionStatus:Qo,useFormState:Qo,useActionState:Qo,useOptimistic:Qo,useMemoCache:Qo,useCacheRefresh:Qo,useEffectEvent:Qo},_c={readContext:Ta,use:ds,useCallback:function(e,t){return ss().memoizedState=[e,t===void 0?null:t],e},useContext:Ta,useEffect:Vs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),zs(4194308,4,qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zs(4194308,4,e,t)},useInsertionEffect:function(e,t){zs(4,2,e,t)},useMemo:function(e,t){var n=ss();t=t===void 0?null:t;var r=e();if(qo){Ze(!0);try{e()}finally{Ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ss();if(n!==void 0){var i=n(t);if(qo){Ze(!0);try{n(t)}finally{Ze(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=lc.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=ss();return e={current:e},t.memoizedState=e},useState:function(e){e=Cs(e);var t=e.queue,n=uc.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ys,useDeferredValue:function(e,t){return Qs(ss(),e,t)},useTransition:function(){var e=Cs(!1);return e=ec.bind(null,V,e.queue,!0,!1),ss().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,a=ss();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Qu===null)throw Error(i(349));$u&127||vs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Vs(bs.bind(null,r,o,e),[e]),r.flags|=2048,Ls(9,{destroy:void 0},ys.bind(null,r,o,n,t),null),n},useId:function(){var e=ss(),t=Qu.identifierPrefix;if(B){var n=Zi,r=Xi;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Jo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Zo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ac,useFormState:Ms,useActionState:Ms,useOptimistic:function(e){var t=ss();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fc.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:fs,useCacheRefresh:function(){return ss().memoizedState=cc.bind(null,V)},useEffectEvent:function(e){var t=ss(),n={impl:e};return t.memoizedState=n,function(){if(Zu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},vc={readContext:Ta,use:ds,useCallback:Xs,useContext:Ta,useEffect:Hs,useImperativeHandle:Js,useInsertionEffect:Gs,useLayoutEffect:Ks,useMemo:Zs,useReducer:ms,useRef:Rs,useState:function(){return ms(ps)},useDebugValue:Ys,useDeferredValue:function(e,t){return $s(cs(),Uo.memoizedState,e,t)},useTransition:function(){var e=ms(ps)[0],t=cs().memoizedState;return[typeof e==`boolean`?e:us(e),t]},useSyncExternalStore:_s,useId:oc,useHostTransitionStatus:ac,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){return ws(cs(),Uo,e,t)},useMemoCache:fs,useCacheRefresh:sc,useEffectEvent:Ws},yc={readContext:Ta,use:ds,useCallback:Xs,useContext:Ta,useEffect:Hs,useImperativeHandle:Js,useInsertionEffect:Gs,useLayoutEffect:Ks,useMemo:Zs,useReducer:gs,useRef:Rs,useState:function(){return gs(ps)},useDebugValue:Ys,useDeferredValue:function(e,t){var n=cs();return Uo===null?Qs(n,e,t):$s(n,Uo.memoizedState,e,t)},useTransition:function(){var e=gs(ps)[0],t=cs().memoizedState;return[typeof e==`boolean`?e:us(e),t]},useSyncExternalStore:_s,useId:oc,useHostTransitionStatus:ac,useFormState:Is,useActionState:Is,useOptimistic:function(e,t){var n=cs();return Uo===null?(n.baseState=e,[e,n.queue.dispatch]):ws(n,Uo,e,t)},useMemoCache:fs,useCacheRefresh:sc,useEffectEvent:Ws};function bc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Md(),i=_o(r);i.payload=t,n!=null&&(i.callback=n),t=vo(e,i,r),t!==null&&(Fd(t,e,r),yo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Md(),i=_o(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=vo(e,i,r),t!==null&&(Fd(t,e,r),yo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Md(),r=_o(n);r.tag=2,t!=null&&(r.callback=t),t=vo(e,r,n),t!==null&&(Fd(t,e,n),yo(t,e,n))}};function Sc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Hr(n,r)||!Hr(i,a):!0}function Cc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xc.enqueueReplaceState(t,t.state,null)}function wc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Tc(e){bi(e)}function Ec(e){console.error(e)}function Dc(e){bi(e)}function Oc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function kc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ac(e,t,n){return n=_o(n),n.tag=3,n.payload={element:null},n.callback=function(){Oc(e,t)},n}function jc(e){return e=_o(e),e.tag=3,e}function Mc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){kc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){kc(t,n,r),typeof i!=`function`&&(yd===null?yd=new Set([this]):yd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Nc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Sa(t,n,a,!0),n=jo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Mo===null?qd():n.alternate===null&&od===0&&(od=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Qa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),gf(e,r,a)),!1;case 22:return n.flags|=65536,r===Qa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),gf(e,r,a)),!1}throw Error(i(435,n.tag))}return gf(e,r,a),qd(),!1}if(B)return t=jo.current,t===null?(r!==sa&&(t=Error(i(423),{cause:r}),ma(Hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Hi(r,n),a=Ac(e.stateNode,r,a),bo(e,a),od!==4&&(od=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==sa&&(e=Error(i(422),{cause:r}),ma(Hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Hi(o,n),fd===null?fd=[o]:fd.push(o),od!==4&&(od=2),t===null)return!0;r=Hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ac(n.stateNode,r,e),bo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(yd===null||!yd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=jc(a),Mc(a,e,n,r),bo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Pc=Error(i(461)),Fc=!1;function Ic(e,t,n,r){t.child=e===null?po(t,null,n,r):fo(t,e.child,n,r)}function Lc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return wa(t),r=es(e,t,n,o,a,i),s=is(),e!==null&&!Fc?(as(e,t,i),cl(e,t,i)):(B&&s&&ea(t),t.flags|=1,Ic(e,t,r,i),t.child)}function Rc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ni(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,zc(e,t,a,r,i)):(e=Ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Hr:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=Pi(a,r),e.ref=t.ref,e.return=t,t.child=e}function zc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Hr(a,r)&&e.ref===t.ref){if(Fc=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(Fc=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Kc(e,t,n,r,i)}function Bc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Hc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qa(t,a===null?null:a.cachePool),a===null?ko():Oo(t,a),Fo(t);else return r=t.lanes=536870912,Hc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&qa(t,null),ko(),Io()):(qa(t,a.cachePool),Oo(t,a),Io(),t.memoizedState=null);return Ic(e,t,i,n),t.child}function Vc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hc(e,t,n,r,i){var a=Ka();return a=a===null?null:{parent:ja._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&qa(t,null),ko(),Fo(t),e!==null&&Sa(e,t,r,!0),t.childLanes=i,null}function Uc(e,t){return t=U({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function H(e,t,n){return fo(t,e.child,null,n),e=Uc(t,t.pendingProps),e.flags|=2,Lo(t),t.memoizedState=null,e}function Wc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=Uc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Vc(null,e);if(Po(t),(e=ia)?(e=lm(e,oa),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yi===null?null:{id:Xi,overflow:Zi},retryLane:536870912,hydrationErrors:null},n=zi(e),n.return=t,t.child=n,ra=t,ia=null)):e=null,e===null)throw ca(t);return t.lanes=536870912,null}return Uc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Po(t),a){if(t.flags&256)t.flags&=-257,t=H(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Fc||Sa(e,t,n,!1),a=(n&e.childLanes)!==0,Fc||a){if(Eo.current===null){if(r=Qu,r!==null&&(s=gt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Di(e,s),Fd(r,e,s),Pc;qd()}t=H(e,t,n)}else e=o.treeContext,ia=pm(s.nextSibling),ra=t,B=!0,aa=null,oa=!1,e!==null&&na(t,e),t=Uc(t,r),t.flags|=134221824;return t}return e=Pi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Gc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Kc(e,t,n,r,i){return wa(t),n=es(e,t,n,r,void 0,i),r=is(),e!==null&&!Fc?(as(e,t,i),cl(e,t,i)):(B&&r&&ea(t),t.flags|=1,Ic(e,t,n,i),t.child)}function qc(e,t,n,r,i,a){return wa(t),t.updateQueue=null,n=ns(t,r,n,i),ts(e),r=is(),e!==null&&!Fc?(as(e,t,a),cl(e,t,a)):(B&&r&&ea(t),t.flags|=1,Ic(e,t,n,a),t.child)}function Jc(e,t,n,r,i){if(wa(t),t.stateNode===null){var a=Ai,o=n.contextType;typeof o==`object`&&o&&(a=Ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=xc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ho(t),o=n.contextType,a.context=typeof o==`object`&&o?Ta(o):Ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(bc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&xc.enqueueReplaceState(a,a.state,null),Co(t,r,a,i),So(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=wc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ai,typeof u==`object`&&u&&(o=Ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Cc(t,a,r,o),mo=!1;var f=t.memoizedState;a.state=f,Co(t,r,a,i),So(),l=t.memoizedState,s||f!==l||mo?(typeof d==`function`&&(bc(t,n,d,r),l=t.memoizedState),(c=mo||Sc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,go(e,t),o=t.memoizedProps,u=wc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ai,typeof l==`object`&&l&&(c=Ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Cc(t,a,r,c),mo=!1,f=t.memoizedState,a.state=f,Co(t,r,a,i),So();var p=t.memoizedState;o!==d||f!==p||mo||e!==null&&e.dependencies!==null&&Ca(e.dependencies)?(typeof s==`function`&&(bc(t,n,s,r),p=t.memoizedState),(u=mo||Sc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ca(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Gc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=fo(t,e.child,null,i),t.child=fo(t,null,n,i)):Ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function Yc(e,t,n,r){return fa(),t.flags|=256,Ic(e,t,n,r),t.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zc(e){return{baseLanes:e,cachePool:Ja()}}function Qc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ud),e}function $c(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Ro.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(B){if(i?No(t):Io(),(e=ia)?(e=lm(e,oa),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yi===null?null:{id:Xi,overflow:Zi},retryLane:536870912,hydrationErrors:null},n=zi(e),n.return=t,t.child=n,ra=t,ia=null)):e=null,e===null)throw ca(t);return t.lanes=dm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Io(),i=t.mode,a=U({mode:`hidden`,children:a},i),r=Li(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Zc(n),r.childLanes=Qc(e,o,n),t.memoizedState=Xc,Vc(null,r)):(No(t),el(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return nl(e,t,a,o,r,c,s,n)}return i?(Io(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Pi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Li(i,a,n,null),i.flags|=2):i=Pi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Vc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Zc(n):(a=i.cachePool,a===null?a=Ja():(s=ja._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Qc(e,o,n),t.memoizedState=Xc,Vc(e.child,r)):(No(t),n=e.child,e=n.sibling,n=Pi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return t=U({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function U(e,t){return e=Mi(22,e,null,t),e.lanes=0,e}function tl(e,t,n){return fo(t,e.child,null,n),e=el(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(No(t),t.flags&=-257,tl(e,t,c)):t.memoizedState===null?(Io(),o=a.fallback,s=t.mode,a=U({mode:`visible`,children:a.children},s),o=Li(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,fo(t,e.child,null,c),a=t.child,a.memoizedState=Zc(c),a.childLanes=Qc(e,r,c),t.memoizedState=Xc,Vc(null,a)):(Io(),t.child=e.child,t.flags|=128,null);if(No(t),dm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,ma({value:a,source:null,stack:null})),tl(e,t,c)}if(Fc||Sa(e,t,c,!1),r=(c&e.childLanes)!==0,Fc||r){if(Eo.current!==null)return tl(e,t,c);if(r=Qu,r!==null&&(a=gt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Di(e,a),Fd(r,e,a),Pc;return um(o)||qd(),tl(e,t,c)}return um(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ia=pm(o.nextSibling),ra=t,B=!0,aa=null,oa=!1,e!==null&&na(t,e),t=el(t,a.children),t.flags|=134221824,t)}function rl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ba(e.return,t,n)}function il(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Vo(n)===null&&(t=e),e=e.sibling}return t}function al(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function ol(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function sl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ro.current;if(t.flags&128)return zo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,zo(t,o),i===`backwards`&&e!==null?(ol(e),Ic(e,t,r,n),ol(e)):Ic(e,t,r,n),r=B?Ki:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rl(e,n,t);else if(e.tag===19)rl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ol(t)),al(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}al(t,!0,n,null,a,r);break;case`together`:al(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=il(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),al(t,!1,i,n,a,r)}return t.child}function W(e,t,n){var r=t.pendingProps;return va(t,t.type,r.value),Ic(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Sa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Pi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Ca(e)))}function ul(e,t,n){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),va(t,ja,e.memoizedState.cache),fa();break;case 27:case 5:Ee(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:va(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Po(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return No(t),t.flags|=128,null;r=Sa(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?$c(e,t,n):(No(t),e=cl(e,t,n),e===null?null:e.sibling)}No(t);break;case 19:if(t.flags&128)return sl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Sa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return sl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),zo(t,Ro.current),r)break;return null;case 22:return t.lanes=0,Bc(e,t,n,t.pendingProps);case 24:va(t,ja,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Fc=!0;else{if(!ll(e,n)&&!(t.flags&128))return Fc=!1,ul(e,t,n);Fc=!!(e.flags&131072)}}else Fc=!1,B&&t.flags&1048576&&$i(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=to(t.elementType),t.type=e,typeof e==`function`)Ni(e)?(r=wc(e,r),t.tag=1,t=Jc(null,t,e,r,n)):(t.tag=0,t=Kc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===I){t.tag=11,t=Lc(null,t,e,r,n);break a}if(a===ne){t.tag=14,t=Rc(null,t,e,r,n);break a}if(a===F){t.tag=10,t.type=e,t=W(null,t,n);break a}}throw t=fe(e)||e,Error(i(306,t,``))}}return t;case 0:return Kc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=wc(r,t.pendingProps),Jc(e,t,r,a,n);case 3:a:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,go(e,t),Co(t,r,null,n);var s=t.memoizedState;if(r=s.cache,va(t,ja,r),r!==o.cache&&xa(t,[ja],n,!0),So(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Yc(e,t,r,n);break a}if(r!==a){a=Hi(Error(i(424)),t),ma(a),t=Yc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ia=pm(e.firstChild),ra=t,B=!0,aa=null,oa=!0,n=po(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(fa(),r===a){t=cl(e,t,n);break a}Ic(e,t,r,n)}t=t.child}return t;case 26:return Gc(e,t),e===null?(n=Lm(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(t.stateNode=gp(t.type,t.pendingProps,Se.current,t)):t.memoizedState=Lm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&B&&(r=t.stateNode=ym(t.type,t.pendingProps,Se.current),ra=t,oa=!0,a=ia,Ep(t.type)?(mm=a,ia=pm(r.firstChild)):ia=a),Ic(e,t,t.pendingProps.children,n),Gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((a=r=ia)&&(r=sm(r,t.type,t.pendingProps,oa),r===null?a=!1:(t.stateNode=r,ra=t,ia=pm(r.firstChild),oa=!1,a=!0)),a||ca(t)),Ee(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,_p(a,o)?r=null:s!==null&&_p(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=es(e,t,rs,null,null,n),dh._currentValue=a),Gc(e,t),Ic(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=ia)&&(n=cm(n,t.pendingProps,oa),n===null?e=!1:(t.stateNode=n,ra=t,ia=null,e=!0)),e||ca(t)),null;case 13:return $c(e,t,n);case 4:return we(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fo(t,null,r,n):Ic(e,t,r,n),t.child;case 11:return Lc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Gc(e,t),Ic(e,t,r,n),t.child;case 8:return Ic(e,t,t.pendingProps.children,n),t.child;case 12:return Ic(e,t,t.pendingProps.children,n),t.child;case 10:return W(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,wa(t),a=Ta(a),r=r(a),t.flags|=1,Ic(e,t,r,n),t.child;case 14:return Rc(e,t,t.type,t.pendingProps,n);case 15:return zc(e,t,t.type,t.pendingProps,n);case 19:return sl(e,t,n);case 31:return Wc(e,t,n);case 22:return Bc(e,t,n,t.pendingProps);case 24:return wa(t),r=Ta(ja),e===null?(a=Ka(),a===null&&(a=Qu,o=Ma(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ho(t),va(t,ja,a)):((e.lanes&n)!==0&&(go(e,t),Co(t,null,null,n),So()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,va(t,ja,r),r!==a.cache&&xa(t,[ja],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),va(t,ja,r))),Ic(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:B&&ea(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Gc(e,t),Ic(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Qm(t,r):Qm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Wd())e.flags|=8192;else throw no=Qa,Xa}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!$m(t)){if(Wd())e.flags|=8192;else throw no=Qa,Xa}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ut(),e.lanes|=t,dd|=t)}function gl(e,t){if(!B)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function _l(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vl(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _l(t),null;case 1:return _l(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ya(ja),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(da(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pa())),_l(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(fl(t),o===null?(_l(t),pl(t,a,null,r,n)):(_l(t),ml(t,o))):o?o===e.memoizedState?(_l(t),t.flags&=-16777217):(fl(t),_l(t),ml(t,o)):(e=e.memoizedProps,e!==r&&fl(t),_l(t),pl(t,a,e,r,n)),null;case 27:if(De(t),n=Se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}e=be.current,da(t)?la(t,e):(e=ym(a,r,n),t.stateNode=e,fl(t))}return _l(t),t.subtreeFlags&=-33554433,null;case 5:if(De(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}if(o=be.current,da(t))la(t,o);else{var s=pp(Se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[St]=t,o[Ct]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(op(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&fl(t)}}return _l(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Se.current,da(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ra,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||rp(e.nodeValue,n)),e||ca(t,!0)}else e=pp(e).createTextNode(r),e[St]=t,t.stateNode=e}return _l(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=da(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[St]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),e=!1}else n=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Lo(t),t):(Lo(t),null);if(t.flags&128)throw Error(i(558))}return _l(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=da(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[St]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),a=!1}else a=pa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Lo(t),t):(Lo(t),null)}return Lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hl(t,t.updateQueue),_l(t),null);case 4:return Te(),e===null&&qf(t.stateNode.containerInfo),t.flags|=67108864,_l(t),null;case 10:return ya(t.type),_l(t),null;case 19:if(Bo(t),r=t.memoizedState,r===null)return _l(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)gl(r,!1);else{if(od!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vo(e),o!==null){for(t.flags|=128,gl(r,!1),e=o.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Fi(n,e),n=n.sibling;return zo(t,Ro.current&1|2),B&&Qi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Be()>_d&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Vo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!B)return _l(t),null}else 2*Be()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Be(),e.sibling=null,o=Ro.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||B?zo(t,o):(n=o,ye(jo,t),ye(Ro,n),Mo===null&&(Mo=t)),B&&Qi(t,r.treeForkCount),e}return _l(t),null;case 22:case 23:return Lo(t),Ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(_l(t),t.subtreeFlags&6&&(t.flags|=8192)):_l(t),n=t.updateQueue,n!==null&&hl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ve(Ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ya(ja),_l(t),null;case 25:return null;case 30:return t.flags|=33554432,_l(t),null}throw Error(i(156,t.tag))}function yl(e,t){switch(ta(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(ja),Te(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(Lo(t),t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Bo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Te(),null;case 10:return ya(t.type),null;case 22:case 23:return Lo(t),Ao(),e!==null&&ve(Ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ya(ja),null;case 25:return null;default:return null}}function bl(e,t){switch(ta(t),t.tag){case 3:ya(ja),Te();break;case 26:case 27:case 5:De(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Lo(t);break;case 13:Lo(t);break;case 19:Bo(t);break;case 10:ya(t.type);break;case 22:case 23:Lo(t),Ao(),e!==null&&ve(Ga);break;case 24:ya(ja)}}function xl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){hf(t,t.return,e)}}function Sl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){hf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){hf(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{To(t,n)}catch(t){hf(e,e.return,t)}}}function wl(e,t,n){n.props=wc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){hf(e,t,n)}}function Tl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=_i(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Rp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new zp(e);m(e.child,!1,nm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){hf(e,t,n)}}function G(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){hf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){hf(e,t,n)}else n.current=null}}function El(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)im(e.stateNode,t[n])}function Dl(e){for(var t=e.return;t!==null&&(kl(t)&&im(e.stateNode,t.stateNode),!Ol(t));)t=t.return}function K(e){for(var t=e.return;t!==null&&(kl(t)&&am(e.stateNode,t.stateNode),!Ol(t));)t=t.return}function Ol(e){return e.tag===5||e.tag===3||e.tag===27}function kl(e){return e&&e.tag===7&&e.stateNode!==null}function Al(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){hf(e,e.return,t)}}function jl(e,t,n){try{var r=e.stateNode;cp(r,e.type,n,t),r[Ct]=t}catch(t){hf(e,e.return,t)}}function Ml(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ep(e.type)||e.tag===4}function q(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ml(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&&Ep(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yn)),El(e,r),Kt=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Ep(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Nl(e,t,n,r),e=e.sibling;e!==null;)Nl(e,t,n,r),e=e.sibling}function Pl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),El(e,r),Kt=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Ep(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Pl(e,t,n,r),e=e.sibling;e!==null;)Pl(e,t,n,r),e=e.sibling}function Fl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);op(t,r,n),t[St]=e,t[Ct]=n}catch(t){hf(e,e.return,t)}}var Il=!1,Ll=null;function Rl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Il=!0)}var zl=null;function Bl(){var e=zl;return zl=null,e}var Vl=0;function Hl(e,t,n,r,i){return Vl=0,Ul(e.child,t,n,r,i)}function Ul(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Mp(o);r.push(s),s.view&&(a=!0)}else a||Mp(o).view&&(a=!0);Il=!0,kp(o,Vl===0?t:t+`_`+Vl,n),Vl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Ul(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function J(e,t){for(;e!==null;)e.tag===5?Ap(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||J(e.child,t),e=e.sibling}function Wl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Wl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=yi(t.default,t.share),t!==`none`&&(Hl(e,n,t,null,!1)||J(e.child,!1))}e=e.sibling}}function Gl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=_i(r,n),a=yi(r.default,n.paired?r.share:r.enter);a===`none`?Wl(e):Hl(e,i,a,null,!1)?(Wl(e),n.paired||t||Pd(e,r.onEnter)):J(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Gl(e,t),e=e.sibling;else Wl(e)}function Kl(e){if(Ll!==null&&Ll.size!==0){var t=Ll;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=yi(n.default,n.share);if(a!==`none`&&(Hl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Pd(e,n.onShare)):J(e.child,!1)),t.delete(r),t.size===0)break}}}Kl(e)}e=e.sibling}}}function ql(e){if(e.tag===30){var t=e.memoizedProps,n=_i(t,e.stateNode),r=Ll===null?void 0:Ll.get(n),i=yi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Hl(e,n,i,null,!1)?r===void 0?Pd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Ll.delete(n),Pd(e,t.onShare)):J(e.child,!1)),Ll!==null&&Kl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e),e=e.sibling;else Ll!==null&&Kl(e)}function Jl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=_i(t,e.stateNode);t=yi(t.default,t.update),e.flags&=-5,t!==`none`&&Hl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Jl(e);e=e.sibling}}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,J(e.child,!1))}Yl(e)}e=e.sibling}}function Xl(e){if(e.tag===30)e.stateNode.paired=null,J(e.child,!1),Yl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else Yl(e)}function Zl(e){for(e=e.child;e!==null;)e.tag===30?J(e.child,!1):e.subtreeFlags&33554432&&Zl(e),e=e.sibling}function Ql(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Vl<a.length){var l=a[Vl],u=Mp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&kp(c,Vl===0?n:n+`_`+Vl,i),s&&e.flags&4||(zl===null&&(zl=[]),zl.push(c,Vl===0?r:r+`_`+Vl,t.memoizedProps)),Vl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Ql(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function $l(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=_i(n,r),a=yi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Np)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Vl=0,i=Ql(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Pd(e,n.onUpdate))}else e.subtreeFlags&33554432&&$l(e,t);e=e.sibling}}var eu=!1,tu=!1,nu=!1,ru=!1,iu=typeof WeakSet==`function`?WeakSet:Set,au=null,ou=!1,su=!1,cu=!1,lu=!1;function uu(e,t,n){if(e=e.containerInfo,dp=bh,e=qr(e),Jr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(fp={focusedElem:e,selectionRange:r},bh=!1,n=(n&335544064)===n,au=t,t=n?9270:1024;au!==null;){if(e=au,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Rl(e),du(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&ql(r),du(n);continue}if(r!==null&&r.memoizedState!==null){n&&Rl(e),du(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,au=r):(n&&Jl(e),du(n))}}Ll=null}function du(e){for(;au!==null;){var t=au,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=wc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){hf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)om(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:om(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=_i(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=yi(a.default,a.update),a!==`none`&&Hl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,au=r;break}au=t.return}}function fu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Mu(e,n),r&4&&xl(5,n);break;case 1:if(Mu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){hf(n,n.return,e)}else{var i=wc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){hf(n,n.return,e)}}}r&64&&Cl(n),r&512&&Tl(n,n.return);break;case 3:if(Mu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{To(e,t)}catch(e){hf(n,n.return,e)}}break;case 27:t===null&&r&4&&Fl(n);case 26:case 5:Mu(e,n),t===null&&r&4&&Al(n),r&512&&Tl(n,n.return);break;case 12:Mu(e,n);break;case 31:Mu(e,n),r&4&&xu(e,n);break;case 13:Mu(e,n),r&4&&Su(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=yf.bind(null,n),fm(e,n))));break;case 22:if(r=n.memoizedState!==null||eu,!r){var a=t!==null&&t.memoizedState!==null||tu;t=eu,i=tu,eu=r,(tu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Pu(e,n,r)):Mu(e,n),eu=t,tu=i}break;case 30:Mu(e,n),r&512&&Tl(n,n.return);break;case 7:r&512&&Tl(n,n.return);default:Mu(e,n)}}function pu(e,t){for(e=e.child;e!==null;)mu(e,t),e=e.sibling}function mu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){hf(e,e.return,t)}hu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Kt=!0}catch(t){hf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Op(s,!0):Op(e.stateNode,!1)}catch(t){hf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&pu(e,t);break;default:pu(e,t)}}function hu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:mu(n,r);break a;case 22:n.memoizedState===null&&hu(n,r);break a;default:hu(n,r)}}e=e.sibling}}function gu(e){var t=e.alternate;t!==null&&(e.alternate=null,gu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jt(t)),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 _u=null,vu=!1;function yu(e,t,n){for(n=n.child;n!==null;)bu(e,t,n),n=n.sibling}function bu(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount==`function`)try{Xe.onCommitFiberUnmount(Ye,n)}catch{}switch(n.tag){case 26:tu||G(n,t),yu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!tu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tu||G(n,t),K(n);var r=_u,i=vu;Ep(n.type)&&(_u=n.stateNode,vu=!1),yu(e,t,n),bm(n.stateNode,n.type,n.memoizedProps),_u=r,vu=i;break;case 5:tu||G(n,t),K(n);case 6:if(n.tag===6&&K(n),r=_u,i=vu,_u=null,yu(e,t,n),_u=r,vu=i,_u!==null){if(vu)try{(_u.nodeType===9?_u.body:_u.nodeName===`HTML`?_u.ownerDocument.body:_u).removeChild(n.stateNode),Kt=!0}catch(e){hf(n,t,e)}else try{_u.removeChild(n.stateNode),Kt=!0}catch(e){hf(n,t,e)}}break;case 18:_u!==null&&(vu?(e=_u,Dp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Wh(e)):Dp(_u,n.stateNode));break;case 4:r=_u,i=vu,_u=n.stateNode.containerInfo,vu=!0,yu(e,t,n),_u=r,vu=i;break;case 0:case 11:case 14:case 15:Sl(2,n,t),tu||Sl(4,n,t),yu(e,t,n);break;case 1:tu||(G(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&wl(n,t,r)),yu(e,t,n);break;case 21:yu(e,t,n);break;case 22:tu=(r=tu)||n.memoizedState!==null,yu(e,t,n),tu=r;break;case 30:G(n,t),yu(e,t,n);break;case 7:tu||G(n,t),yu(e,t,n);break;default:yu(e,t,n)}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wh(e)}catch(e){hf(t,t.return,e)}}}function Su(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wh(e)}catch(e){hf(t,t.return,e)}}function Cu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new iu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new iu),t;default:throw Error(i(435,e.tag))}}function wu(e,t){var n=Cu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=bf.bind(null,e,t);t.then(r,r)}})}function Tu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Ep(l.type)){_u=l.stateNode,vu=!1;break a}break;case 5:_u=l.stateNode,vu=!1;break a;case 3:case 4:_u=l.stateNode.containerInfo,vu=!0;break a}l=l.return}if(_u===null)throw Error(i(160));bu(s,c,o),_u=null,vu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Du(t,e,n),t=t.sibling}var Eu=null;function Du(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Tu(t,e,n),Ou(e),a&4&&(Sl(3,e,e.return),xl(3,e),Sl(5,e,e.return));break;case 1:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||G(r,r.return)),a&64&&eu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Eu,Tu(t,e,n),Ou(e),a&512&&(tu||r===null||G(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(eu)e.stateNode=gp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[kt]||r[St]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),op(r,t,n),r[St]=e,It(r),t=r;break a;case`link`:if(o=Ym(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),op(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Ym(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),op(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[St]=e,It(r),t=r}e.stateNode=t}}else eu||Xm(o,e.type,e.stateNode)}else e.stateNode=Wm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&jl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||tu||t.parentNode.removeChild(t)):a.count--,n===null?eu||Xm(o,e.type,e.stateNode):Wm(o,n,e.memoizedProps))}break;case 27:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||G(r,r.return)),r!==null&&a&4&&jl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=nu,nu=!1,Tu(t,e,n),nu=o,Ou(e),a&512&&(tu||r===null||G(r,r.return)),e.flags&32){t=e.stateNode;try{dn(t,``),Kt=!0}catch(t){hf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,jl(e,t,r===null?t:r.memoizedProps)),a&1024&&(ru=!0);break;case 6:if(Tu(t,e,n),Ou(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Kt=!0}catch(t){hf(e,e.return,t)}}break;case 3:if(Kt=!1,Jm=null,o=Eu,Eu=wm(t.containerInfo),Tu(t,e,n),Eu=o,Ou(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Wh(t.containerInfo)}catch(t){hf(e,e.return,t)}ru&&(ru=!1,ku(e)),Kt=!1;break;case 4:a=nu,nu=eu,r=qt(),o=Eu,Eu=wm(e.stateNode.containerInfo),Tu(t,e,n),Ou(e),Eu=o,Kt&&su&&(cu=!0),Kt=r,nu=a;break;case 12:Tu(t,e,n),Ou(e);break;case 31:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 13:Tu(t,e,n),Ou(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(hd=Be()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=eu,l=tu,u=nu;eu=c||o,nu=u||o,tu=l||s,Tu(t,e,n),tu=l,nu=u,eu=c,Ou(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||eu||tu||(t=s||tu,n=eu,r=tu,eu=o||eu,tu=t,Nu(e,2),eu=n,tu=r),!o&&nu||pu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,wu(e,n))));break;case 19:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 30:a&512&&(tu||r===null||G(r,r.return)),a=qt(),o=su,s=(n&335544064)===n,c=e.memoizedProps,su=s&&yi(c.default,c.update)!==`none`,Tu(t,e,n),Ou(e),s&&r!==null&&Kt&&(e.flags|=4),su=o,Kt=a;break;case 21:break;case 7:a&512&&(tu||r===null||G(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Tu(t,e,n),Ou(e)}}function Ou(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Ml(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(kl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Ol(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Pl(e,q(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(dn(l,``),n.flags&=-33),Pl(e,q(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Nl(e,q(e),u,s);break;default:throw Error(i(161))}}catch(t){hf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ku(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ku(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,bh=!0,t.reset(),bh=!1),e=e.sibling}}function Au(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ju(t,e),t=t.sibling;else $l(t,!1)}function ju(e,t){var n=e.alternate;if(n===null)Gl(e,!1);else switch(e.tag){case 3:if(lu=ou=!1,Bl(),Au(t,e),!ou&&!cu){if(e=zl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ap(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),lu=!0}zl=null;break;case 5:Au(t,e);break;case 4:r=ou,ou=!1,Au(t,e),ou&&(cu=!0),ou=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Au(t,e):Gl(e,!1));break;case 30:r=ou,i=Bl(),ou=!1,Au(t,e),ou&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=_i(a,o),o=_i(n.memoizedProps,o);var s=yi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Vl=0,t=Ql(e,n,t,o,s,a,!0),Vl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Pd(e,e.memoizedProps.onUpdate),zl=i):i!==null&&(i.push.apply(i,zl),zl=i),ou=e.flags&32?!0:r;break;default:Au(t,e)}}function Mu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fu(e,t.alternate,t),t=t.sibling}function Nu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Sl(4,n,n.return),Nu(n,r);break;case 1:G(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&wl(n,n.return,i),Nu(n,r);break;case 27:r&2&&bm(n.stateNode,n.type,n.memoizedProps);case 5:G(n,n.return),n.tag!==5&&n.tag!==27||K(n),Nu(n,r);break;case 6:K(n);break;case 26:G(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||tu||i.parentNode.removeChild(i),Nu(n,r);break;case 22:n.memoizedState===null&&Nu(n,r);break;case 30:G(n,n.return),Nu(n,r);break;case 7:G(n,n.return);default:Nu(n,r)}e=e.sibling}}function Pu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Pu(i,a,n),xl(4,a);break;case 1:if(Pu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){hf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)wo(l[i],c)}catch(e){hf(r,r.return,e)}}s&&o&64&&Cl(a),Tl(a,a.return);break;case 27:n&2&&Fl(a);case 5:a.tag!==5&&a.tag!==27||Dl(a),Pu(i,a,n),s&&r===null&&o&4&&Al(a),Tl(a,a.return);break;case 6:Dl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||eu||Xm(wm(c.ownerDocument),a.type,c),Pu(i,a,n),s&&r===null&&o&4&&Al(a),Tl(a,a.return);break;case 12:Pu(i,a,n);break;case 31:Pu(i,a,n),s&&o&4&&xu(i,a);break;case 13:Pu(i,a,n),s&&o&4&&Su(i,a);break;case 22:a.memoizedState===null&&Pu(i,a,n),Tl(a,a.return);break;case 30:Pu(i,a,n),Tl(a,a.return);break;case 7:Tl(a,a.return);default:Pu(i,a,n)}t=t.sibling}}function Fu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Na(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Na(e))}function Lu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ru(e,t,n,r),t=t.sibling;else i&&Zl(t)}function Ru(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Xl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Lu(e,t,n,r),a&2048&&xl(9,t);break;case 1:Lu(e,t,n,r);break;case 3:Lu(e,t,n,r),i&&lu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Na(a)));break;case 12:if(a&2048){Lu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){hf(t,t.return,e)}}else Lu(e,t,n,r);break;case 31:Lu(e,t,n,r);break;case 13:Lu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Xl(t),o._visibility&2?Lu(e,t,n,r):(o._visibility|=2,zu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Xl(s),o._visibility&2?Lu(e,t,n,r):Bu(e,t)),a&2048&&Fu(s,t);break;case 24:Lu(e,t,n,r),a&2048&&Iu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(J(a.child,!0),J(t.child,!0))),Lu(e,t,n,r);break;default:Lu(e,t,n,r)}}function zu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:zu(a,o,s,c,i),xl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zu(a,o,s,c,i)):u._visibility&2?zu(a,o,s,c,i):Bu(a,o),i&&l&2048&&Fu(o.alternate,o);break;case 24:zu(a,o,s,c,i),i&&l&2048&&Iu(o.alternate,o);break;default:zu(a,o,s,c,i)}t=t.sibling}}function Bu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Bu(n,r),i&2048&&Fu(r.alternate,r);break;case 24:Bu(n,r),i&2048&&Iu(r.alternate,r);break;default:Bu(n,r)}t=t.sibling}}var Vu=8192;function Hu(e,t,n){if(e.subtreeFlags&Vu)for(e=e.child;e!==null;)Uu(e,t,n),e=e.sibling}function Uu(e,t,n){switch(e.tag){case 26:Hu(e,t,n),e.flags&Vu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&th(n,e)):nh(n,Eu,e.memoizedState,e.memoizedProps));break;case 5:Hu(e,t,n),e.flags&Vu&&(e=e.stateNode,(t&335544128)===t&&th(n,e));break;case 3:case 4:var r=Eu;Eu=wm(e.stateNode.containerInfo),Hu(e,t,n),Eu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vu,Vu=16777216,Hu(e,t,n),Vu=r):Hu(e,t,n));break;case 30:if((e.flags&Vu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Ll===null&&(Ll=new Map),Ll.set(r,i)}Hu(e,t,n);break;default:Hu(e,t,n)}}function Wu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ku(e),e=e.sibling}function Ku(e){switch(e.tag){case 0:case 11:case 15:Gu(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Gu(e);break;case 12:Gu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):Gu(e);break;default:Gu(e)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function Ju(e,t){for(;au!==null;){var n=au;switch(n.tag){case 0:case 11:case 15:Sl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Na(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,au=r;else a:for(n=e;au!==null;){r=au;var i=r.sibling,a=r.return;if(gu(r),r===n){au=null;break a}if(i!==null){i.return=a,au=i;break a}au=a}}}var Yu={getCacheForType:function(e){var t=Ta(ja),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ta(ja).controller.signal}},Xu=typeof WeakMap==`function`?WeakMap:Map,Zu=0,Qu=null,Y=null,$u=0,ed=0,td=null,nd=!1,rd=!1,id=!1,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=null,pd=null,md=!1,hd=0,gd=0,_d=1/0,vd=null,yd=null,bd=0,xd=null,Sd=null,Cd=0,wd=0,Td=null,Ed=null,Dd=null,Od=null,kd=null,Ad=0,jd=null;function Md(){return Zu&2&&$u!==0?$u&-$u:L.T===null?yt():If()}function Nd(){if(ud===0){if(!($u&536870912)||B){var e=rt;rt<<=1,!(rt&3932160)&&(rt=262144),ud=e}else ud=536870912}return e=jo.current,e!==null&&(e.flags|=32),ud}function Pd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Rp(_i(e.memoizedProps,n))),Od===null&&(Od=[]),Od.push(t.bind(null,r))}}function Fd(e,t,n){(e===Qu&&(ed===2||ed===9)||e.cancelPendingCommit!==null)&&(Hd(e,0),zd(e,$u,ud,!1)),ft(e,n),Zu&2&&e===Qu||(e===Qu&&(!(Zu&2)&&(cd|=n),od===4&&zd(e,$u,ud,!1)),Of(e))}function Id(e,t,n){if(Zu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||st(e,t),a=r?Xd(e,t):Jd(e,t,!0),o=r;do{if(a===0){rd&&!r&&zd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Rd(n))a=Jd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=fd;var l=c.current.memoizedState.isDehydrated;if(l&&(Hd(c,s).flags|=256),s=Jd(c,s,!1),s!==2&&s!==6){if(id&&!l){c.errorRecoveryDisabledLanes|=o,cd|=o,a=4;break a}o=pd,pd=a,o!==null&&(pd===null?pd=o:pd.push.apply(pd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Hd(e,0),zd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:zd(r,t,ud,!nd);break a;case 2:pd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=hd+300-Be(),10<a)){if(zd(r,t,ud,!nd),ot(r,0,!0)!==0)break a;Cd=t,r.timeoutHandle=bp(Ld.bind(null,r,n,pd,vd,md,t,ud,cd,dd,nd,o,`Throttled`,-0,0),a);break a}Ld(r,n,pd,vd,md,t,ud,cd,dd,nd,o,null,-0,0)}break}}while(1);Of(e)}function Ld(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Ll=null,Uu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=oh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?hd-Be():(a&4194048)===a?gd-Be():0,m=ih(d,m),m!==null)?(Cd=a,e.cancelPendingCommit=m(rf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),zd(e,a,o,!l)):rf(e,t,a,n,r,i,o,s,c,l,u,d)}function Rd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Vr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zd(e,t,n,r){t=ct(e,t),t&=~ld,t&=~cd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&mt(e,n,t)}function Bd(){return Zu&6?!0:(kf(0,!1),!1)}function Vd(){if(Y!==null){if(ed===0)var e=Y.return;else e=Y,_a=ga=null,os(e),ao=null,oo=0,e=Y;for(;e!==null;)bl(e.alternate,e),e=e.return;Y=null}}function Hd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,xp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cd=0,Vd(),Qu=e,Y=n=Pi(e.current,null),$u=t,ed=0,td=null,nd=!1,rd=st(e,t),id=!1,dd=ud=ld=cd=sd=od=0,pd=fd=null,md=!1,ad=ct(e,t),wi(),n}function Ud(e,t){V=null,L.H=gc,t===Ya||t===Za?(t=ro(),ed=3):t===Xa?(t=ro(),ed=4):ed=t===Pc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,td=t,Y===null&&(od=1,Oc(e,Hi(t,e.current)))}function Wd(){var e=jo.current;return e===null?!0:($u&4194048)===$u?Mo===null:($u&62914560)===$u||$u&536870912?e===Mo:!1}function Gd(){var e=L.H;return L.H=gc,e===null?gc:e}function Kd(){var e=L.A;return L.A=Yu,e}function qd(){od=4,nd||($u&4194048)!==$u&&jo.current!==null||(rd=!0),!(sd&134217727)&&!(cd&134217727)||Qu===null||zd(Qu,$u,ud,!1)}function Jd(e,t,n){var r=Zu;Zu|=2;var i=Gd(),a=Kd();(Qu!==e||$u!==t)&&(vd=null,Hd(e,t)),t=!1;var o=od;a:do try{if(ed!==0&&Y!==null){var s=Y,c=td;switch(ed){case 8:Vd(),o=6;break a;case 3:case 2:case 9:case 6:jo.current===null&&(t=!0);var l=ed;if(ed=0,td=null,ef(e,s,c,l),n&&rd){o=0;break a}break;default:l=ed,ed=0,td=null,ef(e,s,c,l)}}Yd(),o=od;break}catch(t){Ud(e,t)}while(1);return t&&e.shellSuspendCounter++,_a=ga=null,Zu=r,L.H=i,L.A=a,Y===null&&(Qu=null,$u=0,wi()),o}function Yd(){for(;Y!==null;)Qd(Y)}function Xd(e,t){var n=Zu;Zu|=2;var r=Gd(),a=Kd();Qu!==e||$u!==t?(vd=null,_d=Be()+500,Hd(e,t)):rd=st(e,t);a:do try{if(ed!==0&&Y!==null){t=Y;var o=td;b:switch(ed){case 1:ed=0,td=null,ef(e,t,o,1);break;case 2:case 9:if($a(o)){ed=0,td=null,$d(t);break}t=function(){ed!==2&&ed!==9||Qu!==e||(ed=7),Of(e)},o.then(t,t);break a;case 3:ed=7;break a;case 4:ed=5;break a;case 7:$a(o)?(ed=0,td=null,$d(t)):(ed=0,td=null,ef(e,t,o,7));break;case 5:var s=null;switch(Y.tag){case 26:s=Y.memoizedState;case 5:case 27:var c=Y;if(s?$m(s):c.stateNode.complete){ed=0,td=null;var l=c.sibling;if(l!==null)Y=l;else{var u=c.return;u===null?Y=null:(Y=u,tf(u))}break b}}ed=0,td=null,ef(e,t,o,5);break;case 6:ed=0,td=null,ef(e,t,o,6);break;case 8:Vd(),od=6;break a;default:throw Error(i(462))}}Zd();break}catch(t){Ud(e,t)}while(1);return _a=ga=null,L.H=r,L.A=a,Zu=n,Y===null?(Qu=null,$u=0,wi(),od):0}function Zd(){for(;Y!==null&&!Re();)Qd(Y)}function Qd(e){var t=dl(e.alternate,e,ad);e.memoizedProps=e.pendingProps,t===null?tf(e):Y=t}function $d(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=qc(n,t,t.pendingProps,t.type,void 0,$u);break;case 11:t=qc(n,t,t.pendingProps,t.type.render,t.ref,$u);break;case 5:os(t);var r=t;r===ra&&(B?(ua(r),r.tag===5&&r.stateNode!=null&&(ia=r.stateNode)):(ua(r),B=!0));default:bl(n,t),t=Y=Fi(t,ad),t=dl(n,t,ad)}e.memoizedProps=e.pendingProps,t===null?tf(e):Y=t}function ef(e,t,n,r){_a=ga=null,os(t),ao=null,oo=0;var i=t.return;try{if(Nc(e,i,t,n,$u)){od=1,Oc(e,Hi(n,e.current)),Y=null;return}}catch(t){if(i!==null)throw Y=i,t;od=1,Oc(e,Hi(n,e.current)),Y=null;return}t.flags&32768?(B||r===1?e=!0:rd||$u&536870912?e=!1:(nd=e=!0,(r===2||r===9||r===3||r===6)&&(r=jo.current,r!==null&&r.tag===13&&(r.flags|=16384))),nf(t,e)):tf(t)}function tf(e){var t=e;do{if(t.flags&32768){nf(t,nd);return}e=t.return;var n=vl(t.alternate,t,ad);if(n!==null){Y=n;return}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);od===0&&(od=5)}function nf(e,t){do{var n=yl(e.alternate,e);if(n!==null){n.flags&=32767,Y=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Y=e;return}Y=e=n}while(e!==null);od=6,Y=null}function rf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do ff();while(bd!==0);if(Zu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Qu&&(Y=Qu=null,$u=0),Sd=t,xd=e,Cd=n,Td=a,Ed=r,af(e,t,n,s,c,l,f)}}function af(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(wd=s,s|=Ci,pt(e,n,s,r,i,a),Od=null,(n&335544064)===n?(kd=Ia(e),r=10262):(kd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,xf(We,function(){return pf(),null})):(e.callbackNode=null,e.callbackPriority=0),Il=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=L.T,L.T=null,i=R.p,R.p=2,a=Zu,Zu|=4;try{uu(e,t,n)}finally{Zu=a,R.p=i,L.T=r}}bd=1,Il?Dd=Ip(o,e.containerInfo,kd,cf,lf,sf,uf,pf,of,null,null):(cf(),lf(),uf())}function of(e){if(bd!==0){var t=xd.onRecoverableError;t(e,{componentStack:null})}}function sf(){bd===3&&(bd=0,ju(Sd,xd),bd=4)}function cf(){if(bd===1){bd=0;var e=xd,t=Sd,n=Cd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=2;var a=Zu;Zu|=4;try{su=cu=!1,Du(t,e,n),n=fp;var o=qr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Kr(s.ownerDocument.documentElement,s)){if(c!==null&&Jr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Gr(s,h),v=Gr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}bh=!!dp,fp=dp=null}finally{Zu=a,R.p=i,L.T=r}}e.current=t,bd=2}}function lf(){if(bd===2){bd=0;var e=xd,t=Sd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=Zu;Zu|=4;try{fu(e,t.alternate,t)}finally{Zu=i,R.p=r,L.T=n}}bd=3}}function uf(){if(bd===4||bd===3){bd=0;var e=Dd;Dd=null,ze();var t=xd,n=Sd,r=Cd,i=Ed,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?bd=5:(bd=0,Sd=xd=null,df(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(yd=null),vt(r),n=n.stateNode,Xe&&typeof Xe.onCommitFiberRoot==`function`)try{Xe.onCommitFiberRoot(Ye,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=L.T,a=R.p,R.p=2,L.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{L.T=n,R.p=a}}if(i=Od,o=kd,kd=null,i!==null&&(Od=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Cd&3&&ff(),Of(t),a=t.pendingLanes,r&261930&&a&42?t===jd?Ad++:(Ad=0,jd=t):(Ad=0,jd=null),kf(0,!1)}}function df(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Na(t)))}function ff(){return Dd!==null&&(Dd.skipTransition(),Dd=null),cf(),lf(),uf(),pf()}function pf(){if(bd!==5)return!1;var e=xd,t=wd;wd=0;var n=vt(Cd),r=L.T,a=R.p;try{R.p=32>n?32:n,L.T=null,n=Td,Td=null;var o=xd,s=Cd;if(bd=0,Sd=xd=null,Cd=0,Zu&6)throw Error(i(331));var c=Zu;if(Zu|=4,Ku(o.current),Ru(o,o.current,s,n),Zu=c,kf(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot==`function`)try{Xe.onPostCommitFiberRoot(Ye,o)}catch{}return!0}finally{R.p=a,L.T=r,df(e,t)}}function mf(e,t,n){t=Hi(n,t),t=Ac(e.stateNode,t,2),e=vo(e,t,2),e!==null&&(ft(e,2),Of(e))}function hf(e,t,n){if(e.tag===3)mf(e,e,n);else for(;t!==null;){if(t.tag===3){mf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Hi(n,e),n=jc(2),r=vo(t,n,2),r!==null&&(Mc(n,r,t,e),ft(r,2),Of(r));break}}t=t.return}}function gf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(id=!0,i.add(n),e=_f.bind(null,e,t,n),t.then(e,e))}function _f(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qu===e&&($u&n)===n&&(od===4||od===3&&($u&62914560)===$u&&300>Be()-hd?Zu&2?ld|=n:Hd(e,0):ld|=n,dd===$u&&(dd=0)),Of(e)}function vf(e,t){t===0&&(t=ut()),e=Di(e,t),e!==null&&(ft(e,t),Of(e))}function yf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vf(e,n)}function bf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),vf(e,n)}function xf(e,t){return Ie(e,t)}var Sf=null,Cf=null,wf=!1,Tf=!1,Ef=!1,Df=0;function Of(e){e!==Cf&&e.next===null&&(Cf===null?Sf=Cf=e:Cf=Cf.next=e),Tf=!0,wf||(wf=!0,Ff())}function kf(e,t){if(!Ef&&Tf){Ef=!0;do for(var n=!1,r=Sf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Pf(r,a))}else a=$u,a=ot(r,r===Qu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||st(r,a)||(n=!0,Pf(r,a))}r=r.next}while(n);Ef=!1}}function Af(){jf()}function jf(){Tf=wf=!1;var e=0;Df!==0&&yp()&&(e=Df);for(var t=Be(),n=null,r=Sf;r!==null;){var i=r.next,a=Mf(r,t);a===0?(r.next=null,n===null?Sf=i:n.next=i,i===null&&(Cf=n)):(n=r,(e!==0||a&3)&&(Tf=!0)),r=i}bd!==0&&bd!==5||kf(e,!1),Df!==0&&(Df=0)}function Mf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=lt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Qu,n=$u,n=ot(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ed===2||ed===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Le(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||st(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Le(r),vt(n)){case 2:case 8:n=Ue;break;case 32:n=We;break;case 268435456:n=Ke;break;default:n=We}return r=Nf.bind(null,e),n=Ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Le(r),e.callbackPriority=2,e.callbackNode=null,2}function Nf(e,t){if(bd!==0&&bd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ff()&&e.callbackNode!==n)return null;var r=$u;return r=ot(e,e===Qu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Id(e,r,t),Mf(e,Be()),e.callbackNode!=null&&e.callbackNode===n?Nf.bind(null,e):null)}function Pf(e,t){if(ff())return null;Id(e,t,!0)}function Ff(){wp(function(){Zu&6?Ie(He,Af):jf()})}function If(){if(Df===0){var e=za;e===0&&(e=nt,nt<<=1,!(nt&261888)&&(nt=256)),Df=e}return Df}function Lf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:vn(e)}function Rf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Lf((i[Ct]||null).action),o=r.submitter;o&&(t=(t=o[Ct]||null)?Lf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Bn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Df!==0){var e=new FormData(i,o);nc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),nc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var zf=0;zf<mi.length;zf++){var Bf=mi[zf];hi(Bf.toLowerCase(),`on`+(Bf[0].toUpperCase()+Bf.slice(1)))}hi(oi,`onAnimationEnd`),hi(si,`onAnimationIteration`),hi(ci,`onAnimationStart`),hi(`dblclick`,`onDoubleClick`),hi(`focusin`,`onFocus`),hi(`focusout`,`onBlur`),hi(li,`onTransitionRun`),hi(ui,`onTransitionStart`),hi(di,`onTransitionCancel`),hi(fi,`onTransitionEnd`),Vt(`onMouseEnter`,[`mouseout`,`mouseover`]),Vt(`onMouseLeave`,[`mouseout`,`mouseover`]),Vt(`onPointerEnter`,[`pointerout`,`pointerover`]),Vt(`onPointerLeave`,[`pointerout`,`pointerover`]),Bt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Bt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Bt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Bt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Bt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Bt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Vf=`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(` `),Hf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Vf));function Uf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){bi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){bi(e)}i.currentTarget=null,a=c}}}}function Wf(e,t){var n=t[Tt];n===void 0&&(n=t[Tt]=new Set);var r=e+`__bubble`;n.has(r)||(Jf(t,e,2,!1),n.add(r))}function Gf(e,t,n){var r=0;t&&(r|=4),Jf(n,e,r,t)}var Kf=`_reactListening`+Math.random().toString(36).slice(2);function qf(e){if(!e[Kf]){e[Kf]=!0,Rt.forEach(function(t){t!==`selectionchange`&&(Hf.has(t)||Gf(t,!1,e),Gf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kf]||(t[Kf]=!0,Gf(`selectionchange`,!1,t))}}function Jf(e,t,n,r){switch(Dh(t)){case 2:var i=xh;break;case 8:i=Sh;break;default:i=Ch}n=i.bind(null,t,n,e),i=void 0,!kn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Yf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Mt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}En(function(){var r=a,i=xn(n),s=[];a:{var c=pi.get(e);if(c!==void 0){var l=Bn,u=e;switch(e){case`keypress`:if(Fn(n)===0)break a;case`keydown`:case`keyup`:l=ir;break;case`focusin`:u=`focus`,l=Yn;break;case`focusout`:u=`blur`,l=Yn;break;case`beforeblur`:case`afterblur`:l=Yn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=qn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Jn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=or;break;case oi:case si:case ci:l=Xn;break;case fi:l=sr;break;case`scroll`:case`scrollend`:l=Hn;break;case`wheel`:l=cr;break;case`copy`:case`cut`:case`paste`:l=Zn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=z;break;case`submit`:l=ar;break;case`toggle`:case`beforetoggle`:l=lr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Dn(m,p),g!=null&&d.push(Xf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==bn&&(u=n.relatedTarget||n.fromElement)&&(Mt(u)||u[wt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Mt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=qn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=z,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Pt(c),h=l==null?u:Pt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Mt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Qf):null,c!==null&&$f(s,u,c,d,!1),l!==null&&f!==null&&$f(s,f,l,d,!0)))}a:{if(c=r?Pt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=kr;else if(Cr(c)){if(Ar)_=zr;else{_=Lr;var v=Ir}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&hn(r.elementType)&&(_=kr):_=Rr;if(_&&=_(e,r)){wr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Pt(r):window,e){case`focusin`:(Cr(v)||v.contentEditable===`true`)&&(Xr=v,Zr=r,Qr=null);break;case`focusout`:Qr=Zr=Xr=null;break;case`mousedown`:$r=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:$r=!1,ei(s,n,i);break;case`selectionchange`:if(Yr)break;case`keydown`:case`keyup`:ei(s,n,i)}var y;if(dr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else yr?_r(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(mr&&n.locale!==`ko`&&(yr||b!==`onCompositionStart`?b===`onCompositionEnd`&&yr&&(y=Pn()):(jn=i,Mn=`value`in jn?jn.value:jn.textContent,yr=!0)),v=Zf(r,b),0<v.length&&(b=new Qn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=vr(n),y!==null&&(b.data=y)))),(y=pr?br(e,n):xr(e,n))&&(b=Zf(r,`onBeforeInput`),0<b.length&&(v=new Qn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Rf(s,e,r,n,i)}Uf(s,t)})}function Xf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Dn(e,n),i!=null&&r.unshift(Xf(e,i,a)),i=Dn(e,t),i!=null&&r.push(Xf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Qf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $f(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Dn(n,a),l!=null&&o.unshift(Xf(n,l,c))):i||(l=Dn(n,a),l!=null&&o.push(Xf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ep=/\r\n?/g,tp=/\u0000|\uFFFD/g;function np(e){return(typeof e==`string`?e:``+e).replace(ep,`
|
|
9
|
-
`).replace(tp,``)}function rp(e,t){return t=np(t),np(e)===t}function ip(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||dn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&dn(e,``+r);else return;break;case`className`:Yt(e,`class`,r);break;case`tabIndex`:Yt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Yt(e,n,r);break;case`style`:mn(e,r,o);return;case`data`:if(t!==`object`){Yt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=vn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ip(e,t,`name`,a.name,a,null),ip(e,t,`formEncType`,a.formEncType,a,null),ip(e,t,`formMethod`,a.formMethod,a,null),ip(e,t,`formTarget`,a.formTarget,a,null)):(ip(e,t,`encType`,a.encType,a,null),ip(e,t,`method`,a.method,a,null),ip(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=vn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=yn);return;case`onScroll`:r!=null&&Wf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Wf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=vn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Wf(`beforetoggle`,e),Wf(`toggle`,e),Jt(e,`popover`,r);break;case`xlinkActuate`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Jt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=gn.get(n)||n,Jt(e,n,r);else return}Kt=!0}function ap(e,t,n,r,a,o){switch(n){case`style`:mn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)dn(e,r);else if(typeof r==`number`||typeof r==`bigint`)dn(e,``+r);else return;break;case`onScroll`:r!=null&&Wf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Wf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=yn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!zt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[Ct]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Kt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Jt(e,n,r)}return}Kt=!0}function op(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Wf(`error`,e),Wf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,o,s,n,null)}}a&&ip(e,t,`srcSet`,n.srcSet,n,null),r&&ip(e,t,`src`,n.src,n,null);return;case`input`:Wf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:ip(e,t,r,d,n,null)}}on(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Wf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ip(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&cn(e,!!r,n,!0):cn(e,!!r,t,!1);return;case`textarea`:for(s in Wf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:ip(e,t,s,c,n,null)}un(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ip(e,t,l,r,n,null)}return;case`dialog`:Wf(`beforetoggle`,e),Wf(`toggle`,e),Wf(`cancel`,e),Wf(`close`,e);break;case`iframe`:case`object`:Wf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Vf.length;r++)Wf(Vf[r],e);break;case`image`:Wf(`error`,e),Wf(`load`,e);break;case`details`:Wf(`toggle`,e);break;case`embed`:case`source`:case`link`:Wf(`error`,e),Wf(`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(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,u,r,n,null)}return;default:if(hn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ap(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ip(e,t,c,r,n,null))}var sp={};function cp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ip(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Kt=!0),o=m;break;case`name`:m!==f&&(Kt=!0),a=m;break;case`checked`:m!==f&&(Kt=!0),u=m;break;case`defaultChecked`:m!==f&&(Kt=!0),d=m;break;case`value`:m!==f&&(Kt=!0),s=m;break;case`defaultValue`:m!==f&&(Kt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ip(e,t,p,m,r,f)}}an(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ip(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Kt=!0),p=o;break;case`defaultValue`:o!==l&&(Kt=!0),c=o;break;case`multiple`:o!==l&&(Kt=!0),s=o;default:o!==l&&ip(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?cn(e,!!n,n?[]:``,!1):cn(e,!!n,t,!0)):cn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ip(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Kt=!0),p=a;break;case`defaultValue`:a!==o&&(Kt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ip(e,t,s,a,r,o)}ln(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ip(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Kt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ip(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ip(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:ip(e,t,u,p,r,m)}return;default:if(hn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ap(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||ap(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ip(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ip(e,t,f,p,r,m)}function lp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function up(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&lp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&lp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var dp=null,fp=null;function pp(e){return e.nodeType===9?e:e.ownerDocument}function mp(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 hp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function gp(e,t,n,r){return n=pp(n).createElement(e),n[St]=r,n[Ct]=t,op(n,e,t),It(n),n}function _p(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vp=null;function yp(){var e=window.event;return e&&e.type===`popstate`?e!==vp&&(vp=e,!0):(vp=null,!1)}var bp=typeof setTimeout==`function`?setTimeout:void 0,xp=typeof clearTimeout==`function`?clearTimeout:void 0,Sp=typeof Promise==`function`?Promise:void 0,Cp=typeof requestAnimationFrame==`function`?requestAnimationFrame:bp,wp=typeof queueMicrotask==`function`?queueMicrotask:Sp===void 0?bp:function(e){return Sp.resolve(null).then(e).catch(Tp)};function Tp(e){setTimeout(function(){throw e})}function Ep(e){return e===`head`}function Dp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Wh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[kt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xm(e.ownerDocument.body)}n=i}while(n);Wh(t)}function Op(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function kp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ap(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function jp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Mp(e){return jp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Np(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return jp(t,n,e)}function Pp(e){return e.documentElement.clientHeight}function Fp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Ip(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Pp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=eh(f),u>rh){s.length=o;break}f=new Promise(Fp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Lp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Lp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Lp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Lp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Rp(e){return{name:e,group:new Lp(`group`,e),imagePair:new Lp(`image-pair`,e),old:new Lp(`old`,e),new:new Lp(`new`,e)}}function zp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}zp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Wp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Hp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Bp,e,s,r)}this._eventListeners=a}};function Bp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}zp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Wp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Hp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Vp,e,n,i),r.splice(t,1),a!==null&&a()}};function Vp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Hp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Up(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Wp(e,t,n,r){if(e.length===0)return-1;r=Up(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Up(a.optionsOrUseCapture)===r)return i}return-1}zp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Hp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Hp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},zp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Gp,e,void 0,void 0)};function Gp(e,t){return e.tag!==6&&(e=b(e),_m(e,t))}zp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Kp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Gp(t[n],e);n--);};function Kp(e,t){return t.push(e),!1}zp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=pp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,qp,e,void 0,void 0))};function qp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}zp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Jp,e,void 0,void 0)};function Jp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}zp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0);for(var n=t=0;n<Xp.length;n++){var r=Xp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Xp[t++]=r}Xp.length=t}};function Yp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Xp=[],Zp=!1;function Qp(e,t,n){Xp.push({fragmentInstance:e,observer:t,instance:n}),Zp||(Zp=!0,vm(function(){Zp=!1;var e=Xp;Xp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}zp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,$p,e,void 0,void 0),e};function $p(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}zp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},zp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Kp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||em(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function em(e,t,n,r,i){var a=Mt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(m(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function tm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}zp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Kp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),tm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),tm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function nm(e,t){return e=b(e),rm(e,t),!1}function rm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function im(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Xp.length;i++){var a=Xp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Xp[r++]=a)}Xp.length=r,n.observe(e)}),rm(e,t))}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Qp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function om(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:om(n),jt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function sm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[kt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=pm(e.nextSibling),e===null)break}return null}function cm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pm(e.nextSibling),e===null))return null;return e}function lm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pm(e.nextSibling),e===null))return null;return e}function um(e){return e.data===`$?`||e.data===`$~`}function dm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function fm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function pm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var mm=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return pm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function gm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function _m(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function vm(e){Cp(function(){Cp(function(t){return e(t)})})}function ym(e,t,n){switch(t=pp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function bm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ip(e,t,r,null,sp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===yn&&(e.onclick=null),jt(e)}function xm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jt(e)}var Sm=new Map,Cm=new Set;function wm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Tm=R.d;R.d={f:Em,r:Dm,D:Am,C:jm,L:Mm,m:Nm,X:Fm,S:Pm,M:Im};function Em(){var e=Tm.f(),t=Bd();return e||t}function Dm(e){var t=Nt(e);t!==null&&t.tag===5&&t.type===`form`?ic(t):Tm.r(e)}var Om=typeof document>`u`?null:document;function km(e,t,n){var r=Om;if(r&&typeof t==`string`&&t){var i=rn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cm.has(i)||(Cm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),op(t,`link`,e),It(t),r.head.appendChild(t)))}}function Am(e){Tm.D(e),km(`dns-prefetch`,e,null)}function jm(e,t){Tm.C(e,t),km(`preconnect`,e,t)}function Mm(e,t,n){Tm.L(e,t,n);var r=Om;if(r&&e&&t){var i=`link[rel="preload"][as="`+rn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+rn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+rn(n.imageSizes)+`"]`)):i+=`[href="`+rn(e)+`"]`;var a=i;switch(t){case`style`:a=Rm(e);break;case`script`:a=Hm(e)}if(!(Sm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zm(a))||t===`script`&&r.querySelector(Um(a))))){var o=r.createElement(`link`);op(o,`link`,e),t===`style`&&(o[At]=!0,o.onload=o.onerror=function(){Lt(o)}),It(o),r.head.appendChild(o)}}}function Nm(e,t){Tm.m(e,t);var n=Om;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+rn(r)+`"][href="`+rn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hm(e)}if(!Sm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Sm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Um(a)))return}r=n.createElement(`link`),op(r,`link`,e),It(r),n.head.appendChild(r)}}}function Pm(e,t,n){Tm.S(e,t,n);var r=Om;if(r&&e){var i=Ft(r).hoistableStyles,a=Rm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sm.get(a))&&Km(e,n);var c=o=r.createElement(`link`);It(c),op(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Fm(e,t){Tm.X(e,t);var n=Om;if(n&&e){var r=Ft(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=D({src:e,async:!0},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),It(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t){Tm.M(e,t);var n=Om;if(n&&e){var r=Ft(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),It(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t,n,r){var a=(a=Se.current)?wm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Rm(n.href),t=Ft(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rm(n.href);var o=Ft(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Sm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sm.set(e,o)),Vm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Hm(n),t=Ft(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rm(e){return`href="`+rn(e)+`"`}function zm(e){return`link[rel="stylesheet"][`+e+`]`}function Bm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Vm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[At]){r.loading=1;return}}else t=e.createElement(`link`),t[At]=!0,t.onload=t.onerror=Lt.bind(null,t),op(t,`link`,n),It(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Hm(e){return`[src="`+rn(e)+`"]`}function Um(e){return`script[async]`+e}function Wm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+rn(n.href)+`"]`);if(r)return t.instance=r,It(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),It(r),op(r,`style`,a),Gm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rm(n.href);var o=e.querySelector(zm(a));if(o)return t.state.loading|=4,t.instance=o,It(o),o;r=Bm(n),(a=Sm.get(a))&&Km(r,a),o=(e.ownerDocument||e).createElement(`link`),It(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),op(o,`link`,r),t.state.loading|=4,Gm(o,n.precedence,e),t.instance=o;case`script`:return o=Hm(n.src),(a=e.querySelector(Um(o)))?(t.instance=a,It(a),a):(r=n,(a=Sm.get(o))&&(r=D({},n),qm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),It(a),op(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gm(r,n.precedence,e));return t.instance}function Gm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jm=null;function Ym(e,t,n){if(Jm===null){var r=new Map,i=Jm=new Map;i.set(n,r)}else i=Jm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[kt]||a[St]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Xm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Zm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function $m(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function eh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function th(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=eh(t),e.suspenseyImages.push(t)),e=sh.bind(e),t.decode().then(e,e))}function nh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rm(r.href),a=t.querySelector(zm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=oh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,It(a);return}a=t.ownerDocument||t,r=Bm(r),(i=Sm.get(i))&&Km(r,i),a=a.createElement(`link`),It(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),op(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=oh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var rh=0;function ih(e,t){return e.stylesheets&&e.count===0&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&rh===0&&(rh=62500*up());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>rh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ah(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function oh(){this.count--,ah(this)}function sh(){this.imgCount--,ah(this)}var ch=null;function lh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ch=new Map,t.forEach(uh,e),ch=null,oh.call(e))}function uh(e,t){if(!(t.state.loading&4)){var n=ch.get(e);if(n)var r=n.get(null);else{n=new Map,ch.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=oh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var dh={$$typeof:F,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function fh(e,t,n,r,i,a,o,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=dt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dt(0),this.hiddenUpdates=dt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function ph(e,t,n,r,i,a,o,s,c,l,u,d){return e=new fh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Mi(3,null,null,t),e.current=a,a.stateNode=e,t=Ma(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ho(a),e}function mh(e){return e?(e=Ai,e):Ai}function hh(e,t,n,r,i,a){i=mh(i),r.context===null?r.context=i:r.pendingContext=i,r=_o(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=vo(e,r,t),n!==null&&(Fd(n,e,t),yo(n,e,t))}function gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _h(e,t){gh(e,t),(e=e.alternate)&&gh(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=Di(e,67108864);t!==null&&Fd(t,e,67108864),_h(e,67108864)}}function yh(e){if(e.tag===13||e.tag===31){var t=Md();t=_t(t);var n=Di(e,t);n!==null&&Fd(n,e,t),_h(e,t)}}var bh=!0;function xh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,Ch(e,t,n,r)}finally{R.p=a,L.T=i}}function Sh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,Ch(e,t,n,r)}finally{R.p=a,L.T=i}}function Ch(e,t,n,r){if(bh){var i=wh(r);if(i===null)Yf(e,t,r,Th,n),Ph(e,r);else if(Ih(i,e,t,n,r))r.stopPropagation();else if(Ph(e,r),t&4&&-1<Nh.indexOf(e)){for(;i!==null;){var a=Nt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=at(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Qe(o);s.entanglements[1]|=c,o&=~c}Of(a),!(Zu&6)&&(_d=Be()+500,kf(0,!1))}}break;case 31:case 13:s=Di(a,2),s!==null&&Fd(s,a,2),Bd(),_h(a,2)}if(a=wh(r),a===null&&Yf(e,t,r,Th,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}function wh(e){return e=xn(e),Eh(e)}var Th=null;function Eh(e){if(Th=null,e=Mt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Th=e,null}function Dh(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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ve()){case He:return 2;case Ue:return 8;case We:case Ge:return 32;case Ke:return 268435456;default:return 32}default:return 32}}var Oh=!1,kh=null,Ah=null,X=null,jh=new Map,Mh=new Map,Z=[],Nh=`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 Ph(e,t){switch(e){case`focusin`:case`focusout`:kh=null;break;case`dragenter`:case`dragleave`:Ah=null;break;case`mouseover`:case`mouseout`:X=null;break;case`pointerover`:case`pointerout`:jh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Mh.delete(t.pointerId)}}function Fh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Nt(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ih(e,t,n,r,i){switch(t){case`focusin`:return kh=Fh(kh,e,t,n,r,i),!0;case`dragenter`:return Ah=Fh(Ah,e,t,n,r,i),!0;case`mouseover`:return X=Fh(X,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return jh.set(a,Fh(jh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Mh.set(a,Fh(Mh.get(a)||null,e,t,n,r,i)),!0}return!1}function Lh(e){var t=Mt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,bt(e.priority,function(){yh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,bt(e.priority,function(){yh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);bn=r,n.target.dispatchEvent(r),bn=null}else return t=Nt(n),t!==null&&vh(t),e.blockedOn=n,!1;t.shift()}return!0}function zh(e,t,n){Rh(e)&&n.delete(t)}function Bh(){Oh=!1,kh!==null&&Rh(kh)&&(kh=null),Ah!==null&&Rh(Ah)&&(Ah=null),X!==null&&Rh(X)&&(X=null),jh.forEach(zh),Mh.forEach(zh)}function Vh(e,n){e.blockedOn===n&&(e.blockedOn=null,Oh||(Oh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bh)))}var Hh=null;function Uh(e){Hh!==e&&(Hh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Hh===e&&(Hh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Eh(r||n)===null)continue;break}var a=Nt(n);a!==null&&(e.splice(t,3),t-=3,nc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Wh(e){function t(t){return Vh(t,e)}kh!==null&&Vh(kh,e),Ah!==null&&Vh(Ah,e),X!==null&&Vh(X,e),jh.forEach(t),Mh.forEach(t);for(var n=0;n<Z.length;n++){var r=Z[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Z.length&&(n=Z[0],n.blockedOn===null);)Lh(n),n.blockedOn===null&&Z.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ct]||null;if(typeof a==`function`)o||Uh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ct]||null)s=o.formAction;else if(Eh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Uh(n)}}}function Gh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Kh(e){this._internalRoot=e}qh.prototype.render=Kh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;hh(n,Md(),e,t,null,null)},qh.prototype.unmount=Kh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hh(e.current,2,null,e,null,null),Bd(),t[wt]=null}};function qh(e){this._internalRoot=e}qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=yt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Z.length&&t!==0&&t<Z[n].priority;n++);Z.splice(n,0,e),n===0&&Lh(e)}};var Jh=n.version;if(Jh!==`19.3.1`)throw Error(i(527,Jh,`19.3.1`));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Yh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xh.isDisabled&&Xh.supportsFiber)try{Ye=Xh.inject(Yh),Xe=Xh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Tc,s=Ec,c=Dc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ph(e,1,!1,null,null,n,r,null,o,s,c,Gh),e[wt]=t.current,qf(e),new Kh(t)}})),_=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=l(d(),1),y=_(),b=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function x(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:b(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var S=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},C=e=>{let t=S(e);return t.charAt(0).toUpperCase()+t.slice(1)},w=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),T={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function E(e){return e!=null}function D(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??T.width,a=e.size??e.height??T.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?w(...c):w(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??T[`stroke-width`])*Number(e.size??e.width??T.width)/Number(t.size??t.width??T.width):t.strokeWidth??T[`stroke-width`];return[`svg`,{...Object.entries(T).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&E(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&E(t.width)&&{[r(`width`)]:t.width},...`height`in t&&E(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function O(e,t={}){return D(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var k=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},A=(0,v.createContext)({}),j=()=>(0,v.useContext)(A),M=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=j()??{},b=!!c||k(d),[x,S,C=[]]=O(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:w(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function N(e,t=[],n=[]){let r=typeof e==`string`?x(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(M,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=C(r.name)),i}var P={name:`arrow-down-to-line`,size:24,node:[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]};P.node;var F=N(P),I={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};I.node;var ee=N(I),te={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};te.node;var ne=N(te),re={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};re.node;var ie=N(re),ae={name:`chart-pie`,size:24,node:[[`path`,{d:`M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z`,key:`pzmjnu`}],[`path`,{d:`M21.21 15.89A10 10 0 1 1 8 2.83`,key:`k2fpak`}]],aliases:[`pie-chart`]};ae.node;var oe=N(ae),se={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};se.node;var ce=N(se),le={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};le.node;var ue=N(le),de={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};de.node;var fe=N(de),pe={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};pe.node;var L=N(pe),R={name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};R.node;var me=N(R),he={name:`circle-minus`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]],aliases:[`minus-circle`]};he.node;var ge=N(he),_e={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5`,key:`1awbb0`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};_e.node;var ve=N(_e),ye={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};ye.node;var be=N(ye),xe={name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]};xe.node;var Se=N(xe),Ce={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Ce.node;var we=N(Ce),Te={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]};Te.node;var Ee=N(Te),De={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};De.node;var Oe=N(De),ke={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};ke.node;var Ae=N(ke),je={name:`file-text`,size:24,node:[[`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:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};je.node;var Me=N(je),Ne={name:`folder-git-2`,size:24,node:[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`,key:`sz5oeg`}],[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]};Ne.node;var Pe=N(Ne),Fe={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};Fe.node;var Ie=N(Fe),Le={name:`folder-search`,size:24,node:[[`path`,{d:`M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1`,key:`1bw5m7`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]};Le.node;var Re=N(Le),ze={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};ze.node;var Be=N(ze),Ve={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};Ve.node;var He=N(Ve),Ue={name:`hard-drive`,size:24,node:[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]};Ue.node;var We=N(Ue),Ge={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Ge.node;var Ke=N(Ge),qe={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};qe.node;var Je=N(qe),Ye={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};Ye.node;var Xe=N(Ye),Ze={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Ze.node;var Qe=N(Ze),$e={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};$e.node;var et=N($e),tt={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};tt.node;var nt=N(tt),rt={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};rt.node;var it=N(rt),at={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};at.node;var ot=N(at),st={name:`panel-left-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]],aliases:[`sidebar-close`]};st.node;var ct=N(st),lt={name:`panel-left-open`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]],aliases:[`sidebar-open`]};lt.node;var ut=N(lt),dt={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};dt.node;var ft=N(dt),pt={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};pt.node;var mt=N(pt),ht={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};ht.node;var gt=N(ht),_t={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};_t.node;var vt=N(_t),yt={name:`save`,size:24,node:[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]};yt.node;var bt=N(yt),xt={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};xt.node;var St=N(xt),Ct={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Ct.node;var wt=N(Ct),Tt={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Tt.node;var Et=N(Tt),Dt={name:`shield-exclamation-point`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]],aliases:[`shield-alert`]};Dt.node;var Ot=N(Dt),kt={name:`square-kanban`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}]],aliases:[`kanban-square`]};kt.node;var At=N(kt),jt={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};jt.node;var Mt=N(jt),Nt={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};Nt.node;var Pt=N(Nt),Ft={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Ft.node;var It=N(Ft),Lt={name:`triangle-exclamation-point`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`,`triangle-alert`]};Lt.node;var Rt=N(Lt),zt={name:`user-check`,size:24,node:[[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};zt.node;var Bt=N(zt),Vt={name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]};Vt.node;var Ht=N(Vt),Ut={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Ut.node;var Wt=N(Ut),Gt={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Gt.node;var Kt=N(Gt),qt=l(h(),1);function Jt(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Yt=e=>{switch(e){case`success`:return Qt;case`info`:return en;case`warning`:return $t;case`error`:return tn;default:return null}},Xt=Array(12).fill(0),Zt=({visible:e,className:t})=>v.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},v.createElement(`div`,{className:`sonner-spinner`},Xt.map((e,t)=>v.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Qt=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),$t=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),en=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),tn=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),nn=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},v.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),v.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),rn=()=>{let[e,t]=v.useState(document.hidden);return v.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},an=1,on=100,sn=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:an++,cn=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-on;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=sn(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],v.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(un(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=sn(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},ln=(e,t)=>cn.message(e,t),un=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,dn=Object.assign(ln,{success:cn.success,info:cn.info,warning:cn.warning,error:cn.error,custom:cn.custom,message:cn.message,promise:cn.promise,dismiss:cn.dismiss,loading:cn.loading},{getHistory:()=>cn.toasts,getToasts:()=>cn.getActiveToasts()});Jt(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function fn(e){return e.label!==void 0}var pn=3,mn=`24px`,hn=`16px`,gn=4e3,_n=356,vn=14,yn=45,bn=200;function xn(...e){return e.filter(Boolean).join(` `)}function Sn(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Cn=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:y=``,duration:b,position:x,gap:S,expandByDefault:C,classNames:w,icons:T,closeButtonAriaLabel:E=`Close toast`}=e,[D,O]=v.useState(null),[k,A]=v.useState(null),[j,M]=v.useState(!1),[N,P]=v.useState(!1),[F,I]=v.useState(!1),[ee,te]=v.useState(!1),[ne,re]=v.useState(!1),[ie,ae]=v.useState(0),[oe,se]=v.useState(0),ce=v.useRef(n.duration||b||gn),le=v.useRef(null),ue=v.useRef(null),de=c===0,fe=c+1<=o,pe=n.type,L=pe??`default`,R=n.dismissible!==!1,me=n.className||``,he=n.descriptionClassName||``,ge=v.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),_e=v.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ve=v.useMemo(()=>n.duration||b||gn,[n.duration,b]),ye=v.useRef(0),be=v.useRef(0),xe=v.useRef(0),Se=v.useRef(null),[Ce,we]=x.split(`-`),Te=v.useMemo(()=>s.reduce((e,t,n)=>n>=ge?e:e+t.height,0),[s,ge]),Ee=rn(),De=v.useMemo(()=>e.swipeDirections??Sn(x),[e.swipeDirections,x]),Oe=n.invert||t,ke=pe===`loading`;be.current=v.useMemo(()=>ge*S+Te,[ge,Te]),v.useEffect(()=>{ce.current=ve},[ve]),v.useEffect(()=>{M(!0)},[]),v.useEffect(()=>{let e=ue.current;if(e){let t=e.getBoundingClientRect().height;return se(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),v.useLayoutEffect(()=>{if(!j)return;let e=ue.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,se(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[j,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Ae=v.useCallback(()=>{P(!0),ae(be.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},bn)},[n,d,a,be]);v.useEffect(()=>{if(n.promise&&pe===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Ee?(()=>{if(xe.current<ye.current){let e=new Date().getTime()-ye.current;ce.current-=e}xe.current=new Date().getTime()})():ce.current!==1/0&&(ye.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Ae()},ce.current)),()=>clearTimeout(e)},[u,i,n,pe,Ee,Ae]),v.useEffect(()=>{n.delete&&(Ae(),n.onDismiss==null||n.onDismiss.call(n,n))},[Ae,n.delete]);function je(){return T?.loading?v.createElement(`div`,{className:xn(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":pe===`loading`},T.loading):v.createElement(Zt,{className:xn(w?.loader,n?.classNames?.loader),visible:pe===`loading`})}let Me=n.icon||T?.[pe]||Yt(pe);return v.createElement(`li`,{tabIndex:0,ref:ue,className:xn(_,me,w?.toast,n?.classNames?.toast,w?.[L],n?.classNames?.[L]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":j,"data-promise":!!n.promise,"data-swiped":ne,"data-removed":N,"data-visible":fe,"data-y-position":Ce,"data-x-position":we,"data-index":c,"data-front":de,"data-swiping":F,"data-dismissible":R,"data-type":pe,"data-invert":Oe,"data-swipe-out":ee,"data-swipe-direction":k,"data-expanded":!!(u||C&&j),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${N?ie:be.current}px`,"--initial-height":C?`auto`:`${oe}px`,...m,...n.style},onDragEnd:()=>{I(!1),O(null),Se.current=null},onPointerDown:e=>{e.button!==2&&!ke&&R&&(le.current=new Date,ae(be.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(I(!0),Se.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{if(ee||!R)return;Se.current=null;let e=Number(ue.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(ue.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-le.current?.getTime(),i=D===`x`?e:t,a=Math.abs(i)/r;if((D===`x`?De.includes(e>0?`right`:`left`):De.includes(t>0?`bottom`:`top`))&&(Math.abs(i)>=yn||a>.11))ae(be.current),n.onDismiss==null||n.onDismiss.call(n,n),A(D===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Ae(),te(!0);else{var o,s;(o=ue.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=ue.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),re(!1),I(!1),O(null)}},onPointerMove:e=>{var t,n;if(!Se.current||!R||window.getSelection()?.toString().length>0)return;let r=e.clientY-Se.current.y,i=e.clientX-Se.current.x;!D&&(Math.abs(i)>1||Math.abs(r)>1)&&O(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(D===`y`){if(De.includes(`top`)||De.includes(`bottom`)){if(De.includes(`top`)&&r<0||De.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(D===`x`&&(De.includes(`left`)||De.includes(`right`))){if(De.includes(`left`)&&i<0||De.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&re(!0),(t=ue.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=ue.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},_e&&!n.jsx&&pe!==`loading`?v.createElement(`button`,{"aria-label":E,"data-disabled":ke,"data-close-button":!0,onClick:ke||!R?()=>{}:()=>{Ae(),n.onDismiss==null||n.onDismiss.call(n,n)},className:xn(w?.closeButton,n?.classNames?.closeButton)},T?.close??nn):null,(pe||n.icon||n.promise)&&n.icon!==null&&(T?.[pe]!==null||n.icon)?v.createElement(`div`,{"data-icon":``,className:xn(w?.icon,n?.classNames?.icon)},pe===`loading`?n.icon||je():n.promise?je():null,pe===`loading`?null:Me):null,v.createElement(`div`,{"data-content":``,className:xn(w?.content,n?.classNames?.content)},v.createElement(`div`,{"data-title":``,className:xn(w?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?v.createElement(`div`,{"data-description":``,className:xn(y,he,w?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),v.isValidElement(n.cancel)?n.cancel:n.cancel&&fn(n.cancel)?v.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{fn(n.cancel)&&R&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Ae())},className:xn(w?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,v.isValidElement(n.action)?n.action:n.action&&fn(n.action)?v.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{fn(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),e.defaultPrevented||Ae())},className:xn(w?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function wn(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Tn(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?hn:mn;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var En=v.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=pn,toastOptions:g,dir:_=wn(),gap:y=vn,icons:b,customAriaLabel:x,containerAriaLabel:S=`Notifications`}=e,[C,w]=v.useState([]),T=v.useMemo(()=>n?C.filter(e=>e.toasterId===n):C.filter(e=>!e.toasterId),[C,n]),E=v.useMemo(()=>Array.from(new Set([i].concat(T.filter(e=>e.position).map(e=>e.position)))),[T,i]),[D,O]=v.useState([]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),[N,P]=v.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),F=v.useRef(null),I=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),ee=v.useRef(null),te=v.useRef(!1),ne=v.useCallback(e=>{w(t=>(t.find(t=>t.id===e.id)?.delete||cn.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return v.useEffect(()=>cn.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{w(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{qt.flushSync(()=>{w(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),v.useEffect(()=>{if(d!==`system`){P(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?P(`dark`):P(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{P(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{P(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),v.useEffect(()=>{C.length<=1&&A(!1)},[C]),v.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;A(!0),(t=F.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===F.current||F.current?.contains(document.activeElement))&&A(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),v.useEffect(()=>{if(F.current)return()=>{ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null,te.current=!1)}},[F.current]),v.createElement(`section`,{ref:t,"aria-label":x??`${S} ${I}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},E.map((t,n)=>{let[i,a]=t.split(`-`);return T.length?v.createElement(`ol`,{key:t,dir:_===`auto`?wn():_,tabIndex:-1,ref:F,className:c,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${D[0]?.height||0}px`,"--width":`${_n}px`,"--gap":`${y}px`,...m,...Tn(l,u)},onBlur:e=>{te.current&&!e.currentTarget.contains(e.relatedTarget)&&(te.current=!1,ee.current&&=(ee.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||te.current||(te.current=!0,ee.current=e.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{j||A(!1)},onDragEnd:()=>A(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||M(!0)},onPointerUp:()=>M(!1)},T.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>v.createElement(Cn,{key:n.id,icons:b,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:j,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ne,toasts:T.filter(e=>e.position==n.position),heights:D.filter(e=>e.position==n.position),setHeights:O,expandByDefault:o,gap:y,expanded:k,swipeDirections:e.swipeDirections}))):null}))}),Dn=Object.defineProperty,On=(e,t)=>Dn(e,`name`,{value:t,configurable:!0});function kn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}On(kn,`setRef`);function An(...e){return t=>{let n=!1,r=e.map(e=>{let r=kn(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():kn(e[t],null)}}}}On(An,`composeRefs`);function jn(...e){return v.useCallback(An(...e),e)}On(jn,`useComposedRefs`);var Mn=Object.defineProperty,Nn=(e,t)=>Mn(e,`name`,{value:t,configurable:!0});function Pn(e){let t=v.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Gn(r),v.Children.forEach(r,e=>{if(Vn(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Un(n)&&typeof Yn==`function`;)n=Yn(n._payload);a=Rn(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=v.cloneElement(a,void 0,s):!o&&v.Children.count(r)===1&&v.isValidElement(r)&&(a=r);let c=a?Bn(a):void 0,l=jn(n,c);if(!a){if(r||r===0)throw Error(o?Jn(e):qn(e));return r}let u=zn(i,a.props??{});return a.type!==v.Fragment&&(u.ref=n?l:c),v.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Nn(Pn,`createSlot`);var Fn=Pn(`Slot`),In=Symbol.for(`radix.slottable`);function Ln(e){let t=Nn(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=In,t}Nn(Ln,`createSlottable`);var Rn=Nn((e,t)=>`child`in e.props?v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null:v.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function zn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Kn(a,i))}return{...e,...n}}Nn(zn,`mergeProps`);function Bn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Nn(Bn,`getElementRef`);function Vn(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===In}Nn(Vn,`isSlottable`);var Hn=Symbol.for(`react.lazy`);function Un(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Hn&&`_payload`in e&&Wn(e._payload)}Nn(Un,`isLazyComponent`);function Wn(e){return typeof e==`object`&&!!e&&`then`in e}Nn(Wn,`isPromiseLike`);function Gn(e){let t=e;for(;Un(t)&&typeof Yn==`function`;)t=Yn(t._payload);return t}Nn(Gn,`useUnwrappedLazy`);function Kn(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Nn(Kn,`concatAriaDescribedby`);var qn=Nn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Jn=Nn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Yn=v.use,Xn=Object.defineProperty,Zn=(e,t)=>Xn(e,`name`,{value:t,configurable:!0}),Qn=!!(typeof window<`u`&&window.document&&window.document.createElement);function $n(e,t,{checkForDefaultPrevented:n=!0}={}){return Zn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Zn($n,`composeEventHandlers`);function er(e){if(!Qn)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Zn(er,`getOwnerWindow`);function tr(e){if(!Qn)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Zn(tr,`getOwnerDocument`);function nr(e,t=!1){let{activeElement:n}=tr(e);if(!n?.nodeName)return null;if(rr(n)&&n.contentDocument)return nr(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=tr(n).getElementById(e);if(t)return t}}return n}Zn(nr,`getActiveElement`);function rr(e){return e.tagName===`IFRAME`}Zn(rr,`isFrame`);var ir=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),z=o(((e,t)=>{t.exports=ir()}))(),ar=Object.defineProperty,or=(e,t)=>ar(e,`name`,{value:t,configurable:!0});function sr(e,t){let n=v.createContext(t);n.displayName=e+`Context`;let r=or(e=>{let{children:t,...r}=e,i=v.useMemo(()=>r,Object.values(r));return(0,z.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=v.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return or(i,`useContext`),[r,i]}or(sr,`createContext`);function cr(e,t=[]){let n=[];function r(t,r){let i=v.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=or(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.useMemo(()=>o,Object.values(o));return(0,z.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=v.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return or(s,`useContext`),[o,s]}or(r,`createContext`);let i=or(()=>{let t=n.map(e=>v.createContext(e));return or(function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,lr(i,...t)]}or(cr,`createContextScope`);function lr(...e){let t=e[0];if(e.length===1)return t;let n=or(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return or(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}or(lr,`composeContextScopes`);var ur=Object.defineProperty,dr=(e,t)=>ur(e,`name`,{value:t,configurable:!0}),fr=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Pn(`Primitive.${t}`),r=v.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pr(e,t){e&&qt.flushSync(()=>e.dispatchEvent(t))}dr(pr,`dispatchDiscreteCustomEvent`);var mr=globalThis?.document?v.useLayoutEffect:()=>{},hr=Object.defineProperty,gr=(e,t)=>hr(e,`name`,{value:t,configurable:!0}),_r=v.useInsertionEffect;function vr(e){let t=v.useRef(e);return typeof _r==`function`?_r(()=>{t.current=e}):mr(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}gr(vr,`useCallbackRef`);var yr=Object.defineProperty,br=(e,t)=>yr(e,`name`,{value:t,configurable:!0}),xr=`dismissableLayer.update`,Sr=`dismissableLayer.pointerDownOutside`,Cr=`dismissableLayer.focusOutside`,wr,Tr=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Er=v.forwardRef(br(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(Tr),[d,f]=v.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=v.useState({}),h=jn(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=v.useRef(!1),w=kr(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Ar(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?b===g.length-1:!1,D=vr(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return v.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(wr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),jr(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=wr))}},[d,p,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),jr())},[d,u]),v.useEffect(()=>{let e=br(()=>m({}),`handleUpdate`);return document.addEventListener(xr,e),()=>document.removeEventListener(xr,e)},[]),(0,z.jsx)(fr.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:$n(e.onFocusCapture,T.onFocusCapture),onBlurCapture:$n(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:$n(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function Dr(){let e=v.useContext(Tr),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}br(Dr,`useDismissableLayerSurface`);var Or=br(()=>!0,`IS_TRUE`);function kr(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Or}=t,s=vr(e),c=v.useRef(!1),l=v.useRef(!1),u=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}br(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}br(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}br(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}br(p,`handleInteractionBubble`);let m=br(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Mr(Sr,s,p,{discrete:!0})};if(br(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:br(()=>c.current=!0,`onPointerDownCapture`)}}br(kr,`usePointerDownOutside`);function Ar(e,t=globalThis?.document){let n=vr(e),r=v.useRef(!1);return v.useEffect(()=>{let e=br(e=>{e.target&&!r.current&&Mr(Cr,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:br(()=>r.current=!0,`onFocusCapture`),onBlurCapture:br(()=>r.current=!1,`onBlurCapture`)}}br(Ar,`useFocusOutside`);function jr(){let e=new CustomEvent(xr);document.dispatchEvent(e)}br(jr,`dispatchUpdate`);function Mr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?pr(i,a):i.dispatchEvent(a)}br(Mr,`handleAndDispatchCustomEvent`);var Nr=Object.defineProperty,Pr=(e,t)=>Nr(e,`name`,{value:t,configurable:!0}),Fr=`focusScope.autoFocusOnMount`,Ir=`focusScope.autoFocusOnUnmount`,Lr={bubbles:!1,cancelable:!0},Rr=v.forwardRef(Pr(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=v.useState(null),u=vr(a),d=vr(o),f=v.useRef(null),p=jn(t,l),m=v.useRef(i);v.useEffect(()=>{m.current=i});let h=v.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:Yr(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||Yr(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Yr(c)};Pr(e,`handleFocusIn`),Pr(t,`handleFocusOut`),Pr(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),v.useEffect(()=>{if(c){Xr.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Fr,Lr);c.addEventListener(Fr,u),c.dispatchEvent(t),t.defaultPrevented||(Ur($r(Gr(c)),{select:!0}),document.activeElement===e&&Yr(c))}return()=>{c.removeEventListener(Fr,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Ir,Lr);c.addEventListener(Ir,d),c.dispatchEvent(r),r.defaultPrevented||Yr(e??t.body,{select:!0}),c.removeEventListener(Ir,d),Xr.remove(g)},0)}}},[c,u,d,g]);let _=v.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Wr(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Yr(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Yr(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,z.jsx)(fr.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),zr=v.createContext(null);function Br({registry:e,children:t}){return e?(0,z.jsx)(zr.Provider,{value:e,children:t}):t}Pr(Br,`FocusScopeBranchProvider`);function Vr(){let[e,t]=v.useState([]);return{nodes:e,registry:v.useMemo(()=>({add:Pr(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:Pr(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}Pr(Vr,`useFocusScopeBranchRegistry`);function Hr(e){let t=v.useContext(zr);v.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}Pr(Hr,`useFocusScopeBranch`);function Ur(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Yr(r,{select:t}),document.activeElement!==n)return}Pr(Ur,`focusFirst`);function Wr(e){let t=Gr(e);return[Kr(t,e),Kr(t.reverse(),e)]}Pr(Wr,`getTabbableEdges`);function Gr(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Pr(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Pr(Gr,`getTabbableCandidates`);function Kr(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):qr(r,{upTo:t})))return r}Pr(Kr,`findVisible`);function qr(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}Pr(qr,`isHidden`);function Jr(e){return e.tagName===`INPUT`&&typeof e.select==`function`}Pr(Jr,`isSelectableInput`);function Yr(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Jr(e)&&t&&e.select()}}Pr(Yr,`focus`);var Xr=Zr();function Zr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Qr(e,t),e.unshift(t)},remove(t){e=Qr(e,t),e[0]?.resume()}}}Pr(Zr,`createFocusScopesStack`);function Qr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Pr(Qr,`arrayRemove`);function $r(e){return e.filter(e=>e.tagName!==`A`)}Pr($r,`removeLinks`);var ei=Object.defineProperty,ti=(e,t)=>ei(e,`name`,{value:t,configurable:!0}),ni=v.useId||(()=>void 0),ri=0;function ii(e){let[t,n]=v.useState(ni());return mr(()=>{e||n(e=>e??String(ri++))},[e]),e||(t?`radix-${t}`:``)}ti(ii,`useId`);var ai=[`top`,`right`,`bottom`,`left`],oi=Math.min,si=Math.max,ci=Math.round,li=Math.floor,ui=e=>({x:e,y:e}),di={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function fi(e,t,n){return si(e,oi(t,n))}function pi(e,t){return typeof e==`function`?e(t):e}function mi(e){return e.split(`-`)[0]}function hi(e){return e.split(`-`)[1]}function gi(e){return e===`x`?`y`:`x`}function _i(e){return e===`y`?`height`:`width`}function vi(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function yi(e){return gi(vi(e))}function bi(e,t,n){n===void 0&&(n=!1);let r=hi(e),i=yi(e),a=_i(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ki(o)),[o,ki(o)]}function xi(e){let t=ki(e);return[Si(e),t,Si(t)]}function Si(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ci=[`left`,`right`],wi=[`right`,`left`],Ti=[`top`,`bottom`],Ei=[`bottom`,`top`];function Di(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wi:Ci:t?Ci:wi;case`left`:case`right`:return t?Ti:Ei;default:return[]}}function Oi(e,t,n,r){let i=hi(e),a=Di(mi(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Si)))),a}function ki(e){let t=mi(e);return di[t]+e.slice(t.length)}function Ai(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ji(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ai(e)}function Mi(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ni(e,t,n){let{reference:r,floating:i}=e,a=vi(t),o=yi(t),s=_i(o),c=mi(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=hi(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Pi(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=pi(t,e),p=ji(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Mi(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Mi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Fi=50,Ii=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Pi},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ni(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Fi&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ni(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Li=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=pi(e,t)||{};if(l==null)return{};let d=ji(u),f={x:n,y:r},p=yi(i),m=_i(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=oi(d[_],T),D=oi(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=fi(E,k,O),j=!c.arrow&&hi(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Ri=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=pi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=mi(r),_=vi(o),v=mi(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ki(o)]:xi(o)),x=p!==`none`;!d&&x&&b.push(...Oi(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=bi(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===vi(t)||T.every(e=>vi(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=vi(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function zi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bi(e){return ai.some(t=>e[t]>=0)}var Vi=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=pi(e,t);switch(i){case`referenceHidden`:{let e=zi(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Bi(e)}}}case`escaped`:{let e=zi(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Bi(e)}}}default:return{}}}}},Hi=new Set([`left`,`top`]);async function Ui(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=mi(n),s=hi(n),c=vi(n)===`y`,l=Hi.has(o)?-1:1,u=a&&c?-1:1,d=pi(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Wi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ui(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Gi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pi(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=vi(i),p=gi(f),m=u[p],h=u[f],g=(e,t)=>fi(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ki=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=pi(e,t),u={x:n,y:r},d=vi(i),f=gi(d),p=u[f],m=u[d],h=pi(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Hi.has(mi(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},qi=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=pi(e,t),c=await i.detectOverflow(t,s),l=mi(n),u=hi(n),d=vi(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=oi(p-c[m],g),y=oi(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*si(c.left,c.right):S=p-2*si(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ji(){return typeof window<`u`}function Yi(e){return Qi(e)?(e.nodeName||``).toLowerCase():`#document`}function Xi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zi(e){return((Qi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Qi(e){return Ji()?e instanceof Node||e instanceof Xi(e).Node:!1}function $i(e){return Ji()?e instanceof Element||e instanceof Xi(e).Element:!1}function ea(e){return Ji()?e instanceof HTMLElement||e instanceof Xi(e).HTMLElement:!1}function ta(e){return!Ji()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Xi(e).ShadowRoot}function na(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=fa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ra(e){return/^(table|td|th)$/.test(Yi(e))}function ia(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var B=/transform|translate|scale|rotate|perspective|filter/,aa=/paint|layout|strict|content/,oa=e=>!!e&&e!==`none`,sa;function ca(e){let t=$i(e)?fa(e):e;return oa(t.transform)||oa(t.translate)||oa(t.scale)||oa(t.rotate)||oa(t.perspective)||!ua()&&(oa(t.backdropFilter)||oa(t.filter))||B.test(t.willChange||``)||aa.test(t.contain||``)}function la(e){let t=ma(e);for(;ea(t)&&!da(t);){if(ca(t))return t;if(ia(t))return null;t=ma(t)}return null}function ua(){return sa??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),sa}function da(e){return/^(html|body|#document)$/.test(Yi(e))}function fa(e){return Xi(e).getComputedStyle(e)}function pa(e){return $i(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ma(e){if(Yi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ta(e)&&e.host||Zi(e);return ta(t)?t.host:t}function ha(e){let t=ma(e);return da(t)?(e.ownerDocument||e).body:ea(t)&&na(t)?t:ha(t)}function ga(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ha(e),i=r===e.ownerDocument?.body,a=Xi(r);if(i){let e=_a(a);return t.concat(a,a.visualViewport||[],na(r)?r:[],e&&n?ga(e):[])}return t.concat(r,ga(r,[],n))}function _a(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function va(e){let t=fa(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ea(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ci(n)!==a||ci(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ya(e){return $i(e)?e:e.contextElement}function ba(e){let t=ya(e);if(!ea(t))return ui(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=va(t),o=(a?ci(n.width):n.width)/r,s=(a?ci(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var xa=ui(0);function Sa(e){let t=Xi(e);return!ua()||!t.visualViewport?xa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ca(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Xi(e)}function wa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ya(e),o=ui(1);t&&(r?$i(r)&&(o=ba(r)):o=ba(e));let s=Ca(a,n,r)?Sa(a):ui(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Xi(a),t=$i(r)?Xi(r):r,n=e,i=_a(n);for(;i&&t!==n;){let e=ba(i),t=i.getBoundingClientRect(),r=fa(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Xi(i),i=_a(n)}}return Mi({width:u,height:d,x:c,y:l})}function Ta(e,t){let n=pa(e).scrollLeft;return t?t.left+n:wa(Zi(e)).left+n}function Ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ta(e,n),y:n.top+t.scrollTop}}function Da(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Zi(r),s=t?ia(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ui(1),u=ui(0),d=ea(r);if((d||!a)&&((Yi(r)!==`body`||na(o))&&(c=pa(r)),d)){let e=wa(r);l=ba(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ea(o,c):ui(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Oa(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ka(e){let t=pa(e),n=e.ownerDocument.body,r=si(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=si(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ta(e),o=-t.scrollTop;return fa(n).direction===`rtl`&&(a+=si(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Aa=25;function ja(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Xi(e),a=Zi(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ua()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ta(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Aa&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ma(e,t){let n=wa(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ba(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Na(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=ja(e,n,t);else if(t===`document`)r=ka(Zi(e));else if($i(t))r=Ma(t,n);else{let n=Sa(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Mi(r)}function Pa(e,t){let n=t.get(e);if(n)return n;let r=ga(e,[],!1).filter(e=>$i(e)&&Yi(e)!==`body`),i=null,a=fa(e).position===`fixed`,o=a?ma(e):e;for(;$i(o)&&!da(o);){let e=fa(o),t=ca(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ma(o)}return t.set(e,r),r}function Fa(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ia(t)?[]:Pa(t,this._c):[].concat(n),r],o=Na(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Na(t,a[e],i);s=si(n.top,s),c=oi(n.right,c),l=oi(n.bottom,l),u=si(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ia(e){let{width:t,height:n}=va(e);return{width:t,height:n}}function La(e,t,n){let r=ea(t),i=Zi(t),a=n===`fixed`,o=wa(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ui(0);if((r||!a)&&((Yi(t)!==`body`||na(i))&&(s=pa(t)),r)){let e=wa(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ta(i));let l=i&&!r&&!a?Ea(i,s):ui(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ra(e){return fa(e).position===`static`}function za(e,t){if(!ea(e)||fa(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Zi(e)===n&&(n=n.ownerDocument.body),n}function Ba(e,t){let n=Xi(e);if(ia(e))return n;if(!ea(e)){let t=ma(e);for(;t&&!da(t);){if($i(t)&&!Ra(t))return t;t=ma(t)}return n}let r=za(e,t);for(;r&&ra(r)&&Ra(r);)r=za(r,t);return r&&da(r)&&Ra(r)&&!ca(r)?n:r||la(e)||n}var Va=async function(e){let t=this.getOffsetParent||Ba,n=this.getDimensions,r=await n(e.floating);return{reference:La(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ha(e){return fa(e).direction===`rtl`}var Ua={convertOffsetParentRelativeRectToViewportRelativeRect:Da,getDocumentElement:Zi,getClippingRect:Fa,getOffsetParent:Ba,getElementRects:Va,getClientRects:Oa,getDimensions:Ia,getScale:ba,isElement:$i,isRTL:Ha};function Wa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ga(e,t,n){let r=null,i,a=Zi(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=li(d),h=li(a.clientWidth-(u+f)),g=li(a.clientHeight-(d+p)),_=li(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:si(0,oi(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Wa(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Xi(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ka(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ya(e),u=i||a?[...l?ga(l):[],...t?ga(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ga(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?wa(e):null;c&&g();function g(){let t=wa(e);h&&!Wa(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var qa=Wi,Ja=Gi,Ya=Ri,Xa=qi,Za=Vi,Qa=Li,$a=Ki,eo=(e,t,n)=>{let r=new Map,i=n??{},a={...Ua,...i.platform,_c:r};return Ii(e,t,{...i,platform:a})},to=typeof document<`u`?v.useLayoutEffect:function(){};function no(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!no(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!no(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ro(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function io(e,t){let n=ro(e);return Math.round(t*n)/n}function ao(e){let t=v.useRef(e);return to(()=>{t.current=e}),t}function oo(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);no(f,r)||p(r);let[m,h]=v.useState(null),[g,_]=v.useState(null),y=v.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=v.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=v.useRef(null),w=v.useRef(null),T=v.useRef(u),E=c!=null,D=ao(c),O=ao(i),k=ao(l),A=v.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),eo(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!no(T.current,t)&&(T.current=t,qt.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);to(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=v.useRef(!1);to(()=>(j.current=!0,()=>{j.current=!1}),[]),to(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=v.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=v.useMemo(()=>({reference:x,floating:S}),[x,S]),P=v.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=io(N.floating,u.x),r=io(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ro(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var so=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Qa({element:r.current,padding:i}).fn(n):r?Qa({element:r,padding:i}).fn(n):{}}}},co=(e,t)=>{let n=qa(e);return{name:n.name,fn:n.fn,options:[e,t]}},lo=(e,t)=>{let n=Ja(e);return{name:n.name,fn:n.fn,options:[e,t]}},uo=(e,t)=>({fn:$a(e).fn,options:[e,t]}),fo=(e,t)=>{let n=Ya(e);return{name:n.name,fn:n.fn,options:[e,t]}},po=(e,t)=>{let n=Xa(e);return{name:n.name,fn:n.fn,options:[e,t]}},mo=(e,t)=>{let n=Za(e);return{name:n.name,fn:n.fn,options:[e,t]}},ho=(e,t)=>{let n=so(e);return{name:n.name,fn:n.fn,options:[e,t]}},go=Object.defineProperty,_o=v.forwardRef(((e,t)=>go(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,z.jsx)(fr.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,z.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),vo=Object.defineProperty,yo=(e,t)=>vo(e,`name`,{value:t,configurable:!0});function bo(e){let[t,n]=v.useState(void 0);return mr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}yo(bo,`useSize`);var xo=Object.defineProperty,So=(e,t)=>xo(e,`name`,{value:t,configurable:!0}),Co={Partial:`partial`,Always:`always`},wo={Optimized:`optimized`,Always:`always`},To=`Popper`,[Eo,Do]=cr(To),[Oo,ko]=Eo(To),Ao=So(e=>{let{__scopePopper:t,children:n}=e,[r,i]=v.useState(null),[a,o]=v.useState(void 0);return(0,z.jsx)(Oo,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),jo=`PopperAnchor`,Mo=v.forwardRef(So(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=ko(jo,n),o=v.useRef(null),s=a.onAnchorChange,c=jn(t,v.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=v.useRef(null);v.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Ho(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,z.jsx)(fr.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),No=`PopperContent`,[Po,Fo]=Eo(No),Io=v.forwardRef(So(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=Co.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=wo.Optimized,onPlaced:m,...h}=e,g=ko(No,n),[_,y]=v.useState(null),b=jn(t,y),[x,S]=v.useState(null),C=bo(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(Bo),altBoundary:k},{refs:j,floatingStyles:M,placement:N,isPositioned:P,middlewareData:F}=oo({strategy:`fixed`,placement:E,whileElementsMounted:So((...e)=>Ka(...e,{animationFrame:p===wo.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[co({mainAxis:i+T,alignmentAxis:o}),c&&lo({mainAxis:!0,crossAxis:!1,...d===Co.Partial?{limiter:uo()}:{},...A}),c&&fo({...A}),po({...A,apply:So(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),x&&ho({element:x,padding:s}),Vo({arrowWidth:w,arrowHeight:T}),f&&mo(k?{strategy:`referenceHidden`,...A}:{strategy:`referenceHidden`,padding:A.padding,altBoundary:A.altBoundary})]}),I=g.setPlacementState;mr(()=>(I(N),()=>{I(void 0)}),[N,I]);let[ee,te]=Ho(N),ne=vr(m);mr(()=>{P&&ne?.()},[P,ne]);let re=F.arrow?.x,ie=F.arrow?.y,ae=F.arrow?.centerOffset!==0,[oe,se]=v.useState();return mr(()=>{_&&se(window.getComputedStyle(_).zIndex)},[_]),(0,z.jsx)(`div`,{ref:j.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:P?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:oe,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(` `),...F.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,z.jsx)(Po,{scope:n,placedSide:ee,placedAlign:te,onArrowChange:S,arrowX:re,arrowY:ie,shouldHideArrow:ae,children:(0,z.jsx)(fr.div,{"data-side":ee,"data-align":te,...h,ref:b,style:{...h.style,animation:P?h.style?.animation:`none`}})})})},`PopperContent`)),Lo=`PopperArrow`,Ro={top:`bottom`,right:`left`,bottom:`top`,left:`right`},zo=v.forwardRef(So(function(e,t){let{__scopePopper:n,...r}=e,i=Fo(Lo,n),a=Ro[i.placedSide];return(0,z.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,z.jsx)(_o,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function Bo(e){return e!==null}So(Bo,`isNotNull`);var Vo=So(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ho(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Ho(e){let[t,n=`center`]=e.split(`-`);return[t,n]}So(Ho,`getSideAndAlignFromPlacement`);var V=Object.defineProperty,Uo=v.forwardRef(((e,t)=>V(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=v.useState(!1);mr(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?qt.createPortal((0,z.jsx)(fr.div,{...r,ref:t}),o):null},`Portal`)),Wo=Object.defineProperty,Go=(e,t)=>Wo(e,`name`,{value:t,configurable:!0});function Ko(e,t){return v.useReducer((e,n)=>t[e][n]??e,e)}Go(Ko,`useStateMachine`);var qo=Go(e=>{let{present:t,children:n}=e,r=Jo(t),i=typeof n==`function`?n({present:r.isPresent}):v.Children.only(n),a=Xo(r.ref,Qo(i));return typeof n==`function`||r.isPresent?v.cloneElement(i,{ref:a}):null},`Presence`);function Jo(e){let[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),a=v.useRef(`none`),o=v.useRef(void 0),[s,c]=Ko(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return v.useEffect(()=>{s===`mounted`?(a.current=o.current??Zo(r.current),o.current=void 0):a.current=`none`},[s]),mr(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Zo(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),mr(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Go(a=>{let o=Zo(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Go(e=>{e.target===t&&(a.current=Zo(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:v.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Zo(t)}else r.current=null;n(e)},[])}}Go(Jo,`usePresence`);function Yo(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Go(Yo,`setRef`);function Xo(...e){let t=v.useRef(e);return t.current=e,v.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Yo(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Yo(n[e],null)}}},[])}Go(Xo,`useStableComposedRefs`);function Zo(e){return e?.animationName||`none`}Go(Zo,`getAnimationName`);function Qo(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Go(Qo,`getElementRef`);var $o=Object.defineProperty,es=(e,t)=>$o(e,`name`,{value:t,configurable:!0}),ts=v.useEffectEvent,ns=v.useInsertionEffect;function rs(e){if(typeof ts==`function`)return ts(e);let t=v.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof ns==`function`?ns(()=>{t.current=e}):mr(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}es(rs,`useEffectEvent`);var is=Object.defineProperty,as=(e,t)=>is(e,`name`,{value:t,configurable:!0}),os=v.useInsertionEffect||mr;function ss({prop:e,defaultProp:t,onChange:n=as(()=>{},`onChange`),caller:r}){let[i,a,o]=cs({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,v.useCallback(t=>{if(s){let n=ls(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}as(ss,`useControllableState`);function cs({defaultProp:e,onChange:t}){let[n,r]=v.useState(e),i=v.useRef(n),a=v.useRef(t);return os(()=>{a.current=t},[t]),v.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}as(cs,`useUncontrolledState`);function ls(e){return typeof e==`function`}as(ls,`isFunction`);var us=Symbol(`RADIX:SYNC_STATE`);function ds(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=rs(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=v.useReducer((t,n)=>{if(n.type===us)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=v.useRef(p);v.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=v.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return v.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:us,state:i})},[i,d.state,c]),[h,f]}as(ds,`useControllableStateReducer`);var fs=Object.defineProperty,ps=(e,t)=>fs(e,`name`,{value:t,configurable:!0}),ms=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),hs=v.forwardRef(ps(function(e,t){return(0,z.jsx)(fr.span,{...e,ref:t,style:{...ms,...e.style}})},`VisuallyHidden`)),gs=Object.defineProperty,_s=(e,t)=>gs(e,`name`,{value:t,configurable:!0}),[vs,ys]=cr(`Tooltip`,[Do]),bs=Do(),xs=`TooltipProvider`,Ss=700,Cs=`tooltip.open`,[ws,Ts]=vs(xs),Es=_s(e=>{let{__scopeTooltip:t,delayDuration:n=Ss,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=v.useRef(!0),s=v.useRef(!1),c=v.useRef(0);return v.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,z.jsx)(ws,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:v.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:v.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Ds=`Tooltip`,[Os,ks]=vs(Ds),As=_s(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Ts(Ds,e.__scopeTooltip),l=bs(t),[u,d]=v.useState(null),[f,p]=v.useState(void 0),m=ii(),h=v.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,y=v.useRef(!1),[b,x]=ss({prop:r,defaultProp:i??!1,onChange:_s(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Cs))):c.onClose(),a?.(e)},`onChange`),caller:Ds}),S=v.useMemo(()=>b?y.current?`delayed-open`:`instant-open`:`closed`,[b]),C=v.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,x(!0)},[x]),w=v.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=v.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0),h.current=0},_)},[_,x]);v.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let E=f??m;return(0,z.jsx)(Ao,{...l,children:(0,z.jsx)(Os,{scope:t,contentId:E,setContentId:p,open:b,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:v.useCallback(()=>{g?w():(window.clearTimeout(h.current),h.current=0)},[w,g]),onOpen:C,onClose:w,disableHoverableContent:g,children:n})})},`Tooltip`),js=`TooltipTrigger`,Ms=v.forwardRef(_s(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=ks(js,n),o=Ts(js,n),s=bs(n),c=jn(t,v.useRef(null),a.onTriggerChange),l=v.useRef(!1),u=v.useRef(!1),d=v.useCallback(()=>l.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,z.jsx)(Mo,{asChild:!0,...s,children:(0,z.jsx)(fr.button,{"aria-describedby":a.open?Ys(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:$n(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:$n(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:$n(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:$n(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:$n(e.onBlur,a.onClose),onClick:$n(e.onClick,a.onClose)})})},`TooltipTrigger`)),Ns=`TooltipPortal`,[Ps,Fs]=vs(Ns,{forceMount:void 0}),Is=_s(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=ks(Ns,t);return(0,z.jsx)(Ps,{scope:t,forceMount:n,children:(0,z.jsx)(qo,{present:n||a.open,children:(0,z.jsx)(Uo,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Ls=`TooltipContent`,Rs=v.forwardRef(_s(function(e,t){let n=Fs(Ls,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=ks(Ls,e.__scopeTooltip);return(0,z.jsx)(qo,{present:r||o.open,children:o.disableHoverableContent?(0,z.jsx)(Vs,{side:i,...a,ref:t}):(0,z.jsx)(zs,{side:i,...a,ref:t})})},`TooltipContent`)),zs=v.forwardRef(_s(function(e,t){let n=ks(Ls,e.__scopeTooltip),r=Ts(Ls,e.__scopeTooltip),i=v.useRef(null),a=jn(t,i),[o,s]=v.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{s(null),d(!1)},[d]),p=v.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Ws(r,Us(r,n.getBoundingClientRect())),a=Gs(t.getBoundingClientRect()),o=qs([...i,...a]);s(o),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(c&&u){let e=_s(e=>p(e,u),`handleTriggerLeave`),t=_s(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),v.useEffect(()=>{if(o){let e=_s(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Ks(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,z.jsx)(Vs,{...e,ref:a})},`TooltipContentHoverable`)),Bs=Ln(`TooltipContent`),Vs=v.forwardRef(_s(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=ks(Ls,n),u=bs(n),{onClose:d}=l,[f,p]=v.useState(null),m=jn(t,p);Hr(f),v.useEffect(()=>(document.addEventListener(Cs,d),()=>document.removeEventListener(Cs,d)),[d]),v.useEffect(()=>{if(l.trigger){let e=_s(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return mr(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,z.jsx)(Er,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,z.jsxs)(Io,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,z.jsx)(Bs,{children:r}),i?(0,z.jsx)(hs,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Hs=v.forwardRef(_s(function(e,t){let{__scopeTooltip:n,...r}=e,i=bs(n);return(0,z.jsx)(zo,{...i,...r,ref:t})},`TooltipArrow`));function Us(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}_s(Us,`getExitSideFromRect`);function Ws(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}_s(Ws,`getPaddedExitPoints`);function Gs(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}_s(Gs,`getPointsFromRect`);function Ks(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}_s(Ks,`isPointInPolygon`);function qs(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Js(t)}_s(qs,`getHull`);function Js(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}_s(Js,`getHullPresorted`);function Ys(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}_s(Ys,`concatAriaDescribedby`);function Xs(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Xs(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Zs(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xs(e))&&(r&&(r+=` `),r+=t);return r}var Qs=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,$s=Zs,ec=(e,t)=>n=>{if(t?.variants==null)return $s(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Qs(t)||Qs(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return $s(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},tc=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},nc=(e,t)=>({classGroupId:e,validator:t}),rc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ic=`-`,ac=[],oc=`arbitrary..`,sc=e=>{let t=uc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return lc(e);let n=e.split(ic);return cc(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?tc(i,t):t:i||ac}return n[e]||ac}}},cc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=cc(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ic):e.slice(t).join(ic),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},lc=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?oc+r:void 0})(),uc=e=>{let{theme:t,classGroups:n}=e;return dc(n,t)},dc=(e,t)=>{let n=rc();for(let r in e){let i=e[r];fc(i,n,r,t)}return n},fc=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];pc(i,t,n,r)}},pc=(e,t,n,r)=>{typeof e==`string`?mc(e,t,n):typeof e==`function`?hc(e,t,n,r):gc(e,t,n,r)},mc=(e,t,n)=>{let r=e===``?t:_c(t,e);r.classGroupId=n},hc=(e,t,n,r)=>{vc(e)?fc(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(nc(n,e)))},gc=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];fc(o,_c(t,a),n,r)}},_c=(e,t)=>{let n=e,r=t.split(ic),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=rc(),n.nextPart.set(t,i)),n=i}return n},vc=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,yc=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},bc=`!`,xc=`:`,Sc=[],Cc=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),wc=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===xc){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(bc)?(c=s.slice(0,-1),l=!0):s.startsWith(bc)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Cc(t,l,c,u)};if(t){let e=t+xc,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Cc(Sc,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Tc=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ec=e=>({cache:yc(e.cacheSize),parseClassName:wc(e),sortModifiers:Tc(e),postfixLookupClassGroupIds:Dc(e),...sc(e)}),Dc=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Oc=/\s+/,kc=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Oc),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+bc:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ac=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=jc(n))&&(i&&(i+=` `),i+=r);return i},jc=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=jc(e[r]))&&(n&&(n+=` `),n+=t);return n},Mc=(e,...t)=>{let n,r,i,a,o=o=>(n=Ec(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=kc(e,n);return i(e,a),a};return a=o,(...e)=>a(Ac(...e))},Nc=[],Pc=e=>{let t=t=>t[e]||Nc;return t.isThemeGetter=!0,t.themeKey=e,t},Fc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ic=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Rc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zc=/\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$/,Bc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Vc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Uc=e=>Lc.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),Wc=e=>!!e&&Number.isInteger(Number(e)),Gc=e=>e.endsWith(`%`)&&H(e.slice(0,-1)),Kc=e=>Rc.test(e),qc=()=>!0,Jc=e=>zc.test(e)&&!Bc.test(e),Yc=()=>!1,Xc=e=>Vc.test(e),Zc=e=>Hc.test(e),Qc=e=>!U(e)&&!W(e),$c=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),el=e=>hl(e,yl,Yc),U=e=>Fc.test(e),tl=e=>hl(e,bl,Jc),nl=e=>hl(e,xl,H),rl=e=>hl(e,Cl,qc),il=e=>hl(e,Sl,Yc),al=e=>hl(e,_l,Yc),ol=e=>hl(e,vl,Zc),sl=e=>hl(e,wl,Xc),W=e=>Ic.test(e),cl=e=>gl(e,bl),ll=e=>gl(e,Sl),ul=e=>gl(e,_l),dl=e=>gl(e,yl),fl=e=>gl(e,vl),pl=e=>gl(e,wl,!0),ml=e=>gl(e,Cl,!0),hl=(e,t,n)=>{let r=Fc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},gl=(e,t,n=!1)=>{let r=Ic.exec(e);return r?r[1]?t(r[1]):n:!1},_l=e=>e===`position`||e===`percentage`,vl=e=>e===`image`||e===`url`,yl=e=>e===`length`||e===`size`||e===`bg-size`,bl=e=>e===`length`,xl=e=>e===`number`,Sl=e=>e===`family-name`,Cl=e=>e===`number`||e===`weight`,wl=e=>e===`shadow`,Tl=Mc(()=>{let e=Pc(`color`),t=Pc(`font`),n=Pc(`text`),r=Pc(`font-weight`),i=Pc(`tracking`),a=Pc(`leading`),o=Pc(`breakpoint`),s=Pc(`container`),c=Pc(`spacing`),l=Pc(`radius`),u=Pc(`shadow`),d=Pc(`inset-shadow`),f=Pc(`text-shadow`),p=Pc(`drop-shadow`),m=Pc(`blur`),h=Pc(`perspective`),g=Pc(`aspect`),_=Pc(`ease`),v=Pc(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),W,U],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[W,U,c],T=()=>[Uc,`full`,`auto`,...w()],E=()=>[Wc,`none`,`subgrid`,W,U],D=()=>[`auto`,{span:[`full`,Wc,W,U]},Wc,W,U],O=()=>[Wc,`auto`,W,U],k=()=>[`auto`,`min`,`max`,`fr`,W,U],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Uc,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,Uc,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[Uc,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,W,U],ee=()=>[...b(),ul,al,{position:[W,U]}],te=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,dl,el,{size:[W,U]}],re=()=>[Gc,cl,tl],ie=()=>[``,`none`,`full`,l,W,U],ae=()=>[``,H,cl,tl],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ce=()=>[H,Gc,ul,al],le=()=>[``,`none`,m,W,U],ue=()=>[`none`,H,W,U],de=()=>[`none`,H,W,U],fe=()=>[H,W,U],pe=()=>[Uc,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Kc],breakpoint:[Kc],color:[qc],container:[Kc],"drop-shadow":[Kc],ease:[`in`,`out`,`in-out`],font:[Qc],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Kc],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Kc],shadow:[Kc],spacing:[`px`,H],text:[Kc],"text-shadow":[Kc],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Uc,U,W,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,W,U]}],"container-named":[$c],columns:[{columns:[H,`auto`,U,W,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Wc,`auto`,W,U]}],basis:[{basis:[Uc,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[H,Uc,`auto`,`initial`,`none`,U]}],grow:[{grow:[``,H,W,U]}],shrink:[{shrink:[``,H,W,U]}],order:[{order:[Wc,`first`,`last`,`none`,W,U]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,cl,tl]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ml,rl]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Gc,U]}],"font-family":[{font:[ll,il,t]}],"font-features":[{"font-features":[U]}],"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:[i,W,U]}],"line-clamp":[{"line-clamp":[H,`none`,W,nl]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,W,U]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,W,U]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[H,`from-font`,`auto`,W,tl]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[H,`auto`,W,U]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Wc,W,U]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,W,U]}],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`,W,U]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Wc,W,U],radial:[``,W,U],conic:[``,Wc,W,U]},fl,ol]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[H,W,U]}],"outline-w":[{outline:[``,H,cl,tl]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`inner`,`none`,u,pl,sl]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,pl,sl]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ae()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[H,tl]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,pl,sl]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[H,W,U]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"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":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[W,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,W,U]}],filter:[{filter:[``,`none`,W,U]}],blur:[{blur:le()}],brightness:[{brightness:[H,W,U]}],contrast:[{contrast:[H,W,U]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,pl,sl]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,H,W,U]}],"hue-rotate":[{"hue-rotate":[H,W,U]}],invert:[{invert:[``,H,W,U]}],saturate:[{saturate:[H,W,U]}],sepia:[{sepia:[``,H,W,U]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,W,U]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[H,W,U]}],"backdrop-contrast":[{"backdrop-contrast":[H,W,U]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,H,W,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,W,U]}],"backdrop-invert":[{"backdrop-invert":[``,H,W,U]}],"backdrop-opacity":[{"backdrop-opacity":[H,W,U]}],"backdrop-saturate":[{"backdrop-saturate":[H,W,U]}],"backdrop-sepia":[{"backdrop-sepia":[``,H,W,U]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,W,U]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[H,`initial`,W,U]}],ease:[{ease:[`linear`,`initial`,_,W,U]}],delay:[{delay:[H,W,U]}],animate:[{animate:[`none`,v,W,U]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,W,U]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[W,U,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Wc,W,U]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"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`,W,U]}],"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":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,W,U]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[H,cl,tl,nl]}],stroke:[{stroke:[`none`,...I()]}],"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":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`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-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`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-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`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-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`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-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`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`]}});function G(...e){return Tl(Zs(e))}function El(e){let t=e.trim();return t.length===0?!1:/^[a-zA-Z]:[\\/]/.test(t)||/^[\\/]{2}[^\\/]/.test(t)?!0:t.startsWith(`/`)}var Dl=ec(`inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,ghost:`hover:bg-accent hover:text-accent-foreground`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 gap-1.5 rounded-md px-3`,lg:`h-10 rounded-md px-6`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function K({className:e,variant:t,size:n,asChild:r=!1,...i}){return(0,z.jsx)(r?Fn:`button`,{"data-slot":`button`,className:G(Dl({variant:t,size:n,className:e})),...i})}function Ol({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card`,className:G(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),...t})}function kl({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-content`,className:G(`px-6`,e),...t})}function Al({className:e,type:t,...n}){return(0,z.jsx)(`input`,{type:t,"data-slot":`input`,className:G(`flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20`,e),...n})}function jl({className:e,...t}){return(0,z.jsx)(`label`,{"data-slot":`label`,className:G(`flex select-none items-center gap-2 text-sm font-medium leading-none`,e),...t})}var Ml=ec(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground`,secondary:`border-transparent bg-secondary text-secondary-foreground`,outline:`text-foreground`,success:`border-success/25 bg-success/10 text-success`,warning:`border-warning/30 bg-warning/10 text-warning`,destructive:`border-destructive/25 bg-destructive/10 text-destructive`,muted:`border-transparent bg-muted text-muted-foreground`}},defaultVariants:{variant:`default`}});function q({className:e,variant:t,...n}){return(0,z.jsx)(`span`,{"data-slot":`badge`,className:G(Ml({variant:t}),e),...n})}function Nl({children:e}){return(0,z.jsx)(Es,{delayDuration:150,skipDelayDuration:80,children:e})}function Pl({content:e,children:t,side:n=`top`,align:r=`center`,className:i}){return e==null||e===``?(0,z.jsx)(z.Fragment,{children:t}):(0,z.jsxs)(As,{children:[(0,z.jsx)(Ms,{asChild:!0,children:t}),(0,z.jsx)(Is,{children:(0,z.jsxs)(Rs,{side:n,align:r,sideOffset:6,collisionPadding:8,className:G(`z-[60] max-w-[320px] rounded-md border bg-popover px-2.5 py-1.5 text-xs leading-relaxed text-popover-foreground shadow-lg`,`animate-in fade-in-0 zoom-in-95`,i),children:[e,(0,z.jsx)(Hs,{className:`fill-popover`,width:10,height:5})]})})]})}function Fl({text:e,className:t,side:n}){let r=(0,z.jsx)(`div`,{className:G(`truncate`,t),children:e});return e.length===0?r:(0,z.jsx)(Pl,{content:e,side:n,children:r})}var Il=[`getState`,`saveConfig`,`resolve`,`inspect`,`terminalCatalog`,`restore`,`pickDirectory`,`revealConfig`,`listIterations`,`iterationCurrent`,`iterationSummary`,`iterationDoc`,`gitStatus`,`gitBranches`,`taskActions`,`taskAction`,`taskBatch`,`taskHistory`,`updateCheck`,`gitFetch`,`onboarding`,`completeOnboarding`,`reset`,`listDirectories`,`openPath`];function Ll(e){return typeof e!=`object`||!e?!1:Il.every(t=>typeof Reflect.get(e,t)==`function`)}function Rl(){let e=Reflect.get(window,`ylcwf`);return Ll(e)?e:null}var zl=new URLSearchParams(window.location.search).get(`token`)??``;async function Bl(e,t){let n=await fetch(e,{...t,headers:{"content-type":`application/json`,"x-ylcwf-token":zl,...t?.headers??{}}}),r=await n.json().catch(()=>null);if(!n.ok){let e=typeof r==`object`&&r&&`error`in r?r.error?.message??`请求失败(${n.status})`:`请求失败(${n.status})`;throw n.status===401?Error(`访问链接已失效,请重新打开执行终端里 ylcwf serve 打印的地址`):n.status===404&&e.includes(`未知接口`)?Error("本地服务版本过旧,请重启 `ylcwf serve` 后刷新页面"):Error(e)}return r}var Vl={mode:`http`,getState:()=>Bl(`/api/state`),saveConfig:e=>Bl(`/api/config`,{method:`PUT`,body:JSON.stringify({config:e})}),resolve:(e,t)=>Bl(`/api/resolve`,{method:`POST`,body:JSON.stringify({name:e,side:t})}),inspect:e=>Bl(`/api/inspect?path=${encodeURIComponent(e)}`),terminalCatalog:()=>Bl(`/api/terminal-catalog`),restore:e=>Bl(`/api/backups/restore`,{method:`POST`,body:JSON.stringify({name:e})}),pickDirectory:e=>Bl(`/api/fs/pick`,{method:`POST`,body:JSON.stringify({title:e?.title??``,defaultPath:e?.defaultPath??``})}),revealConfig:()=>Bl(`/api/reveal`,{method:`POST`}),listIterations:(e,t)=>Bl(`/api/iterations?source=${e}${t===void 0?``:`&ref=${encodeURIComponent(t)}`}`),iterationCurrent:()=>Bl(`/api/iteration-current`),iterationSummary:(e,t,n)=>Bl(`/api/iteration-summary`,{method:`POST`,body:JSON.stringify({iteration:e,source:t,ref:n})}),iterationDoc:(e,t,n,r)=>Bl(`/api/iteration-doc`,{method:`POST`,body:JSON.stringify({iteration:e,developer:t,source:n,ref:r})}),gitStatus:()=>Bl(`/api/git/status`),gitBranches:()=>Bl(`/api/git/branches`),taskActions:(e,t)=>Bl(`/api/task-actions?iteration=${encodeURIComponent(e)}&developer=${encodeURIComponent(t)}`),taskAction:(e,t,n,r)=>Bl(`/api/task-action`,{method:`POST`,body:JSON.stringify({iteration:e,developer:t,taskId:n,action:r})}),taskBatch:(e,t,n,r)=>Bl(`/api/task-batch`,{method:`POST`,body:JSON.stringify({iteration:e,developer:t,taskIds:n,action:r})}),taskHistory:(e,t,n)=>Bl(`/api/task-history?iteration=${encodeURIComponent(e)}&developer=${encodeURIComponent(t)}&taskId=${encodeURIComponent(n)}`),updateCheck:e=>Bl(`/api/update/check${e?`?force=1`:``}`),gitFetch:()=>Bl(`/api/git/fetch`,{method:`POST`}),onboarding:()=>Bl(`/api/onboarding`),completeOnboarding:e=>Bl(`/api/onboarding/complete`,{method:`POST`,body:JSON.stringify({config:e})}),reset:e=>Bl(`/api/reset`,{method:`POST`,body:JSON.stringify({all:e===!0})}),listDirectories:e=>Bl(`/api/fs/list${e===void 0?``:`?path=${encodeURIComponent(e)}`}`),openPath:e=>Bl(`/api/fs/open`,{method:`POST`,body:JSON.stringify({path:e})})};function Hl(e){return{mode:`electron`,getState:()=>e.getState(),saveConfig:t=>e.saveConfig(t),resolve:(t,n)=>e.resolve(t,n),inspect:t=>e.inspect(t),terminalCatalog:()=>e.terminalCatalog(),restore:t=>e.restore(t),pickDirectory:t=>e.pickDirectory(t),revealConfig:()=>e.revealConfig(),listIterations:(t,n)=>e.listIterations(t,n),iterationCurrent:()=>e.iterationCurrent(),iterationSummary:(t,n,r)=>e.iterationSummary(t,n,r),iterationDoc:(t,n,r,i)=>e.iterationDoc(t,n,r,i),gitStatus:()=>e.gitStatus(),gitBranches:()=>e.gitBranches(),taskActions:(t,n)=>e.taskActions(t,n),taskAction:(t,n,r,i)=>e.taskAction(t,n,r,i),taskBatch:(t,n,r,i)=>e.taskBatch(t,n,r,i),taskHistory:(t,n,r)=>e.taskHistory(t,n,r),updateCheck:t=>e.updateCheck(t),gitFetch:()=>e.gitFetch(),onboarding:()=>e.onboarding(),completeOnboarding:t=>e.completeOnboarding(t),reset:t=>e.reset(t),listDirectories:t=>e.listDirectories(t),openPath:t=>e.openPath(t)}}function Ul(){let e=Rl();return e===null?Vl:Hl(e)}var J={get mode(){return Ul().mode},getState:()=>Ul().getState(),saveConfig:e=>Ul().saveConfig(e),resolve:(e,t)=>Ul().resolve(e,t),inspect:e=>Ul().inspect(e),terminalCatalog:()=>Ul().terminalCatalog(),restore:e=>Ul().restore(e),pickDirectory:e=>Ul().pickDirectory(e),revealConfig:()=>Ul().revealConfig(),listIterations:(e,t)=>Ul().listIterations(e,t),iterationCurrent:()=>Ul().iterationCurrent(),iterationSummary:(e,t,n)=>Ul().iterationSummary(e,t,n),iterationDoc:(e,t,n,r)=>Ul().iterationDoc(e,t,n,r),gitStatus:()=>Ul().gitStatus(),gitBranches:()=>Ul().gitBranches(),taskActions:(e,t)=>Ul().taskActions(e,t),taskAction:(e,t,n,r)=>Ul().taskAction(e,t,n,r),taskBatch:(e,t,n,r)=>Ul().taskBatch(e,t,n,r),taskHistory:(e,t,n)=>Ul().taskHistory(e,t,n),updateCheck:e=>Ul().updateCheck(e),gitFetch:()=>Ul().gitFetch(),onboarding:()=>Ul().onboarding(),completeOnboarding:e=>Ul().completeOnboarding(e),reset:e=>Ul().reset(e),listDirectories:e=>Ul().listDirectories(e),openPath:e=>Ul().openPath(e)};Reflect.set(window,`__ylcwfApiMode`,J.mode);var Wl=[`frontend`,`backend`],Gl={commit:!1,push:!1},Kl=[`frontend`,`backend`,`fullstack`],ql={frontend:`前端`,backend:`后端`},Jl={frontend:`前端`,backend:`后端`,fullstack:`全栈`,unknown:`负责范围未写明`},Yl={frontend:`只写前端任务文档,负责范围写 frontend`,backend:`只写后端任务文档,负责范围写 backend`,fullstack:`前后端都负责,负责范围写 fullstack;两端都需配置仓库`},Xl={exact:`精确执行终端名`,normalized:`归一化命中(空格/全角/大小写)`},Zl={已完成:`success`,待验收:`warning`,进行中:`default`,未开始:`muted`,验收通过:`success`,验收驳回:`destructive`},Ql=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},$l=(e=>e?Ql(e):Ql),eu=e=>e;function tu(e,t=eu){let n=v.useSyncExternalStore(e.subscribe,v.useCallback(()=>t(e.getState()),[e,t]),()=>t(e.getInitialState()));return v.useDebugValue(n),n}var nu=e=>{let t=$l(e),n=e=>tu(t,e);return Object.assign(n,t),n},ru=(e=>e?nu(e):nu);function iu(e){return structuredClone(e)}function au(){return{profile:{developer:``,role:`frontend`},docs:{root:``,git:{cli:{...Gl},ui:{...Gl}},validator:{strict:!0}},terminals:{}}}var ou=ru((e,t)=>({onboarding:null,async bootstrap(){try{e({onboarding:await J.onboarding()})}catch(t){let n=t instanceof Error?t.message:String(t);e({onboarding:null,loading:!1,error:n}),Reflect.set(window,`__ylcwfStoreStatus`,`error:${n}`);return}await t().load()},loading:!0,saving:!1,error:null,snapshot:null,draft:null,dirty:!1,async load(){e({loading:!0,error:null}),Reflect.set(window,`__ylcwfStoreStatus`,`loading`);try{let t=await J.getState();e({snapshot:t,draft:t.config===null?au():iu(t.config),dirty:!1,loading:!1}),Reflect.set(window,`__ylcwfStoreStatus`,`ready`)}catch(t){let n=t instanceof Error?t.message:String(t);e({loading:!1,error:n}),Reflect.set(window,`__ylcwfStoreStatus`,`error:${n}`),dn.error(`读取配置失败`,{description:n})}},mutate(n){let{draft:r}=t();if(r===null)return;let i=iu(r);n(i),e({draft:i,dirty:!0})},async save(){let{draft:n}=t();if(n!==null){e({saving:!0});try{let t=await J.saveConfig(n);e({snapshot:t,draft:t.config===null?au():iu(t.config),dirty:!1,saving:!1});let r=t.issues.filter(e=>e.level===`error`).length;r>0?dn.warning(`已保存,但仍有 error`,{description:`${r} 项 error 需要处理`}):dn.success(`配置已保存`)}catch(t){let n=t instanceof Error?t.message:String(t);e({saving:!1}),dn.error(`保存失败`,{description:n})}}},discard(){let{snapshot:n}=t();e({draft:n?.config==null?au():iu(n.config),dirty:!1})},async restore(t){e({saving:!0});try{let n=await J.restore(t);e({snapshot:n,draft:n.config===null?au():iu(n.config),dirty:!1,saving:!1}),dn.success(`已回滚到该备份`)}catch(t){let n=t instanceof Error?t.message:String(t);e({saving:!1}),dn.error(`回滚失败`,{description:n})}}}));function su({title:e,description:t,actions:n,children:r,className:i}){return(0,z.jsxs)(`section`,{className:G(`space-y-3.5`,i),children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`h2`,{className:`text-sm font-semibold tracking-tight`,children:e}),(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`h-px min-w-6 flex-1 bg-border`}),n]}),t===void 0?null:(0,z.jsx)(`p`,{className:`-mt-1.5 text-xs text-muted-foreground`,children:t}),r]})}var cu={default:{card:``,value:``,bar:`bg-primary`},primary:{card:`border-primary/30 bg-primary/5`,value:`text-primary`,bar:`bg-primary`},success:{card:`border-success/30 bg-success/5`,value:`text-success`,bar:`bg-success`},warning:{card:`border-warning/30 bg-warning/5`,value:`text-warning`,bar:`bg-warning`},destructive:{card:`border-destructive/30 bg-destructive/5`,value:`text-destructive`,bar:`bg-destructive`}};function lu({label:e,value:t,icon:n,hint:r,tone:i=`default`,progress:a}){let o=cu[i];return(0,z.jsxs)(`div`,{className:G(`rounded-lg border bg-card px-3.5 py-3`,o.card),children:[(0,z.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e}),n===void 0?null:(0,z.jsx)(`div`,{className:`flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted/60 text-muted-foreground [&_svg]:size-3.5`,children:n})]}),(0,z.jsx)(`p`,{className:G(`mt-0.5 text-xl font-semibold tracking-tight tabular-nums`,o.value),children:t}),r===void 0?null:(0,z.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:r}),a===void 0?null:(0,z.jsx)(`div`,{className:`mt-2.5 h-1 overflow-hidden rounded-full bg-muted`,children:(0,z.jsx)(`div`,{className:G(`h-full rounded-full transition-all`,o.bar),style:{width:`${Math.max(0,Math.min(100,a))}%`}})})]})}function uu({label:e,hint:t,error:n,htmlFor:r,children:i}){return(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jl,{htmlFor:r,children:e}),i,n===void 0?t===void 0?null:(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t}):(0,z.jsx)(`p`,{className:`text-xs text-destructive`,children:n})]})}function du({issues:e}){return e.length===0?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-success/25 bg-success/8 px-4 py-3 text-sm text-success`,children:[(0,z.jsx)(fe,{className:`size-4`}),`未发现问题,配置健康`]}):(0,z.jsx)(`ul`,{className:`space-y-2`,children:e.map((e,t)=>{let n=e.level===`error`;return(0,z.jsxs)(`li`,{className:G(`flex items-start gap-2.5 rounded-lg border px-3.5 py-2.5 text-sm`,n?`border-destructive/25 bg-destructive/6 text-destructive`:`border-warning/30 bg-warning/8 text-warning`),children:[n?(0,z.jsx)(be,{className:`mt-0.5 size-4 shrink-0`}):(0,z.jsx)(Rt,{className:`mt-0.5 size-4 shrink-0`}),(0,z.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[(0,z.jsx)(`p`,{className:`leading-snug`,children:e.message}),(0,z.jsxs)(`p`,{className:`font-mono text-xs opacity-70`,children:[e.code,e.where===void 0?``:` · ${e.where}`]})]})]},`${e.code}-${e.where??``}-${t}`)})})}function fu({ok:e,text:t}){return e?(0,z.jsxs)(q,{variant:`success`,children:[(0,z.jsx)(fe,{className:`size-3`}),t]}):(0,z.jsxs)(q,{variant:`destructive`,children:[(0,z.jsx)(be,{className:`size-3`}),t]})}function pu({icon:e,title:t,description:n,action:r}){return(0,z.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed px-6 py-14 text-center`,children:[(0,z.jsx)(`div`,{className:`flex size-11 items-center justify-center rounded-full bg-muted text-muted-foreground`,children:e}),(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`p`,{className:`text-sm font-medium`,children:t}),(0,z.jsx)(`p`,{className:`max-w-sm text-xs text-muted-foreground`,children:n})]}),r]})}function mu({children:e}){return(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg bg-muted/60 px-3.5 py-2.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(Je,{className:`mt-0.5 size-3.5 shrink-0`}),(0,z.jsx)(`div`,{className:`leading-relaxed`,children:e})]})}function hu({label:e=`加载中…`,className:t}){return(0,z.jsxs)(`div`,{className:G(`flex flex-col items-center justify-center gap-3 animate-fade-up`,t),children:[(0,z.jsxs)(`span`,{"aria-hidden":`true`,className:`relative flex size-8 items-center justify-center`,children:[(0,z.jsx)(`span`,{className:`absolute inset-0 rounded-full border-2 border-primary/15`}),(0,z.jsx)(`span`,{className:`absolute inset-0 rounded-full border-2 border-transparent border-t-primary [animation-duration:0.9s] motion-safe:animate-spin`})]}),e===``?null:(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e})]})}var gu=Object.defineProperty,_u=(e,t)=>gu(e,`name`,{value:t,configurable:!0}),vu=0,yu=null;function bu(e){return xu(),e.children}_u(bu,`FocusGuards`);function xu(){v.useEffect(()=>{yu||={start:Su(),end:Su()};let{start:e,end:t}=yu;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),vu++,()=>{vu===1&&(yu?.start.remove(),yu?.end.remove(),yu=null),vu=Math.max(0,vu-1)}},[])}_u(xu,`useFocusGuards`);function Su(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}_u(Su,`createFocusGuard`);var Cu=function(){return Cu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Cu.apply(this,arguments)};function wu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Tu(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Eu=`right-scroll-bar-position`,Du=`width-before-scroll-bar`,Ou=`with-scroll-bars-hidden`,ku=`--removed-body-scroll-bar-size`;function Au(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ju(e,t){var n=(0,v.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Mu=typeof window<`u`?v.useLayoutEffect:v.useEffect,Nu=new WeakMap;function Pu(e,t){var n=ju(t||null,function(t){return e.forEach(function(e){return Au(e,t)})});return Mu(function(){var t=Nu.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Au(e,null)}),i.forEach(function(e){r.has(e)||Au(e,a)})}Nu.set(n,e)},[e]),n}function Fu(e){return e}function Iu(e,t){t===void 0&&(t=Fu);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Lu(e){e===void 0&&(e={});var t=Iu(null);return t.options=Cu({async:!0,ssr:!1},e),t}var Ru=function(e){var t=e.sideCar,n=wu(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return v.createElement(r,Cu({},n))};Ru.isSideCarExport=!0;function zu(e,t){return e.useMedium(t),Ru}var Bu=Lu(),Vu=function(){},Hu=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Vu,onWheelCapture:Vu,onTouchMoveCapture:Vu}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,y=_===void 0?`div`:_,b=e.gapMode,x=wu(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Pu([n,t]),w=Cu(Cu({},x),i);return v.createElement(v.Fragment,null,u&&v.createElement(S,{sideCar:Bu,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?v.cloneElement(v.Children.only(s),Cu(Cu({},w),{ref:C})):v.createElement(y,Cu({},w,{className:c,ref:C}),s))});Hu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Hu.classNames={fullWidth:Du,zeroRight:Eu};var Uu=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Wu(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Uu();return t&&e.setAttribute(`nonce`,t),e}function Gu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ku(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var qu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wu())&&(Gu(t,n),Ku(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ju=function(){var e=qu();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yu=function(){var e=Ju();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Xu={left:0,top:0,right:0,gap:0},Zu=function(e){return parseInt(e||``,10)||0},Qu=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Zu(n),Zu(r),Zu(i)]},Y=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Xu;var t=Qu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$u=Yu(),ed=`data-scroll-locked`,td=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
9
|
+
`).replace(tp,``)}function rp(e,t){return t=np(t),np(e)===t}function ip(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||dn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&dn(e,``+r);else return;break;case`className`:Yt(e,`class`,r);break;case`tabIndex`:Yt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Yt(e,n,r);break;case`style`:mn(e,r,o);return;case`data`:if(t!==`object`){Yt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=vn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ip(e,t,`name`,a.name,a,null),ip(e,t,`formEncType`,a.formEncType,a,null),ip(e,t,`formMethod`,a.formMethod,a,null),ip(e,t,`formTarget`,a.formTarget,a,null)):(ip(e,t,`encType`,a.encType,a,null),ip(e,t,`method`,a.method,a,null),ip(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=vn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=yn);return;case`onScroll`:r!=null&&Wf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Wf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=vn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Wf(`beforetoggle`,e),Wf(`toggle`,e),Jt(e,`popover`,r);break;case`xlinkActuate`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Xt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Xt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Jt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=gn.get(n)||n,Jt(e,n,r);else return}Kt=!0}function ap(e,t,n,r,a,o){switch(n){case`style`:mn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)dn(e,r);else if(typeof r==`number`||typeof r==`bigint`)dn(e,``+r);else return;break;case`onScroll`:r!=null&&Wf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Wf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=yn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!zt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[Ct]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Kt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Jt(e,n,r)}return}Kt=!0}function op(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Wf(`error`,e),Wf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,o,s,n,null)}}a&&ip(e,t,`srcSet`,n.srcSet,n,null),r&&ip(e,t,`src`,n.src,n,null);return;case`input`:Wf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:ip(e,t,r,d,n,null)}}on(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Wf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ip(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&cn(e,!!r,n,!0):cn(e,!!r,t,!1);return;case`textarea`:for(s in Wf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:ip(e,t,s,c,n,null)}un(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ip(e,t,l,r,n,null)}return;case`dialog`:Wf(`beforetoggle`,e),Wf(`toggle`,e),Wf(`cancel`,e),Wf(`close`,e);break;case`iframe`:case`object`:Wf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Vf.length;r++)Wf(Vf[r],e);break;case`image`:Wf(`error`,e),Wf(`load`,e);break;case`details`:Wf(`toggle`,e);break;case`embed`:case`source`:case`link`:Wf(`error`,e),Wf(`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(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:ip(e,t,u,r,n,null)}return;default:if(hn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&ap(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ip(e,t,c,r,n,null))}var sp={};function cp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ip(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Kt=!0),o=m;break;case`name`:m!==f&&(Kt=!0),a=m;break;case`checked`:m!==f&&(Kt=!0),u=m;break;case`defaultChecked`:m!==f&&(Kt=!0),d=m;break;case`value`:m!==f&&(Kt=!0),s=m;break;case`defaultValue`:m!==f&&(Kt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&ip(e,t,p,m,r,f)}}an(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ip(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Kt=!0),p=o;break;case`defaultValue`:o!==l&&(Kt=!0),c=o;break;case`multiple`:o!==l&&(Kt=!0),s=o;default:o!==l&&ip(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?cn(e,!!n,n?[]:``,!1):cn(e,!!n,t,!0)):cn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ip(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Kt=!0),p=a;break;case`defaultValue`:a!==o&&(Kt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&ip(e,t,s,a,r,o)}ln(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ip(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Kt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ip(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ip(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:ip(e,t,u,p,r,m)}return;default:if(hn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&ap(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||ap(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ip(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ip(e,t,f,p,r,m)}function lp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function up(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&lp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&lp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var dp=null,fp=null;function pp(e){return e.nodeType===9?e:e.ownerDocument}function mp(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 hp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function gp(e,t,n,r){return n=pp(n).createElement(e),n[St]=r,n[Ct]=t,op(n,e,t),It(n),n}function _p(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vp=null;function yp(){var e=window.event;return e&&e.type===`popstate`?e!==vp&&(vp=e,!0):(vp=null,!1)}var bp=typeof setTimeout==`function`?setTimeout:void 0,xp=typeof clearTimeout==`function`?clearTimeout:void 0,Sp=typeof Promise==`function`?Promise:void 0,Cp=typeof requestAnimationFrame==`function`?requestAnimationFrame:bp,wp=typeof queueMicrotask==`function`?queueMicrotask:Sp===void 0?bp:function(e){return Sp.resolve(null).then(e).catch(Tp)};function Tp(e){setTimeout(function(){throw e})}function Ep(e){return e===`head`}function Dp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Wh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[kt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xm(e.ownerDocument.body)}n=i}while(n);Wh(t)}function Op(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function kp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ap(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function jp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Mp(e){return jp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Np(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return jp(t,n,e)}function Pp(e){return e.documentElement.clientHeight}function Fp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Ip(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Pp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=eh(f),u>rh){s.length=o;break}f=new Promise(Fp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Lp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Lp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Lp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Lp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Rp(e){return{name:e,group:new Lp(`group`,e),imagePair:new Lp(`image-pair`,e),old:new Lp(`old`,e),new:new Lp(`new`,e)}}function zp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}zp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Wp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Hp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Bp,e,s,r)}this._eventListeners=a}};function Bp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}zp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Wp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Hp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Vp,e,n,i),r.splice(t,1),a!==null&&a()}};function Vp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Hp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Up(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Wp(e,t,n,r){if(e.length===0)return-1;r=Up(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Up(a.optionsOrUseCapture)===r)return i}return-1}zp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Hp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Hp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},zp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Gp,e,void 0,void 0)};function Gp(e,t){return e.tag!==6&&(e=b(e),_m(e,t))}zp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Kp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Gp(t[n],e);n--);};function Kp(e,t){return t.push(e),!1}zp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=pp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,qp,e,void 0,void 0))};function qp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}zp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Jp,e,void 0,void 0)};function Jp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}zp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0);for(var n=t=0;n<Xp.length;n++){var r=Xp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Xp[t++]=r}Xp.length=t}};function Yp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Xp=[],Zp=!1;function Qp(e,t,n){Xp.push({fragmentInstance:e,observer:t,instance:n}),Zp||(Zp=!0,vm(function(){Zp=!1;var e=Xp;Xp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}zp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,$p,e,void 0,void 0),e};function $p(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}zp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},zp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Kp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||em(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function em(e,t,n,r,i){var a=Mt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(m(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function tm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}zp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Kp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),tm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),tm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function nm(e,t){return e=b(e),rm(e,t),!1}function rm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function im(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Xp.length;i++){var a=Xp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Xp[r++]=a)}Xp.length=r,n.observe(e)}),rm(e,t))}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Hp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Qp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function om(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:om(n),jt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function sm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[kt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=pm(e.nextSibling),e===null)break}return null}function cm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pm(e.nextSibling),e===null))return null;return e}function lm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pm(e.nextSibling),e===null))return null;return e}function um(e){return e.data===`$?`||e.data===`$~`}function dm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function fm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function pm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var mm=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return pm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function gm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function _m(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function vm(e){Cp(function(){Cp(function(t){return e(t)})})}function ym(e,t,n){switch(t=pp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function bm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ip(e,t,r,null,sp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===yn&&(e.onclick=null),jt(e)}function xm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jt(e)}var Sm=new Map,Cm=new Set;function wm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Tm=R.d;R.d={f:Em,r:Dm,D:Am,C:jm,L:Mm,m:Nm,X:Fm,S:Pm,M:Im};function Em(){var e=Tm.f(),t=Bd();return e||t}function Dm(e){var t=Nt(e);t!==null&&t.tag===5&&t.type===`form`?ic(t):Tm.r(e)}var Om=typeof document>`u`?null:document;function km(e,t,n){var r=Om;if(r&&typeof t==`string`&&t){var i=rn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cm.has(i)||(Cm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),op(t,`link`,e),It(t),r.head.appendChild(t)))}}function Am(e){Tm.D(e),km(`dns-prefetch`,e,null)}function jm(e,t){Tm.C(e,t),km(`preconnect`,e,t)}function Mm(e,t,n){Tm.L(e,t,n);var r=Om;if(r&&e&&t){var i=`link[rel="preload"][as="`+rn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+rn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+rn(n.imageSizes)+`"]`)):i+=`[href="`+rn(e)+`"]`;var a=i;switch(t){case`style`:a=Rm(e);break;case`script`:a=Hm(e)}if(!(Sm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zm(a))||t===`script`&&r.querySelector(Um(a))))){var o=r.createElement(`link`);op(o,`link`,e),t===`style`&&(o[At]=!0,o.onload=o.onerror=function(){Lt(o)}),It(o),r.head.appendChild(o)}}}function Nm(e,t){Tm.m(e,t);var n=Om;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+rn(r)+`"][href="`+rn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hm(e)}if(!Sm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Sm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Um(a)))return}r=n.createElement(`link`),op(r,`link`,e),It(r),n.head.appendChild(r)}}}function Pm(e,t,n){Tm.S(e,t,n);var r=Om;if(r&&e){var i=Ft(r).hoistableStyles,a=Rm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sm.get(a))&&Km(e,n);var c=o=r.createElement(`link`);It(c),op(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Fm(e,t){Tm.X(e,t);var n=Om;if(n&&e){var r=Ft(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=D({src:e,async:!0},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),It(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t){Tm.M(e,t);var n=Om;if(n&&e){var r=Ft(n).hoistableScripts,i=Hm(e),a=r.get(i);a||(a=n.querySelector(Um(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Sm.get(i))&&qm(e,t),a=n.createElement(`script`),It(a),op(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lm(e,t,n,r){var a=(a=Se.current)?wm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Rm(n.href),t=Ft(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rm(n.href);var o=Ft(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Sm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sm.set(e,o)),Vm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Hm(n),t=Ft(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rm(e){return`href="`+rn(e)+`"`}function zm(e){return`link[rel="stylesheet"][`+e+`]`}function Bm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Vm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[At]){r.loading=1;return}}else t=e.createElement(`link`),t[At]=!0,t.onload=t.onerror=Lt.bind(null,t),op(t,`link`,n),It(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Hm(e){return`[src="`+rn(e)+`"]`}function Um(e){return`script[async]`+e}function Wm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+rn(n.href)+`"]`);if(r)return t.instance=r,It(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),It(r),op(r,`style`,a),Gm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rm(n.href);var o=e.querySelector(zm(a));if(o)return t.state.loading|=4,t.instance=o,It(o),o;r=Bm(n),(a=Sm.get(a))&&Km(r,a),o=(e.ownerDocument||e).createElement(`link`),It(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),op(o,`link`,r),t.state.loading|=4,Gm(o,n.precedence,e),t.instance=o;case`script`:return o=Hm(n.src),(a=e.querySelector(Um(o)))?(t.instance=a,It(a),a):(r=n,(a=Sm.get(o))&&(r=D({},n),qm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),It(a),op(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gm(r,n.precedence,e));return t.instance}function Gm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jm=null;function Ym(e,t,n){if(Jm===null){var r=new Map,i=Jm=new Map;i.set(n,r)}else i=Jm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[kt]||a[St]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Xm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Zm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function $m(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function eh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function th(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=eh(t),e.suspenseyImages.push(t)),e=sh.bind(e),t.decode().then(e,e))}function nh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rm(r.href),a=t.querySelector(zm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=oh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,It(a);return}a=t.ownerDocument||t,r=Bm(r),(i=Sm.get(i))&&Km(r,i),a=a.createElement(`link`),It(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),op(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=oh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var rh=0;function ih(e,t){return e.stylesheets&&e.count===0&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&rh===0&&(rh=62500*up());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>rh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ah(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function oh(){this.count--,ah(this)}function sh(){this.imgCount--,ah(this)}var ch=null;function lh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ch=new Map,t.forEach(uh,e),ch=null,oh.call(e))}function uh(e,t){if(!(t.state.loading&4)){var n=ch.get(e);if(n)var r=n.get(null);else{n=new Map,ch.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=oh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var dh={$$typeof:F,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function fh(e,t,n,r,i,a,o,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=dt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dt(0),this.hiddenUpdates=dt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function ph(e,t,n,r,i,a,o,s,c,l,u,d){return e=new fh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Mi(3,null,null,t),e.current=a,a.stateNode=e,t=Ma(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ho(a),e}function mh(e){return e?(e=Ai,e):Ai}function hh(e,t,n,r,i,a){i=mh(i),r.context===null?r.context=i:r.pendingContext=i,r=_o(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=vo(e,r,t),n!==null&&(Fd(n,e,t),yo(n,e,t))}function gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _h(e,t){gh(e,t),(e=e.alternate)&&gh(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=Di(e,67108864);t!==null&&Fd(t,e,67108864),_h(e,67108864)}}function yh(e){if(e.tag===13||e.tag===31){var t=Md();t=_t(t);var n=Di(e,t);n!==null&&Fd(n,e,t),_h(e,t)}}var bh=!0;function xh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,Ch(e,t,n,r)}finally{R.p=a,L.T=i}}function Sh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,Ch(e,t,n,r)}finally{R.p=a,L.T=i}}function Ch(e,t,n,r){if(bh){var i=wh(r);if(i===null)Yf(e,t,r,Th,n),Ih(e,r);else if(X(i,e,t,n,r))r.stopPropagation();else if(Ih(e,r),t&4&&-1<Fh.indexOf(e)){for(;i!==null;){var a=Nt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=at(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Qe(o);s.entanglements[1]|=c,o&=~c}Of(a),!(Zu&6)&&(_d=Be()+500,kf(0,!1))}}break;case 31:case 13:s=Di(a,2),s!==null&&Fd(s,a,2),Bd(),_h(a,2)}if(a=wh(r),a===null&&Yf(e,t,r,Th,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Yf(e,t,r,null,n)}}function wh(e){return e=xn(e),Eh(e)}var Th=null;function Eh(e){if(Th=null,e=Mt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Th=e,null}function Dh(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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ve()){case He:return 2;case Ue:return 8;case We:case Ge:return 32;case Ke:return 268435456;default:return 32}default:return 32}}var Oh=!1,kh=null,Ah=null,jh=null,Mh=new Map,Nh=new Map,Ph=[],Fh=`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 Ih(e,t){switch(e){case`focusin`:case`focusout`:kh=null;break;case`dragenter`:case`dragleave`:Ah=null;break;case`mouseover`:case`mouseout`:jh=null;break;case`pointerover`:case`pointerout`:Mh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Nh.delete(t.pointerId)}}function Lh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Nt(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function X(e,t,n,r,i){switch(t){case`focusin`:return kh=Lh(kh,e,t,n,r,i),!0;case`dragenter`:return Ah=Lh(Ah,e,t,n,r,i),!0;case`mouseover`:return jh=Lh(jh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Mh.set(a,Lh(Mh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Nh.set(a,Lh(Nh.get(a)||null,e,t,n,r,i)),!0}return!1}function Rh(e){var t=Mt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,bt(e.priority,function(){yh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,bt(e.priority,function(){yh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);bn=r,n.target.dispatchEvent(r),bn=null}else return t=Nt(n),t!==null&&vh(t),e.blockedOn=n,!1;t.shift()}return!0}function Z(e,t,n){zh(e)&&n.delete(t)}function Bh(){Oh=!1,kh!==null&&zh(kh)&&(kh=null),Ah!==null&&zh(Ah)&&(Ah=null),jh!==null&&zh(jh)&&(jh=null),Mh.forEach(Z),Nh.forEach(Z)}function Vh(e,n){e.blockedOn===n&&(e.blockedOn=null,Oh||(Oh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bh)))}var Hh=null;function Uh(e){Hh!==e&&(Hh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Hh===e&&(Hh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Eh(r||n)===null)continue;break}var a=Nt(n);a!==null&&(e.splice(t,3),t-=3,nc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Wh(e){function t(t){return Vh(t,e)}kh!==null&&Vh(kh,e),Ah!==null&&Vh(Ah,e),jh!==null&&Vh(jh,e),Mh.forEach(t),Nh.forEach(t);for(var n=0;n<Ph.length;n++){var r=Ph[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ph.length&&(n=Ph[0],n.blockedOn===null);)Rh(n),n.blockedOn===null&&Ph.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ct]||null;if(typeof a==`function`)o||Uh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ct]||null)s=o.formAction;else if(Eh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Uh(n)}}}function Gh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Kh(e){this._internalRoot=e}qh.prototype.render=Kh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;hh(n,Md(),e,t,null,null)},qh.prototype.unmount=Kh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hh(e.current,2,null,e,null,null),Bd(),t[wt]=null}};function qh(e){this._internalRoot=e}qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=yt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ph.length&&t!==0&&t<Ph[n].priority;n++);Ph.splice(n,0,e),n===0&&Rh(e)}};var Jh=n.version;if(Jh!==`19.3.1`)throw Error(i(527,Jh,`19.3.1`));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Yh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xh.isDisabled&&Xh.supportsFiber)try{Ye=Xh.inject(Yh),Xe=Xh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Tc,s=Ec,c=Dc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ph(e,1,!1,null,null,n,r,null,o,s,c,Gh),e[wt]=t.current,qf(e),new Kh(t)}})),_=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=l(d(),1),y=_(),b=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function x(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:b(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var S=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},C=e=>{let t=S(e);return t.charAt(0).toUpperCase()+t.slice(1)},w=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),T={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function E(e){return e!=null}function D(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??T.width,a=e.size??e.height??T.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?w(...c):w(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??T[`stroke-width`])*Number(e.size??e.width??T.width)/Number(t.size??t.width??T.width):t.strokeWidth??T[`stroke-width`];return[`svg`,{...Object.entries(T).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&E(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&E(t.width)&&{[r(`width`)]:t.width},...`height`in t&&E(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function O(e,t={}){return D(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var k=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},A=(0,v.createContext)({}),j=()=>(0,v.useContext)(A),M=(0,v.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:y=``}=j()??{},b=!!c||k(d),[x,S,C=[]]=O(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:w(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function N(e,t=[],n=[]){let r=typeof e==`string`?x(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(M,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=C(r.name)),i}var P={name:`arrow-down-to-line`,size:24,node:[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]};P.node;var F=N(P),I={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};I.node;var ee=N(I),te={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};te.node;var ne=N(te),re={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};re.node;var ie=N(re),ae={name:`chart-pie`,size:24,node:[[`path`,{d:`M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z`,key:`pzmjnu`}],[`path`,{d:`M21.21 15.89A10 10 0 1 1 8 2.83`,key:`k2fpak`}]],aliases:[`pie-chart`]};ae.node;var oe=N(ae),se={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};se.node;var ce=N(se),le={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};le.node;var ue=N(le),de={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};de.node;var fe=N(de),pe={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};pe.node;var L=N(pe),R={name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};R.node;var me=N(R),he={name:`circle-minus`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]],aliases:[`minus-circle`]};he.node;var ge=N(he),_e={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5`,key:`1awbb0`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};_e.node;var ve=N(_e),ye={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};ye.node;var be=N(ye),xe={name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]};xe.node;var Se=N(xe),Ce={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Ce.node;var we=N(Ce),Te={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]};Te.node;var Ee=N(Te),De={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};De.node;var Oe=N(De),ke={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};ke.node;var Ae=N(ke),je={name:`file-text`,size:24,node:[[`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:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};je.node;var Me=N(je),Ne={name:`folder-git-2`,size:24,node:[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`,key:`sz5oeg`}],[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]};Ne.node;var Pe=N(Ne),Fe={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};Fe.node;var Ie=N(Fe),Le={name:`folder-search`,size:24,node:[[`path`,{d:`M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1`,key:`1bw5m7`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]};Le.node;var Re=N(Le),ze={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};ze.node;var Be=N(ze),Ve={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};Ve.node;var He=N(Ve),Ue={name:`hard-drive`,size:24,node:[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]};Ue.node;var We=N(Ue),Ge={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};Ge.node;var Ke=N(Ge),qe={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};qe.node;var Je=N(qe),Ye={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};Ye.node;var Xe=N(Ye),Ze={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Ze.node;var Qe=N(Ze),$e={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};$e.node;var et=N($e),tt={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};tt.node;var nt=N(tt),rt={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};rt.node;var it=N(rt),at={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};at.node;var ot=N(at),st={name:`panel-left-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]],aliases:[`sidebar-close`]};st.node;var ct=N(st),lt={name:`panel-left-open`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]],aliases:[`sidebar-open`]};lt.node;var ut=N(lt),dt={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};dt.node;var ft=N(dt),pt={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};pt.node;var mt=N(pt),ht={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};ht.node;var gt=N(ht),_t={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};_t.node;var vt=N(_t),yt={name:`save`,size:24,node:[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]};yt.node;var bt=N(yt),xt={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};xt.node;var St=N(xt),Ct={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Ct.node;var wt=N(Ct),Tt={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};Tt.node;var Et=N(Tt),Dt={name:`shield-exclamation-point`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]],aliases:[`shield-alert`]};Dt.node;var Ot=N(Dt),kt={name:`square-kanban`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}]],aliases:[`kanban-square`]};kt.node;var At=N(kt),jt={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};jt.node;var Mt=N(jt),Nt={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};Nt.node;var Pt=N(Nt),Ft={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Ft.node;var It=N(Ft),Lt={name:`triangle-exclamation-point`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`,`triangle-alert`]};Lt.node;var Rt=N(Lt),zt={name:`user-check`,size:24,node:[[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};zt.node;var Bt=N(zt),Vt={name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]};Vt.node;var Ht=N(Vt),Ut={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Ut.node;var Wt=N(Ut),Gt={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Gt.node;var Kt=N(Gt),qt=l(h(),1);function Jt(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Yt=e=>{switch(e){case`success`:return Qt;case`info`:return en;case`warning`:return $t;case`error`:return tn;default:return null}},Xt=Array(12).fill(0),Zt=({visible:e,className:t})=>v.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},v.createElement(`div`,{className:`sonner-spinner`},Xt.map((e,t)=>v.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Qt=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),$t=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),en=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),tn=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},v.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),nn=v.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},v.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),v.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),rn=()=>{let[e,t]=v.useState(document.hidden);return v.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},an=1,on=100,sn=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:an++,cn=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-on;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=sn(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],v.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(un(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!v.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=sn(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},ln=(e,t)=>cn.message(e,t),un=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,dn=Object.assign(ln,{success:cn.success,info:cn.info,warning:cn.warning,error:cn.error,custom:cn.custom,message:cn.message,promise:cn.promise,dismiss:cn.dismiss,loading:cn.loading},{getHistory:()=>cn.toasts,getToasts:()=>cn.getActiveToasts()});Jt(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function fn(e){return e.label!==void 0}var pn=3,mn=`24px`,hn=`16px`,gn=4e3,_n=356,vn=14,yn=45,bn=200;function xn(...e){return e.filter(Boolean).join(` `)}function Sn(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Cn=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:y=``,duration:b,position:x,gap:S,expandByDefault:C,classNames:w,icons:T,closeButtonAriaLabel:E=`Close toast`}=e,[D,O]=v.useState(null),[k,A]=v.useState(null),[j,M]=v.useState(!1),[N,P]=v.useState(!1),[F,I]=v.useState(!1),[ee,te]=v.useState(!1),[ne,re]=v.useState(!1),[ie,ae]=v.useState(0),[oe,se]=v.useState(0),ce=v.useRef(n.duration||b||gn),le=v.useRef(null),ue=v.useRef(null),de=c===0,fe=c+1<=o,pe=n.type,L=pe??`default`,R=n.dismissible!==!1,me=n.className||``,he=n.descriptionClassName||``,ge=v.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),_e=v.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ve=v.useMemo(()=>n.duration||b||gn,[n.duration,b]),ye=v.useRef(0),be=v.useRef(0),xe=v.useRef(0),Se=v.useRef(null),[Ce,we]=x.split(`-`),Te=v.useMemo(()=>s.reduce((e,t,n)=>n>=ge?e:e+t.height,0),[s,ge]),Ee=rn(),De=v.useMemo(()=>e.swipeDirections??Sn(x),[e.swipeDirections,x]),Oe=n.invert||t,ke=pe===`loading`;be.current=v.useMemo(()=>ge*S+Te,[ge,Te]),v.useEffect(()=>{ce.current=ve},[ve]),v.useEffect(()=>{M(!0)},[]),v.useEffect(()=>{let e=ue.current;if(e){let t=e.getBoundingClientRect().height;return se(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),v.useLayoutEffect(()=>{if(!j)return;let e=ue.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,se(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[j,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Ae=v.useCallback(()=>{P(!0),ae(be.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},bn)},[n,d,a,be]);v.useEffect(()=>{if(n.promise&&pe===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Ee?(()=>{if(xe.current<ye.current){let e=new Date().getTime()-ye.current;ce.current-=e}xe.current=new Date().getTime()})():ce.current!==1/0&&(ye.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Ae()},ce.current)),()=>clearTimeout(e)},[u,i,n,pe,Ee,Ae]),v.useEffect(()=>{n.delete&&(Ae(),n.onDismiss==null||n.onDismiss.call(n,n))},[Ae,n.delete]);function je(){return T?.loading?v.createElement(`div`,{className:xn(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":pe===`loading`},T.loading):v.createElement(Zt,{className:xn(w?.loader,n?.classNames?.loader),visible:pe===`loading`})}let Me=n.icon||T?.[pe]||Yt(pe);return v.createElement(`li`,{tabIndex:0,ref:ue,className:xn(_,me,w?.toast,n?.classNames?.toast,w?.[L],n?.classNames?.[L]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":j,"data-promise":!!n.promise,"data-swiped":ne,"data-removed":N,"data-visible":fe,"data-y-position":Ce,"data-x-position":we,"data-index":c,"data-front":de,"data-swiping":F,"data-dismissible":R,"data-type":pe,"data-invert":Oe,"data-swipe-out":ee,"data-swipe-direction":k,"data-expanded":!!(u||C&&j),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${N?ie:be.current}px`,"--initial-height":C?`auto`:`${oe}px`,...m,...n.style},onDragEnd:()=>{I(!1),O(null),Se.current=null},onPointerDown:e=>{e.button!==2&&!ke&&R&&(le.current=new Date,ae(be.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(I(!0),Se.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{if(ee||!R)return;Se.current=null;let e=Number(ue.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(ue.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-le.current?.getTime(),i=D===`x`?e:t,a=Math.abs(i)/r;if((D===`x`?De.includes(e>0?`right`:`left`):De.includes(t>0?`bottom`:`top`))&&(Math.abs(i)>=yn||a>.11))ae(be.current),n.onDismiss==null||n.onDismiss.call(n,n),A(D===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Ae(),te(!0);else{var o,s;(o=ue.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=ue.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),re(!1),I(!1),O(null)}},onPointerMove:e=>{var t,n;if(!Se.current||!R||window.getSelection()?.toString().length>0)return;let r=e.clientY-Se.current.y,i=e.clientX-Se.current.x;!D&&(Math.abs(i)>1||Math.abs(r)>1)&&O(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(D===`y`){if(De.includes(`top`)||De.includes(`bottom`)){if(De.includes(`top`)&&r<0||De.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(D===`x`&&(De.includes(`left`)||De.includes(`right`))){if(De.includes(`left`)&&i<0||De.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&re(!0),(t=ue.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=ue.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},_e&&!n.jsx&&pe!==`loading`?v.createElement(`button`,{"aria-label":E,"data-disabled":ke,"data-close-button":!0,onClick:ke||!R?()=>{}:()=>{Ae(),n.onDismiss==null||n.onDismiss.call(n,n)},className:xn(w?.closeButton,n?.classNames?.closeButton)},T?.close??nn):null,(pe||n.icon||n.promise)&&n.icon!==null&&(T?.[pe]!==null||n.icon)?v.createElement(`div`,{"data-icon":``,className:xn(w?.icon,n?.classNames?.icon)},pe===`loading`?n.icon||je():n.promise?je():null,pe===`loading`?null:Me):null,v.createElement(`div`,{"data-content":``,className:xn(w?.content,n?.classNames?.content)},v.createElement(`div`,{"data-title":``,className:xn(w?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?v.createElement(`div`,{"data-description":``,className:xn(y,he,w?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),v.isValidElement(n.cancel)?n.cancel:n.cancel&&fn(n.cancel)?v.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{fn(n.cancel)&&R&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Ae())},className:xn(w?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,v.isValidElement(n.action)?n.action:n.action&&fn(n.action)?v.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{fn(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),e.defaultPrevented||Ae())},className:xn(w?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function wn(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Tn(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?hn:mn;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var En=v.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=pn,toastOptions:g,dir:_=wn(),gap:y=vn,icons:b,customAriaLabel:x,containerAriaLabel:S=`Notifications`}=e,[C,w]=v.useState([]),T=v.useMemo(()=>n?C.filter(e=>e.toasterId===n):C.filter(e=>!e.toasterId),[C,n]),E=v.useMemo(()=>Array.from(new Set([i].concat(T.filter(e=>e.position).map(e=>e.position)))),[T,i]),[D,O]=v.useState([]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),[N,P]=v.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),F=v.useRef(null),I=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),ee=v.useRef(null),te=v.useRef(!1),ne=v.useCallback(e=>{w(t=>(t.find(t=>t.id===e.id)?.delete||cn.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return v.useEffect(()=>cn.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{w(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{qt.flushSync(()=>{w(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),v.useEffect(()=>{if(d!==`system`){P(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?P(`dark`):P(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{P(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{P(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),v.useEffect(()=>{C.length<=1&&A(!1)},[C]),v.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;A(!0),(t=F.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===F.current||F.current?.contains(document.activeElement))&&A(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),v.useEffect(()=>{if(F.current)return()=>{ee.current&&(ee.current.focus({preventScroll:!0}),ee.current=null,te.current=!1)}},[F.current]),v.createElement(`section`,{ref:t,"aria-label":x??`${S} ${I}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},E.map((t,n)=>{let[i,a]=t.split(`-`);return T.length?v.createElement(`ol`,{key:t,dir:_===`auto`?wn():_,tabIndex:-1,ref:F,className:c,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${D[0]?.height||0}px`,"--width":`${_n}px`,"--gap":`${y}px`,...m,...Tn(l,u)},onBlur:e=>{te.current&&!e.currentTarget.contains(e.relatedTarget)&&(te.current=!1,ee.current&&=(ee.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||te.current||(te.current=!0,ee.current=e.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{j||A(!1)},onDragEnd:()=>A(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||M(!0)},onPointerUp:()=>M(!1)},T.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>v.createElement(Cn,{key:n.id,icons:b,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:j,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ne,toasts:T.filter(e=>e.position==n.position),heights:D.filter(e=>e.position==n.position),setHeights:O,expandByDefault:o,gap:y,expanded:k,swipeDirections:e.swipeDirections}))):null}))}),Dn=Object.defineProperty,On=(e,t)=>Dn(e,`name`,{value:t,configurable:!0});function kn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}On(kn,`setRef`);function An(...e){return t=>{let n=!1,r=e.map(e=>{let r=kn(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():kn(e[t],null)}}}}On(An,`composeRefs`);function jn(...e){return v.useCallback(An(...e),e)}On(jn,`useComposedRefs`);var Mn=Object.defineProperty,Nn=(e,t)=>Mn(e,`name`,{value:t,configurable:!0});function Pn(e){let t=v.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Gn(r),v.Children.forEach(r,e=>{if(Vn(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Un(n)&&typeof Yn==`function`;)n=Yn(n._payload);a=Rn(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=v.cloneElement(a,void 0,s):!o&&v.Children.count(r)===1&&v.isValidElement(r)&&(a=r);let c=a?Bn(a):void 0,l=jn(n,c);if(!a){if(r||r===0)throw Error(o?Jn(e):qn(e));return r}let u=zn(i,a.props??{});return a.type!==v.Fragment&&(u.ref=n?l:c),v.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Nn(Pn,`createSlot`);var Fn=Pn(`Slot`),In=Symbol.for(`radix.slottable`);function Ln(e){let t=Nn(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=In,t}Nn(Ln,`createSlottable`);var Rn=Nn((e,t)=>`child`in e.props?v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null:v.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function zn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Kn(a,i))}return{...e,...n}}Nn(zn,`mergeProps`);function Bn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Nn(Bn,`getElementRef`);function Vn(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===In}Nn(Vn,`isSlottable`);var Hn=Symbol.for(`react.lazy`);function Un(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Hn&&`_payload`in e&&Wn(e._payload)}Nn(Un,`isLazyComponent`);function Wn(e){return typeof e==`object`&&!!e&&`then`in e}Nn(Wn,`isPromiseLike`);function Gn(e){let t=e;for(;Un(t)&&typeof Yn==`function`;)t=Yn(t._payload);return t}Nn(Gn,`useUnwrappedLazy`);function Kn(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Nn(Kn,`concatAriaDescribedby`);var qn=Nn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Jn=Nn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Yn=v.use,Xn=Object.defineProperty,Zn=(e,t)=>Xn(e,`name`,{value:t,configurable:!0}),Qn=!!(typeof window<`u`&&window.document&&window.document.createElement);function $n(e,t,{checkForDefaultPrevented:n=!0}={}){return Zn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Zn($n,`composeEventHandlers`);function er(e){if(!Qn)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Zn(er,`getOwnerWindow`);function tr(e){if(!Qn)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Zn(tr,`getOwnerDocument`);function nr(e,t=!1){let{activeElement:n}=tr(e);if(!n?.nodeName)return null;if(rr(n)&&n.contentDocument)return nr(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=tr(n).getElementById(e);if(t)return t}}return n}Zn(nr,`getActiveElement`);function rr(e){return e.tagName===`IFRAME`}Zn(rr,`isFrame`);var ir=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),z=o(((e,t)=>{t.exports=ir()}))(),ar=Object.defineProperty,or=(e,t)=>ar(e,`name`,{value:t,configurable:!0});function sr(e,t){let n=v.createContext(t);n.displayName=e+`Context`;let r=or(e=>{let{children:t,...r}=e,i=v.useMemo(()=>r,Object.values(r));return(0,z.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=v.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return or(i,`useContext`),[r,i]}or(sr,`createContext`);function cr(e,t=[]){let n=[];function r(t,r){let i=v.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=or(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.useMemo(()=>o,Object.values(o));return(0,z.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=v.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return or(s,`useContext`),[o,s]}or(r,`createContext`);let i=or(()=>{let t=n.map(e=>v.createContext(e));return or(function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,lr(i,...t)]}or(cr,`createContextScope`);function lr(...e){let t=e[0];if(e.length===1)return t;let n=or(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return or(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}or(lr,`composeContextScopes`);var ur=Object.defineProperty,dr=(e,t)=>ur(e,`name`,{value:t,configurable:!0}),fr=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Pn(`Primitive.${t}`),r=v.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pr(e,t){e&&qt.flushSync(()=>e.dispatchEvent(t))}dr(pr,`dispatchDiscreteCustomEvent`);var mr=globalThis?.document?v.useLayoutEffect:()=>{},hr=Object.defineProperty,gr=(e,t)=>hr(e,`name`,{value:t,configurable:!0}),_r=v.useInsertionEffect;function vr(e){let t=v.useRef(e);return typeof _r==`function`?_r(()=>{t.current=e}):mr(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}gr(vr,`useCallbackRef`);var yr=Object.defineProperty,br=(e,t)=>yr(e,`name`,{value:t,configurable:!0}),xr=`dismissableLayer.update`,Sr=`dismissableLayer.pointerDownOutside`,Cr=`dismissableLayer.focusOutside`,wr,Tr=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Er=v.forwardRef(br(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(Tr),[d,f]=v.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=v.useState({}),h=jn(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=v.useRef(!1),w=kr(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Ar(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?b===g.length-1:!1,D=vr(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return v.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(wr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),jr(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=wr))}},[d,p,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),jr())},[d,u]),v.useEffect(()=>{let e=br(()=>m({}),`handleUpdate`);return document.addEventListener(xr,e),()=>document.removeEventListener(xr,e)},[]),(0,z.jsx)(fr.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:$n(e.onFocusCapture,T.onFocusCapture),onBlurCapture:$n(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:$n(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function Dr(){let e=v.useContext(Tr),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}br(Dr,`useDismissableLayerSurface`);var Or=br(()=>!0,`IS_TRUE`);function kr(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Or}=t,s=vr(e),c=v.useRef(!1),l=v.useRef(!1),u=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}br(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}br(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}br(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}br(p,`handleInteractionBubble`);let m=br(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Mr(Sr,s,p,{discrete:!0})};if(br(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:br(()=>c.current=!0,`onPointerDownCapture`)}}br(kr,`usePointerDownOutside`);function Ar(e,t=globalThis?.document){let n=vr(e),r=v.useRef(!1);return v.useEffect(()=>{let e=br(e=>{e.target&&!r.current&&Mr(Cr,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:br(()=>r.current=!0,`onFocusCapture`),onBlurCapture:br(()=>r.current=!1,`onBlurCapture`)}}br(Ar,`useFocusOutside`);function jr(){let e=new CustomEvent(xr);document.dispatchEvent(e)}br(jr,`dispatchUpdate`);function Mr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?pr(i,a):i.dispatchEvent(a)}br(Mr,`handleAndDispatchCustomEvent`);var Nr=Object.defineProperty,Pr=(e,t)=>Nr(e,`name`,{value:t,configurable:!0}),Fr=`focusScope.autoFocusOnMount`,Ir=`focusScope.autoFocusOnUnmount`,Lr={bubbles:!1,cancelable:!0},Rr=v.forwardRef(Pr(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=v.useState(null),u=vr(a),d=vr(o),f=v.useRef(null),p=jn(t,l),m=v.useRef(i);v.useEffect(()=>{m.current=i});let h=v.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:Yr(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||Yr(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Yr(c)};Pr(e,`handleFocusIn`),Pr(t,`handleFocusOut`),Pr(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),v.useEffect(()=>{if(c){Xr.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Fr,Lr);c.addEventListener(Fr,u),c.dispatchEvent(t),t.defaultPrevented||(Ur($r(Gr(c)),{select:!0}),document.activeElement===e&&Yr(c))}return()=>{c.removeEventListener(Fr,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Ir,Lr);c.addEventListener(Ir,d),c.dispatchEvent(r),r.defaultPrevented||Yr(e??t.body,{select:!0}),c.removeEventListener(Ir,d),Xr.remove(g)},0)}}},[c,u,d,g]);let _=v.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Wr(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Yr(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Yr(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,z.jsx)(fr.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),zr=v.createContext(null);function Br({registry:e,children:t}){return e?(0,z.jsx)(zr.Provider,{value:e,children:t}):t}Pr(Br,`FocusScopeBranchProvider`);function Vr(){let[e,t]=v.useState([]);return{nodes:e,registry:v.useMemo(()=>({add:Pr(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:Pr(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}Pr(Vr,`useFocusScopeBranchRegistry`);function Hr(e){let t=v.useContext(zr);v.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}Pr(Hr,`useFocusScopeBranch`);function Ur(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Yr(r,{select:t}),document.activeElement!==n)return}Pr(Ur,`focusFirst`);function Wr(e){let t=Gr(e);return[Kr(t,e),Kr(t.reverse(),e)]}Pr(Wr,`getTabbableEdges`);function Gr(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Pr(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Pr(Gr,`getTabbableCandidates`);function Kr(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):qr(r,{upTo:t})))return r}Pr(Kr,`findVisible`);function qr(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}Pr(qr,`isHidden`);function Jr(e){return e.tagName===`INPUT`&&typeof e.select==`function`}Pr(Jr,`isSelectableInput`);function Yr(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Jr(e)&&t&&e.select()}}Pr(Yr,`focus`);var Xr=Zr();function Zr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Qr(e,t),e.unshift(t)},remove(t){e=Qr(e,t),e[0]?.resume()}}}Pr(Zr,`createFocusScopesStack`);function Qr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Pr(Qr,`arrayRemove`);function $r(e){return e.filter(e=>e.tagName!==`A`)}Pr($r,`removeLinks`);var ei=Object.defineProperty,ti=(e,t)=>ei(e,`name`,{value:t,configurable:!0}),ni=v.useId||(()=>void 0),ri=0;function ii(e){let[t,n]=v.useState(ni());return mr(()=>{e||n(e=>e??String(ri++))},[e]),e||(t?`radix-${t}`:``)}ti(ii,`useId`);var ai=[`top`,`right`,`bottom`,`left`],oi=Math.min,si=Math.max,ci=Math.round,li=Math.floor,ui=e=>({x:e,y:e}),di={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function fi(e,t,n){return si(e,oi(t,n))}function pi(e,t){return typeof e==`function`?e(t):e}function mi(e){return e.split(`-`)[0]}function hi(e){return e.split(`-`)[1]}function gi(e){return e===`x`?`y`:`x`}function _i(e){return e===`y`?`height`:`width`}function vi(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function yi(e){return gi(vi(e))}function bi(e,t,n){n===void 0&&(n=!1);let r=hi(e),i=yi(e),a=_i(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ki(o)),[o,ki(o)]}function xi(e){let t=ki(e);return[Si(e),t,Si(t)]}function Si(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ci=[`left`,`right`],wi=[`right`,`left`],Ti=[`top`,`bottom`],Ei=[`bottom`,`top`];function Di(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wi:Ci:t?Ci:wi;case`left`:case`right`:return t?Ti:Ei;default:return[]}}function Oi(e,t,n,r){let i=hi(e),a=Di(mi(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Si)))),a}function ki(e){let t=mi(e);return di[t]+e.slice(t.length)}function Ai(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ji(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ai(e)}function Mi(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ni(e,t,n){let{reference:r,floating:i}=e,a=vi(t),o=yi(t),s=_i(o),c=mi(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=hi(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Pi(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=pi(t,e),p=ji(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Mi(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Mi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Fi=50,Ii=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Pi},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ni(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Fi&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ni(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Li=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=pi(e,t)||{};if(l==null)return{};let d=ji(u),f={x:n,y:r},p=yi(i),m=_i(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=oi(d[_],T),D=oi(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=fi(E,k,O),j=!c.arrow&&hi(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Ri=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=pi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=mi(r),_=vi(o),v=mi(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ki(o)]:xi(o)),x=p!==`none`;!d&&x&&b.push(...Oi(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=bi(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===vi(t)||T.every(e=>vi(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=vi(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function zi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bi(e){return ai.some(t=>e[t]>=0)}var Vi=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=pi(e,t);switch(i){case`referenceHidden`:{let e=zi(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Bi(e)}}}case`escaped`:{let e=zi(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Bi(e)}}}default:return{}}}}},Hi=new Set([`left`,`top`]);async function Ui(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=mi(n),s=hi(n),c=vi(n)===`y`,l=Hi.has(o)?-1:1,u=a&&c?-1:1,d=pi(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Wi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ui(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Gi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pi(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=vi(i),p=gi(f),m=u[p],h=u[f],g=(e,t)=>fi(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ki=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=pi(e,t),u={x:n,y:r},d=vi(i),f=gi(d),p=u[f],m=u[d],h=pi(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Hi.has(mi(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},qi=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=pi(e,t),c=await i.detectOverflow(t,s),l=mi(n),u=hi(n),d=vi(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=oi(p-c[m],g),y=oi(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*si(c.left,c.right):S=p-2*si(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ji(){return typeof window<`u`}function Yi(e){return Qi(e)?(e.nodeName||``).toLowerCase():`#document`}function Xi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zi(e){return((Qi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Qi(e){return Ji()?e instanceof Node||e instanceof Xi(e).Node:!1}function $i(e){return Ji()?e instanceof Element||e instanceof Xi(e).Element:!1}function ea(e){return Ji()?e instanceof HTMLElement||e instanceof Xi(e).HTMLElement:!1}function ta(e){return!Ji()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Xi(e).ShadowRoot}function na(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=fa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ra(e){return/^(table|td|th)$/.test(Yi(e))}function ia(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var B=/transform|translate|scale|rotate|perspective|filter/,aa=/paint|layout|strict|content/,oa=e=>!!e&&e!==`none`,sa;function ca(e){let t=$i(e)?fa(e):e;return oa(t.transform)||oa(t.translate)||oa(t.scale)||oa(t.rotate)||oa(t.perspective)||!ua()&&(oa(t.backdropFilter)||oa(t.filter))||B.test(t.willChange||``)||aa.test(t.contain||``)}function la(e){let t=ma(e);for(;ea(t)&&!da(t);){if(ca(t))return t;if(ia(t))return null;t=ma(t)}return null}function ua(){return sa??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),sa}function da(e){return/^(html|body|#document)$/.test(Yi(e))}function fa(e){return Xi(e).getComputedStyle(e)}function pa(e){return $i(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ma(e){if(Yi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ta(e)&&e.host||Zi(e);return ta(t)?t.host:t}function ha(e){let t=ma(e);return da(t)?(e.ownerDocument||e).body:ea(t)&&na(t)?t:ha(t)}function ga(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ha(e),i=r===e.ownerDocument?.body,a=Xi(r);if(i){let e=_a(a);return t.concat(a,a.visualViewport||[],na(r)?r:[],e&&n?ga(e):[])}return t.concat(r,ga(r,[],n))}function _a(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function va(e){let t=fa(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ea(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ci(n)!==a||ci(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ya(e){return $i(e)?e:e.contextElement}function ba(e){let t=ya(e);if(!ea(t))return ui(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=va(t),o=(a?ci(n.width):n.width)/r,s=(a?ci(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var xa=ui(0);function Sa(e){let t=Xi(e);return!ua()||!t.visualViewport?xa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ca(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Xi(e)}function wa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ya(e),o=ui(1);t&&(r?$i(r)&&(o=ba(r)):o=ba(e));let s=Ca(a,n,r)?Sa(a):ui(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Xi(a),t=$i(r)?Xi(r):r,n=e,i=_a(n);for(;i&&t!==n;){let e=ba(i),t=i.getBoundingClientRect(),r=fa(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Xi(i),i=_a(n)}}return Mi({width:u,height:d,x:c,y:l})}function Ta(e,t){let n=pa(e).scrollLeft;return t?t.left+n:wa(Zi(e)).left+n}function Ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ta(e,n),y:n.top+t.scrollTop}}function Da(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Zi(r),s=t?ia(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ui(1),u=ui(0),d=ea(r);if((d||!a)&&((Yi(r)!==`body`||na(o))&&(c=pa(r)),d)){let e=wa(r);l=ba(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ea(o,c):ui(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Oa(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ka(e){let t=pa(e),n=e.ownerDocument.body,r=si(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=si(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ta(e),o=-t.scrollTop;return fa(n).direction===`rtl`&&(a+=si(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Aa=25;function ja(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Xi(e),a=Zi(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ua()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ta(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Aa&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ma(e,t){let n=wa(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ba(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Na(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=ja(e,n,t);else if(t===`document`)r=ka(Zi(e));else if($i(t))r=Ma(t,n);else{let n=Sa(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Mi(r)}function Pa(e,t){let n=t.get(e);if(n)return n;let r=ga(e,[],!1).filter(e=>$i(e)&&Yi(e)!==`body`),i=null,a=fa(e).position===`fixed`,o=a?ma(e):e;for(;$i(o)&&!da(o);){let e=fa(o),t=ca(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ma(o)}return t.set(e,r),r}function Fa(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ia(t)?[]:Pa(t,this._c):[].concat(n),r],o=Na(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Na(t,a[e],i);s=si(n.top,s),c=oi(n.right,c),l=oi(n.bottom,l),u=si(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ia(e){let{width:t,height:n}=va(e);return{width:t,height:n}}function La(e,t,n){let r=ea(t),i=Zi(t),a=n===`fixed`,o=wa(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ui(0);if((r||!a)&&((Yi(t)!==`body`||na(i))&&(s=pa(t)),r)){let e=wa(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ta(i));let l=i&&!r&&!a?Ea(i,s):ui(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ra(e){return fa(e).position===`static`}function za(e,t){if(!ea(e)||fa(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Zi(e)===n&&(n=n.ownerDocument.body),n}function Ba(e,t){let n=Xi(e);if(ia(e))return n;if(!ea(e)){let t=ma(e);for(;t&&!da(t);){if($i(t)&&!Ra(t))return t;t=ma(t)}return n}let r=za(e,t);for(;r&&ra(r)&&Ra(r);)r=za(r,t);return r&&da(r)&&Ra(r)&&!ca(r)?n:r||la(e)||n}var Va=async function(e){let t=this.getOffsetParent||Ba,n=this.getDimensions,r=await n(e.floating);return{reference:La(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ha(e){return fa(e).direction===`rtl`}var Ua={convertOffsetParentRelativeRectToViewportRelativeRect:Da,getDocumentElement:Zi,getClippingRect:Fa,getOffsetParent:Ba,getElementRects:Va,getClientRects:Oa,getDimensions:Ia,getScale:ba,isElement:$i,isRTL:Ha};function Wa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ga(e,t,n){let r=null,i,a=Zi(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=li(d),h=li(a.clientWidth-(u+f)),g=li(a.clientHeight-(d+p)),_=li(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:si(0,oi(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Wa(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Xi(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ka(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ya(e),u=i||a?[...l?ga(l):[],...t?ga(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ga(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?wa(e):null;c&&g();function g(){let t=wa(e);h&&!Wa(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var qa=Wi,Ja=Gi,Ya=Ri,Xa=qi,Za=Vi,Qa=Li,$a=Ki,eo=(e,t,n)=>{let r=new Map,i=n??{},a={...Ua,...i.platform,_c:r};return Ii(e,t,{...i,platform:a})},to=typeof document<`u`?v.useLayoutEffect:function(){};function no(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!no(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!no(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ro(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function io(e,t){let n=ro(e);return Math.round(t*n)/n}function ao(e){let t=v.useRef(e);return to(()=>{t.current=e}),t}function oo(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);no(f,r)||p(r);let[m,h]=v.useState(null),[g,_]=v.useState(null),y=v.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=v.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=v.useRef(null),w=v.useRef(null),T=v.useRef(u),E=c!=null,D=ao(c),O=ao(i),k=ao(l),A=v.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),eo(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!no(T.current,t)&&(T.current=t,qt.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);to(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=v.useRef(!1);to(()=>(j.current=!0,()=>{j.current=!1}),[]),to(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=v.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=v.useMemo(()=>({reference:x,floating:S}),[x,S]),P=v.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=io(N.floating,u.x),r=io(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ro(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var so=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Qa({element:r.current,padding:i}).fn(n):r?Qa({element:r,padding:i}).fn(n):{}}}},co=(e,t)=>{let n=qa(e);return{name:n.name,fn:n.fn,options:[e,t]}},lo=(e,t)=>{let n=Ja(e);return{name:n.name,fn:n.fn,options:[e,t]}},uo=(e,t)=>({fn:$a(e).fn,options:[e,t]}),fo=(e,t)=>{let n=Ya(e);return{name:n.name,fn:n.fn,options:[e,t]}},po=(e,t)=>{let n=Xa(e);return{name:n.name,fn:n.fn,options:[e,t]}},mo=(e,t)=>{let n=Za(e);return{name:n.name,fn:n.fn,options:[e,t]}},ho=(e,t)=>{let n=so(e);return{name:n.name,fn:n.fn,options:[e,t]}},go=Object.defineProperty,_o=v.forwardRef(((e,t)=>go(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,z.jsx)(fr.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,z.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),vo=Object.defineProperty,yo=(e,t)=>vo(e,`name`,{value:t,configurable:!0});function bo(e){let[t,n]=v.useState(void 0);return mr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}yo(bo,`useSize`);var xo=Object.defineProperty,So=(e,t)=>xo(e,`name`,{value:t,configurable:!0}),Co={Partial:`partial`,Always:`always`},wo={Optimized:`optimized`,Always:`always`},To=`Popper`,[Eo,Do]=cr(To),[Oo,ko]=Eo(To),Ao=So(e=>{let{__scopePopper:t,children:n}=e,[r,i]=v.useState(null),[a,o]=v.useState(void 0);return(0,z.jsx)(Oo,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),jo=`PopperAnchor`,Mo=v.forwardRef(So(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=ko(jo,n),o=v.useRef(null),s=a.onAnchorChange,c=jn(t,v.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=v.useRef(null);v.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Ho(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,z.jsx)(fr.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),No=`PopperContent`,[Po,Fo]=Eo(No),Io=v.forwardRef(So(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=Co.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=wo.Optimized,onPlaced:m,...h}=e,g=ko(No,n),[_,y]=v.useState(null),b=jn(t,y),[x,S]=v.useState(null),C=bo(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(Bo),altBoundary:k},{refs:j,floatingStyles:M,placement:N,isPositioned:P,middlewareData:F}=oo({strategy:`fixed`,placement:E,whileElementsMounted:So((...e)=>Ka(...e,{animationFrame:p===wo.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[co({mainAxis:i+T,alignmentAxis:o}),c&&lo({mainAxis:!0,crossAxis:!1,...d===Co.Partial?{limiter:uo()}:{},...A}),c&&fo({...A}),po({...A,apply:So(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),x&&ho({element:x,padding:s}),Vo({arrowWidth:w,arrowHeight:T}),f&&mo(k?{strategy:`referenceHidden`,...A}:{strategy:`referenceHidden`,padding:A.padding,altBoundary:A.altBoundary})]}),I=g.setPlacementState;mr(()=>(I(N),()=>{I(void 0)}),[N,I]);let[ee,te]=Ho(N),ne=vr(m);mr(()=>{P&&ne?.()},[P,ne]);let re=F.arrow?.x,ie=F.arrow?.y,ae=F.arrow?.centerOffset!==0,[oe,se]=v.useState();return mr(()=>{_&&se(window.getComputedStyle(_).zIndex)},[_]),(0,z.jsx)(`div`,{ref:j.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:P?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:oe,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(` `),...F.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,z.jsx)(Po,{scope:n,placedSide:ee,placedAlign:te,onArrowChange:S,arrowX:re,arrowY:ie,shouldHideArrow:ae,children:(0,z.jsx)(fr.div,{"data-side":ee,"data-align":te,...h,ref:b,style:{...h.style,animation:P?h.style?.animation:`none`}})})})},`PopperContent`)),Lo=`PopperArrow`,Ro={top:`bottom`,right:`left`,bottom:`top`,left:`right`},zo=v.forwardRef(So(function(e,t){let{__scopePopper:n,...r}=e,i=Fo(Lo,n),a=Ro[i.placedSide];return(0,z.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,z.jsx)(_o,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function Bo(e){return e!==null}So(Bo,`isNotNull`);var Vo=So(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ho(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Ho(e){let[t,n=`center`]=e.split(`-`);return[t,n]}So(Ho,`getSideAndAlignFromPlacement`);var V=Object.defineProperty,Uo=v.forwardRef(((e,t)=>V(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=v.useState(!1);mr(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?qt.createPortal((0,z.jsx)(fr.div,{...r,ref:t}),o):null},`Portal`)),Wo=Object.defineProperty,Go=(e,t)=>Wo(e,`name`,{value:t,configurable:!0});function Ko(e,t){return v.useReducer((e,n)=>t[e][n]??e,e)}Go(Ko,`useStateMachine`);var qo=Go(e=>{let{present:t,children:n}=e,r=Jo(t),i=typeof n==`function`?n({present:r.isPresent}):v.Children.only(n),a=Xo(r.ref,Qo(i));return typeof n==`function`||r.isPresent?v.cloneElement(i,{ref:a}):null},`Presence`);function Jo(e){let[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),a=v.useRef(`none`),o=v.useRef(void 0),[s,c]=Ko(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return v.useEffect(()=>{s===`mounted`?(a.current=o.current??Zo(r.current),o.current=void 0):a.current=`none`},[s]),mr(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Zo(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),mr(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Go(a=>{let o=Zo(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Go(e=>{e.target===t&&(a.current=Zo(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:v.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Zo(t)}else r.current=null;n(e)},[])}}Go(Jo,`usePresence`);function Yo(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Go(Yo,`setRef`);function Xo(...e){let t=v.useRef(e);return t.current=e,v.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Yo(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Yo(n[e],null)}}},[])}Go(Xo,`useStableComposedRefs`);function Zo(e){return e?.animationName||`none`}Go(Zo,`getAnimationName`);function Qo(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Go(Qo,`getElementRef`);var $o=Object.defineProperty,es=(e,t)=>$o(e,`name`,{value:t,configurable:!0}),ts=v.useEffectEvent,ns=v.useInsertionEffect;function rs(e){if(typeof ts==`function`)return ts(e);let t=v.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof ns==`function`?ns(()=>{t.current=e}):mr(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}es(rs,`useEffectEvent`);var is=Object.defineProperty,as=(e,t)=>is(e,`name`,{value:t,configurable:!0}),os=v.useInsertionEffect||mr;function ss({prop:e,defaultProp:t,onChange:n=as(()=>{},`onChange`),caller:r}){let[i,a,o]=cs({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,v.useCallback(t=>{if(s){let n=ls(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}as(ss,`useControllableState`);function cs({defaultProp:e,onChange:t}){let[n,r]=v.useState(e),i=v.useRef(n),a=v.useRef(t);return os(()=>{a.current=t},[t]),v.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}as(cs,`useUncontrolledState`);function ls(e){return typeof e==`function`}as(ls,`isFunction`);var us=Symbol(`RADIX:SYNC_STATE`);function ds(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=rs(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=v.useReducer((t,n)=>{if(n.type===us)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=v.useRef(p);v.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=v.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return v.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:us,state:i})},[i,d.state,c]),[h,f]}as(ds,`useControllableStateReducer`);var fs=Object.defineProperty,ps=(e,t)=>fs(e,`name`,{value:t,configurable:!0}),ms=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),hs=v.forwardRef(ps(function(e,t){return(0,z.jsx)(fr.span,{...e,ref:t,style:{...ms,...e.style}})},`VisuallyHidden`)),gs=Object.defineProperty,_s=(e,t)=>gs(e,`name`,{value:t,configurable:!0}),[vs,ys]=cr(`Tooltip`,[Do]),bs=Do(),xs=`TooltipProvider`,Ss=700,Cs=`tooltip.open`,[ws,Ts]=vs(xs),Es=_s(e=>{let{__scopeTooltip:t,delayDuration:n=Ss,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=v.useRef(!0),s=v.useRef(!1),c=v.useRef(0);return v.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,z.jsx)(ws,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:v.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:v.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Ds=`Tooltip`,[Os,ks]=vs(Ds),As=_s(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Ts(Ds,e.__scopeTooltip),l=bs(t),[u,d]=v.useState(null),[f,p]=v.useState(void 0),m=ii(),h=v.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,y=v.useRef(!1),[b,x]=ss({prop:r,defaultProp:i??!1,onChange:_s(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Cs))):c.onClose(),a?.(e)},`onChange`),caller:Ds}),S=v.useMemo(()=>b?y.current?`delayed-open`:`instant-open`:`closed`,[b]),C=v.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,x(!0)},[x]),w=v.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=v.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0),h.current=0},_)},[_,x]);v.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let E=f??m;return(0,z.jsx)(Ao,{...l,children:(0,z.jsx)(Os,{scope:t,contentId:E,setContentId:p,open:b,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:v.useCallback(()=>{g?w():(window.clearTimeout(h.current),h.current=0)},[w,g]),onOpen:C,onClose:w,disableHoverableContent:g,children:n})})},`Tooltip`),js=`TooltipTrigger`,Ms=v.forwardRef(_s(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=ks(js,n),o=Ts(js,n),s=bs(n),c=jn(t,v.useRef(null),a.onTriggerChange),l=v.useRef(!1),u=v.useRef(!1),d=v.useCallback(()=>l.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,z.jsx)(Mo,{asChild:!0,...s,children:(0,z.jsx)(fr.button,{"aria-describedby":a.open?Ys(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:$n(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:$n(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:$n(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:$n(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:$n(e.onBlur,a.onClose),onClick:$n(e.onClick,a.onClose)})})},`TooltipTrigger`)),Ns=`TooltipPortal`,[Ps,Fs]=vs(Ns,{forceMount:void 0}),Is=_s(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=ks(Ns,t);return(0,z.jsx)(Ps,{scope:t,forceMount:n,children:(0,z.jsx)(qo,{present:n||a.open,children:(0,z.jsx)(Uo,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Ls=`TooltipContent`,Rs=v.forwardRef(_s(function(e,t){let n=Fs(Ls,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=ks(Ls,e.__scopeTooltip);return(0,z.jsx)(qo,{present:r||o.open,children:o.disableHoverableContent?(0,z.jsx)(Vs,{side:i,...a,ref:t}):(0,z.jsx)(zs,{side:i,...a,ref:t})})},`TooltipContent`)),zs=v.forwardRef(_s(function(e,t){let n=ks(Ls,e.__scopeTooltip),r=Ts(Ls,e.__scopeTooltip),i=v.useRef(null),a=jn(t,i),[o,s]=v.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=v.useCallback(()=>{s(null),d(!1)},[d]),p=v.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Ws(r,Us(r,n.getBoundingClientRect())),a=Gs(t.getBoundingClientRect()),o=qs([...i,...a]);s(o),d(!0)},[d]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(c&&u){let e=_s(e=>p(e,u),`handleTriggerLeave`),t=_s(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),v.useEffect(()=>{if(o){let e=_s(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Ks(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,z.jsx)(Vs,{...e,ref:a})},`TooltipContentHoverable`)),Bs=Ln(`TooltipContent`),Vs=v.forwardRef(_s(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=ks(Ls,n),u=bs(n),{onClose:d}=l,[f,p]=v.useState(null),m=jn(t,p);Hr(f),v.useEffect(()=>(document.addEventListener(Cs,d),()=>document.removeEventListener(Cs,d)),[d]),v.useEffect(()=>{if(l.trigger){let e=_s(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return mr(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,z.jsx)(Er,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,z.jsxs)(Io,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,z.jsx)(Bs,{children:r}),i?(0,z.jsx)(hs,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Hs=v.forwardRef(_s(function(e,t){let{__scopeTooltip:n,...r}=e,i=bs(n);return(0,z.jsx)(zo,{...i,...r,ref:t})},`TooltipArrow`));function Us(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}_s(Us,`getExitSideFromRect`);function Ws(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}_s(Ws,`getPaddedExitPoints`);function Gs(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}_s(Gs,`getPointsFromRect`);function Ks(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}_s(Ks,`isPointInPolygon`);function qs(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Js(t)}_s(qs,`getHull`);function Js(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}_s(Js,`getHullPresorted`);function Ys(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}_s(Ys,`concatAriaDescribedby`);function Xs(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Xs(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Zs(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xs(e))&&(r&&(r+=` `),r+=t);return r}var Qs=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,$s=Zs,ec=(e,t)=>n=>{if(t?.variants==null)return $s(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Qs(t)||Qs(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return $s(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},tc=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},nc=(e,t)=>({classGroupId:e,validator:t}),rc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ic=`-`,ac=[],oc=`arbitrary..`,sc=e=>{let t=uc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return lc(e);let n=e.split(ic);return cc(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?tc(i,t):t:i||ac}return n[e]||ac}}},cc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=cc(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ic):e.slice(t).join(ic),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},lc=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?oc+r:void 0})(),uc=e=>{let{theme:t,classGroups:n}=e;return dc(n,t)},dc=(e,t)=>{let n=rc();for(let r in e){let i=e[r];fc(i,n,r,t)}return n},fc=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];pc(i,t,n,r)}},pc=(e,t,n,r)=>{typeof e==`string`?mc(e,t,n):typeof e==`function`?hc(e,t,n,r):gc(e,t,n,r)},mc=(e,t,n)=>{let r=e===``?t:_c(t,e);r.classGroupId=n},hc=(e,t,n,r)=>{vc(e)?fc(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(nc(n,e)))},gc=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];fc(o,_c(t,a),n,r)}},_c=(e,t)=>{let n=e,r=t.split(ic),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=rc(),n.nextPart.set(t,i)),n=i}return n},vc=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,yc=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},bc=`!`,xc=`:`,Sc=[],Cc=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),wc=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===xc){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(bc)?(c=s.slice(0,-1),l=!0):s.startsWith(bc)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Cc(t,l,c,u)};if(t){let e=t+xc,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Cc(Sc,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Tc=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ec=e=>({cache:yc(e.cacheSize),parseClassName:wc(e),sortModifiers:Tc(e),postfixLookupClassGroupIds:Dc(e),...sc(e)}),Dc=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Oc=/\s+/,kc=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Oc),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+bc:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ac=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=jc(n))&&(i&&(i+=` `),i+=r);return i},jc=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=jc(e[r]))&&(n&&(n+=` `),n+=t);return n},Mc=(e,...t)=>{let n,r,i,a,o=o=>(n=Ec(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=kc(e,n);return i(e,a),a};return a=o,(...e)=>a(Ac(...e))},Nc=[],Pc=e=>{let t=t=>t[e]||Nc;return t.isThemeGetter=!0,t.themeKey=e,t},Fc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ic=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Rc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zc=/\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$/,Bc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Vc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Uc=e=>Lc.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),Wc=e=>!!e&&Number.isInteger(Number(e)),Gc=e=>e.endsWith(`%`)&&H(e.slice(0,-1)),Kc=e=>Rc.test(e),qc=()=>!0,Jc=e=>zc.test(e)&&!Bc.test(e),Yc=()=>!1,Xc=e=>Vc.test(e),Zc=e=>Hc.test(e),Qc=e=>!U(e)&&!W(e),$c=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),el=e=>hl(e,yl,Yc),U=e=>Fc.test(e),tl=e=>hl(e,bl,Jc),nl=e=>hl(e,xl,H),rl=e=>hl(e,Cl,qc),il=e=>hl(e,Sl,Yc),al=e=>hl(e,_l,Yc),ol=e=>hl(e,vl,Zc),sl=e=>hl(e,wl,Xc),W=e=>Ic.test(e),cl=e=>gl(e,bl),ll=e=>gl(e,Sl),ul=e=>gl(e,_l),dl=e=>gl(e,yl),fl=e=>gl(e,vl),pl=e=>gl(e,wl,!0),ml=e=>gl(e,Cl,!0),hl=(e,t,n)=>{let r=Fc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},gl=(e,t,n=!1)=>{let r=Ic.exec(e);return r?r[1]?t(r[1]):n:!1},_l=e=>e===`position`||e===`percentage`,vl=e=>e===`image`||e===`url`,yl=e=>e===`length`||e===`size`||e===`bg-size`,bl=e=>e===`length`,xl=e=>e===`number`,Sl=e=>e===`family-name`,Cl=e=>e===`number`||e===`weight`,wl=e=>e===`shadow`,Tl=Mc(()=>{let e=Pc(`color`),t=Pc(`font`),n=Pc(`text`),r=Pc(`font-weight`),i=Pc(`tracking`),a=Pc(`leading`),o=Pc(`breakpoint`),s=Pc(`container`),c=Pc(`spacing`),l=Pc(`radius`),u=Pc(`shadow`),d=Pc(`inset-shadow`),f=Pc(`text-shadow`),p=Pc(`drop-shadow`),m=Pc(`blur`),h=Pc(`perspective`),g=Pc(`aspect`),_=Pc(`ease`),v=Pc(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),W,U],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[W,U,c],T=()=>[Uc,`full`,`auto`,...w()],E=()=>[Wc,`none`,`subgrid`,W,U],D=()=>[`auto`,{span:[`full`,Wc,W,U]},Wc,W,U],O=()=>[Wc,`auto`,W,U],k=()=>[`auto`,`min`,`max`,`fr`,W,U],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Uc,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,Uc,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[Uc,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,W,U],ee=()=>[...b(),ul,al,{position:[W,U]}],te=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,dl,el,{size:[W,U]}],re=()=>[Gc,cl,tl],ie=()=>[``,`none`,`full`,l,W,U],ae=()=>[``,H,cl,tl],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ce=()=>[H,Gc,ul,al],le=()=>[``,`none`,m,W,U],ue=()=>[`none`,H,W,U],de=()=>[`none`,H,W,U],fe=()=>[H,W,U],pe=()=>[Uc,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Kc],breakpoint:[Kc],color:[qc],container:[Kc],"drop-shadow":[Kc],ease:[`in`,`out`,`in-out`],font:[Qc],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Kc],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Kc],shadow:[Kc],spacing:[`px`,H],text:[Kc],"text-shadow":[Kc],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Uc,U,W,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,W,U]}],"container-named":[$c],columns:[{columns:[H,`auto`,U,W,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Wc,`auto`,W,U]}],basis:[{basis:[Uc,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[H,Uc,`auto`,`initial`,`none`,U]}],grow:[{grow:[``,H,W,U]}],shrink:[{shrink:[``,H,W,U]}],order:[{order:[Wc,`first`,`last`,`none`,W,U]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,cl,tl]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ml,rl]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Gc,U]}],"font-family":[{font:[ll,il,t]}],"font-features":[{"font-features":[U]}],"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:[i,W,U]}],"line-clamp":[{"line-clamp":[H,`none`,W,nl]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,W,U]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,W,U]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[H,`from-font`,`auto`,W,tl]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[H,`auto`,W,U]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Wc,W,U]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,W,U]}],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`,W,U]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Wc,W,U],radial:[``,W,U],conic:[``,Wc,W,U]},fl,ol]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[H,W,U]}],"outline-w":[{outline:[``,H,cl,tl]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`inner`,`none`,u,pl,sl]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,pl,sl]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ae()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[H,tl]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,pl,sl]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[H,W,U]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"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":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[W,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,W,U]}],filter:[{filter:[``,`none`,W,U]}],blur:[{blur:le()}],brightness:[{brightness:[H,W,U]}],contrast:[{contrast:[H,W,U]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,pl,sl]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,H,W,U]}],"hue-rotate":[{"hue-rotate":[H,W,U]}],invert:[{invert:[``,H,W,U]}],saturate:[{saturate:[H,W,U]}],sepia:[{sepia:[``,H,W,U]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,W,U]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[H,W,U]}],"backdrop-contrast":[{"backdrop-contrast":[H,W,U]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,H,W,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,W,U]}],"backdrop-invert":[{"backdrop-invert":[``,H,W,U]}],"backdrop-opacity":[{"backdrop-opacity":[H,W,U]}],"backdrop-saturate":[{"backdrop-saturate":[H,W,U]}],"backdrop-sepia":[{"backdrop-sepia":[``,H,W,U]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,W,U]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[H,`initial`,W,U]}],ease:[{ease:[`linear`,`initial`,_,W,U]}],delay:[{delay:[H,W,U]}],animate:[{animate:[`none`,v,W,U]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,W,U]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[W,U,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Wc,W,U]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"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`,W,U]}],"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":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,W,U]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[H,cl,tl,nl]}],stroke:[{stroke:[`none`,...I()]}],"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":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`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-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`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-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`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-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`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-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`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`]}});function G(...e){return Tl(Zs(e))}function El(e){let t=e.trim();return t.length===0?!1:/^[a-zA-Z]:[\\/]/.test(t)||/^[\\/]{2}[^\\/]/.test(t)?!0:t.startsWith(`/`)}var Dl=ec(`inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,ghost:`hover:bg-accent hover:text-accent-foreground`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 gap-1.5 rounded-md px-3`,lg:`h-10 rounded-md px-6`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function K({className:e,variant:t,size:n,asChild:r=!1,...i}){return(0,z.jsx)(r?Fn:`button`,{"data-slot":`button`,className:G(Dl({variant:t,size:n,className:e})),...i})}function Ol({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card`,className:G(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),...t})}function kl({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-content`,className:G(`px-6`,e),...t})}function Al({className:e,type:t,...n}){return(0,z.jsx)(`input`,{type:t,"data-slot":`input`,className:G(`flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20`,e),...n})}function jl({className:e,...t}){return(0,z.jsx)(`label`,{"data-slot":`label`,className:G(`flex select-none items-center gap-2 text-sm font-medium leading-none`,e),...t})}var Ml=ec(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground`,secondary:`border-transparent bg-secondary text-secondary-foreground`,outline:`text-foreground`,success:`border-success/25 bg-success/10 text-success`,warning:`border-warning/30 bg-warning/10 text-warning`,destructive:`border-destructive/25 bg-destructive/10 text-destructive`,muted:`border-transparent bg-muted text-muted-foreground`}},defaultVariants:{variant:`default`}});function q({className:e,variant:t,...n}){return(0,z.jsx)(`span`,{"data-slot":`badge`,className:G(Ml({variant:t}),e),...n})}function Nl({children:e}){return(0,z.jsx)(Es,{delayDuration:150,skipDelayDuration:80,children:e})}function Pl({content:e,children:t,side:n=`top`,align:r=`center`,className:i}){return e==null||e===``?(0,z.jsx)(z.Fragment,{children:t}):(0,z.jsxs)(As,{children:[(0,z.jsx)(Ms,{asChild:!0,children:t}),(0,z.jsx)(Is,{children:(0,z.jsxs)(Rs,{side:n,align:r,sideOffset:6,collisionPadding:8,className:G(`z-[60] max-w-[320px] rounded-md border bg-popover px-2.5 py-1.5 text-xs leading-relaxed text-popover-foreground shadow-lg`,`animate-in fade-in-0 zoom-in-95`,i),children:[e,(0,z.jsx)(Hs,{className:`fill-popover`,width:10,height:5})]})})]})}function Fl({text:e,className:t,side:n}){let r=(0,z.jsx)(`div`,{className:G(`truncate`,t),children:e});return e.length===0?r:(0,z.jsx)(Pl,{content:e,side:n,children:r})}var Il=[`getState`,`saveConfig`,`resolve`,`inspect`,`terminalCatalog`,`restore`,`pickDirectory`,`revealConfig`,`listIterations`,`iterationCurrent`,`iterationSummary`,`iterationDoc`,`gitStatus`,`gitBranches`,`taskActions`,`taskAction`,`taskBatch`,`taskHistory`,`updateCheck`,`gitFetch`,`onboarding`,`completeOnboarding`,`reset`,`listDirectories`,`openPath`];function Ll(e){return typeof e!=`object`||!e?!1:Il.every(t=>typeof Reflect.get(e,t)==`function`)}function Rl(){let e=Reflect.get(window,`ylcwf`);return Ll(e)?e:null}var zl=new URLSearchParams(window.location.search).get(`token`)??``;async function Bl(e,t){let n=await fetch(e,{...t,headers:{"content-type":`application/json`,"x-ylcwf-token":zl,...t?.headers??{}}}),r=await n.json().catch(()=>null);if(!n.ok){let e=typeof r==`object`&&r&&`error`in r?r.error?.message??`请求失败(${n.status})`:`请求失败(${n.status})`;throw n.status===401?Error(`访问链接已失效,请重新打开执行终端里 ylcwf serve 打印的地址`):n.status===404&&e.includes(`未知接口`)?Error("本地服务版本过旧,请重启 `ylcwf serve` 后刷新页面"):Error(e)}return r}var Vl={mode:`http`,getState:()=>Bl(`/api/state`),saveConfig:e=>Bl(`/api/config`,{method:`PUT`,body:JSON.stringify({config:e})}),resolve:(e,t)=>Bl(`/api/resolve`,{method:`POST`,body:JSON.stringify({name:e,side:t})}),inspect:e=>Bl(`/api/inspect?path=${encodeURIComponent(e)}`),terminalCatalog:()=>Bl(`/api/terminal-catalog`),restore:e=>Bl(`/api/backups/restore`,{method:`POST`,body:JSON.stringify({name:e})}),pickDirectory:e=>Bl(`/api/fs/pick`,{method:`POST`,body:JSON.stringify({title:e?.title??``,defaultPath:e?.defaultPath??``})}),revealConfig:()=>Bl(`/api/reveal`,{method:`POST`}),listIterations:(e,t)=>Bl(`/api/iterations?source=${e}${t===void 0?``:`&ref=${encodeURIComponent(t)}`}`),iterationCurrent:()=>Bl(`/api/iteration-current`),iterationSummary:(e,t,n)=>Bl(`/api/iteration-summary`,{method:`POST`,body:JSON.stringify({iteration:e,source:t,ref:n})}),iterationDoc:(e,t,n,r)=>Bl(`/api/iteration-doc`,{method:`POST`,body:JSON.stringify({iteration:e,developer:t,source:n,ref:r})}),gitStatus:()=>Bl(`/api/git/status`),gitBranches:()=>Bl(`/api/git/branches`),taskActions:(e,t)=>Bl(`/api/task-actions?iteration=${encodeURIComponent(e)}&developer=${encodeURIComponent(t)}`),taskAction:(e,t,n,r)=>Bl(`/api/task-action`,{method:`POST`,body:JSON.stringify({iteration:e,developer:t,taskId:n,action:r})}),taskBatch:(e,t,n,r)=>Bl(`/api/task-batch`,{method:`POST`,body:JSON.stringify({iteration:e,developer:t,taskIds:n,action:r})}),taskHistory:(e,t,n)=>Bl(`/api/task-history?iteration=${encodeURIComponent(e)}&developer=${encodeURIComponent(t)}&taskId=${encodeURIComponent(n)}`),updateCheck:e=>Bl(`/api/update/check${e?`?force=1`:``}`),gitFetch:()=>Bl(`/api/git/fetch`,{method:`POST`}),onboarding:()=>Bl(`/api/onboarding`),completeOnboarding:e=>Bl(`/api/onboarding/complete`,{method:`POST`,body:JSON.stringify({config:e})}),reset:e=>Bl(`/api/reset`,{method:`POST`,body:JSON.stringify({all:e===!0})}),listDirectories:e=>Bl(`/api/fs/list${e===void 0?``:`?path=${encodeURIComponent(e)}`}`),openPath:e=>Bl(`/api/fs/open`,{method:`POST`,body:JSON.stringify({path:e})})};function Hl(e){return{mode:`electron`,getState:()=>e.getState(),saveConfig:t=>e.saveConfig(t),resolve:(t,n)=>e.resolve(t,n),inspect:t=>e.inspect(t),terminalCatalog:()=>e.terminalCatalog(),restore:t=>e.restore(t),pickDirectory:t=>e.pickDirectory(t),revealConfig:()=>e.revealConfig(),listIterations:(t,n)=>e.listIterations(t,n),iterationCurrent:()=>e.iterationCurrent(),iterationSummary:(t,n,r)=>e.iterationSummary(t,n,r),iterationDoc:(t,n,r,i)=>e.iterationDoc(t,n,r,i),gitStatus:()=>e.gitStatus(),gitBranches:()=>e.gitBranches(),taskActions:(t,n)=>e.taskActions(t,n),taskAction:(t,n,r,i)=>e.taskAction(t,n,r,i),taskBatch:(t,n,r,i)=>e.taskBatch(t,n,r,i),taskHistory:(t,n,r)=>e.taskHistory(t,n,r),updateCheck:t=>e.updateCheck(t),gitFetch:()=>e.gitFetch(),onboarding:()=>e.onboarding(),completeOnboarding:t=>e.completeOnboarding(t),reset:t=>e.reset(t),listDirectories:t=>e.listDirectories(t),openPath:t=>e.openPath(t)}}function Ul(){let e=Rl();return e===null?Vl:Hl(e)}var J={get mode(){return Ul().mode},getState:()=>Ul().getState(),saveConfig:e=>Ul().saveConfig(e),resolve:(e,t)=>Ul().resolve(e,t),inspect:e=>Ul().inspect(e),terminalCatalog:()=>Ul().terminalCatalog(),restore:e=>Ul().restore(e),pickDirectory:e=>Ul().pickDirectory(e),revealConfig:()=>Ul().revealConfig(),listIterations:(e,t)=>Ul().listIterations(e,t),iterationCurrent:()=>Ul().iterationCurrent(),iterationSummary:(e,t,n)=>Ul().iterationSummary(e,t,n),iterationDoc:(e,t,n,r)=>Ul().iterationDoc(e,t,n,r),gitStatus:()=>Ul().gitStatus(),gitBranches:()=>Ul().gitBranches(),taskActions:(e,t)=>Ul().taskActions(e,t),taskAction:(e,t,n,r)=>Ul().taskAction(e,t,n,r),taskBatch:(e,t,n,r)=>Ul().taskBatch(e,t,n,r),taskHistory:(e,t,n)=>Ul().taskHistory(e,t,n),updateCheck:e=>Ul().updateCheck(e),gitFetch:()=>Ul().gitFetch(),onboarding:()=>Ul().onboarding(),completeOnboarding:e=>Ul().completeOnboarding(e),reset:e=>Ul().reset(e),listDirectories:e=>Ul().listDirectories(e),openPath:e=>Ul().openPath(e)};Reflect.set(window,`__ylcwfApiMode`,J.mode);var Wl=[`frontend`,`backend`],Gl={commit:!1,push:!1},Kl=[`frontend`,`backend`,`fullstack`],ql={frontend:`前端`,backend:`后端`},Jl={frontend:`前端`,backend:`后端`,fullstack:`全栈`,unknown:`负责范围未写明`},Yl={frontend:`只写前端任务文档,负责范围写 frontend`,backend:`只写后端任务文档,负责范围写 backend`,fullstack:`前后端都负责,负责范围写 fullstack;两端都需配置仓库`},Xl={exact:`精确执行终端名`,normalized:`归一化命中(空格/全角/大小写)`},Zl={已完成:`success`,待验收:`warning`,进行中:`default`,未开始:`muted`,验收通过:`success`,验收驳回:`destructive`},Ql=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},$l=(e=>e?Ql(e):Ql),eu=e=>e;function tu(e,t=eu){let n=v.useSyncExternalStore(e.subscribe,v.useCallback(()=>t(e.getState()),[e,t]),()=>t(e.getInitialState()));return v.useDebugValue(n),n}var nu=e=>{let t=$l(e),n=e=>tu(t,e);return Object.assign(n,t),n},ru=(e=>e?nu(e):nu);function iu(e){return structuredClone(e)}function au(){return{profile:{developer:``,role:`frontend`},docs:{root:``,git:{cli:{...Gl},ui:{...Gl}},validator:{strict:!0}},terminals:{}}}var ou=ru((e,t)=>({onboarding:null,async bootstrap(){try{e({onboarding:await J.onboarding()})}catch(t){let n=t instanceof Error?t.message:String(t);e({onboarding:null,loading:!1,error:n}),Reflect.set(window,`__ylcwfStoreStatus`,`error:${n}`);return}await t().load()},loading:!0,saving:!1,error:null,snapshot:null,draft:null,dirty:!1,async load(){e({loading:!0,error:null}),Reflect.set(window,`__ylcwfStoreStatus`,`loading`);try{let t=await J.getState();e({snapshot:t,draft:t.config===null?au():iu(t.config),dirty:!1,loading:!1}),Reflect.set(window,`__ylcwfStoreStatus`,`ready`)}catch(t){let n=t instanceof Error?t.message:String(t);e({loading:!1,error:n}),Reflect.set(window,`__ylcwfStoreStatus`,`error:${n}`),dn.error(`读取配置失败`,{description:n})}},mutate(n){let{draft:r}=t();if(r===null)return;let i=iu(r);n(i),e({draft:i,dirty:!0})},async save(){let{draft:n}=t();if(n!==null){e({saving:!0});try{let t=await J.saveConfig(n);e({snapshot:t,draft:t.config===null?au():iu(t.config),dirty:!1,saving:!1});let r=t.issues.filter(e=>e.level===`error`).length;r>0?dn.warning(`已保存,但仍有 error`,{description:`${r} 项 error 需要处理`}):dn.success(`配置已保存`)}catch(t){let n=t instanceof Error?t.message:String(t);e({saving:!1}),dn.error(`保存失败`,{description:n})}}},discard(){let{snapshot:n}=t();e({draft:n?.config==null?au():iu(n.config),dirty:!1})},async restore(t){e({saving:!0});try{let n=await J.restore(t);e({snapshot:n,draft:n.config===null?au():iu(n.config),dirty:!1,saving:!1}),dn.success(`已回滚到该备份`)}catch(t){let n=t instanceof Error?t.message:String(t);e({saving:!1}),dn.error(`回滚失败`,{description:n})}}}));function su({title:e,description:t,actions:n,children:r,className:i}){return(0,z.jsxs)(`section`,{className:G(`space-y-3.5`,i),children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`h2`,{className:`text-sm font-semibold tracking-tight`,children:e}),(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`h-px min-w-6 flex-1 bg-border`}),n]}),t===void 0?null:(0,z.jsx)(`p`,{className:`-mt-1.5 text-xs text-muted-foreground`,children:t}),r]})}var cu={default:{card:``,value:``,bar:`bg-primary`},primary:{card:`border-primary/30 bg-primary/5`,value:`text-primary`,bar:`bg-primary`},success:{card:`border-success/30 bg-success/5`,value:`text-success`,bar:`bg-success`},warning:{card:`border-warning/30 bg-warning/5`,value:`text-warning`,bar:`bg-warning`},destructive:{card:`border-destructive/30 bg-destructive/5`,value:`text-destructive`,bar:`bg-destructive`}};function lu({label:e,value:t,icon:n,hint:r,tone:i=`default`,progress:a}){let o=cu[i];return(0,z.jsxs)(`div`,{className:G(`rounded-lg border bg-card px-3.5 py-3`,o.card),children:[(0,z.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e}),n===void 0?null:(0,z.jsx)(`div`,{className:`flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted/60 text-muted-foreground [&_svg]:size-3.5`,children:n})]}),(0,z.jsx)(`p`,{className:G(`mt-0.5 text-xl font-semibold tracking-tight tabular-nums`,o.value),children:t}),r===void 0?null:(0,z.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:r}),a===void 0?null:(0,z.jsx)(`div`,{className:`mt-2.5 h-1 overflow-hidden rounded-full bg-muted`,children:(0,z.jsx)(`div`,{className:G(`h-full rounded-full transition-all`,o.bar),style:{width:`${Math.max(0,Math.min(100,a))}%`}})})]})}function uu({label:e,hint:t,error:n,htmlFor:r,children:i}){return(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jl,{htmlFor:r,children:e}),i,n===void 0?t===void 0?null:(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t}):(0,z.jsx)(`p`,{className:`text-xs text-destructive`,children:n})]})}function du({issues:e}){return e.length===0?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-success/25 bg-success/8 px-4 py-3 text-sm text-success`,children:[(0,z.jsx)(fe,{className:`size-4`}),`未发现问题,配置健康`]}):(0,z.jsx)(`ul`,{className:`space-y-2`,children:e.map((e,t)=>{let n=e.level===`error`;return(0,z.jsxs)(`li`,{className:G(`flex items-start gap-2.5 rounded-lg border px-3.5 py-2.5 text-sm`,n?`border-destructive/25 bg-destructive/6 text-destructive`:`border-warning/30 bg-warning/8 text-warning`),children:[n?(0,z.jsx)(be,{className:`mt-0.5 size-4 shrink-0`}):(0,z.jsx)(Rt,{className:`mt-0.5 size-4 shrink-0`}),(0,z.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[(0,z.jsx)(`p`,{className:`leading-snug`,children:e.message}),(0,z.jsxs)(`p`,{className:`font-mono text-xs opacity-70`,children:[e.code,e.where===void 0?``:` · ${e.where}`]})]})]},`${e.code}-${e.where??``}-${t}`)})})}function fu({ok:e,text:t}){return e?(0,z.jsxs)(q,{variant:`success`,children:[(0,z.jsx)(fe,{className:`size-3`}),t]}):(0,z.jsxs)(q,{variant:`destructive`,children:[(0,z.jsx)(be,{className:`size-3`}),t]})}function pu({icon:e,title:t,description:n,action:r}){return(0,z.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed px-6 py-14 text-center`,children:[(0,z.jsx)(`div`,{className:`flex size-11 items-center justify-center rounded-full bg-muted text-muted-foreground`,children:e}),(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`p`,{className:`text-sm font-medium`,children:t}),(0,z.jsx)(`p`,{className:`max-w-sm text-xs text-muted-foreground`,children:n})]}),r]})}function mu({children:e}){return(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg bg-muted/60 px-3.5 py-2.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(Je,{className:`mt-0.5 size-3.5 shrink-0`}),(0,z.jsx)(`div`,{className:`leading-relaxed`,children:e})]})}function hu({label:e=`加载中…`,className:t}){return(0,z.jsxs)(`div`,{className:G(`flex flex-col items-center justify-center gap-3 animate-fade-up`,t),children:[(0,z.jsxs)(`span`,{"aria-hidden":`true`,className:`relative flex size-8 items-center justify-center`,children:[(0,z.jsx)(`span`,{className:`absolute inset-0 rounded-full border-2 border-primary/15`}),(0,z.jsx)(`span`,{className:`absolute inset-0 rounded-full border-2 border-transparent border-t-primary [animation-duration:0.9s] motion-safe:animate-spin`})]}),e===``?null:(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e})]})}var gu=Object.defineProperty,_u=(e,t)=>gu(e,`name`,{value:t,configurable:!0}),vu=0,yu=null;function bu(e){return xu(),e.children}_u(bu,`FocusGuards`);function xu(){v.useEffect(()=>{yu||={start:Su(),end:Su()};let{start:e,end:t}=yu;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),vu++,()=>{vu===1&&(yu?.start.remove(),yu?.end.remove(),yu=null),vu=Math.max(0,vu-1)}},[])}_u(xu,`useFocusGuards`);function Su(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}_u(Su,`createFocusGuard`);var Cu=function(){return Cu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Cu.apply(this,arguments)};function wu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Tu(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Eu=`right-scroll-bar-position`,Du=`width-before-scroll-bar`,Ou=`with-scroll-bars-hidden`,ku=`--removed-body-scroll-bar-size`;function Au(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ju(e,t){var n=(0,v.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Mu=typeof window<`u`?v.useLayoutEffect:v.useEffect,Nu=new WeakMap;function Pu(e,t){var n=ju(t||null,function(t){return e.forEach(function(e){return Au(e,t)})});return Mu(function(){var t=Nu.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Au(e,null)}),i.forEach(function(e){r.has(e)||Au(e,a)})}Nu.set(n,e)},[e]),n}function Fu(e){return e}function Iu(e,t){t===void 0&&(t=Fu);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Lu(e){e===void 0&&(e={});var t=Iu(null);return t.options=Cu({async:!0,ssr:!1},e),t}var Ru=function(e){var t=e.sideCar,n=wu(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return v.createElement(r,Cu({},n))};Ru.isSideCarExport=!0;function zu(e,t){return e.useMedium(t),Ru}var Bu=Lu(),Vu=function(){},Hu=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Vu,onWheelCapture:Vu,onTouchMoveCapture:Vu}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,y=_===void 0?`div`:_,b=e.gapMode,x=wu(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Pu([n,t]),w=Cu(Cu({},x),i);return v.createElement(v.Fragment,null,u&&v.createElement(S,{sideCar:Bu,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?v.cloneElement(v.Children.only(s),Cu(Cu({},w),{ref:C})):v.createElement(y,Cu({},w,{className:c,ref:C}),s))});Hu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Hu.classNames={fullWidth:Du,zeroRight:Eu};var Uu=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Wu(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Uu();return t&&e.setAttribute(`nonce`,t),e}function Gu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ku(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var qu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wu())&&(Gu(t,n),Ku(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ju=function(){var e=qu();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yu=function(){var e=Ju();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Xu={left:0,top:0,right:0,gap:0},Zu=function(e){return parseInt(e||``,10)||0},Qu=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Zu(n),Zu(r),Zu(i)]},Y=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Xu;var t=Qu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$u=Yu(),ed=`data-scroll-locked`,td=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
10
10
|
.${Ou} {
|
|
11
11
|
overflow: hidden ${r};
|
|
12
12
|
padding-right: ${s}px ${r};
|
|
@@ -46,35 +46,35 @@ Error generating stack: `+e.message+`
|
|
|
46
46
|
`},nd=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},rd=function(){v.useEffect(function(){return document.body.setAttribute(ed,(nd()+1).toString()),function(){var e=nd()-1;e<=0?document.body.removeAttribute(ed):document.body.setAttribute(ed,e.toString())}},[])},id=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;rd();var a=v.useMemo(function(){return Y(i)},[i]);return v.createElement($u,{styles:td(a,!t,i,n?``:`!important`)})},ad=!1;if(typeof window<`u`)try{var od=Object.defineProperty({},"passive",{get:function(){return ad=!0,!0}});window.addEventListener(`test`,od,od),window.removeEventListener(`test`,od,od)}catch{ad=!1}var sd=ad?{passive:!1}:!1,cd=function(e){return e.tagName===`TEXTAREA`},ld=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!cd(e)&&n[t]===`visible`)},ud=function(e){return ld(e,`overflowY`)},dd=function(e){return ld(e,`overflowX`)},fd=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),hd(e,r)){var i=gd(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pd=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},md=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},hd=function(e,t){return e===`v`?ud(t):dd(t)},gd=function(e,t){return e===`v`?pd(t):md(t)},_d=function(e,t){return e===`h`&&t===`rtl`?-1:1},vd=function(e,t,n,r,i){var a=_d(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=gd(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&hd(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},yd=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bd=function(e){return[e.deltaX,e.deltaY]},xd=function(e){return e&&`current`in e?e.current:e},Sd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Cd=function(e){return`
|
|
47
47
|
.block-interactivity-${e} {pointer-events: none;}
|
|
48
48
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
49
|
-
`},wd=0,Td=[];function Ed(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(wd++)[0],a=v.useState(Yu)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Tu([e.lockRef.current],(e.shards||[]).map(xd),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=yd(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=fd(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=fd(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return vd(h,t,e,h===`h`?s:c,!0)},[]),c=v.useCallback(function(e){var n=e;if(Td.length&&Td[Td.length-1]===a){var r=`deltaY`in n?bd(n):yd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Sd(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(xd).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=v.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Dd(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=v.useCallback(function(e){n.current=yd(e),r.current=void 0},[]),d=v.useCallback(function(t){l(t.type,bd(t),t.target,s(t,e.lockRef.current))},[]),f=v.useCallback(function(t){l(t.type,yd(t),t.target,s(t,e.lockRef.current))},[]);v.useEffect(function(){return Td.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,sd),document.addEventListener(`touchmove`,c,sd),document.addEventListener(`touchstart`,u,sd),function(){Td=Td.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,sd),document.removeEventListener(`touchmove`,c,sd),document.removeEventListener(`touchstart`,u,sd)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(a,{styles:Cd(i)}):null,p?v.createElement(id,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Dd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Od=zu(Bu,Ed),kd=v.forwardRef(function(e,t){return v.createElement(Hu,Cu({},e,{ref:t,sideCar:Od}))});kd.classNames=Hu.classNames;var Ad=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},jd=new WeakMap,Md=new WeakMap,Nd={},Pd=0,Fd=function(e){return e&&(e.host||Fd(e.parentNode))},Id=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Fd(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ld=function(e,t,n,r){var i=Id(t,Array.isArray(e)?e:[e]);Nd[n]||(Nd[n]=new WeakMap);var a=Nd[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(jd.get(e)||0)+1,l=(a.get(e)||0)+1;jd.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Md.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Pd++,function(){o.forEach(function(e){var t=jd.get(e)-1,i=a.get(e)-1;jd.set(e,t),a.set(e,i),t||(Md.has(e)||e.removeAttribute(r),Md.delete(e)),i||e.removeAttribute(n)}),Pd--,Pd||(jd=new WeakMap,jd=new WeakMap,Md=new WeakMap,Nd={})}},Rd=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ad(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ld(r,i,n,`aria-hidden`)):function(){return null}},zd=Object.defineProperty,Bd=(e,t)=>zd(e,`name`,{value:t,configurable:!0}),Vd=`Dialog`,[Hd,Ud]=cr(Vd),[Wd,Gd]=Hd(Vd),Kd=Bd(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),{nodes:l,registry:u}=Vr(),[d,f]=ss({prop:r,defaultProp:i??!1,onChange:a,caller:Vd}),[p,m]=v.useState(0),[h,g]=v.useState(0);return(0,z.jsx)(Wd,{scope:t,triggerRef:s,contentRef:c,contentId:ii(),titleId:ii(),descriptionId:ii(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),qd=`DialogPortal`,[Jd,Yd]=Hd(qd,{forceMount:void 0}),Xd=Bd(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Gd(qd,t);return(0,z.jsx)(Jd,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,z.jsx)(qo,{present:n||a.open,children:(0,z.jsx)(Uo,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Zd=`DialogOverlay`,Qd=v.forwardRef(Bd(function(e,t){let n=Yd(Zd,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gd(Zd,e.__scopeDialog);return a.modal?(0,z.jsx)(qo,{present:r||a.open,children:(0,z.jsx)(ef,{...i,ref:t})}):null},`DialogOverlay`)),$d=Pn(`DialogOverlay.RemoveScroll`),ef=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,...r}=e,i=Gd(Zd,n),a=jn(t,Dr());return(0,z.jsx)(kd,{as:$d,allowPinchZoom:!0,shards:v.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,z.jsx)(fr.div,{"data-state":ff(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),tf=`DialogContent`,nf=v.forwardRef(Bd(function(e,t){let n=Yd(tf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gd(tf,e.__scopeDialog);return(0,z.jsx)(qo,{present:r||a.open,children:a.modal?(0,z.jsx)(rf,{...i,ref:t}):(0,z.jsx)(af,{...i,ref:t})})},`DialogContent`)),rf=v.forwardRef(Bd(function(e,t){let n=Gd(tf,e.__scopeDialog),r=v.useRef(null),i=jn(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return Rd(e)},[]),(0,z.jsx)(of,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:$n(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:$n(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:$n(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),af=v.forwardRef(Bd(function(e,t){let n=Gd(tf,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,z.jsx)(of,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),of=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=Gd(tf,n);return xu(),(0,z.jsx)(Br,{registry:l.branchRegistry,children:(0,z.jsx)(Rr,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(Er,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?df(o,l.descriptionId):o,"data-state":ff(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),sf=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,...r}=e,i=Gd(`DialogTitle`,n),{setTitleCount:a}=i;return mr(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,z.jsx)(fr.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),cf=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,...r}=e,i=Gd(`DialogDescription`,n),{setDescriptionCount:a}=i;return mr(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,z.jsx)(fr.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),lf=`DialogClose`,uf=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,...r}=e,i=Gd(lf,n);return(0,z.jsx)(fr.button,{type:`button`,...r,ref:t,onClick:$n(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function df(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Bd(df,`concatAriaDescribedby`);function ff(e){return e?`open`:`closed`}Bd(ff,`getState`);var pf=Object.defineProperty,mf=(e,t)=>pf(e,`name`,{value:t,configurable:!0});function hf(e,[t,n]){return Math.min(n,Math.max(t,e))}mf(hf,`clamp`);var gf=Object.defineProperty,_f=(e,t)=>gf(e,`name`,{value:t,configurable:!0});function vf(e){let t=e+`CollectionProvider`,[n,r]=cr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=_f(e=>{let{scope:t,children:n}=e,r=v.useRef(null),a=v.useRef(new Map).current;return(0,z.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Pn(s),l=v.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=jn(t,a(s,n).collectionRef);return(0,z.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Pn(u),p=v.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=v.useRef(null),s=jn(t,o),c=a(u,n);return v.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,z.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return v.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return _f(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}_f(vf,`createCollection`);var yf=new WeakMap,bf=class e extends Map{static{_f(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],yf.set(this,!0)}set(e,t){return yf.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=Cf(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=xf(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=xf(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return xf(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function xf(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Sf(e,t);return n===-1?void 0:e[n]}_f(xf,`at`);function Sf(e,t){let n=e.length,r=Cf(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}_f(Sf,`toSafeIndex`);function Cf(e){return e!==e||e===0?0:Math.trunc(e)}_f(Cf,`toSafeInteger`);function wf(e){let t=e+`CollectionProvider`,[n,r]=cr(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=_f(({state:e,...t})=>e?(0,z.jsx)(u,{...t,state:e}):(0,z.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=_f(e=>{let t=_();return(0,z.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=_f(e=>{let{scope:t,children:n,state:r}=e,a=v.useRef(null),[s,c]=v.useState(null),l=jn(a,c),[u,d]=r,f=v.useRef(new bf),p=v.useCallback(()=>{let e=f.current;return Df(e)||e.sort(Of),e},[]);return v.useEffect(()=>{if(!s)return;let e=kf(()=>{d(e=>{let t=e.toSorted(Of);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,z.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,z.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=Pn(d),p=v.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=jn(t,a(d,n).collectionElementRef);return(0,z.jsx)(f,{ref:i,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=Pn(m),g=v.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=v.useRef(null),{setCollection:s,registryRef:c}=a(m,n),l=v.useRef(i);Tf(l.current,i)||(l.current=i);let u=l.current,d=jn(t,v.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);mr(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let f=v.useRef(null);return v.useEffect(()=>{let e=o.current,t=f.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(f.current=e?{element:e,itemData:u}:null,s(n=>{let r=new bf(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(Of)}))}),v.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new bf(t);return n.delete(e.element),n})},[s]),(0,z.jsx)(h,{"data-radix-collection-item":``,ref:d,children:r})});g.displayName=m;function _(){return v.useState(new bf)}_f(_,`useInitCollection`);function y(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}_f(y,`useCollection`);function b(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return _f(b,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:y,useGetCollection:b,useInitCollection:_}]}_f(wf,`createCollection`);function Tf(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}_f(Tf,`shallowEqual`);function Ef(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}_f(Ef,`isElementPreceding`);function Df(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}_f(Df,`isInDocumentOrder`);function Of(e,t){return!e[1].element||!t[1].element?0:Ef(e[1].element,t[1].element)?-1:1}_f(Of,`sortByDocumentPosition`);function kf(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}_f(kf,`getChildListObserver`);var Af=Object.defineProperty,jf=(e,t)=>Af(e,`name`,{value:t,configurable:!0}),Mf={LTR:`ltr`,RTL:`rtl`},Nf=v.createContext(void 0);function Pf(e){let t=v.useContext(Nf);return e||t||Mf.LTR}jf(Pf,`useDirection`);var Ff=Object.defineProperty,If=(e,t)=>Ff(e,`name`,{value:t,configurable:!0}),Lf={ItemAligned:`item-aligned`,Popper:`popper`},Rf={LTR:`ltr`,RTL:`rtl`},zf=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Bf=[` `,`Enter`],Vf=`Select`,[Hf,Uf,Wf]=vf(Vf),[Gf,Kf]=cr(Vf,[Wf,Do]),qf=Do(),[Jf,Yf]=Gf(Vf),[Xf,Zf]=Gf(Vf);function Qf(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=qf(t),[_,y]=v.useState(null),[b,x]=v.useState(null),[S,C]=v.useState(!1),w=Pf(l),[T,E]=ss({prop:r,defaultProp:i??!1,onChange:a,caller:Vf}),[D,O]=ss({prop:o,defaultProp:s,onChange:c,caller:Vf}),k=v.useRef(null),A=v.useRef(!1),[j,M]=v.useState(null),N=If(e=>{M({value:e,hasConsumerStoppedPropagation:A.current}),O(e)},`handleUserSelect`),P=v.useRef(D);v.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=If(()=>O(P.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,O]);let F=!_||!!m||!!_.closest(`form`),[I,ee]=v.useState(new Set),te=ii(),ne=Array.from(I).map(e=>e.props.value).join(`;`),re=v.useCallback(e=>{ee(t=>new Set(t).add(e))},[]),ie=v.useCallback(e=>{ee(t=>{let n=new Set(t);return n.delete(e),n})},[]),ae={required:p,trigger:_,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:te,value:D,onValueChange:O,hasConsumerStoppedPropagationRef:A,userSelection:j,onUserSelect:N,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:I,nativeSelectKey:ne,isFormControl:F};return(0,z.jsx)(Ao,{...g,children:(0,z.jsx)(Jf,{scope:t,...ae,children:(0,z.jsx)(Hf.Provider,{scope:t,children:(0,z.jsx)(Xf,{scope:t,onNativeOptionAdd:re,onNativeOptionRemove:ie,children:Lp(h)?h(ae):n})})})})}If(Qf,`SelectProvider`);var $f=If(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,z.jsx)(Qf,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,z.jsxs)(z.Fragment,{children:[n,e?(0,z.jsx)(Ip,{__scopeSelect:t}):null]})})},`Select`),ep=`SelectTrigger`,tp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=qf(n),o=Yf(ep,n),s=o.disabled||r,c=jn(t,o.onTriggerChange),l=Uf(n),u=v.useRef(`touch`),[d,f,p]=zp(e=>{let t=l().filter(e=>!e.disabled),n=Bp(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onUserSelect(n.value)}),m=If(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,z.jsx)(Mo,{asChild:!0,...a,children:(0,z.jsx)(fr.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Rp(o.value)?``:void 0,...i,ref:c,onClick:$n(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:$n(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:$n(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&(o.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),f(e.key)),t&&e.key===` `||zf.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),np=`SelectValue`,rp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Yf(np,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=jn(t,c.onValueNodeChange);mr(()=>{l(u)},[l,u]);let f=Rp(c.value);return(0,z.jsx)(fr.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,z.jsx)(v.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),ip=v.forwardRef(If(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,z.jsx)(fr.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[ap,op]=Gf(`SelectPortal`,{forceMount:void 0}),sp=If(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,z.jsx)(ap,{scope:e.__scopeSelect,forceMount:n,children:(0,z.jsx)(Uo,{asChild:!0,...r})})},`SelectPortal`),cp=`SelectContent`,lp=v.forwardRef(If(function(e,t){let n=op(cp,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Yf(cp,e.__scopeSelect),[o,s]=v.useState();return mr(()=>{s(new DocumentFragment)},[]),(0,z.jsx)(qo,{present:r||a.open,children:({present:e})=>e?(0,z.jsx)(hp,{...i,ref:t}):(0,z.jsx)(up,{...i,fragment:o})})},`SelectContent`)),up=v.forwardRef(If(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?qt.createPortal((0,z.jsx)(fp,{scope:n,children:(0,z.jsx)(Hf.Slot,{scope:n,children:(0,z.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),dp=10,[fp,pp]=Gf(cp),mp=Pn(`SelectContent.RemoveScroll`),hp=v.forwardRef(If(function(e,t){let{__scopeSelect:n}=e,{position:r=Lf.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,y=Yf(cp,n),[b,x]=v.useState(null),[S,C]=v.useState(null),w=jn(t,x),[T,E]=v.useState(null),[D,O]=v.useState(null),k=Uf(n),[A,j]=v.useState(!1),M=v.useRef(!1),N=v.useRef(!1),P=v.useRef(!1);v.useEffect(()=>{if(b)return Rd(b)},[b]),xu();let F=v.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),I=v.useCallback(()=>F([T,b]),[F,T,b]);v.useEffect(()=>{A&&I()},[A,I]);let{onOpenChange:ee,triggerPointerDownPosRef:te}=y;v.useEffect(()=>{if(b){let e={x:0,y:0},t=If(t=>{e={x:Math.abs(Math.round(t.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(te.current?.y??0))}},`handlePointerMove`),n=If(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||ee(!1),document.removeEventListener(`pointermove`,t),te.current=null},`handlePointerUp`);return te.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,ee,te]),v.useEffect(()=>{let e=If(()=>ee(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[ee]);let[ne,re]=zp(e=>{let t=k().filter(e=>!e.disabled),n=Bp(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ie=v.useCallback((e,t,n)=>{let r=!N.current;r&&(N.current=!0);let i=!M.current&&!n;y.value!==void 0&&y.value===t||i?(E(e),i&&(M.current=!0)):r&&E(e)},[y.value]),ae=v.useCallback(()=>b?.focus(),[b]),oe=v.useCallback((e,t,n)=>{if(!e)return;let r=!P.current;r&&(P.current=!0);let i=!M.current&&!n;(y.value!==void 0&&y.value===t||i||r)&&O(e)},[y.value]),se=r===Lf.Popper?_p:gp,ce=se===_p?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,z.jsx)(fp,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ie,selectedItem:T,onItemLeave:ae,itemTextRefCallback:oe,focusSelectedItem:I,selectedItemText:D,position:r,isPositioned:A,searchRef:ne,children:(0,z.jsx)(kd,{as:mp,allowPinchZoom:!0,children:(0,z.jsx)(Rr,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:$n(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,z.jsx)(Er,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,z.jsx)(se,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),..._,...ce,onPlaced:()=>j(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:$n(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&re(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),gp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Yf(cp,n),o=pp(cp,n),[s,c]=v.useState(null),[l,u]=v.useState(null),d=jn(t,u),f=Uf(n),p=v.useRef(!1),m=v.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:y}=o,b=v.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==Rf.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-dp,d=hf(a,[dp,Math.max(dp,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-dp,d=hf(a,[dp,Math.max(dp,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-dp*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-dp,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${dp}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);mr(()=>b(),[b]);let[x,S]=v.useState();mr(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=v.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,z.jsx)(vp,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,z.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,z.jsx)(fr.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),_p=v.forwardRef(If(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=dp,...a}=e,o=qf(n);return(0,z.jsx)(Io,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[vp,yp]=Gf(cp,{}),bp=`SelectViewport`,xp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=pp(bp,n),o=yp(bp,n),s=jn(t,a.onViewportChange),c=v.useRef(0);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,z.jsx)(Hf.Slot,{scope:n,children:(0,z.jsx)(fr.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:$n(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-dp*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Sp,Cp]=Gf(`SelectGroup`),wp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,...r}=e,i=ii();return(0,z.jsx)(Sp,{scope:n,id:i,children:(0,z.jsx)(fr.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})},`SelectGroup`)),Tp=`SelectLabel`,Ep=v.forwardRef(If(function(e,t){let{__scopeSelect:n,...r}=e,i=Cp(Tp,n);return(0,z.jsx)(fr.div,{id:i.id,...r,ref:t})},`SelectLabel`)),Dp=`SelectItem`,[Op,kp]=Gf(Dp),Ap=v.forwardRef(If(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Yf(Dp,n),c=pp(Dp,n),l=s.value===r,[u,d]=v.useState(a??``),[f,p]=v.useState(!1),m=jn(t,vr(e=>c.itemRefCallback?.(e,r,i))),h=ii(),g=v.useRef(`touch`);function _(e){s.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),s.onUserSelect(r),s.onOpenChange(!1)}return If(_,`handleSelect`),(0,z.jsx)(Op,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:v.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,z.jsx)(Hf.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,z.jsx)(fr.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:$n(o.onFocus,()=>p(!0)),onBlur:$n(o.onBlur,()=>p(!1)),onClick:$n(o.onClick,e=>{i||g.current!==`mouse`&&_(e)}),onPointerUp:$n(o.onPointerUp,e=>{i||g.current===`mouse`&&_(e)}),onPointerDown:$n(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:$n(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$n(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:$n(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Bf.includes(e.key)&&_(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),jp=`SelectItemText`,Mp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Yf(jp,n),s=pp(jp,n),c=kp(jp,n),l=Zf(jp,n),[u,d]=v.useState(null),f=vr(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=jn(t,d,c.onItemTextChange,f),m=u?.textContent,h=v.useMemo(()=>(0,z.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return mr(()=>(g(h),()=>_(h)),[g,_,h]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(fr.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Rp(o.value)?qt.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Np=`SelectItemIndicator`,Pp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,...r}=e;return kp(Np,n).isSelected?(0,z.jsx)(fr.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Fp=`SelectBubbleInput`,Ip=v.forwardRef(If(function({__scopeSelect:e,...t},n){let r=Yf(Fp,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u,userSelection:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=v.useRef(null),h=jn(n,m),g=i??``,_=v.useRef(g),y=v.useRef(d),b=v.useRef(!1),x=Array.from(f).some(e=>(e.props.value??``)===``);return v.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set,r=d!==null&&d!==y.current;y.current=d;let i=_.current!==g;_.current=g;let a=r&&i;if(r&&!i&&d.value!==g&&!d.hasConsumerStoppedPropagation&&n){b.current=!0;try{n.call(e,d.value),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}finally{b.current=!1,n.call(e,g)}return}let o=a&&!d.hasConsumerStoppedPropagation;if(i&&n){let t=new Event(`change`,{bubbles:o});n.call(e,g),e.dispatchEvent(t)}},[g,d]),(0,z.jsxs)(fr.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>{b.current||a(e.target.value)},...t,style:{...ms,...t.style},ref:h,defaultValue:g,children:[Rp(i)&&!x?(0,z.jsx)(`option`,{value:``}):null,Array.from(f)]},p)},`SelectBubbleInput`));function Lp(e){return typeof e==`function`}If(Lp,`isFunction`);function Rp(e){return e===``||e===void 0}If(Rp,`shouldShowPlaceholder`);function zp(e){let t=vr(e),n=v.useRef(``),r=v.useRef(0),i=v.useCallback(e=>{let i=n.current+e;t(i);function a(e){n.current=e,window.clearTimeout(r.current),e!==``&&(r.current=window.setTimeout(()=>a(``),1e3))}If(a,`updateSearch`),a(i)},[t]),a=v.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}If(zp,`useTypeaheadSearch`);function Bp(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Vp(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}If(Bp,`findNextItem`);function Vp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}If(Vp,`wrapArray`);var Hp=Kd;function Up({className:e,children:t,...n}){let r=v.useRef(null);return(0,z.jsxs)(Xd,{children:[(0,z.jsx)(Qd,{className:`fixed inset-0 z-50 bg-black/45 backdrop-blur-[2px]`}),(0,z.jsxs)(nf,{ref:r,tabIndex:-1,onOpenAutoFocus:e=>{e.preventDefault(),r.current?.focus({preventScroll:!0})},className:G(`animate-fade-up fixed left-1/2 top-1/2 z-50 grid w-full max-w-xl -translate-x-1/2 -translate-y-1/2 gap-5 rounded-xl border bg-card p-6 shadow-2xl focus:outline-none`,e),...n,children:[t,(0,z.jsxs)(uf,{className:`absolute right-4 top-4 rounded-md p-1 text-muted-foreground opacity-70 transition hover:bg-accent hover:text-foreground hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:outline-none`,children:[(0,z.jsx)(Kt,{className:`size-4`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`关闭`})]})]})]})}function Wp({className:e,...t}){return(0,z.jsx)(`div`,{className:G(`flex flex-col gap-1.5 pr-8`,e),...t})}function Gp({className:e,...t}){return(0,z.jsx)(sf,{className:G(`text-lg font-semibold tracking-tight`,e),...t})}function Kp({className:e,...t}){return(0,z.jsx)(cf,{className:G(`text-sm text-muted-foreground`,e),...t})}function qp({className:e,...t}){return(0,z.jsx)(`div`,{className:G(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}var Jp=$f,Yp=rp,Xp=wp;function Zp({className:e,...t}){return(0,z.jsx)(Ep,{className:G(`px-2 py-1.5 text-xs font-medium text-muted-foreground`,e),...t})}function Qp({className:e,children:t,...n}){return(0,z.jsxs)(tp,{className:G(`flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50`,e),...n,children:[t,(0,z.jsx)(ip,{asChild:!0,children:(0,z.jsx)(ue,{className:`size-4 opacity-50`})})]})}function $p({className:e,children:t,...n}){return(0,z.jsx)(sp,{children:(0,z.jsx)(lp,{position:`popper`,className:G(`z-50 max-h-72 min-w-[10rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg`,e),...n,children:(0,z.jsx)(xp,{children:t})})})}function em({className:e,children:t,...n}){return(0,z.jsxs)(Ap,{className:G(`relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground`,e),...n,children:[(0,z.jsx)(Mp,{children:t}),(0,z.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,z.jsx)(Pp,{children:(0,z.jsx)(ce,{className:`size-4`})})})]})}function tm(e){let t=e.trim();if(t.length===0)return null;let n=/^([a-zA-Z]:)[\\/]/.exec(t);if(n!==null&&n[1]!==void 0)return`${n[1]}\\`;let r=/^([\\/]{2}[^\\/]+[\\/][^\\/]+)/.exec(t);return r!==null&&r[1]!==void 0?r[1]:t.startsWith(`/`)?`/`:null}function nm({open:e,initialPath:t,onOpenChange:n,onPick:r,title:i=`选择文档仓库目录`,description:a=`逐层进入目标目录后点「选择此目录」;需包含 skills/iteration-task-docs。`}){let[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(``),[m,h]=(0,v.useState)(null),g=async e=>{l(!0),d(null);try{let t=await J.listDirectories(e);s(t),p(t.path),h(null),localStorage.setItem(`ylcwf-last-dir`,t.path)}catch(e){d(e instanceof Error?e.message:String(e))}finally{l(!1)}};(0,v.useEffect)(()=>{if(!e)return;s(null);let n=localStorage.getItem(`ylcwf-last-dir`);g(t??n??void 0)},[e,t]);let _=[{label:`主目录`,path:null,icon:Ke}],y=localStorage.getItem(`ylcwf-last-dir`);y!==null&&_.push({label:`上次位置`,path:y,icon:Mt}),t!==void 0&&t.trim().length>0&&t!==y&&_.push({label:`当前配置`,path:t,icon:Mt});let b=tm(o?.path??f);return b!==null&&_.push({label:`根目录`,path:b,icon:Be}),(0,z.jsx)(Hp,{open:e,onOpenChange:n,children:(0,z.jsxs)(Up,{className:`max-w-2xl`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:i}),(0,z.jsx)(Kp,{children:a})]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(K,{variant:`outline`,size:`icon`,className:`shrink-0`,disabled:o?.parent===null||o?.parent===void 0||c,onClick:()=>o?.parent!=null&&void g(o.parent),title:`上一级`,children:(0,z.jsx)(ne,{className:`size-4`})}),(0,z.jsx)(Al,{value:f,spellCheck:!1,className:`font-mono text-xs`,onChange:e=>p(e.target.value),onKeyDown:e=>{e.key===`Enter`&&g(f)}}),(0,z.jsx)(K,{variant:`ghost`,size:`sm`,className:`shrink-0`,onClick:()=>void g(f),disabled:c,children:`前往`})]}),(0,z.jsxs)(`div`,{className:`flex gap-3`,children:[(0,z.jsx)(`div`,{className:`w-36 shrink-0 space-y-0.5 border-r pr-2`,children:_.map(e=>{let t=e.path!==null&&e.path===(o?.path??``);return(0,z.jsxs)(`button`,{type:`button`,onClick:()=>void g(e.path??void 0),className:G(`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs transition-colors`,t?`bg-accent font-medium text-accent-foreground`:`text-muted-foreground hover:bg-accent/60 hover:text-foreground`),children:[(0,z.jsx)(e.icon,{className:`size-3 shrink-0`}),(0,z.jsx)(`span`,{className:`truncate`,children:e.label})]},`${e.label}-${e.path??`home`}`)})}),(0,z.jsx)(`div`,{className:`h-72 flex-1 overflow-y-auto rounded-lg border`,children:c?(0,z.jsx)(hu,{label:`正在读取目录…`,className:`h-full py-0`}):u===null?o===null||o.entries.length===0?(0,z.jsx)(`div`,{className:`flex h-full items-center justify-center text-xs text-muted-foreground`,children:`该目录下没有子目录`}):(0,z.jsx)(`ul`,{className:`divide-y`,children:o.entries.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>h(e.path),onDoubleClick:()=>void g(e.path),className:G(`flex w-full items-center gap-2 px-3 py-2 text-left text-xs transition-colors hover:bg-accent/60`,m===e.path?`bg-accent text-accent-foreground`:``,e.hidden?`text-muted-foreground`:``),children:[m===e.path?(0,z.jsx)(Ie,{className:`size-3.5 shrink-0`}):(0,z.jsx)(Be,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,z.jsx)(`span`,{className:`truncate`,children:e.name})]})},e.path))}):(0,z.jsx)(`div`,{className:`flex h-full items-center justify-center px-4 text-center text-xs text-destructive`,children:u})})]}),(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>n(!1),children:`取消`}),(0,z.jsxs)(K,{size:`sm`,className:`gap-1.5`,disabled:o===null,onClick:()=>{o!==null&&(r(o.path),n(!1))},children:[(0,z.jsx)(Ie,{className:`size-3.5`}),`选择此目录`]})]})]})})}var rm=[{id:`violet`,label:`深紫`,dot:`#6E4BF7`,logo:[`#A283FF`,`#6E4BF7`,`#3A1DAE`]},{id:`blue`,label:`蓝`,dot:`#2E6BDB`,logo:[`#7DB1FF`,`#2E6BDB`,`#173E8F`]},{id:`teal`,label:`青绿`,dot:`#0D9488`,logo:[`#5FD0C5`,`#0D9488`,`#0A5C55`]},{id:`amber`,label:`琥珀`,dot:`#B4690E`,logo:[`#E8B26A`,`#C17A17`,`#7A4A08`]},{id:`pink`,label:`粉`,dot:`#DB2777`,logo:[`#F98CB8`,`#DB2777`,`#8F1850`]}],im=`violet`;function am(){let e=localStorage.getItem(`ylcwf-accent`);return rm.some(t=>t.id===e)?e:im}var om=am(),sm=new Set;function cm(e){return sm.add(e),()=>sm.delete(e)}function lm(){return(0,v.useSyncExternalStore)(cm,()=>om)}function um(e){return rm.find(t=>t.id===e)??rm[0]}function dm(e){rm.some(t=>t.id===e)&&(om=e,localStorage.setItem(`ylcwf-accent`,e),document.documentElement.dataset.accent=e,sm.forEach(e=>e()))}document.documentElement.dataset.accent=om;function fm({className:e}){let t=um(lm());return(0,z.jsxs)(`svg`,{viewBox:`0 0 32 32`,className:G(`size-8`,e),"aria-hidden":`true`,children:[(0,z.jsx)(`defs`,{children:(0,z.jsxs)(`linearGradient`,{id:`brandBg`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,z.jsx)(`stop`,{offset:`0`,stopColor:t.logo[0]}),(0,z.jsx)(`stop`,{offset:`0.45`,stopColor:t.logo[1]}),(0,z.jsx)(`stop`,{offset:`1`,stopColor:t.logo[2]})]})}),(0,z.jsx)(`rect`,{width:`32`,height:`32`,rx:`9`,fill:`url(#brandBg)`}),(0,z.jsx)(`rect`,{x:`5.5`,y:`6.5`,width:`11`,height:`8`,rx:`2.6`,fill:`#FFFFFF`,fillOpacity:`0.6`}),(0,z.jsx)(`rect`,{x:`10.5`,y:`12.8`,width:`11`,height:`8`,rx:`2.6`,fill:`#FFFFFF`,fillOpacity:`0.84`}),(0,z.jsx)(`rect`,{x:`15.5`,y:`19`,width:`11`,height:`8`,rx:`2.6`,fill:`#FFFFFF`}),(0,z.jsx)(`rect`,{x:`17.8`,y:`21.6`,width:`4.6`,height:`1.5`,rx:`0.75`,fill:t.logo[1],fillOpacity:`0.8`}),(0,z.jsx)(`rect`,{x:`17.8`,y:`24.2`,width:`6.4`,height:`1.5`,rx:`0.75`,fill:t.logo[1],fillOpacity:`0.35`})]})}function pm(e){return[{label:`本地配置`,ok:e.hasConfig&&e.configValid,detail:e.hasConfig?e.configValid?`已就绪`:`结构不合法`:`未创建`},{label:`Git 环境`,ok:e.gitAvailable,detail:e.gitAvailable?`已安装`:`未检测到 git 命令`},{label:`文档仓库`,ok:e.docsConfigured,detail:e.docsConfigured?e.docsRoot:`尚未选择`},{label:`访问权限`,ok:e.docsAccessible,detail:e.docsAccessible?`可读取(${e.iterationCount} 个迭代)`:e.reason??`待检测`}]}function mm(e){switch(e.nextStep){case`install-git`:case`fix-config`:return`blocked`;case`set-docs-root`:return`docs`;default:return`detect`}}function hm({state:e,onDone:t}){let{snapshot:n}=ou(),[r,i]=(0,v.useState)(mm(e)),[a,o]=(0,v.useState)(e.docsRoot),[s,c]=(0,v.useState)(e.developer),[l,u]=(0,v.useState)(e.role),[d,f]=(0,v.useState)(!1),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(null),[_,y]=(0,v.useState)(!1),b=async e=>{f(!0),m(null);try{await e()}catch(e){m(e instanceof Error?e.message:String(e))}finally{f(!1)}},x=()=>b(async()=>{g(await J.inspect(a.trim()))}),S=()=>b(async()=>{let e=n?.config,r={profile:{developer:s.trim(),role:l},docs:{root:a.trim(),git:e?.docs.git??{cli:{...Gl},ui:{...Gl}},validator:e?.docs.validator??{strict:!0}},terminals:e?.terminals??{}};await J.completeOnboarding(r),await t()}),C=()=>b(async()=>{let e=await J.pickDirectory({title:`选择文档仓库目录`});e.ok?e.path!==null&&(o(e.path),g(await J.inspect(e.path))):y(!0)}),w=/^[a-z][a-z0-9]*$/.test(s.trim()),T=a.trim().length>0&&h?.hasDocsSkill===!0;return(0,z.jsx)(`div`,{className:`app-glow flex min-h-full items-center justify-center px-6 py-10`,children:(0,z.jsxs)(`div`,{className:`relative z-10 w-full max-w-2xl`,children:[(0,z.jsxs)(`div`,{className:`mb-6 flex items-center gap-2.5`,children:[(0,z.jsx)(fm,{className:`size-9`}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`text-sm font-semibold tracking-tight`,children:`ylcwf 工作台`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`首次启动配置`})]})]}),(0,z.jsxs)(`div`,{className:`animate-fade-up rounded-xl border bg-card p-7 shadow-xl`,children:[r===`detect`?(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`启动环境检测`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`确认为你准备好文档仓库与访问权限后进入工作台。`})]}),(0,z.jsx)(`ul`,{className:`space-y-2`,children:pm(e).map(e=>(0,z.jsxs)(`li`,{className:`flex items-center justify-between gap-3 rounded-lg border px-3.5 py-2.5`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[e.ok?(0,z.jsx)(fe,{className:`size-4 text-success`}):(0,z.jsx)(be,{className:`size-4 text-muted-foreground`}),(0,z.jsx)(`span`,{className:`text-sm`,children:e.label})]}),(0,z.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,title:e.detail,children:e.detail})]},e.label))}),(0,z.jsx)(`div`,{className:`flex justify-end`,children:(0,z.jsxs)(K,{onClick:()=>i(`docs`),children:[`继续`,(0,z.jsx)(ee,{className:`size-3.5`})]})})]}):null,r===`docs`?(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`迭代任务文档仓库`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`选择你本地已克隆的文档仓库;需要包含 skills/iteration-task-docs。`})]}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jl,{children:`本地仓库路径`}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(Al,{value:a,placeholder:`/Users/you/develop/iteration-task-repo`,spellCheck:!1,className:`font-mono text-xs`,onChange:e=>{o(e.target.value),g(null)}}),(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`shrink-0 gap-1.5`,onClick:()=>void C(),children:[(0,z.jsx)(Re,{className:`size-3.5`}),`选择`]}),(0,z.jsx)(K,{variant:`outline`,size:`sm`,className:`shrink-0`,onClick:()=>void x(),disabled:a.trim().length===0,children:`校验`})]}),h===null?null:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs`,children:[(0,z.jsx)(q,{variant:h.exists?`success`:`destructive`,children:h.exists?`路径存在`:`路径不存在`}),(0,z.jsx)(q,{variant:h.isGit?`success`:`warning`,children:h.isGit?`git 仓库`:`非 git 仓库`}),h.hasDocsSkill===void 0?null:(0,z.jsx)(q,{variant:h.hasDocsSkill?`success`:`destructive`,children:h.hasDocsSkill?`含 iteration-task-docs`:`缺少 iteration-task-docs`})]})]}),(0,z.jsxs)(`div`,{className:`flex justify-between`,children:[(0,z.jsx)(K,{variant:`ghost`,onClick:()=>i(`detect`),children:`返回`}),(0,z.jsxs)(K,{onClick:()=>i(`profile`),disabled:!T,children:[`继续`,(0,z.jsx)(ee,{className:`size-3.5`})]})]})]}):null,r===`profile`?(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`身份信息`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`用于确定个人文档文件名,并在迭代看板里默认高亮你自己。`})]}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jl,{htmlFor:`onboarding-developer`,children:`开发者标识`}),(0,z.jsx)(Al,{id:`onboarding-developer`,value:s,placeholder:`yourname`,spellCheck:!1,className:`font-mono`,onChange:e=>c(e.target.value.trim())}),w||s.length===0?null:(0,z.jsx)(`p`,{className:`text-xs text-destructive`,children:`必须是小写字母开头的字母数字串(姓名小写全拼)`})]}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jl,{children:`默认角色`}),(0,z.jsx)(`div`,{className:`grid gap-2 sm:grid-cols-3`,children:Kl.map(e=>(0,z.jsxs)(`button`,{type:`button`,onClick:()=>u(e),className:G(`rounded-lg border p-3 text-left text-xs transition-all`,l===e?`border-primary/60 bg-primary/5`:`hover:bg-accent/40`),children:[(0,z.jsx)(`p`,{className:`font-medium`,children:Jl[e]}),(0,z.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:Yl[e]})]},e))})]}),(0,z.jsxs)(`div`,{className:`flex justify-between`,children:[(0,z.jsx)(K,{variant:`ghost`,onClick:()=>i(`docs`),children:`返回`}),(0,z.jsxs)(K,{onClick:()=>void S(),disabled:!w||!T||d,children:[d?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(ce,{className:`size-3.5`}),`完成配置`]})]})]}):null,r===`blocked`?(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`需要先解决环境问题`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.reason??`当前环境不满足启动条件`})]}),(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-warning/30 bg-warning/8 px-3.5 py-3 text-xs text-warning`,children:[(0,z.jsx)(Rt,{className:`mt-0.5 size-4 shrink-0`}),(0,z.jsxs)(`div`,{className:`space-y-1.5 leading-relaxed`,children:[e.nextStep===`install-git`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{children:`请先安装 Git:`}),(0,z.jsx)(`code`,{className:`block rounded bg-background/60 px-2 py-1 font-mono`,children:`brew install git`})]}):null,e.nextStep===`fix-config`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{children:`配置文件结构不合法(可能来自旧版本),请重新初始化:`}),(0,z.jsx)(`code`,{className:`block rounded bg-background/60 px-2 py-1 font-mono`,children:`ylcwf init`}),(0,z.jsx)(`p`,{className:`opacity-80`,children:`或查看详情:`}),(0,z.jsx)(`code`,{className:`block rounded bg-background/60 px-2 py-1 font-mono`,children:`ylcwf doctor`})]}):null]})]}),(0,z.jsx)(`div`,{className:`flex justify-end gap-2`,children:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`gap-1.5`,onClick:()=>void t(),children:[(0,z.jsx)(mt,{className:`size-3.5`}),`重新检测`]})})]}):null,p===null?null:(0,z.jsxs)(`div`,{className:`mt-4 flex items-start gap-2 rounded-lg border border-destructive/25 bg-destructive/8 px-3.5 py-2.5 text-xs text-destructive`,children:[(0,z.jsx)(Rt,{className:`mt-0.5 size-3.5 shrink-0`}),(0,z.jsx)(`span`,{className:`leading-relaxed`,children:p})]})]}),(0,z.jsx)(nm,{open:_,initialPath:a.trim().length>0?a.trim():void 0,onOpenChange:y,onPick:e=>{o(e),g(null),(async()=>{try{g(await J.inspect(e))}catch{}})()}}),(0,z.jsxs)(`p`,{className:`mt-4 text-center text-xs text-muted-foreground`,children:[(0,z.jsx)(We,{className:`mr-1 inline size-3`}),`配置保存在 ~/.ylcwf/config.yaml,与命令行工具共用`]})]})})}var gm=class extends v.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(`[ylcwf] ${this.props.area} 渲染失败`,e,t.componentStack)}render(){let{error:e}=this.state;return e===null?this.props.children:(0,z.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3 px-6 py-12 text-center`,children:[(0,z.jsx)(Rt,{className:`size-6 text-warning`}),(0,z.jsxs)(`p`,{className:`text-sm font-medium`,children:[this.props.area,`渲染失败`]}),(0,z.jsxs)(`p`,{className:`max-w-md text-xs text-muted-foreground`,children:[e.message,(0,z.jsx)(`br`,{}),`如果刚升级过,请重启 `,(0,z.jsx)(`code`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono`,children:`ylcwf serve`}),`(或重开桌面端)后刷新。`]}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>this.setState({error:null}),children:`重试`}),(0,z.jsx)(K,{size:`sm`,onClick:()=>window.location.reload(),children:`刷新页面`})]})]})}},_m={system:`跟随系统`,light:`浅色模式`,dark:`深色模式`},vm=[`system`,`light`,`dark`];function ym(){let e=new URLSearchParams(window.location.search).get(`theme`);if(e===`dark`||e===`light`)return e;let t=localStorage.getItem(`ylcwf-theme`);return t===`dark`||t===`light`||t===`system`?t:`system`}var bm=ym(),xm=window.matchMedia(`(prefers-color-scheme: dark)`).matches;function Sm(){return bm===`system`?xm:bm===`dark`}var Cm={mode:bm,dark:Sm()},wm=new Set;function Tm(e){return wm.add(e),()=>wm.delete(e)}function Em(){return Cm}function Dm(){document.documentElement.classList.toggle(`dark`,Sm()),localStorage.setItem(`ylcwf-theme`,bm)}function Om(){Cm={mode:bm,dark:Sm()},wm.forEach(e=>e())}function km(e){bm=e,Dm(),Om()}window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,e=>{xm=e.matches,bm===`system`&&(Dm(),Om())}),Dm();function Am(){return(0,v.useSyncExternalStore)(Tm,Em)}var jm={muted:`bg-muted-foreground/35`,progress:`bg-primary`,warning:`bg-warning`,success:`bg-success`,destructive:`bg-destructive`},Mm=[{key:`未开始`,label:`未开始`,icon:L,tone:`muted`},{key:`进行中`,label:`进行中`,icon:me,tone:`progress`},{key:`待验收`,label:`待验收`,icon:we,tone:`warning`},{key:`已完成`,label:`已完成`,icon:fe,tone:`success`}],Nm=[{key:`未开始`,label:`未开始`,icon:L,tone:`muted`},{key:`进行中`,label:`进行中`,icon:me,tone:`progress`},{key:`已完成`,label:`已完成`,icon:fe,tone:`success`}],Pm=[{key:`通过`,label:`通过`,icon:fe,tone:`success`},{key:`免测`,label:`免测`,icon:ge,tone:`muted`},{key:`未执行`,label:`未执行`,icon:L,tone:`warning`},{key:`失败`,label:`失败`,icon:be,tone:`destructive`}],Fm=[{key:`待验收`,label:`待验收`,icon:we,tone:`warning`},{key:`验收通过`,label:`通过`,icon:fe,tone:`success`},{key:`验收驳回`,label:`驳回`,icon:be,tone:`destructive`}];function Im(e){return e??{}}function Lm(e,t){let n=Im(e),r=new Set(t.map(e=>e.key)),i=Object.keys(n).filter(e=>!r.has(e)).sort().map(e=>({key:e,label:e,icon:ve,tone:`muted`}));return[...t,...i]}function Rm(e,t){let n=Im(e),r=t.reduce((e,t)=>e+(n[t.key]??0),0);return r===0?[]:t.map(e=>({tone:e.tone,width:(n[e.key]??0)/r*100})).filter(e=>e.width>0)}function zm({counts:e,defs:t,className:n}){let r=Im(e),i=Rm(r,Lm(r,t));return(0,z.jsx)(`div`,{className:G(`flex h-1.5 w-full overflow-hidden rounded-full bg-border/70`,n),children:i.length===0?null:i.map((e,t)=>(0,z.jsx)(`div`,{className:G(`h-full`,jm[e.tone]),style:{width:`${e.width}%`}},`${e.tone}-${t}`))})}function Bm({label:e,icon:t,counts:n,defs:r}){let i=Im(n),a=Lm(i,r),o=a.reduce((e,t)=>e+(i[t.key]??0),0);return(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1.5`,children:[(0,z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5 text-xs font-medium text-muted-foreground`,children:[(0,z.jsx)(t,{className:`size-3.5`}),e]}),(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-center gap-x-3.5 gap-y-1`,children:[a.map(e=>{let t=i[e.key]??0;return(0,z.jsxs)(`span`,{className:G(`flex items-center gap-1.5 text-xs`,t===0?`text-muted-foreground/45`:`text-foreground`),title:`${e.label}:${t}`,children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:G(`size-2 shrink-0 rounded-full`,t===0?`bg-muted-foreground/30`:jm[e.tone])}),(0,z.jsx)(`span`,{children:e.label}),(0,z.jsx)(`span`,{className:`font-mono tabular-nums`,children:t})]},e.key)}),o===0?(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground/60`,children:`暂无数据`}):null]})]})}function Vm({taskCounts:e,requirementCounts:t,selfTestCounts:n,acceptanceCounts:r}){return(0,z.jsx)(`div`,{className:`grid gap-3 lg:grid-cols-2`,children:[{key:`requirement`,label:`需求状态`,icon:Se,counts:t,defs:Nm},{key:`task`,label:`任务状态`,icon:Qe,counts:e,defs:Mm},{key:`selfTest`,label:`AI 自测`,icon:ie,counts:n,defs:Pm},{key:`acceptance`,label:`人工验收`,icon:Bt,counts:r,defs:Fm}].map(e=>(0,z.jsx)(`div`,{className:`rounded-lg border bg-card px-3.5 py-2.5`,children:(0,z.jsx)(Bm,{label:e.label,icon:e.icon,counts:e.counts,defs:e.defs})},e.key))})}function Hm(e){let t=new Date(e).getTime();if(Number.isNaN(t))return`—`;let n=Date.now()-t,r=6e4,i=60*r,a=24*i;return n<r?`刚刚`:n<i?`${Math.floor(n/r)} 分钟前`:n<a?`${Math.floor(n/i)} 小时前`:n<7*a?`${Math.floor(n/a)} 天前`:n<30*a?`${Math.floor(n/(7*a))} 周前`:new Date(e).toLocaleDateString(`zh-CN`)}function Um({value:e}){let t=async()=>{try{await navigator.clipboard.writeText(e),dn.success(`已复制 ${e}`)}catch{dn.error(`复制失败,请手动选择文本`)}};return(0,z.jsx)(Pl,{content:`复制 ${e}`,children:(0,z.jsxs)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),t()},"aria-label":`复制 ${e}`,className:`group/copy inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded px-1 py-0.5 font-mono text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,children:[(0,z.jsx)(`span`,{children:e}),(0,z.jsx)(Oe,{className:`size-3 shrink-0 opacity-0 transition-opacity group-hover/copy:opacity-70`})]})})}function Wm({status:e}){if(e.length===0)return(0,z.jsx)(q,{variant:`muted`,children:`—`});if(e===`已完成`)return(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 whitespace-nowrap text-xs font-medium text-success`,children:[(0,z.jsx)(ce,{className:`size-3.5 shrink-0`}),`已完成`]});let t=Zl[e]??`muted`;return(0,z.jsx)(q,{variant:t,children:e})}function Gm(e){return e===`未开始`?``:e}function Km(e,t){return t===`未开始`?``:e}function qm({value:e}){if(e.length===0)return(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`—`});if(e.startsWith(`免测`)){let t=e.replace(/^免测\s*[((]/,``).replace(/[))]$/,``);return(0,z.jsx)(Pl,{content:t.length>0?`免测:${t}`:`免测`,children:(0,z.jsx)(q,{variant:`warning`,children:`免测`})})}return e===`通过`?(0,z.jsx)(q,{variant:`success`,children:`通过`}):e===`失败`?(0,z.jsx)(q,{variant:`destructive`,children:`失败`}):(0,z.jsx)(q,{variant:`muted`,children:e})}function Jm({value:e}){return e.length===0?(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`—`}):(0,z.jsx)(q,{variant:e===`验收通过`?`success`:e===`验收驳回`?`destructive`:`warning`,children:e.replace(/^验收/,``)})}function Ym({title:e,count:t}){return(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`h3`,{className:`text-sm font-medium`,children:e}),t===void 0?null:(0,z.jsx)(`span`,{className:`rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground`,children:t}),(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`h-px min-w-6 flex-1 bg-border`})]})}var Xm=[`bg-sky-100 text-sky-700 dark:bg-sky-900/60 dark:text-sky-300`,`bg-violet-100 text-violet-700 dark:bg-violet-900/60 dark:text-violet-300`,`bg-emerald-100 text-emerald-700 dark:bg-emerald-900/60 dark:text-emerald-300`,`bg-amber-100 text-amber-700 dark:bg-amber-900/60 dark:text-amber-300`,`bg-rose-100 text-rose-700 dark:bg-rose-900/60 dark:text-rose-300`,`bg-cyan-100 text-cyan-700 dark:bg-cyan-900/60 dark:text-cyan-300`];function Zm({name:e,className:t}){let n=0;for(let t of e)n=(n*31+t.charCodeAt(0))%997;let r=Xm[n%Xm.length];return(0,z.jsx)(`span`,{className:G(`flex size-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold uppercase`,r,t),children:e.slice(0,2)})}function Qm(e){let t=new Map;for(let n of e){let e=t.get(n.year)??[];e.push(n),t.set(n.year,e)}return[...t.entries()].sort((e,t)=>t[0]-e[0])}function $m(e){let t=new URLSearchParams;e.source===`remote`&&t.set(`source`,`remote`),e.iteration!==void 0&&e.iteration.length>0&&t.set(`iteration`,e.iteration);let n=t.toString();window.location.hash=n.length===0?`iterations`:`iterations?${n}`}function eh({title:e,description:t,action:n}){return(0,z.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-2`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h3`,{className:`text-sm font-semibold tracking-tight`,children:e}),t===void 0?null:(0,z.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:t})]}),n]})}function th(){let{snapshot:e,draft:t}=ou(),n=t?.profile.developer??``,r=t?.docs.root??``,i=r.trim().length>0,[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(i),[h,g]=(0,v.useState)(null);(0,v.useEffect)(()=>{if(!i){m(!1),o(null),c(null),u(null),f(null),g(null);return}let e=!1;return m(!0),g(null),(async()=>{try{let[t,n,r]=await Promise.all([J.gitStatus().catch(()=>null),J.iterationCurrent(),J.listIterations(`local`).catch(()=>null)]);if(e)return;if(f(t),o(n),u(r),n.iteration===null){c(null),m(!1);return}let i=await J.iterationSummary(n.iteration,`local`).catch(()=>null);if(e)return;c(i)}catch(t){if(e)return;g(t instanceof Error?t.message:String(t))}finally{e||m(!1)}})(),()=>{e=!0}},[i,r]);let _=t?.terminals??{},y=Object.keys(_),b=y.reduce((e,t)=>e+Wl.reduce((e,n)=>e+(_[t]?.repos[n].length??0),0),0),x=e?.issues??[],S=x.filter(e=>e.level===`error`).length,C=x.filter(e=>e.level===`warning`).length,w=S>0?`destructive`:C>0?`warning`:`success`,T=S>0?`${S} error`:C>0?`${C} warning`:`健康`,E=s?.totals??null,D=s?.developers.find(e=>e.id===n)??null,O=s?.blocked.filter(e=>e.developer===n)??[],k=l?.iterations[0]?.developers.slice(0,6)??[],A=a?.iteration??null;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 rounded-lg border bg-card px-3.5 py-2.5 text-xs`,children:[(0,z.jsxs)(q,{variant:w===`success`?`success`:w===`warning`?`warning`:`destructive`,children:[(0,z.jsx)(Et,{className:`size-3`}),T]}),d===null?null:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`span`,{className:`flex items-center gap-1.5 text-muted-foreground`,children:[(0,z.jsx)(He,{className:`size-3.5`}),(0,z.jsx)(`span`,{className:`max-w-64 truncate font-mono`,children:d.branch??`detached HEAD`})]}),d.behind>0?(0,z.jsxs)(q,{variant:`warning`,children:[`落后 `,d.behind,` 个提交`]}):null,d.ahead>0?(0,z.jsxs)(q,{variant:`muted`,children:[`本地领先 `,d.ahead,` 个提交`]}):null,d.dirty?(0,z.jsx)(q,{variant:`muted`,children:`工作区有未提交修改`}):null,!d.available&&d.error!==null?(0,z.jsx)(Pl,{content:d.error,children:(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`git 状态不可用`})}):null]}),(0,z.jsx)(`span`,{className:`min-w-6 flex-1`}),(0,z.jsxs)(`span`,{className:`flex items-center gap-1.5 text-muted-foreground`,children:[(0,z.jsx)(Wt,{className:`size-3.5`}),n.length===0?`未设置开发者标识`:n,(0,z.jsx)(`span`,{className:`text-border`,children:`|`}),t===null?`—`:Jl[t.profile.role]]})]}),h===null?null:(0,z.jsx)(`div`,{className:`rounded-lg border border-destructive/25 bg-destructive/8 px-3.5 py-2.5 text-xs text-destructive`,children:h}),i?p?(0,z.jsx)(su,{title:`当前迭代`,children:(0,z.jsx)(`div`,{className:`h-40 animate-pulse rounded-lg border bg-muted/30`})}):A===null?(0,z.jsx)(su,{title:`当前迭代`,description:`与当前分支对应的迭代`,children:(0,z.jsxs)(`div`,{className:`space-y-3 rounded-lg border border-dashed px-4 py-5`,children:[(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:a?.accessible===!1?a.reason??`无法读取文档仓库`:a===null?`读取失败,请检查文档仓库路径与权限`:a.candidates.length>0?`分支名同时匹配多个迭代:${a.candidates.join(`、`)}`:`当前分支未对应任何迭代目录(一迭代一分支的命名约定未命中)`}),(a?.available.length??0)===0?null:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`手动选择:`}),a?.available.map(e=>(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>$m({source:`local`,iteration:e.name}),children:e.name},e.relPath))]})]})}):E===null?(0,z.jsx)(su,{title:`当前迭代`,description:A,children:(0,z.jsxs)(`div`,{className:`rounded-lg border border-dashed px-4 py-5 text-sm text-muted-foreground`,children:[`迭代 `,A,` 的统计暂时读不出来,请打开看板查看原因。`]})}):(0,z.jsxs)(`section`,{className:`space-y-3 rounded-lg border bg-card px-4 py-4`,children:[(0,z.jsx)(eh,{title:(0,z.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[A,(0,z.jsx)(Pl,{content:`数字来自你本机工作区的文档(可能包含未提交改动)`,children:(0,z.jsx)(q,{variant:`muted`,children:`数据来源:我的工作区`})})]}),description:`${E.developers} 位成员 · ${E.requirements} 个需求 · ${E.tasks} 个任务`,action:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(Pl,{content:`进入看板查看你本机工作区的文档(含未提交修改)`,children:(0,z.jsx)(K,{variant:`default`,size:`sm`,onClick:()=>$m({source:`local`,iteration:A}),children:`我的工作区`})}),(0,z.jsx)(Pl,{content:`进入看板查看远端分支的提交快照(团队视角,只读)`,children:(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>$m({source:`remote`,iteration:A}),children:`团队快照`})})]})}),(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`div`,{className:`flex items-end justify-between gap-3`,children:[(0,z.jsxs)(`p`,{className:`text-3xl font-semibold tracking-tight tabular-nums`,children:[E.progress,`%`]}),(0,z.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[E.completedTasks,`/`,E.tasks,` 任务已完成`]})]}),(0,z.jsx)(`div`,{className:`mt-2 h-2 overflow-hidden rounded-full bg-muted`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full bg-primary transition-all`,style:{width:`${Math.max(0,Math.min(100,E.progress))}%`}})})]}),(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-4`,children:[(0,z.jsx)(lu,{label:`需求`,value:E.requirements,hint:`${E.developers} 位成员参与`}),(0,z.jsx)(lu,{label:`任务`,value:E.tasks,hint:`已完成 ${E.completedTasks}`}),(0,z.jsx)(lu,{label:`待验收`,value:E.taskStatusCounts.待验收??0,hint:`等待人工验收`,tone:`warning`}),(0,z.jsx)(lu,{label:`阻塞任务`,value:s?.blocked.length??0,hint:`前置依赖未完成`,tone:s!==null&&s.blocked.length>0?`destructive`:`default`})]}),(0,z.jsx)(Vm,{taskCounts:E.taskStatusCounts,requirementCounts:E.requirementStatusCounts,selfTestCounts:E.selfTestCounts,acceptanceCounts:E.acceptanceCounts}),E.errors>0||E.warnings>0?(0,z.jsxs)(`p`,{className:`text-xs text-warning`,children:[`文档校验:`,E.errors,` 个 error、`,E.warnings,` 个 warning,置信度受影响。`]}):null]}):(0,z.jsx)(su,{title:`当前迭代`,description:`配置文档仓库后,这里会显示你所在迭代的进度`,children:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 rounded-lg border border-dashed px-4 py-6`,children:[(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`尚未配置文档仓库。`}),(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>window.location.hash=`settings`,children:`去设置`})]})}),A===null?null:(0,z.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-2`,children:[(0,z.jsxs)(`section`,{className:`space-y-3 rounded-lg border bg-card px-4 py-4`,children:[(0,z.jsx)(eh,{title:`我的待办`,description:n.length===0?`未设置开发者标识`:`${n} 的任务`}),D===null?(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n.length===0?`在设置里填写开发者标识后,这里会显示你自己的任务。`:`你在这个迭代里没有任务文档。`}):(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-3`,children:[(0,z.jsx)(lu,{label:`待验收`,value:D.statusCounts.待验收??0,hint:`等待验收`,tone:(D.statusCounts.待验收??0)>0?`warning`:`default`}),(0,z.jsx)(lu,{label:`进行中`,value:D.statusCounts.进行中??0,hint:`开发中`,tone:(D.statusCounts.进行中??0)>0?`primary`:`default`}),(0,z.jsx)(lu,{label:`我阻塞了`,value:O.length,hint:`依赖我的未完成任务`,tone:O.length>0?`warning`:`default`})]}),D===null?null:(0,z.jsxs)(`p`,{className:`flex items-center gap-1.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(fe,{className:`size-3.5`}),`我的任务完成 `,D.stats.completedTasks,`/`,D.stats.tasks,`(`,D.stats.requirements,` 个需求)`]})]}),(0,z.jsxs)(`section`,{className:`space-y-3 rounded-lg border bg-card px-4 py-4`,children:[(0,z.jsx)(eh,{title:`最近更新`,description:l?.iterations[0]===void 0?``:`${l.iterations[0].relPath} 的成员文档`,action:(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,onClick:()=>$m({source:`local`,iteration:A}),children:[`查看全部`,(0,z.jsx)(ee,{className:`size-3.5`})]})}),k.length===0?(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`没有可显示的文档。`}):(0,z.jsx)(`ul`,{className:`space-y-1.5`,children:k.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>window.location.hash=`iterations?tab=doc&dev=${encodeURIComponent(e.id)}`,className:`flex w-full items-center justify-between gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-accent/50`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`truncate font-medium`,children:e.id}),e.id===n?(0,z.jsx)(q,{variant:`muted`,children:`我`}):null,(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[(e.size/1024).toFixed(0),` KB`]})]}),(0,z.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs text-muted-foreground`,children:[(0,z.jsx)(we,{className:`size-3`}),Hm(e.mtime)]})]})},e.id))})]})]}),(0,z.jsx)(su,{title:`配置`,description:`与设置页一致,改动后立即生效`,children:(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-4`,children:[(0,z.jsx)(lu,{icon:(0,z.jsx)(ot,{}),label:`执行终端`,value:y.length,hint:`PRD 来源映射`}),(0,z.jsx)(lu,{icon:(0,z.jsx)(Pe,{}),label:`本地仓库`,value:b,hint:`前后端合计`}),(0,z.jsx)(lu,{icon:(0,z.jsx)(Qe,{}),label:`文档仓库`,value:i?`已配置`:`未配置`,hint:i?r:`在设置页填写路径`,tone:i?`default`:`warning`}),(0,z.jsx)(lu,{icon:(0,z.jsx)(Et,{}),label:`配置校验`,value:x.length===0?`通过`:`${x.length} 条`,hint:x.length===0?`与 ylcwf doctor 一致`:`展开下方明细`,tone:S>0?`destructive`:C>0?`warning`:`success`,progress:x.length===0?100:void 0})]})}),x.length===0?null:(0,z.jsx)(su,{title:`校验问题`,description:`与 ylcwf doctor 使用同一套规则`,children:(0,z.jsx)(du,{issues:x})})]})}var nh=/^[a-z][a-z0-9]*$/;function rh(){let{draft:e,mutate:t}=ou(),n=e?.profile.developer??``,r=e?.profile.role??`frontend`,i=n.length===0||nh.test(n)?void 0:`必须是小写字母开头的字母数字串(姓名小写全拼)`;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(su,{title:`开发者标识`,description:`个人任务文档文件名,也是文档中「负责人」的取值`,children:(0,z.jsx)(uu,{label:`developer`,htmlFor:`developer`,hint:`姓名小写全拼,例如 zhangsan。仅允许小写字母开头,可含数字与字母。`,error:i,children:(0,z.jsx)(Al,{id:`developer`,value:n,placeholder:`yourname`,spellCheck:!1,autoComplete:`off`,className:`max-w-sm font-mono`,onChange:e=>t(t=>{t.profile.developer=e.target.value.trim()})})})}),(0,z.jsx)(su,{title:`默认角色`,description:`决定写文档时使用的模板与「负责范围」;不影响可录入的仓库数量`,children:(0,z.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-3`,children:Kl.map(e=>{let n=r===e;return(0,z.jsxs)(`button`,{type:`button`,onClick:()=>t(t=>{t.profile.role=e}),className:G(`group relative flex flex-col gap-2 rounded-xl border p-4 text-left transition-all`,n?`border-primary/60 bg-primary/5 shadow-sm ring-1 ring-primary/20`:`hover:border-border hover:bg-accent/40`),children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(`span`,{className:`text-sm font-medium`,children:Jl[e]}),(0,z.jsx)(`span`,{className:G(`flex size-4 items-center justify-center rounded-full border transition`,n?`border-primary bg-primary text-primary-foreground`:`border-muted-foreground/30`),children:n?(0,z.jsx)(ce,{className:`size-2.5`}):null})]}),(0,z.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:Yl[e]})]},e)})})})]})}function ih({value:e,onPick:t,title:n,description:r,label:i=`选择`,disabled:a=!1}){let[o,s]=(0,v.useState)(!1),c=async()=>{let r=await J.pickDirectory({title:n??`选择目录`,defaultPath:e.trim().length>0?e.trim():null});r.ok?r.path!==null&&t(r.path):s(!0)};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`h-8 shrink-0 gap-1 px-2 text-xs`,disabled:a,onClick:()=>void c(),children:[(0,z.jsx)(Ie,{className:`size-3.5`}),i]}),(0,z.jsx)(nm,{open:o,initialPath:e.trim().length===0?void 0:e.trim(),title:n,description:r,onOpenChange:s,onPick:e=>{t(e),s(!1)}})]})}function ah(){let{draft:e,mutate:t,snapshot:n}=ou(),r=e?.docs.root??``,[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(null),c=async()=>{if(r.trim().length!==0){a(!0);try{s(await J.inspect(r.trim()))}finally{a(!1)}}},l=n?.issues.find(e=>e.where===`docs.root`&&e.level===`error`);return(0,z.jsx)(z.Fragment,{children:(0,z.jsxs)(su,{title:`文档仓库路径`,description:`迭代任务文档仓库的绝对路径,需包含 skills/iteration-task-docs/`,actions:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,onClick:()=>void c(),disabled:i||r.length===0,children:[i?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(Re,{className:`size-3.5`}),`检查路径`]}),children:[(0,z.jsx)(uu,{label:`docs.root`,htmlFor:`docs-root`,error:l?.message,children:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(Al,{id:`docs-root`,value:r,placeholder:`/Users/you/develop/iteration-task-repo`,spellCheck:!1,autoComplete:`off`,className:`font-mono text-xs`,onChange:e=>t(t=>{t.docs.root=e.target.value.trim(),s(null)})}),(0,z.jsx)(ih,{value:r,title:`选择文档仓库目录`,description:`逐层进入文档仓库根目录后点「选择此目录」;需包含 skills/iteration-task-docs。`,onPick:e=>t(t=>{t.docs.root=e,s(null)})})]})}),o===null?null:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs`,children:[(0,z.jsx)(fu,{ok:o.exists,text:o.exists?`路径存在`:`路径不存在`}),(0,z.jsx)(fu,{ok:o.isGit,text:o.isGit?`git 仓库`:`非 git 仓库`}),o.hasDocsSkill===void 0?null:(0,z.jsx)(fu,{ok:o.hasDocsSkill,text:o.hasDocsSkill?`含 iteration-task-docs`:`缺少 iteration-task-docs`}),(0,z.jsx)(fu,{ok:(o.iterationYears??[]).length>0,text:(o.iterationYears??[]).length>0?`迭代年份:${(o.iterationYears??[]).join(`、`)}`:`尚无 iterations/<年份>/ 目录`})]}),(0,z.jsx)(mu,{children:`该路径只存于本机配置,不写进业务仓库。修改后点击右上角「保存」,再回到概览确认校验结果。`})]})})}var oh=typeof navigator<`u`&&/Windows/i.test(navigator.userAgent)?`E:\\IdeaProjects\\your-repo`:`/Users/you/develop/your-repo`;function sh(e,t){return{name:e,frontend:[...t.repos.frontend],backend:[...t.repos.backend]}}function ch({side:e,path:t,status:n,onChange:r,onRemove:i,onPick:a}){return(0,z.jsxs)(`div`,{className:`group flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`w-10 shrink-0 text-xs text-muted-foreground`,children:ql[e]}),(0,z.jsx)(Al,{value:t,spellCheck:!1,autoComplete:`off`,placeholder:oh,className:`font-mono text-xs`,onChange:e=>r(e.target.value)}),(0,z.jsx)(ih,{value:t,onPick:a,title:`选择仓库目录`,description:`逐层进入仓库根目录后点「选择此目录」;Windows 与 macOS 路径均可。`}),n===void 0?null:n.exists?(0,z.jsx)(fe,{className:G(`size-4 shrink-0`,n.isGit?`text-success`:`text-warning`)}):(0,z.jsx)(be,{className:`size-4 shrink-0 text-destructive`}),(0,z.jsx)(K,{variant:`ghost`,size:`icon`,className:`shrink-0`,onClick:i,children:(0,z.jsx)(It,{className:`size-3.5 text-muted-foreground`})})]})}function lh({open:e,initial:t,existingNames:n,catalog:r,onOpenChange:i,onSubmit:a}){let[o,s]=(0,v.useState)(t??{name:``,frontend:[],backend:[]}),[c,l]=(0,v.useState)(null);(0,v.useEffect)(()=>{e&&(s(t??{name:``,frontend:[],backend:[]}),l(null))},[e,t]);let u=t?.name??null,d=n.filter(e=>e!==u),f=(e,t,n)=>{s(r=>{let i={...r,[e]:[...r[e]]};return i[e][t]=n,i})},p=(e,t)=>{s(n=>({...n,[e]:n[e].filter((e,n)=>n!==t)}))};return(0,z.jsx)(Hp,{open:e,onOpenChange:i,children:(0,z.jsxs)(Up,{children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:t===null?`新增执行终端`:`编辑「${t.name}」`}),(0,z.jsx)(Kp,{children:`执行终端名取自 PRD 中的写法,可含中文;每端可配置多个仓库。`})]}),(0,z.jsxs)(`div`,{className:`space-y-4`,children:[(0,z.jsx)(uu,{label:`执行终端名`,htmlFor:`terminal-name`,hint:t===null?r.length>0?`只能从文档仓库 execution_terminals.json 中选择`:`文档仓库未提供 execution_terminals.json,按 PRD 写法自由输入`:`名字来自文档仓库 execution_terminals.json,重命名请删除后重新添加`,children:t===null?r.length>0?(0,z.jsxs)(Jp,{value:o.name,onValueChange:e=>{s(t=>({...t,name:e})),l(null)},children:[(0,z.jsx)(Qp,{id:`terminal-name`,children:(0,z.jsx)(Yp,{placeholder:`选择执行终端`})}),(0,z.jsx)($p,{children:r.map(e=>(0,z.jsx)(em,{value:e,children:e},e))})]}):(0,z.jsx)(Al,{id:`terminal-name`,value:o.name,placeholder:`示例执行终端-A`,onChange:e=>{s(t=>({...t,name:e.target.value})),l(null)}}):(0,z.jsx)(Al,{id:`terminal-name`,value:o.name,readOnly:!0,className:`bg-muted/40`})}),Wl.map(e=>(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsxs)(`span`,{className:`text-sm font-medium`,children:[ql[e],`仓库`]}),(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,className:`h-7 gap-1 text-xs`,onClick:()=>s(t=>({...t,[e]:[...t[e],``]})),children:[(0,z.jsx)(ft,{className:`size-3`}),`添加`]})]}),o[e].length===0?(0,z.jsxs)(`p`,{className:`rounded-md border border-dashed px-3 py-2.5 text-xs text-muted-foreground`,children:[`未配置`,ql[e],`仓库`]}):(0,z.jsx)(`div`,{className:`space-y-2`,children:o[e].map((t,n)=>(0,z.jsx)(ch,{side:e,path:t,status:void 0,onChange:t=>f(e,n,t),onRemove:()=>p(e,n),onPick:t=>f(e,n,t)},`${e}-${n}`))})]},e)),c===null?null:(0,z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-md border border-destructive/30 bg-destructive/8 px-3 py-2 text-xs text-destructive`,children:[(0,z.jsx)(Rt,{className:`size-3.5`}),c]})]}),(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>i(!1),children:`取消`}),(0,z.jsx)(K,{size:`sm`,onClick:()=>{let e=o.name.trim();if(e.length===0)return l(`执行终端名不能为空`);if(e.includes(`.`))return l(`执行终端名不能包含「.」`);if(d.includes(e))return l(`执行终端名已存在`);let t=o.frontend.map(e=>e.trim()).filter(e=>e.length>0),n=o.backend.map(e=>e.trim()).filter(e=>e.length>0);for(let e of[...t,...n])if(!El(e))return l(`仓库路径必须是绝对路径:${e}`);if(new Set(t).size!==t.length)return l(`前端仓库存在重复路径`);if(new Set(n).size!==n.length)return l(`后端仓库存在重复路径`);a({name:e,frontend:t,backend:n},u),i(!1)},children:t===null?`添加`:`保存修改`})]})]})})}function uh(){let{draft:e,mutate:t,snapshot:n}=ou(),[r,i]=(0,v.useState)(()=>new URLSearchParams(window.location.search).get(`q`)??``),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(!1),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)({}),[h,g]=(0,v.useState)([]);(0,v.useEffect)(()=>{let e=!1;return J.terminalCatalog().then(t=>{e||g(t.terminals.map(e=>e.name))}).catch(()=>void 0),()=>{e=!0}},[]);let _=e?.terminals??{},y=(0,v.useMemo)(()=>Object.keys(_).sort((e,t)=>e.localeCompare(t,`zh-CN`)),[_]);(0,v.useEffect)(()=>{let e=r.trim();if(e.length===0){o(null);return}let t=!1,n=setTimeout(()=>{J.resolve(e).then(e=>{t||o(e)}).catch(()=>{t||o(null)})},250);return()=>{t=!0,clearTimeout(n)}},[r]);let b=r.trim(),x=b.length===0?y:a?.matched===!0&&a.terminal!==null?y.filter(e=>e===a.terminal):y.filter(e=>e.toLowerCase().includes(b.toLowerCase())),S=(0,v.useMemo)(()=>y.flatMap(e=>Wl.flatMap(t=>_[e]?.repos[t]??[])),[y,_]),C=S.join(`\0`);(0,v.useEffect)(()=>{if(S.length===0){m({});return}let e=!1;return Promise.all(S.map(e=>J.inspect(e).then(t=>[e,t]))).then(t=>{e||m(Object.fromEntries(t))}).catch(()=>void 0),()=>{e=!0}},[C]);let w=(e,n)=>{t(t=>{n!==null&&n!==e.name&&delete t.terminals[n],t.terminals[e.name]={repos:{frontend:e.frontend,backend:e.backend}}})},T=e=>{t(t=>{delete t.terminals[e]}),f(null)};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(su,{title:`PRD执行终端-本地仓库映射表`,description:`执行终端名用 PRD 中的写法;一端多个仓库时,解析会要求显式选择`,actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(`div`,{className:`relative hidden sm:block`,children:[(0,z.jsx)(St,{className:`pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground`}),(0,z.jsx)(Al,{value:r,placeholder:`搜索执行终端`,className:`h-8 w-44 pl-8 text-xs`,onChange:e=>i(e.target.value)})]}),(0,z.jsxs)(K,{size:`sm`,onClick:()=>{u(null),c(!0)},children:[(0,z.jsx)(ft,{className:`size-3.5`}),`新增执行终端`]})]}),children:[b.length===0?null:(0,z.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 rounded-lg border bg-muted/40 px-3 py-2 text-xs`,children:a===null?(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`解析中…`}):a.matched?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(q,{variant:`success`,children:`命中`}),(0,z.jsxs)(`span`,{className:`text-muted-foreground`,children:[a.matchedBy===null?``:Xl[a.matchedBy],` `,`→`]}),(0,z.jsx)(`span`,{className:`font-medium`,children:a.terminal}),[...a.repos.frontend,...a.repos.backend].length>1?(0,z.jsx)(q,{variant:`warning`,children:`多仓库,Agent 会先询问`}):null]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`未命中,候选(需人工确认):`}),a.candidates.length===0?(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`无`}):a.candidates.map(e=>(0,z.jsx)(`button`,{type:`button`,className:`rounded border bg-background px-2 py-0.5 transition-colors hover:bg-accent`,onClick:()=>i(e),children:e},e))]})}),y.length===0?(0,z.jsx)(pu,{icon:(0,z.jsx)(ot,{className:`size-5`}),title:`还没有配置执行终端`,description:`添加一个执行终端,把 PRD 里的写法映射到本地仓库;支持中文名与多个仓库。`,action:(0,z.jsxs)(K,{size:`sm`,onClick:()=>{u(null),c(!0)},children:[(0,z.jsx)(ft,{className:`size-3.5`}),`新增执行终端`]})}):x.length===0?(0,z.jsxs)(`p`,{className:`rounded-lg border border-dashed px-4 py-8 text-center text-xs text-muted-foreground`,children:[`没有匹配「`,r,`」的执行终端`]}):(0,z.jsx)(`div`,{className:`space-y-3`,children:x.map(e=>{let t=_[e];return t===void 0?null:(0,z.jsx)(Ol,{className:`gap-3 py-4`,children:(0,z.jsxs)(kl,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`min-w-0 space-y-1.5`,children:[(0,z.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:(0,z.jsx)(`span`,{className:`text-sm font-medium`,children:e})}),(0,z.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:Wl.map(e=>`${ql[e]} ${t.repos[e].length}`).join(` · `)})]}),(0,z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,z.jsx)(K,{variant:`ghost`,size:`sm`,className:`h-7 text-xs`,onClick:()=>{u(sh(e,t)),c(!0)},children:`编辑`}),(0,z.jsx)(K,{variant:`ghost`,size:`icon`,onClick:()=>f(e),children:(0,z.jsx)(It,{className:`size-3.5 text-muted-foreground`})})]})]}),(0,z.jsx)(`div`,{className:`space-y-1.5`,children:Wl.map(e=>{let n=t.repos[e];return n.length===0?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,z.jsx)(`span`,{className:`w-10`,children:ql[e]}),(0,z.jsx)(`span`,{className:`rounded border border-dashed px-2 py-0.5`,children:`未配置`})]},e):n.map(t=>{let n=p[t];return(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`w-10 shrink-0 text-xs text-muted-foreground`,children:ql[e]}),(0,z.jsx)(`code`,{className:`min-w-0 flex-1 truncate rounded bg-muted/60 px-2 py-1 font-mono text-xs`,children:t}),n===void 0?null:n.exists?(0,z.jsx)(q,{variant:n.isGit?`success`:`warning`,children:n.isGit?`存在`:`非 git`}):(0,z.jsx)(q,{variant:`destructive`,children:`不存在`})]},`${e}-${t}`)})})})]})},e)})}),n!==null&&n.issues.some(e=>e.where?.startsWith(`terminals`))?(0,z.jsx)(mu,{children:`执行终端相关的问题会显示在「概览 → 校验结果」中;保存后即可看到最新结果。`}):null]}),(0,z.jsx)(lh,{open:s,initial:l,existingNames:y,catalog:h,onOpenChange:c,onSubmit:w}),(0,z.jsx)(Hp,{open:d!==null,onOpenChange:e=>e?void 0:f(null),children:(0,z.jsxs)(Up,{className:`max-w-md`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:`删除执行终端`}),(0,z.jsxs)(Kp,{children:[`确认删除「`,d,`」?该操作会在保存后写入配置文件。`]})]}),(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>f(null),children:`取消`}),(0,z.jsx)(K,{variant:`destructive`,size:`sm`,onClick:()=>d!==null&&T(d),children:`删除`})]})]})})]})}function dh(e){return new Date(e).toLocaleString(`zh-CN`,{hour12:!1})}function fh(e){return e<1024?`${e} B`:`${(e/1024).toFixed(1)} KB`}function ph(){let{snapshot:e,restore:t,saving:n}=ou(),[r,i]=(0,v.useState)(null),a=e?.backups??[];return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(su,{title:`配置备份`,description:`每次保存前自动备份,最多保留 10 份;回滚会先备份当前文件`,actions:(0,z.jsxs)(q,{variant:`muted`,children:[a.length,` 份`]}),children:[a.length===0?(0,z.jsx)(pu,{icon:(0,z.jsx)(gt,{className:`size-5`}),title:`暂无备份`,description:`第一次保存配置后,这里会出现历史版本,可用于对比与回滚。`}):(0,z.jsx)(`div`,{className:`space-y-2`,children:a.map((e,t)=>(0,z.jsx)(Ol,{className:`gap-0 py-3`,children:(0,z.jsxs)(kl,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`text-xs font-medium`,children:dh(e.mtime)}),t===0?(0,z.jsx)(q,{variant:`secondary`,children:`最新`}):null]}),(0,z.jsxs)(`p`,{className:`truncate font-mono text-[10px] text-muted-foreground`,title:e.name,children:[e.name,` · `,fh(e.size)]})]}),(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`shrink-0 gap-1.5 text-xs`,onClick:()=>i(e.name),children:[(0,z.jsx)(vt,{className:`size-3`}),`回滚`]})]})},e.name))}),(0,z.jsx)(mu,{children:`回滚会覆盖当前配置文件。若当前存在未保存的修改,回滚后这些修改会被丢弃。`})]}),(0,z.jsx)(Hp,{open:r!==null,onOpenChange:e=>e?void 0:i(null),children:(0,z.jsxs)(Up,{className:`max-w-md`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:`回滚到该备份`}),(0,z.jsxs)(Kp,{children:[`将用 `,(0,z.jsx)(`code`,{className:`font-mono text-xs`,children:r}),` 覆盖当前配置,系统会先把当前文件再备份一次。`]})]}),(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>i(null),children:`取消`}),(0,z.jsxs)(K,{size:`sm`,disabled:n,onClick:()=>{if(r===null)return;let e=r;i(null),t(e)},children:[n?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(vt,{className:`size-3.5`}),`确认回滚`]})]})]})})]})}var mh={profile:`profile`,docs:`docs`,terminals:`terminals`,backups:`backups`};function hh(){let[e,t]=window.location.hash.replace(`#`,``).split(`?`);return new URLSearchParams(t??``).get(`tab`)??mh[e??``]??`about`}function gh(){let{snapshot:e,draft:t,mutate:n}=ou(),r=Am(),i=lm(),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(!1),[l,u]=(0,v.useState)(!1),d=e?.issues.filter(e=>e.level===`error`).length??0,f=e?.issues.filter(e=>e.level===`warning`).length??0,p=e?.backups.length??0,[m,h]=(0,v.useState)(null),[g,_]=(0,v.useState)(!1),[y,b]=(0,v.useState)(()=>hh());(0,v.useEffect)(()=>{let e=()=>b(hh());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]);let x=e=>{b(e);let t=new URL(window.location.href);t.hash=`settings?tab=${e}`,window.history.replaceState(null,``,t)},S=[{id:`profile`,label:`身份`,icon:Ht},{id:`docs`,label:`文档仓库`,icon:Pe},{id:`terminals`,label:`PRD执行终端映射`,icon:ot},{id:`backups`,label:`备份`,icon:gt},{id:`about`,label:`关于`,icon:Je}],C=async()=>{_(!0);try{h(await J.updateCheck(!0))}catch(t){h({current:e?.meta.version??``,latest:null,hasUpdate:!1,downloadUrl:null,source:`none`,checkedAt:new Date().toISOString(),error:t instanceof Error?t.message:String(t)})}finally{_(!1)}};(0,v.useEffect)(()=>{J.updateCheck(!1).then(h).catch(()=>void 0)},[]);let w=async()=>{c(!0);try{await J.reset(l),window.location.reload()}finally{c(!1),o(!1)}},T=()=>{if(t===null)return;let e=new Blob([JSON.stringify(t,null,2)],{type:`application/json`}),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=`ylcwf-config.json`,r.click(),URL.revokeObjectURL(n)},E=(0,z.jsx)(`nav`,{"aria-label":`设置分区`,className:`flex gap-1 overflow-x-auto rounded-xl border bg-card p-2 lg:flex-col lg:overflow-visible`,children:S.map(e=>{let t=e.icon,n=y===e.id;return(0,z.jsxs)(`button`,{type:`button`,"aria-current":n?`page`:void 0,onClick:()=>x(e.id),className:G(`relative flex shrink-0 items-center gap-2.5 rounded-lg px-3 py-2 text-sm transition-colors`,n?`bg-primary/8 font-medium text-foreground before:absolute before:inset-y-1.5 before:left-0 before:w-0.5 before:rounded-full before:bg-primary`:`text-muted-foreground hover:bg-accent/50 hover:text-foreground`),children:[(0,z.jsx)(t,{className:`size-4 shrink-0`}),e.label]},e.id)})});return(0,z.jsxs)(`div`,{className:`flex h-full min-h-0 animate-fade-up flex-col gap-4 p-6 lg:flex-row lg:gap-6`,children:[(0,z.jsx)(`aside`,{className:`shrink-0 lg:w-[200px]`,children:E}),(0,z.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto lg:pr-2`,children:(0,z.jsxs)(`div`,{className:`max-w-3xl space-y-6 pb-10`,children:[y===`profile`?(0,z.jsx)(rh,{}):null,y===`docs`?(0,z.jsx)(ah,{}):null,y===`terminals`?(0,z.jsx)(uh,{}):null,y===`backups`?(0,z.jsx)(ph,{}):null,y===`about`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(su,{title:`外观`,description:`深浅模式与主题色,仅保存在本机浏览器`,children:(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsx)(`div`,{className:`flex w-fit items-center gap-1 rounded-lg border p-0.5`,children:[`system`,`light`,`dark`].map(e=>(0,z.jsxs)(`button`,{type:`button`,onClick:()=>km(e),className:G(`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs transition-colors`,r.mode===e?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`),children:[e===`system`?(0,z.jsx)(nt,{className:`size-3.5`}):e===`dark`?(0,z.jsx)(it,{className:`size-3.5`}):(0,z.jsx)(Pt,{className:`size-3.5`}),_m[e]]},e))}),(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:rm.map(e=>{let t=i===e.id;return(0,z.jsxs)(`button`,{type:`button`,onClick:()=>dm(e.id),style:t?{borderColor:e.dot}:void 0,className:G(`flex items-center gap-2 rounded-full border-2 px-3.5 py-1.5 text-xs transition-colors`,t?`font-medium text-foreground`:`border-border text-muted-foreground hover:border-muted-foreground/40 hover:text-foreground`),children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`size-3.5 shrink-0 rounded-full ring-1 ring-black/10 dark:ring-white/20`,style:{backgroundColor:e.dot}}),e.label]},e.id)})})]})}),(0,z.jsx)(su,{title:`配置文件`,description:`CLI 与桌面端共享配置`,children:(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg bg-muted/50 px-4 py-3`,children:[(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`路径`}),e===null?null:d>0?(0,z.jsxs)(q,{variant:`destructive`,children:[d,` 项 error`]}):f>0?(0,z.jsxs)(q,{variant:`warning`,children:[f,` 项 warning`]}):(0,z.jsx)(q,{variant:`success`,children:`配置健康`})]}),(0,z.jsx)(`p`,{className:`truncate font-mono text-xs`,title:e?.configPath,children:e?.configPath??`—`})]}),(0,z.jsxs)(`div`,{className:`flex shrink-0 gap-1.5`,children:[(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`gap-1.5 text-xs`,onClick:()=>{J.revealConfig()},children:[(0,z.jsx)(Ie,{className:`size-3.5`}),`打开目录`]}),(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`gap-1.5 text-xs`,onClick:T,children:[(0,z.jsx)(Ae,{className:`size-3.5`}),`导出 JSON`]})]})]}),(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-3`,children:[(0,z.jsxs)(`div`,{className:`rounded-lg bg-muted/50 px-4 py-3`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`应用版本`}),(0,z.jsxs)(`div`,{className:`mt-1 flex flex-wrap items-center gap-2`,children:[(0,z.jsxs)(`span`,{className:`font-mono text-sm`,children:[`v`,e?.meta.version??`—`]}),m?.hasUpdate===!0?(0,z.jsxs)(q,{variant:`warning`,children:[`有新版 v`,m.latest]}):m!==null&&m.error===null&&m.latest!==null?(0,z.jsx)(q,{variant:`success`,children:`已是最新`}):null,(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,className:`h-6 px-2 text-xs`,disabled:g===!0,onClick:()=>void C(),children:[g===!0?(0,z.jsx)(et,{className:`size-3 animate-spin`}):null,`检查更新`]})]}),m?.error===null||m===null?null:(0,z.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:m.error}),m?.hasUpdate===!0?m.downloadUrl===null?J.mode===`electron`?(0,z.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[`v`,m.latest,` 的安装包请到 GitLab 仓库`,` `,(0,z.jsx)(`span`,{className:`font-mono`,children:`zhanyoulin/ylcwf`}),` 的`,` `,(0,z.jsx)(`span`,{className:`font-mono`,children:`release`}),` 目录下载`]}):(0,z.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[`当前界面由本地 CLI 提供,升级 CLI 后刷新即可:`,(0,z.jsx)(`code`,{className:`mx-1 rounded bg-muted px-1 py-0.5 font-mono`,children:`ylcwf upgrade`})]}):(0,z.jsxs)(`button`,{type:`button`,onClick:()=>window.open(m.downloadUrl??``,`_blank`),className:`mt-1 text-xs text-primary underline-offset-2 hover:underline`,children:[`下载 v`,m.latest]}):null]}),(0,z.jsxs)(`div`,{className:`rounded-lg bg-muted/50 px-4 py-3`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`运行模式`}),(0,z.jsx)(`p`,{className:`mt-1 text-sm`,children:J.mode===`electron`?`桌面端`:`本地浏览器`})]})]})]})}),(0,z.jsx)(su,{title:`Git 操作`,description:`状态变更后对文档仓库的 git 行为,不影响业务代码仓库`,children:(0,z.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[`cli`,`ui`].map(e=>{let r=t?.docs.git?.[e]??Gl;return(0,z.jsxs)(`div`,{className:`space-y-1.5 rounded-lg bg-muted/40 px-4 py-3`,children:[(0,z.jsx)(`p`,{className:`text-xs font-medium`,children:e===`cli`?`CLI / Agent 调用`:`界面操作`}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,z.jsx)(`input`,{type:`checkbox`,className:`size-3.5 accent-primary`,checked:r.commit,onChange:t=>n(n=>{n.docs.git[e].commit=t.target.checked,t.target.checked||(n.docs.git[e].push=!1)})}),`自动提交`]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,z.jsx)(`input`,{type:`checkbox`,className:`size-3.5 accent-primary`,checked:r.push,disabled:!r.commit,onChange:t=>n(n=>{n.docs.git[e].push=t.target.checked,t.target.checked&&(n.docs.git[e].commit=!0)})}),`提交后推送`]})]},e)})})}),(0,z.jsx)(su,{title:`清除配置`,description:`删除本机配置,下次启动会重新进入首次引导;配置备份默认保留`,children:(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg border border-destructive/25 bg-destructive/5 px-4 py-3`,children:[(0,z.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,z.jsx)(`p`,{className:`text-sm font-medium`,children:`从零重新开始`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`将删除 ~/.ylcwf/config.yaml,不可撤销。备份目录 backups/ 默认保留,可用于回滚;需要一并清空请在确认时勾选。`})]}),(0,z.jsxs)(K,{variant:`destructive`,size:`sm`,className:`shrink-0 gap-1.5`,onClick:()=>{u(!1),o(!0)},children:[(0,z.jsx)(It,{className:`size-3.5`}),`清除配置`]})]})}),(0,z.jsx)(Hp,{open:a,onOpenChange:e=>e?void 0:o(!1),children:(0,z.jsxs)(Up,{className:`max-w-md`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:`确认清除配置`}),(0,z.jsxs)(Kp,{children:[`将删除配置文件并回到首次引导,此操作不可撤销。`,p>0?`历史备份(${p} 份)默认保留,可在「配置备份」页回滚。`:`当前没有历史备份。`]})]}),p>0?(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,z.jsx)(`input`,{type:`checkbox`,className:`size-3.5 accent-destructive`,checked:l,disabled:s,onChange:e=>u(e.target.checked)}),`同时删除历史备份(`,p,` 份,删除后无法回滚)`]}):null,(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>o(!1),children:`取消`}),(0,z.jsx)(K,{variant:`destructive`,size:`sm`,disabled:s,onClick:()=>void w(),children:`确认清除`})]})]})})]}):null]})})]})}function _h(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var vh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bh={};function xh(e,t){return((t||bh).jsx?yh:vh).test(e)}var Sh=/[ \t\n\f\r]/g;function Ch(e){return typeof e==`object`?e.type===`text`&&wh(e.value):wh(e)}function wh(e){return e.replace(Sh,``)===``}var Th=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Th.prototype.normal={},Th.prototype.property={},Th.prototype.space=void 0;function Eh(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Th(n,r,t)}function Dh(e){return e.toLowerCase()}var Oh=class{constructor(e,t){this.attribute=t,this.property=e}};Oh.prototype.attribute=``,Oh.prototype.booleanish=!1,Oh.prototype.boolean=!1,Oh.prototype.commaOrSpaceSeparated=!1,Oh.prototype.commaSeparated=!1,Oh.prototype.defined=!1,Oh.prototype.mustUseProperty=!1,Oh.prototype.number=!1,Oh.prototype.overloadedBoolean=!1,Oh.prototype.property=``,Oh.prototype.spaceSeparated=!1,Oh.prototype.space=void 0;var kh=s({boolean:()=>X,booleanish:()=>jh,commaOrSpaceSeparated:()=>Fh,commaSeparated:()=>Ph,number:()=>Z,overloadedBoolean:()=>Mh,spaceSeparated:()=>Nh}),Ah=0,X=Ih(),jh=Ih(),Mh=Ih(),Z=Ih(),Nh=Ih(),Ph=Ih(),Fh=Ih();function Ih(){return 2**++Ah}var Lh=Object.keys(kh),Rh=class extends Oh{constructor(e,t,n,r){let i=-1;if(super(e,t),zh(this,`space`,r),typeof n==`number`)for(;++i<Lh.length;){let e=Lh[i];zh(this,Lh[i],(n&kh[e])===kh[e])}}};Rh.prototype.defined=!0;function zh(e,t,n){n&&(e[t]=n)}function Bh(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Rh(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Dh(r)]=r,n[Dh(a.attribute)]=r}return new Th(t,n,e.space)}var Vh=Bh({properties:{ariaActiveDescendant:null,ariaAtomic:jh,ariaAutoComplete:null,ariaBusy:jh,ariaChecked:jh,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Nh,ariaCurrent:null,ariaDescribedBy:Nh,ariaDetails:null,ariaDisabled:jh,ariaDropEffect:Nh,ariaErrorMessage:null,ariaExpanded:jh,ariaFlowTo:Nh,ariaGrabbed:jh,ariaHasPopup:null,ariaHidden:jh,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nh,ariaLevel:Z,ariaLive:null,ariaModal:jh,ariaMultiLine:jh,ariaMultiSelectable:jh,ariaOrientation:null,ariaOwns:Nh,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:jh,ariaReadOnly:jh,ariaRelevant:null,ariaRequired:jh,ariaRoleDescription:Nh,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:jh,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Hh(e,t){return t in e?e[t]:t}function Uh(e,t){return Hh(e,t.toLowerCase())}var Wh=Bh({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Ph,acceptCharset:Nh,accessKey:Nh,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alpha:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:Nh,autoFocus:X,autoPlay:X,blocking:Nh,capture:null,charSet:null,checked:X,cite:null,className:Nh,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:jh,controls:X,controlsList:Nh,coords:Z|Ph,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:Mh,draggable:jh,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:Nh,height:Z,hidden:Mh,high:Z,href:null,hrefLang:null,htmlFor:Nh,httpEquiv:Nh,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:Nh,itemRef:Nh,itemScope:X,itemType:Nh,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,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:X,optimum:Z,pattern:null,ping:Nh,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:Nh,required:X,reversed:X,rows:Z,rowSpan:Z,sandbox:Nh,scope:null,scoped:X,seamless:X,selected:X,shadowRootClonable:X,shadowRootCustomElementRegistry:X,shadowRootDelegatesFocus:X,shadowRootMode:null,shadowRootSerializable:X,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:jh,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:jh,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nh,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:jh,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:X,disablePictureInPicture:X,disableRemotePlayback:X,exportParts:Ph,part:Nh,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:Uh}),Gh=Bh({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:Fh,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Nh,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:X,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Ph,g2:Ph,glyphName:Ph,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Fh,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nh,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fh,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fh,rev:Fh,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fh,requiredFeatures:Fh,requiredFonts:Fh,requiredFormats:Fh,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Fh,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fh,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fh,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Hh}),Kh=Bh({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),qh=Bh({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Uh}),Jh=Bh({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Yh={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`},Xh=/[A-Z]/g,Zh=/-[a-z]/g,Qh=/^data[-\w.:]+$/i;function $h(e,t){let n=Dh(t),r=t,i=Oh;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Qh.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Zh,tg);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Zh.test(e)){let n=e.replace(Xh,eg);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Rh}return new i(r,t)}function eg(e){return`-`+e.toLowerCase()}function tg(e){return e.charAt(1).toUpperCase()}var ng=Eh([Vh,Wh,Kh,qh,Jh],`html`),rg=Eh([Vh,Gh,Kh,qh,Jh],`svg`);function ig(e){return e.join(` `).trim()}var ag=/\/\*(?:[^*]|\*(?!\/))*\*\//g,og=/\n/g,sg=/^\s*/,cg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,lg=/^:\s*/,ug=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,dg=/^[;\s]*/,fg=`
|
|
50
|
-
`,pg=`/`,mg=`*`,hg=``,gg=`comment`,_g=`declaration`;function vg(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(og);t&&(n+=t.length);var i=e.lastIndexOf(fg);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(sg)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(pg==e.charAt(0)&&mg==e.charAt(1)){for(var n=2;hg!=e.charAt(n)&&(mg!=e.charAt(n)||pg!=e.charAt(n+1));)++n;if(n+=2,hg===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:gg,comment:o})}}function f(){var e=a(),t=c(cg);if(t){if(d(),!c(lg))return s(`property missing ':'`);var n=c(ug),r=e({type:_g,property:t[0].replace(ag,hg).trim(),value:n?n[0].replace(ag,hg).trim():hg});return c(dg),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function yg(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=vg(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}var bg=Sg(`end`),xg=Sg(`start`);function Sg(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Cg(e){let t=xg(e),n=bg(e);if(t&&n)return{start:t,end:n}}function wg(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Eg(e.position):`start`in e||`end`in e?Eg(e):`line`in e||`column`in e?Tg(e):``}function Tg(e){return Dg(e&&e.line)+`:`+Dg(e&&e.column)}function Eg(e){return Tg(e&&e.start)+`-`+Tg(e&&e.end)}function Dg(e){return e&&typeof e==`number`?e:1}var Og=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=wg(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Object.defineProperties(Og.prototype,{file:{configurable:!0,enumerable:!0,value:``,writable:!0},name:{configurable:!0,enumerable:!0,value:``,writable:!0},reason:{configurable:!0,enumerable:!0,value:``,writable:!0},message:{configurable:!0,enumerable:!0,value:``,writable:!0},stack:{configurable:!0,enumerable:!0,value:``,writable:!0},column:{configurable:!0,enumerable:!0,writable:!0},line:{configurable:!0,enumerable:!0,writable:!0},ancestors:{configurable:!0,enumerable:!0,writable:!0},cause:{configurable:!0,enumerable:!0,writable:!0},fatal:{configurable:!0,enumerable:!0,writable:!0},place:{configurable:!0,enumerable:!0,writable:!0},ruleId:{configurable:!0,enumerable:!0,writable:!0},source:{configurable:!0,enumerable:!0,writable:!0}});var kg={}.hasOwnProperty,Ag=new Map,jg=/[A-Z]/g,Mg=/-([a-z])/g,Ng=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Pg=new Set([`td`,`th`]),Fg=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Ig(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=qg(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Kg(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?rg:ng,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Lg(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Lg(e,t,n){if(t.type===`element`)return Rg(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return zg(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Vg(e,t,n);if(t.type===`mdxjsEsm`)return Bg(e,t);if(t.type===`root`)return Hg(e,t,n);if(t.type===`text`)return Ug(e,t)}function Rg(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=rg,e.schema=i),e.ancestors.push(t);let a=$g(e,t.tagName,!1),o=Jg(e,t),s=Xg(e,t);return Ng.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Ch(e)})),Wg(e,o,a,t),Gg(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function zg(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}e_(e,t.position)}function Bg(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);e_(e,t.position)}function Vg(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=rg,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:$g(e,t.name,!0),o=Yg(e,t),s=Xg(e,t);return Wg(e,o,a,t),Gg(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Hg(e,t,n){let r={};return Gg(r,Xg(e,t)),e.create(t,e.Fragment,r,n)}function Ug(e,t){return t.value}function Wg(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Gg(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Kg(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function qg(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=xg(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Jg(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&kg.call(t.properties,i)){let a=Zg(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Pg.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Yg(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else e_(e,t.position)}else{let{name:i}=r,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else e_(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function Xg(e,t){let n=[],r=-1,i=e.passKeys?new Map:Ag;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Lg(e,a,o);s!==void 0&&n.push(s)}return n}function Zg(e,t,n){if(n==null||typeof n==`number`&&Number.isNaN(n))return;let r=$h(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?_h(n):ig(n)),r.property===`style`?[`style`,typeof n==`object`?e.stylePropertyNameCase===`dom`?n:t_(n):Qg(e,String(n))]:[e.elementAttributeNameCase===`react`&&r.space?Yh[r.property]||r.property:r.attribute,n]}function Qg(e,t){let n={};try{yg(t,function(t,r){if(t&&r){let i=t;i.slice(0,2)!==`--`&&(i=i.toLowerCase(),e.stylePropertyNameCase===`dom`&&(i.slice(0,4)===`-ms-`&&(i=i.slice(1)),i=i.replace(Mg,i_))),n[i]=r}})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Og("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Fg+`#cannot-parse-style-attribute`,r}return n}function $g(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=xh(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=xh(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return kg.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);e_(e)}function e_(e,t){let n=new Og("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Fg+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function t_(e){let t={},n;for(n in e)kg.call(e,n)&&(t[n_(n)]=e[n]);return t}function n_(e){if(e.slice(0,2)===`--`)return e;let t=e.replace(jg,r_);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function r_(e){return`-`+e.toLowerCase()}function i_(e,t){return t.toUpperCase()}var a_={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`]},o_={};function s_(e,t){let n=t||o_;return c_(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function c_(e,t,n){if(u_(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return l_(e.children,t,n)}return Array.isArray(e)?l_(e,t,n):``}function l_(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=c_(e[i],t,n);return r.join(``)}function u_(e){return!!(e&&typeof e==`object`)}var d_=document.createElement(`i`);function f_(e){let t=`&`+e+`;`;d_.innerHTML=t;let n=d_.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function p_(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function m_(e,t){return e.length>0?(p_(e,e.length,0,t),e):t}var h_={}.hasOwnProperty;function g_(e){let t={},n=-1;for(;++n<e.length;)__(t,e[n]);return t}function __(e,t){let n;for(n in t){let r=(h_.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){h_.call(r,a)||(r[a]=[]);let e=i[a];v_(r[a],Array.isArray(e)?e:e?[e]:[])}}}function v_(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);p_(e,0,0,r)}function y_(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function b_(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var x_=j_(/[A-Za-z]/),S_=j_(/[\dA-Za-z]/),C_=j_(/[#-'*+\--9=?A-Z^-~]/);function w_(e){return e!==null&&(e<32||e===127)}var T_=j_(/\d/),E_=j_(/[\dA-Fa-f]/),D_=j_(/[!-/:-@[-`{-~]/);function Q(e){return e!==null&&e<-2}function O_(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}var k_=j_(/\p{P}|\p{S}/u),A_=j_(/\s/);function j_(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function M_(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&S_(e.charCodeAt(n+1))&&S_(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function N_(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return $(r)?(e.enter(n),s(r)):t(r)}function s(r){return $(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function P_(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&$(t)?(e.enter(r),c(t)):l(t)}function c(t){return $(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var F_={tokenize:I_};function I_(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),N_(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return Q(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var L_=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){R_(this,e,t,n,!1)}addBefore(e,t,n){R_(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function R_(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var z_={tokenize:V_},B_={tokenize:H_};function V_(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new L_;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(B_,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(B_,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return Q(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new L_;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function H_(e,t,n){return N_(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function U_(e){if(e===null||O_(e)||A_(e))return 1;if(k_(e))return 2}function W_(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var G_={name:`attention`,resolveAll:K_,tokenize:q_};function K_(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};J_(o,-a),J_(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=m_(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=m_(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=m_(r,W_(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=m_(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=m_(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),p_(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function q_(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=U_(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=U_(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function J_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Y_={name:`autolink`,tokenize:X_};function X_(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return x_(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||S_(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||S_(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||w_(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):C_(t)?(e.consume(t),l):n(t)}function u(e){return S_(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||S_(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Z_={partial:!0,tokenize:Q_};function Q_(e,t,n){return r;function r(t){return $(t)?N_(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Q(e)?t(e):n(e)}}var $_={continuation:{tokenize:tv},exit:nv,name:`blockQuote`,tokenize:ev};function ev(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return $(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function tv(e,t,n){let r=this;return i;function i(t){return $(t)?N_(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt($_,t,n)(r)}}function nv(e){e.exit(`blockQuote`)}var rv={name:`characterEscape`,tokenize:iv};function iv(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return D_(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var av={name:`characterReference`,tokenize:ov};function ov(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=S_,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=E_,u):(e.enter(`characterReferenceValue`),a=7,o=T_,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===S_&&!f_(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var sv={partial:!0,tokenize:cv};function cv(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var lv={concrete:!0,name:`codeFenced`,tokenize:uv};function uv(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),$(t)?N_(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Q(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(sv,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):$(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),N_(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Q(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&$(t)?N_(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Q(t)?e.check(sv,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Q(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),$(t)?N_(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),$(t)?N_(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Q(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var dv={name:`codeIndented`,tokenize:pv},fv={partial:!0,tokenize:mv};function pv(e,t,n){return r;function r(t){return e.enter(`codeIndented`),P_(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Q(t)?e.attempt(fv,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Q(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function mv(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Q(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):P_(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Q(e)?i(e):n(e)}}var hv={name:`codeText`,previous:_v,resolve:gv,tokenize:vv};function gv(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function _v(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function vv(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Q(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var yv=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&bv(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),bv(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),bv(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);bv(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);bv(this.left,t.reverse())}}}};function bv(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function xv(e){let t={},n=-1,r,i,a,o,s,c,l,u=new yv(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Sv(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return p_(e,0,1/0,u.slice(0)),!l}function Sv(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Cv={resolve:Tv,tokenize:Ev},wv={partial:!0,tokenize:Dv};function Tv(e){return xv(e),e}function Ev(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Q(t)?e.check(wv,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Dv(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),N_(e,a,`linePrefix`)}function a(i){if(i===null||Q(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Ov(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||w_(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Q(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||O_(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||w_(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function kv(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Q(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Q(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!$(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Av(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),N_(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Q(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function jv(e,t){let n;return r;function r(i){return Q(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):$(i)?N_(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Mv={name:`definition`,tokenize:Pv},Nv={partial:!0,tokenize:Fv};function Pv(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return kv.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=b_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return O_(t)?jv(e,l)(t):l(t)}function l(t){return Ov(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Nv,d,d)(t)}function d(t){return $(t)?N_(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Q(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Fv(e,t,n){return r;function r(t){return O_(t)?jv(e,i)(t):n(t)}function i(t){return Av(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return $(t)?N_(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Q(e)?t(e):n(e)}}var Iv={name:`hardBreakEscape`,tokenize:Lv};function Lv(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Q(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Rv={name:`headingAtx`,resolve:zv,tokenize:Bv};function zv(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};p_(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Bv(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||O_(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Q(n)?(e.exit(`atxHeading`),t(n)):$(n)?N_(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||O_(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Vv=`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`.split(`.`),Hv=[`pre`,`script`,`style`,`textarea`],Uv={concrete:!0,name:`htmlFlow`,resolveTo:Gv,tokenize:Kv},Wv={partial:!0,tokenize:qv};function Gv(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Kv(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):x_(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):x_(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return x_(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||O_(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Hv.includes(l)?(i=1,r.interrupt?t(s):O(s)):Vv.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||S_(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return $(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||x_(t)?(e.consume(t),b):$(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||S_(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):$(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):$(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Q(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||O_(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||$(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Q(t)?O(t):$(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),ee):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):Q(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Wv,te,k)(t)):t===null||Q(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(sv,A,te)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Q(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return Hv.includes(n)?(e.consume(t),ee):O(t)}return x_(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),ee):t===45&&i===2?(e.consume(t),I):O(t)}function ee(t){return t===null||Q(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),ee)}function te(n){return e.exit(`htmlFlow`),t(n)}}function qv(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Z_,t,n)}}var Jv={name:`htmlText`,tokenize:Yv};function Yv(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):x_(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):x_(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Q(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Q(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):Q(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Q(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return x_(t)?(e.consume(t),S):n(t)}function S(t){return t===45||S_(t)?(e.consume(t),S):C(t)}function C(t){return Q(t)?(o=C,N(t)):$(t)?(e.consume(t),C):M(t)}function w(t){return t===45||S_(t)?(e.consume(t),w):t===47||t===62||O_(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||x_(t)?(e.consume(t),E):Q(t)?(o=T,N(t)):$(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||S_(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Q(t)?(o=D,N(t)):$(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):Q(t)?(o=O,N(t)):$(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):Q(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||O_(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||O_(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return $(t)?N_(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var Xv={name:`labelEnd`,resolveAll:ey,resolveTo:ty,tokenize:ny},Zv={tokenize:ry},Qv={tokenize:iy},$v={tokenize:ay};function ey(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&p_(e,0,e.length,n),e}function ty(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=m_(o,e.slice(i+1,i+r+3)),o=m_(o,[[`enter`,l,t]]),o=m_(o,W_(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=m_(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=m_(o,e.slice(a+1)),o=m_(o,[[`exit`,s,t]]),p_(e,i,e.length,o),e}function ny(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(b_(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Zv,u,o?u:d)(t):t===91?e.attempt(Qv,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt($v,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function ry(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return O_(t)?jv(e,a)(t):a(t)}function a(t){return t===41?u(t):Ov(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return O_(t)?jv(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Av(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return O_(t)?jv(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function iy(e,t,n){let r=this;return i;function i(t){return kv.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(b_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function ay(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var oy={name:`labelStartImage`,resolveAll:Xv.resolveAll,tokenize:sy};function sy(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var cy={name:`labelStartLink`,resolveAll:Xv.resolveAll,tokenize:ly};function ly(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var uy={name:`lineEnding`,tokenize:dy};function dy(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),N_(e,t,`linePrefix`)}}var fy={name:`thematicBreak`,tokenize:py};function py(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Q(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),$(t)?N_(e,s,`whitespace`)(t):s(t))}}var my={continuation:{tokenize:vy},exit:by,name:`list`,tokenize:_y},hy={partial:!0,tokenize:xy},gy={partial:!0,tokenize:yy};function _y(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:T_(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(fy,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return T_(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Z_,r.interrupt?n:u,e.attempt(hy,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return $(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function vy(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Z_,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,N_(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!$(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gy,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,N_(e,e.attempt(my,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function yy(e,t,n){let r=this;return N_(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function by(e){e.exit(this.containerState.type)}function xy(e,t,n){let r=this;return N_(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!$(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Sy={name:`setextUnderline`,resolveTo:Cy,tokenize:wy};function Cy(e,t){let n=new L_,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function wy(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),$(t)?N_(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Q(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ty={tokenize:Ey};function Ey(e){let t=this,n=e.attempt(Z_,r,e.attempt(this.parser.constructs.flowInitial,i,N_(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Cv,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Dy={resolveAll:jy()},Oy=Ay(`string`),ky=Ay(`text`);function Ay(e){return{resolveAll:jy(e===`text`?My:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function jy(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function My(e,t){let n=new L_,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var Ny=s({attentionMarkers:()=>Vy,contentInitial:()=>Fy,disable:()=>Hy,document:()=>Py,flow:()=>Ly,flowInitial:()=>Iy,insideSpan:()=>By,string:()=>Ry,text:()=>zy}),Py={42:my,43:my,45:my,48:my,49:my,50:my,51:my,52:my,53:my,54:my,55:my,56:my,57:my,62:$_},Fy={91:Mv},Iy={[-2]:dv,[-1]:dv,32:dv},Ly={35:Rv,42:fy,45:[Sy,fy],60:Uv,61:Sy,95:fy,96:lv,126:lv},Ry={38:av,92:rv},zy={[-5]:uy,[-4]:uy,[-3]:uy,33:oy,38:av,42:G_,60:[Y_,Jv],91:cy,92:[Iv,rv],93:Xv,95:G_,96:hv},By={null:[G_,Dy]},Vy={null:[42,95]},Hy={null:[]};function Uy(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=m_(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=W_(a,l.events,l),l.events):[]}function f(e,t){return Gy(p(e),t)}function p(e){return Wy(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){Q(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&p_(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Wy(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Gy(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
49
|
+
`},wd=0,Td=[];function Ed(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(wd++)[0],a=v.useState(Yu)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Tu([e.lockRef.current],(e.shards||[]).map(xd),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=yd(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=fd(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=fd(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return vd(h,t,e,h===`h`?s:c,!0)},[]),c=v.useCallback(function(e){var n=e;if(Td.length&&Td[Td.length-1]===a){var r=`deltaY`in n?bd(n):yd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Sd(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(xd).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=v.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Dd(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=v.useCallback(function(e){n.current=yd(e),r.current=void 0},[]),d=v.useCallback(function(t){l(t.type,bd(t),t.target,s(t,e.lockRef.current))},[]),f=v.useCallback(function(t){l(t.type,yd(t),t.target,s(t,e.lockRef.current))},[]);v.useEffect(function(){return Td.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,sd),document.addEventListener(`touchmove`,c,sd),document.addEventListener(`touchstart`,u,sd),function(){Td=Td.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,sd),document.removeEventListener(`touchmove`,c,sd),document.removeEventListener(`touchstart`,u,sd)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(a,{styles:Cd(i)}):null,p?v.createElement(id,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Dd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Od=zu(Bu,Ed),kd=v.forwardRef(function(e,t){return v.createElement(Hu,Cu({},e,{ref:t,sideCar:Od}))});kd.classNames=Hu.classNames;var Ad=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},jd=new WeakMap,Md=new WeakMap,Nd={},Pd=0,Fd=function(e){return e&&(e.host||Fd(e.parentNode))},Id=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Fd(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ld=function(e,t,n,r){var i=Id(t,Array.isArray(e)?e:[e]);Nd[n]||(Nd[n]=new WeakMap);var a=Nd[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(jd.get(e)||0)+1,l=(a.get(e)||0)+1;jd.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Md.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Pd++,function(){o.forEach(function(e){var t=jd.get(e)-1,i=a.get(e)-1;jd.set(e,t),a.set(e,i),t||(Md.has(e)||e.removeAttribute(r),Md.delete(e)),i||e.removeAttribute(n)}),Pd--,Pd||(jd=new WeakMap,jd=new WeakMap,Md=new WeakMap,Nd={})}},Rd=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ad(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ld(r,i,n,`aria-hidden`)):function(){return null}},zd=Object.defineProperty,Bd=(e,t)=>zd(e,`name`,{value:t,configurable:!0}),Vd=`Dialog`,[Hd,Ud]=cr(Vd),[Wd,Gd]=Hd(Vd),Kd=Bd(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),{nodes:l,registry:u}=Vr(),[d,f]=ss({prop:r,defaultProp:i??!1,onChange:a,caller:Vd}),[p,m]=v.useState(0),[h,g]=v.useState(0);return(0,z.jsx)(Wd,{scope:t,triggerRef:s,contentRef:c,contentId:ii(),titleId:ii(),descriptionId:ii(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),qd=`DialogPortal`,[Jd,Yd]=Hd(qd,{forceMount:void 0}),Xd=Bd(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Gd(qd,t);return(0,z.jsx)(Jd,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,z.jsx)(qo,{present:n||a.open,children:(0,z.jsx)(Uo,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Zd=`DialogOverlay`,Qd=v.forwardRef(Bd(function(e,t){let n=Yd(Zd,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gd(Zd,e.__scopeDialog);return a.modal?(0,z.jsx)(qo,{present:r||a.open,children:(0,z.jsx)(ef,{...i,ref:t})}):null},`DialogOverlay`)),$d=Pn(`DialogOverlay.RemoveScroll`),ef=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,...r}=e,i=Gd(Zd,n),a=jn(t,Dr());return(0,z.jsx)(kd,{as:$d,allowPinchZoom:!0,shards:v.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,z.jsx)(fr.div,{"data-state":ff(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),tf=`DialogContent`,nf=v.forwardRef(Bd(function(e,t){let n=Yd(tf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gd(tf,e.__scopeDialog);return(0,z.jsx)(qo,{present:r||a.open,children:a.modal?(0,z.jsx)(rf,{...i,ref:t}):(0,z.jsx)(af,{...i,ref:t})})},`DialogContent`)),rf=v.forwardRef(Bd(function(e,t){let n=Gd(tf,e.__scopeDialog),r=v.useRef(null),i=jn(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return Rd(e)},[]),(0,z.jsx)(of,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:$n(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:$n(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:$n(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),af=v.forwardRef(Bd(function(e,t){let n=Gd(tf,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,z.jsx)(of,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),of=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=Gd(tf,n);return xu(),(0,z.jsx)(Br,{registry:l.branchRegistry,children:(0,z.jsx)(Rr,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(Er,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?df(o,l.descriptionId):o,"data-state":ff(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),sf=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,...r}=e,i=Gd(`DialogTitle`,n),{setTitleCount:a}=i;return mr(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,z.jsx)(fr.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),cf=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,...r}=e,i=Gd(`DialogDescription`,n),{setDescriptionCount:a}=i;return mr(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,z.jsx)(fr.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),lf=`DialogClose`,uf=v.forwardRef(Bd(function(e,t){let{__scopeDialog:n,...r}=e,i=Gd(lf,n);return(0,z.jsx)(fr.button,{type:`button`,...r,ref:t,onClick:$n(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function df(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Bd(df,`concatAriaDescribedby`);function ff(e){return e?`open`:`closed`}Bd(ff,`getState`);var pf=Object.defineProperty,mf=(e,t)=>pf(e,`name`,{value:t,configurable:!0});function hf(e,[t,n]){return Math.min(n,Math.max(t,e))}mf(hf,`clamp`);var gf=Object.defineProperty,_f=(e,t)=>gf(e,`name`,{value:t,configurable:!0});function vf(e){let t=e+`CollectionProvider`,[n,r]=cr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=_f(e=>{let{scope:t,children:n}=e,r=v.useRef(null),a=v.useRef(new Map).current;return(0,z.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Pn(s),l=v.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=jn(t,a(s,n).collectionRef);return(0,z.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Pn(u),p=v.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=v.useRef(null),s=jn(t,o),c=a(u,n);return v.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,z.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return v.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return _f(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}_f(vf,`createCollection`);var yf=new WeakMap,bf=class e extends Map{static{_f(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],yf.set(this,!0)}set(e,t){return yf.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=Cf(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=xf(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=xf(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return xf(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function xf(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Sf(e,t);return n===-1?void 0:e[n]}_f(xf,`at`);function Sf(e,t){let n=e.length,r=Cf(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}_f(Sf,`toSafeIndex`);function Cf(e){return e!==e||e===0?0:Math.trunc(e)}_f(Cf,`toSafeInteger`);function wf(e){let t=e+`CollectionProvider`,[n,r]=cr(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=_f(({state:e,...t})=>e?(0,z.jsx)(u,{...t,state:e}):(0,z.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=_f(e=>{let t=_();return(0,z.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=_f(e=>{let{scope:t,children:n,state:r}=e,a=v.useRef(null),[s,c]=v.useState(null),l=jn(a,c),[u,d]=r,f=v.useRef(new bf),p=v.useCallback(()=>{let e=f.current;return Df(e)||e.sort(Of),e},[]);return v.useEffect(()=>{if(!s)return;let e=kf(()=>{d(e=>{let t=e.toSorted(Of);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,z.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,z.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=Pn(d),p=v.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=jn(t,a(d,n).collectionElementRef);return(0,z.jsx)(f,{ref:i,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=Pn(m),g=v.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=v.useRef(null),{setCollection:s,registryRef:c}=a(m,n),l=v.useRef(i);Tf(l.current,i)||(l.current=i);let u=l.current,d=jn(t,v.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);mr(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let f=v.useRef(null);return v.useEffect(()=>{let e=o.current,t=f.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(f.current=e?{element:e,itemData:u}:null,s(n=>{let r=new bf(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(Of)}))}),v.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new bf(t);return n.delete(e.element),n})},[s]),(0,z.jsx)(h,{"data-radix-collection-item":``,ref:d,children:r})});g.displayName=m;function _(){return v.useState(new bf)}_f(_,`useInitCollection`);function y(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}_f(y,`useCollection`);function b(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return _f(b,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:y,useGetCollection:b,useInitCollection:_}]}_f(wf,`createCollection`);function Tf(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}_f(Tf,`shallowEqual`);function Ef(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}_f(Ef,`isElementPreceding`);function Df(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}_f(Df,`isInDocumentOrder`);function Of(e,t){return!e[1].element||!t[1].element?0:Ef(e[1].element,t[1].element)?-1:1}_f(Of,`sortByDocumentPosition`);function kf(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}_f(kf,`getChildListObserver`);var Af=Object.defineProperty,jf=(e,t)=>Af(e,`name`,{value:t,configurable:!0}),Mf={LTR:`ltr`,RTL:`rtl`},Nf=v.createContext(void 0);function Pf(e){let t=v.useContext(Nf);return e||t||Mf.LTR}jf(Pf,`useDirection`);var Ff=Object.defineProperty,If=(e,t)=>Ff(e,`name`,{value:t,configurable:!0}),Lf={ItemAligned:`item-aligned`,Popper:`popper`},Rf={LTR:`ltr`,RTL:`rtl`},zf=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Bf=[` `,`Enter`],Vf=`Select`,[Hf,Uf,Wf]=vf(Vf),[Gf,Kf]=cr(Vf,[Wf,Do]),qf=Do(),[Jf,Yf]=Gf(Vf),[Xf,Zf]=Gf(Vf);function Qf(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=qf(t),[_,y]=v.useState(null),[b,x]=v.useState(null),[S,C]=v.useState(!1),w=Pf(l),[T,E]=ss({prop:r,defaultProp:i??!1,onChange:a,caller:Vf}),[D,O]=ss({prop:o,defaultProp:s,onChange:c,caller:Vf}),k=v.useRef(null),A=v.useRef(!1),[j,M]=v.useState(null),N=If(e=>{M({value:e,hasConsumerStoppedPropagation:A.current}),O(e)},`handleUserSelect`),P=v.useRef(D);v.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=If(()=>O(P.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,O]);let F=!_||!!m||!!_.closest(`form`),[I,ee]=v.useState(new Set),te=ii(),ne=Array.from(I).map(e=>e.props.value).join(`;`),re=v.useCallback(e=>{ee(t=>new Set(t).add(e))},[]),ie=v.useCallback(e=>{ee(t=>{let n=new Set(t);return n.delete(e),n})},[]),ae={required:p,trigger:_,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:te,value:D,onValueChange:O,hasConsumerStoppedPropagationRef:A,userSelection:j,onUserSelect:N,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:I,nativeSelectKey:ne,isFormControl:F};return(0,z.jsx)(Ao,{...g,children:(0,z.jsx)(Jf,{scope:t,...ae,children:(0,z.jsx)(Hf.Provider,{scope:t,children:(0,z.jsx)(Xf,{scope:t,onNativeOptionAdd:re,onNativeOptionRemove:ie,children:Lp(h)?h(ae):n})})})})}If(Qf,`SelectProvider`);var $f=If(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,z.jsx)(Qf,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,z.jsxs)(z.Fragment,{children:[n,e?(0,z.jsx)(Ip,{__scopeSelect:t}):null]})})},`Select`),ep=`SelectTrigger`,tp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=qf(n),o=Yf(ep,n),s=o.disabled||r,c=jn(t,o.onTriggerChange),l=Uf(n),u=v.useRef(`touch`),[d,f,p]=zp(e=>{let t=l().filter(e=>!e.disabled),n=Bp(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onUserSelect(n.value)}),m=If(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,z.jsx)(Mo,{asChild:!0,...a,children:(0,z.jsx)(fr.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Rp(o.value)?``:void 0,...i,ref:c,onClick:$n(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:$n(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:$n(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&(o.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),f(e.key)),t&&e.key===` `||zf.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),np=`SelectValue`,rp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Yf(np,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=jn(t,c.onValueNodeChange);mr(()=>{l(u)},[l,u]);let f=Rp(c.value);return(0,z.jsx)(fr.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,z.jsx)(v.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),ip=v.forwardRef(If(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,z.jsx)(fr.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[ap,op]=Gf(`SelectPortal`,{forceMount:void 0}),sp=If(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,z.jsx)(ap,{scope:e.__scopeSelect,forceMount:n,children:(0,z.jsx)(Uo,{asChild:!0,...r})})},`SelectPortal`),cp=`SelectContent`,lp=v.forwardRef(If(function(e,t){let n=op(cp,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Yf(cp,e.__scopeSelect),[o,s]=v.useState();return mr(()=>{s(new DocumentFragment)},[]),(0,z.jsx)(qo,{present:r||a.open,children:({present:e})=>e?(0,z.jsx)(hp,{...i,ref:t}):(0,z.jsx)(up,{...i,fragment:o})})},`SelectContent`)),up=v.forwardRef(If(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?qt.createPortal((0,z.jsx)(fp,{scope:n,children:(0,z.jsx)(Hf.Slot,{scope:n,children:(0,z.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),dp=10,[fp,pp]=Gf(cp),mp=Pn(`SelectContent.RemoveScroll`),hp=v.forwardRef(If(function(e,t){let{__scopeSelect:n}=e,{position:r=Lf.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,y=Yf(cp,n),[b,x]=v.useState(null),[S,C]=v.useState(null),w=jn(t,x),[T,E]=v.useState(null),[D,O]=v.useState(null),k=Uf(n),[A,j]=v.useState(!1),M=v.useRef(!1),N=v.useRef(!1),P=v.useRef(!1);v.useEffect(()=>{if(b)return Rd(b)},[b]),xu();let F=v.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),I=v.useCallback(()=>F([T,b]),[F,T,b]);v.useEffect(()=>{A&&I()},[A,I]);let{onOpenChange:ee,triggerPointerDownPosRef:te}=y;v.useEffect(()=>{if(b){let e={x:0,y:0},t=If(t=>{e={x:Math.abs(Math.round(t.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(te.current?.y??0))}},`handlePointerMove`),n=If(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||ee(!1),document.removeEventListener(`pointermove`,t),te.current=null},`handlePointerUp`);return te.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,ee,te]),v.useEffect(()=>{let e=If(()=>ee(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[ee]);let[ne,re]=zp(e=>{let t=k().filter(e=>!e.disabled),n=Bp(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ie=v.useCallback((e,t,n)=>{let r=!N.current;r&&(N.current=!0);let i=!M.current&&!n;y.value!==void 0&&y.value===t||i?(E(e),i&&(M.current=!0)):r&&E(e)},[y.value]),ae=v.useCallback(()=>b?.focus(),[b]),oe=v.useCallback((e,t,n)=>{if(!e)return;let r=!P.current;r&&(P.current=!0);let i=!M.current&&!n;(y.value!==void 0&&y.value===t||i||r)&&O(e)},[y.value]),se=r===Lf.Popper?_p:gp,ce=se===_p?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,z.jsx)(fp,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ie,selectedItem:T,onItemLeave:ae,itemTextRefCallback:oe,focusSelectedItem:I,selectedItemText:D,position:r,isPositioned:A,searchRef:ne,children:(0,z.jsx)(kd,{as:mp,allowPinchZoom:!0,children:(0,z.jsx)(Rr,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:$n(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,z.jsx)(Er,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,z.jsx)(se,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),..._,...ce,onPlaced:()=>j(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:$n(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&re(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),gp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Yf(cp,n),o=pp(cp,n),[s,c]=v.useState(null),[l,u]=v.useState(null),d=jn(t,u),f=Uf(n),p=v.useRef(!1),m=v.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:y}=o,b=v.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==Rf.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-dp,d=hf(a,[dp,Math.max(dp,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-dp,d=hf(a,[dp,Math.max(dp,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-dp*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-dp,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${dp}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);mr(()=>b(),[b]);let[x,S]=v.useState();mr(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=v.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,z.jsx)(vp,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,z.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,z.jsx)(fr.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),_p=v.forwardRef(If(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=dp,...a}=e,o=qf(n);return(0,z.jsx)(Io,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[vp,yp]=Gf(cp,{}),bp=`SelectViewport`,xp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=pp(bp,n),o=yp(bp,n),s=jn(t,a.onViewportChange),c=v.useRef(0);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,z.jsx)(Hf.Slot,{scope:n,children:(0,z.jsx)(fr.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:$n(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-dp*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Sp,Cp]=Gf(`SelectGroup`),wp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,...r}=e,i=ii();return(0,z.jsx)(Sp,{scope:n,id:i,children:(0,z.jsx)(fr.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})},`SelectGroup`)),Tp=`SelectLabel`,Ep=v.forwardRef(If(function(e,t){let{__scopeSelect:n,...r}=e,i=Cp(Tp,n);return(0,z.jsx)(fr.div,{id:i.id,...r,ref:t})},`SelectLabel`)),Dp=`SelectItem`,[Op,kp]=Gf(Dp),Ap=v.forwardRef(If(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Yf(Dp,n),c=pp(Dp,n),l=s.value===r,[u,d]=v.useState(a??``),[f,p]=v.useState(!1),m=jn(t,vr(e=>c.itemRefCallback?.(e,r,i))),h=ii(),g=v.useRef(`touch`);function _(e){s.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),s.onUserSelect(r),s.onOpenChange(!1)}return If(_,`handleSelect`),(0,z.jsx)(Op,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:v.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,z.jsx)(Hf.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,z.jsx)(fr.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:$n(o.onFocus,()=>p(!0)),onBlur:$n(o.onBlur,()=>p(!1)),onClick:$n(o.onClick,e=>{i||g.current!==`mouse`&&_(e)}),onPointerUp:$n(o.onPointerUp,e=>{i||g.current===`mouse`&&_(e)}),onPointerDown:$n(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:$n(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$n(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:$n(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Bf.includes(e.key)&&_(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),jp=`SelectItemText`,Mp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Yf(jp,n),s=pp(jp,n),c=kp(jp,n),l=Zf(jp,n),[u,d]=v.useState(null),f=vr(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=jn(t,d,c.onItemTextChange,f),m=u?.textContent,h=v.useMemo(()=>(0,z.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return mr(()=>(g(h),()=>_(h)),[g,_,h]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(fr.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Rp(o.value)?qt.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Np=`SelectItemIndicator`,Pp=v.forwardRef(If(function(e,t){let{__scopeSelect:n,...r}=e;return kp(Np,n).isSelected?(0,z.jsx)(fr.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Fp=`SelectBubbleInput`,Ip=v.forwardRef(If(function({__scopeSelect:e,...t},n){let r=Yf(Fp,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u,userSelection:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=v.useRef(null),h=jn(n,m),g=i??``,_=v.useRef(g),y=v.useRef(d),b=v.useRef(!1),x=Array.from(f).some(e=>(e.props.value??``)===``);return v.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set,r=d!==null&&d!==y.current;y.current=d;let i=_.current!==g;_.current=g;let a=r&&i;if(r&&!i&&d.value!==g&&!d.hasConsumerStoppedPropagation&&n){b.current=!0;try{n.call(e,d.value),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}finally{b.current=!1,n.call(e,g)}return}let o=a&&!d.hasConsumerStoppedPropagation;if(i&&n){let t=new Event(`change`,{bubbles:o});n.call(e,g),e.dispatchEvent(t)}},[g,d]),(0,z.jsxs)(fr.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>{b.current||a(e.target.value)},...t,style:{...ms,...t.style},ref:h,defaultValue:g,children:[Rp(i)&&!x?(0,z.jsx)(`option`,{value:``}):null,Array.from(f)]},p)},`SelectBubbleInput`));function Lp(e){return typeof e==`function`}If(Lp,`isFunction`);function Rp(e){return e===``||e===void 0}If(Rp,`shouldShowPlaceholder`);function zp(e){let t=vr(e),n=v.useRef(``),r=v.useRef(0),i=v.useCallback(e=>{let i=n.current+e;t(i);function a(e){n.current=e,window.clearTimeout(r.current),e!==``&&(r.current=window.setTimeout(()=>a(``),1e3))}If(a,`updateSearch`),a(i)},[t]),a=v.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}If(zp,`useTypeaheadSearch`);function Bp(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Vp(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}If(Bp,`findNextItem`);function Vp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}If(Vp,`wrapArray`);var Hp=Kd;function Up({className:e,children:t,...n}){let r=v.useRef(null);return(0,z.jsxs)(Xd,{children:[(0,z.jsx)(Qd,{className:`fixed inset-0 z-50 bg-black/45 backdrop-blur-[2px]`}),(0,z.jsxs)(nf,{ref:r,tabIndex:-1,onOpenAutoFocus:e=>{e.preventDefault(),r.current?.focus({preventScroll:!0})},className:G(`animate-fade-up fixed left-1/2 top-1/2 z-50 grid w-full max-w-xl -translate-x-1/2 -translate-y-1/2 gap-5 rounded-xl border bg-card p-6 shadow-2xl focus:outline-none`,e),...n,children:[t,(0,z.jsxs)(uf,{className:`absolute right-4 top-4 rounded-md p-1 text-muted-foreground opacity-70 transition hover:bg-accent hover:text-foreground hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:outline-none`,children:[(0,z.jsx)(Kt,{className:`size-4`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`关闭`})]})]})]})}function Wp({className:e,...t}){return(0,z.jsx)(`div`,{className:G(`flex flex-col gap-1.5 pr-8`,e),...t})}function Gp({className:e,...t}){return(0,z.jsx)(sf,{className:G(`text-lg font-semibold tracking-tight`,e),...t})}function Kp({className:e,...t}){return(0,z.jsx)(cf,{className:G(`text-sm text-muted-foreground`,e),...t})}function qp({className:e,...t}){return(0,z.jsx)(`div`,{className:G(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}var Jp=$f,Yp=rp,Xp=wp;function Zp({className:e,...t}){return(0,z.jsx)(Ep,{className:G(`px-2 py-1.5 text-xs font-medium text-muted-foreground`,e),...t})}function Qp({className:e,children:t,...n}){return(0,z.jsxs)(tp,{className:G(`flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50`,e),...n,children:[t,(0,z.jsx)(ip,{asChild:!0,children:(0,z.jsx)(ue,{className:`size-4 opacity-50`})})]})}function $p({className:e,children:t,...n}){return(0,z.jsx)(sp,{children:(0,z.jsx)(lp,{position:`popper`,className:G(`z-50 max-h-72 min-w-[10rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg`,e),...n,children:(0,z.jsx)(xp,{children:t})})})}function em({className:e,children:t,...n}){return(0,z.jsxs)(Ap,{className:G(`relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground`,e),...n,children:[(0,z.jsx)(Mp,{children:t}),(0,z.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,z.jsx)(Pp,{children:(0,z.jsx)(ce,{className:`size-4`})})})]})}function tm(e){let t=e.trim();if(t.length===0)return null;let n=/^([a-zA-Z]:)[\\/]/.exec(t);if(n!==null&&n[1]!==void 0)return`${n[1]}\\`;let r=/^([\\/]{2}[^\\/]+[\\/][^\\/]+)/.exec(t);return r!==null&&r[1]!==void 0?r[1]:t.startsWith(`/`)?`/`:null}function nm({open:e,initialPath:t,onOpenChange:n,onPick:r,title:i=`选择文档仓库目录`,description:a=`逐层进入目标目录后点「选择此目录」;需包含 skills/iteration-task-docs。`}){let[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(``),[m,h]=(0,v.useState)(null),g=async e=>{l(!0),d(null);try{let t=await J.listDirectories(e);s(t),p(t.path),h(null),localStorage.setItem(`ylcwf-last-dir`,t.path)}catch(e){d(e instanceof Error?e.message:String(e))}finally{l(!1)}};(0,v.useEffect)(()=>{if(!e)return;s(null);let n=localStorage.getItem(`ylcwf-last-dir`);g(t??n??void 0)},[e,t]);let _=[{label:`主目录`,path:null,icon:Ke}],y=localStorage.getItem(`ylcwf-last-dir`);y!==null&&_.push({label:`上次位置`,path:y,icon:Mt}),t!==void 0&&t.trim().length>0&&t!==y&&_.push({label:`当前配置`,path:t,icon:Mt});let b=tm(o?.path??f);return b!==null&&_.push({label:`根目录`,path:b,icon:Be}),(0,z.jsx)(Hp,{open:e,onOpenChange:n,children:(0,z.jsxs)(Up,{className:`max-w-2xl`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:i}),(0,z.jsx)(Kp,{children:a})]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(K,{variant:`outline`,size:`icon`,className:`shrink-0`,disabled:o?.parent===null||o?.parent===void 0||c,onClick:()=>o?.parent!=null&&void g(o.parent),title:`上一级`,children:(0,z.jsx)(ne,{className:`size-4`})}),(0,z.jsx)(Al,{value:f,spellCheck:!1,className:`font-mono text-xs`,onChange:e=>p(e.target.value),onKeyDown:e=>{e.key===`Enter`&&g(f)}}),(0,z.jsx)(K,{variant:`ghost`,size:`sm`,className:`shrink-0`,onClick:()=>void g(f),disabled:c,children:`前往`})]}),(0,z.jsxs)(`div`,{className:`flex gap-3`,children:[(0,z.jsx)(`div`,{className:`w-36 shrink-0 space-y-0.5 border-r pr-2`,children:_.map(e=>{let t=e.path!==null&&e.path===(o?.path??``);return(0,z.jsxs)(`button`,{type:`button`,onClick:()=>void g(e.path??void 0),className:G(`flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs transition-colors`,t?`bg-accent font-medium text-accent-foreground`:`text-muted-foreground hover:bg-accent/60 hover:text-foreground`),children:[(0,z.jsx)(e.icon,{className:`size-3 shrink-0`}),(0,z.jsx)(`span`,{className:`truncate`,children:e.label})]},`${e.label}-${e.path??`home`}`)})}),(0,z.jsx)(`div`,{className:`h-72 flex-1 overflow-y-auto rounded-lg border`,children:c?(0,z.jsx)(hu,{label:`正在读取目录…`,className:`h-full py-0`}):u===null?o===null||o.entries.length===0?(0,z.jsx)(`div`,{className:`flex h-full items-center justify-center text-xs text-muted-foreground`,children:`该目录下没有子目录`}):(0,z.jsx)(`ul`,{className:`divide-y`,children:o.entries.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>h(e.path),onDoubleClick:()=>void g(e.path),className:G(`flex w-full items-center gap-2 px-3 py-2 text-left text-xs transition-colors hover:bg-accent/60`,m===e.path?`bg-accent text-accent-foreground`:``,e.hidden?`text-muted-foreground`:``),children:[m===e.path?(0,z.jsx)(Ie,{className:`size-3.5 shrink-0`}):(0,z.jsx)(Be,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,z.jsx)(`span`,{className:`truncate`,children:e.name})]})},e.path))}):(0,z.jsx)(`div`,{className:`flex h-full items-center justify-center px-4 text-center text-xs text-destructive`,children:u})})]}),(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>n(!1),children:`取消`}),(0,z.jsxs)(K,{size:`sm`,className:`gap-1.5`,disabled:o===null,onClick:()=>{o!==null&&(r(o.path),n(!1))},children:[(0,z.jsx)(Ie,{className:`size-3.5`}),`选择此目录`]})]})]})})}var rm=[{id:`violet`,label:`深紫`,dot:`#6E4BF7`,logo:[`#A283FF`,`#6E4BF7`,`#3A1DAE`]},{id:`blue`,label:`蓝`,dot:`#2E6BDB`,logo:[`#7DB1FF`,`#2E6BDB`,`#173E8F`]},{id:`teal`,label:`青绿`,dot:`#0D9488`,logo:[`#5FD0C5`,`#0D9488`,`#0A5C55`]},{id:`amber`,label:`琥珀`,dot:`#B4690E`,logo:[`#E8B26A`,`#C17A17`,`#7A4A08`]},{id:`pink`,label:`粉`,dot:`#DB2777`,logo:[`#F98CB8`,`#DB2777`,`#8F1850`]}],im=`violet`;function am(){let e=localStorage.getItem(`ylcwf-accent`);return rm.some(t=>t.id===e)?e:im}var om=am(),sm=new Set;function cm(e){return sm.add(e),()=>sm.delete(e)}function lm(){return(0,v.useSyncExternalStore)(cm,()=>om)}function um(e){return rm.find(t=>t.id===e)??rm[0]}function dm(e){rm.some(t=>t.id===e)&&(om=e,localStorage.setItem(`ylcwf-accent`,e),document.documentElement.dataset.accent=e,sm.forEach(e=>e()))}document.documentElement.dataset.accent=om;function fm({className:e}){let t=um(lm());return(0,z.jsxs)(`svg`,{viewBox:`0 0 32 32`,className:G(`size-8`,e),"aria-hidden":`true`,children:[(0,z.jsx)(`defs`,{children:(0,z.jsxs)(`linearGradient`,{id:`brandBg`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,z.jsx)(`stop`,{offset:`0`,stopColor:t.logo[0]}),(0,z.jsx)(`stop`,{offset:`0.45`,stopColor:t.logo[1]}),(0,z.jsx)(`stop`,{offset:`1`,stopColor:t.logo[2]})]})}),(0,z.jsx)(`rect`,{width:`32`,height:`32`,rx:`9`,fill:`url(#brandBg)`}),(0,z.jsx)(`rect`,{x:`5.5`,y:`6.5`,width:`11`,height:`8`,rx:`2.6`,fill:`#FFFFFF`,fillOpacity:`0.6`}),(0,z.jsx)(`rect`,{x:`10.5`,y:`12.8`,width:`11`,height:`8`,rx:`2.6`,fill:`#FFFFFF`,fillOpacity:`0.84`}),(0,z.jsx)(`rect`,{x:`15.5`,y:`19`,width:`11`,height:`8`,rx:`2.6`,fill:`#FFFFFF`}),(0,z.jsx)(`rect`,{x:`17.8`,y:`21.6`,width:`4.6`,height:`1.5`,rx:`0.75`,fill:t.logo[1],fillOpacity:`0.8`}),(0,z.jsx)(`rect`,{x:`17.8`,y:`24.2`,width:`6.4`,height:`1.5`,rx:`0.75`,fill:t.logo[1],fillOpacity:`0.35`})]})}function pm(e){return[{label:`本地配置`,ok:e.hasConfig&&e.configValid,detail:e.hasConfig?e.configValid?`已就绪`:`结构不合法`:`未创建`},{label:`Git 环境`,ok:e.gitAvailable,detail:e.gitAvailable?`已安装`:`未检测到 git 命令`},{label:`文档仓库`,ok:e.docsConfigured,detail:e.docsConfigured?e.docsRoot:`尚未选择`},{label:`访问权限`,ok:e.docsAccessible,detail:e.docsAccessible?`可读取(${e.iterationCount} 个迭代)`:e.reason??`待检测`}]}function mm(e){switch(e.nextStep){case`install-git`:case`fix-config`:return`blocked`;case`set-docs-root`:return`docs`;default:return`detect`}}function hm({state:e,onDone:t}){let{snapshot:n}=ou(),[r,i]=(0,v.useState)(mm(e)),[a,o]=(0,v.useState)(e.docsRoot),[s,c]=(0,v.useState)(e.developer),[l,u]=(0,v.useState)(e.role),[d,f]=(0,v.useState)(!1),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(null),[_,y]=(0,v.useState)(!1),b=async e=>{f(!0),m(null);try{await e()}catch(e){m(e instanceof Error?e.message:String(e))}finally{f(!1)}},x=()=>b(async()=>{g(await J.inspect(a.trim()))}),S=()=>b(async()=>{let e=n?.config,r={profile:{developer:s.trim(),role:l},docs:{root:a.trim(),git:e?.docs.git??{cli:{...Gl},ui:{...Gl}},validator:e?.docs.validator??{strict:!0}},terminals:e?.terminals??{}};await J.completeOnboarding(r),await t()}),C=()=>b(async()=>{let e=await J.pickDirectory({title:`选择文档仓库目录`});e.ok?e.path!==null&&(o(e.path),g(await J.inspect(e.path))):y(!0)}),w=/^[a-z][a-z0-9]*$/.test(s.trim()),T=a.trim().length>0&&h?.hasDocsSkill===!0;return(0,z.jsx)(`div`,{className:`app-glow flex min-h-full items-center justify-center px-6 py-10`,children:(0,z.jsxs)(`div`,{className:`relative z-10 w-full max-w-2xl`,children:[(0,z.jsxs)(`div`,{className:`mb-6 flex items-center gap-2.5`,children:[(0,z.jsx)(fm,{className:`size-9`}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`p`,{className:`text-sm font-semibold tracking-tight`,children:`ylcwf 工作台`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`首次启动配置`})]})]}),(0,z.jsxs)(`div`,{className:`animate-fade-up rounded-xl border bg-card p-7 shadow-xl`,children:[r===`detect`?(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`启动环境检测`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`确认为你准备好文档仓库与访问权限后进入工作台。`})]}),(0,z.jsx)(`ul`,{className:`space-y-2`,children:pm(e).map(e=>(0,z.jsxs)(`li`,{className:`flex items-center justify-between gap-3 rounded-lg border px-3.5 py-2.5`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[e.ok?(0,z.jsx)(fe,{className:`size-4 text-success`}):(0,z.jsx)(be,{className:`size-4 text-muted-foreground`}),(0,z.jsx)(`span`,{className:`text-sm`,children:e.label})]}),(0,z.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,title:e.detail,children:e.detail})]},e.label))}),(0,z.jsx)(`div`,{className:`flex justify-end`,children:(0,z.jsxs)(K,{onClick:()=>i(`docs`),children:[`继续`,(0,z.jsx)(ee,{className:`size-3.5`})]})})]}):null,r===`docs`?(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`迭代任务文档仓库`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`选择你本地已克隆的文档仓库;需要包含 skills/iteration-task-docs。`})]}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jl,{children:`本地仓库路径`}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(Al,{value:a,placeholder:`/Users/you/develop/iteration-task-repo`,spellCheck:!1,className:`font-mono text-xs`,onChange:e=>{o(e.target.value),g(null)}}),(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`shrink-0 gap-1.5`,onClick:()=>void C(),children:[(0,z.jsx)(Re,{className:`size-3.5`}),`选择`]}),(0,z.jsx)(K,{variant:`outline`,size:`sm`,className:`shrink-0`,onClick:()=>void x(),disabled:a.trim().length===0,children:`校验`})]}),h===null?null:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs`,children:[(0,z.jsx)(q,{variant:h.exists?`success`:`destructive`,children:h.exists?`路径存在`:`路径不存在`}),(0,z.jsx)(q,{variant:h.isGit?`success`:`warning`,children:h.isGit?`git 仓库`:`非 git 仓库`}),h.hasDocsSkill===void 0?null:(0,z.jsx)(q,{variant:h.hasDocsSkill?`success`:`destructive`,children:h.hasDocsSkill?`含 iteration-task-docs`:`缺少 iteration-task-docs`})]})]}),(0,z.jsxs)(`div`,{className:`flex justify-between`,children:[(0,z.jsx)(K,{variant:`ghost`,onClick:()=>i(`detect`),children:`返回`}),(0,z.jsxs)(K,{onClick:()=>i(`profile`),disabled:!T,children:[`继续`,(0,z.jsx)(ee,{className:`size-3.5`})]})]})]}):null,r===`profile`?(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`身份信息`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`用于确定个人文档文件名,并在迭代看板里默认高亮你自己。`})]}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jl,{htmlFor:`onboarding-developer`,children:`开发者标识`}),(0,z.jsx)(Al,{id:`onboarding-developer`,value:s,placeholder:`yourname`,spellCheck:!1,className:`font-mono`,onChange:e=>c(e.target.value.trim())}),w||s.length===0?null:(0,z.jsx)(`p`,{className:`text-xs text-destructive`,children:`必须是小写字母开头的字母数字串(姓名小写全拼)`})]}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jl,{children:`默认角色`}),(0,z.jsx)(`div`,{className:`grid gap-2 sm:grid-cols-3`,children:Kl.map(e=>(0,z.jsxs)(`button`,{type:`button`,onClick:()=>u(e),className:G(`rounded-lg border p-3 text-left text-xs transition-all`,l===e?`border-primary/60 bg-primary/5`:`hover:bg-accent/40`),children:[(0,z.jsx)(`p`,{className:`font-medium`,children:Jl[e]}),(0,z.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:Yl[e]})]},e))})]}),(0,z.jsxs)(`div`,{className:`flex justify-between`,children:[(0,z.jsx)(K,{variant:`ghost`,onClick:()=>i(`docs`),children:`返回`}),(0,z.jsxs)(K,{onClick:()=>void S(),disabled:!w||!T||d,children:[d?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(ce,{className:`size-3.5`}),`完成配置`]})]})]}):null,r===`blocked`?(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`h1`,{className:`text-lg font-semibold tracking-tight`,children:`需要先解决环境问题`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.reason??`当前环境不满足启动条件`})]}),(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-warning/30 bg-warning/8 px-3.5 py-3 text-xs text-warning`,children:[(0,z.jsx)(Rt,{className:`mt-0.5 size-4 shrink-0`}),(0,z.jsxs)(`div`,{className:`space-y-1.5 leading-relaxed`,children:[e.nextStep===`install-git`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{children:`请先安装 Git:`}),(0,z.jsx)(`code`,{className:`block rounded bg-background/60 px-2 py-1 font-mono`,children:`brew install git`})]}):null,e.nextStep===`fix-config`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{children:`配置文件结构不合法(可能来自旧版本),请重新初始化:`}),(0,z.jsx)(`code`,{className:`block rounded bg-background/60 px-2 py-1 font-mono`,children:`ylcwf init`}),(0,z.jsx)(`p`,{className:`opacity-80`,children:`或查看详情:`}),(0,z.jsx)(`code`,{className:`block rounded bg-background/60 px-2 py-1 font-mono`,children:`ylcwf doctor`})]}):null]})]}),(0,z.jsx)(`div`,{className:`flex justify-end gap-2`,children:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`gap-1.5`,onClick:()=>void t(),children:[(0,z.jsx)(mt,{className:`size-3.5`}),`重新检测`]})})]}):null,p===null?null:(0,z.jsxs)(`div`,{className:`mt-4 flex items-start gap-2 rounded-lg border border-destructive/25 bg-destructive/8 px-3.5 py-2.5 text-xs text-destructive`,children:[(0,z.jsx)(Rt,{className:`mt-0.5 size-3.5 shrink-0`}),(0,z.jsx)(`span`,{className:`leading-relaxed`,children:p})]})]}),(0,z.jsx)(nm,{open:_,initialPath:a.trim().length>0?a.trim():void 0,onOpenChange:y,onPick:e=>{o(e),g(null),(async()=>{try{g(await J.inspect(e))}catch{}})()}}),(0,z.jsxs)(`p`,{className:`mt-4 text-center text-xs text-muted-foreground`,children:[(0,z.jsx)(We,{className:`mr-1 inline size-3`}),`配置保存在 ~/.ylcwf/config.yaml,与命令行工具共用`]})]})})}var gm=class extends v.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(`[ylcwf] ${this.props.area} 渲染失败`,e,t.componentStack)}render(){let{error:e}=this.state;return e===null?this.props.children:(0,z.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3 px-6 py-12 text-center`,children:[(0,z.jsx)(Rt,{className:`size-6 text-warning`}),(0,z.jsxs)(`p`,{className:`text-sm font-medium`,children:[this.props.area,`渲染失败`]}),(0,z.jsxs)(`p`,{className:`max-w-md text-xs text-muted-foreground`,children:[e.message,(0,z.jsx)(`br`,{}),`如果刚升级过,请重启 `,(0,z.jsx)(`code`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono`,children:`ylcwf serve`}),`(或重开桌面端)后刷新。`]}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>this.setState({error:null}),children:`重试`}),(0,z.jsx)(K,{size:`sm`,onClick:()=>window.location.reload(),children:`刷新页面`})]})]})}},_m={system:`跟随系统`,light:`浅色模式`,dark:`深色模式`},vm=[`system`,`light`,`dark`];function ym(){let e=new URLSearchParams(window.location.search).get(`theme`);if(e===`dark`||e===`light`)return e;let t=localStorage.getItem(`ylcwf-theme`);return t===`dark`||t===`light`||t===`system`?t:`system`}var bm=ym(),xm=window.matchMedia(`(prefers-color-scheme: dark)`).matches;function Sm(){return bm===`system`?xm:bm===`dark`}var Cm={mode:bm,dark:Sm()},wm=new Set;function Tm(e){return wm.add(e),()=>wm.delete(e)}function Em(){return Cm}function Dm(){document.documentElement.classList.toggle(`dark`,Sm()),localStorage.setItem(`ylcwf-theme`,bm)}function Om(){Cm={mode:bm,dark:Sm()},wm.forEach(e=>e())}function km(e){bm=e,Dm(),Om()}window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,e=>{xm=e.matches,bm===`system`&&(Dm(),Om())}),Dm();function Am(){return(0,v.useSyncExternalStore)(Tm,Em)}var jm={muted:`bg-muted-foreground/35`,progress:`bg-primary`,warning:`bg-warning`,success:`bg-success`,destructive:`bg-destructive`},Mm=[{key:`未开始`,label:`未开始`,icon:L,tone:`muted`},{key:`进行中`,label:`进行中`,icon:me,tone:`progress`},{key:`待验收`,label:`待验收`,icon:we,tone:`warning`},{key:`已完成`,label:`已完成`,icon:fe,tone:`success`}],Nm=[{key:`未开始`,label:`未开始`,icon:L,tone:`muted`},{key:`进行中`,label:`进行中`,icon:me,tone:`progress`},{key:`已完成`,label:`已完成`,icon:fe,tone:`success`}],Pm=[{key:`通过`,label:`通过`,icon:fe,tone:`success`},{key:`免测`,label:`免测`,icon:ge,tone:`muted`},{key:`未执行`,label:`未执行`,icon:L,tone:`warning`},{key:`失败`,label:`失败`,icon:be,tone:`destructive`}],Fm=[{key:`待验收`,label:`待验收`,icon:we,tone:`warning`},{key:`验收通过`,label:`通过`,icon:fe,tone:`success`},{key:`验收驳回`,label:`驳回`,icon:be,tone:`destructive`}];function Im(e){return e??{}}function Lm(e,t){let n=Im(e),r=new Set(t.map(e=>e.key)),i=Object.keys(n).filter(e=>!r.has(e)).sort().map(e=>({key:e,label:e,icon:ve,tone:`muted`}));return[...t,...i]}function Rm(e,t){let n=Im(e),r=t.reduce((e,t)=>e+(n[t.key]??0),0);return r===0?[]:t.map(e=>({tone:e.tone,width:(n[e.key]??0)/r*100})).filter(e=>e.width>0)}function zm({counts:e,defs:t,className:n}){let r=Im(e),i=Rm(r,Lm(r,t));return(0,z.jsx)(`div`,{className:G(`flex h-1.5 w-full overflow-hidden rounded-full bg-border/70`,n),children:i.length===0?null:i.map((e,t)=>(0,z.jsx)(`div`,{className:G(`h-full`,jm[e.tone]),style:{width:`${e.width}%`}},`${e.tone}-${t}`))})}function Bm({label:e,icon:t,counts:n,defs:r}){let i=Im(n),a=Lm(i,r),o=a.reduce((e,t)=>e+(i[t.key]??0),0);return(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1.5`,children:[(0,z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5 text-xs font-medium text-muted-foreground`,children:[(0,z.jsx)(t,{className:`size-3.5`}),e]}),(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-center gap-x-3.5 gap-y-1`,children:[a.map(e=>{let t=i[e.key]??0;return(0,z.jsxs)(`span`,{className:G(`flex items-center gap-1.5 text-xs`,t===0?`text-muted-foreground/45`:`text-foreground`),title:`${e.label}:${t}`,children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:G(`size-2 shrink-0 rounded-full`,t===0?`bg-muted-foreground/30`:jm[e.tone])}),(0,z.jsx)(`span`,{children:e.label}),(0,z.jsx)(`span`,{className:`font-mono tabular-nums`,children:t})]},e.key)}),o===0?(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground/60`,children:`暂无数据`}):null]})]})}function Vm({taskCounts:e,requirementCounts:t,selfTestCounts:n,acceptanceCounts:r}){return(0,z.jsx)(`div`,{className:`grid gap-3 lg:grid-cols-2`,children:[{key:`requirement`,label:`需求状态`,icon:Se,counts:t,defs:Nm},{key:`task`,label:`任务状态`,icon:Qe,counts:e,defs:Mm},{key:`selfTest`,label:`AI 自测`,icon:ie,counts:n,defs:Pm},{key:`acceptance`,label:`人工验收`,icon:Bt,counts:r,defs:Fm}].map(e=>(0,z.jsx)(`div`,{className:`rounded-lg border bg-card px-3.5 py-2.5`,children:(0,z.jsx)(Bm,{label:e.label,icon:e.icon,counts:e.counts,defs:e.defs})},e.key))})}var Hm=`ylcwf:current-iteration`;function Um(){try{let e=window.localStorage.getItem(Hm);if(e===null)return{};let t=JSON.parse(e);if(typeof t!=`object`||!t||Array.isArray(t))return{};let n={};for(let[e,r]of Object.entries(t))typeof r==`string`&&r.length>0&&(n[e]=r);return n}catch{return{}}}function Wm(e){return e.length===0?null:Um()[e]??null}function Gm(e,t){if(e.length!==0)try{let n=Um();t===null||t.length===0?delete n[e]:n[e]=t,window.localStorage.setItem(Hm,JSON.stringify(n))}catch{}}function Km(){let e=new URL(window.location.href).searchParams.get(`iteration`);return e===null||e.trim().length===0?null:e.trim()}function qm(e){let t=new URL(window.location.href);e===null||e.length===0?t.searchParams.delete(`iteration`):t.searchParams.set(`iteration`,e),window.history.replaceState(null,``,t)}function Jm(e){let t=t=>{t.key===Hm&&e()};return window.addEventListener(`storage`,t),()=>window.removeEventListener(`storage`,t)}function Ym(e){let t=new Date(e).getTime();if(Number.isNaN(t))return`—`;let n=Date.now()-t,r=6e4,i=60*r,a=24*i;return n<r?`刚刚`:n<i?`${Math.floor(n/r)} 分钟前`:n<a?`${Math.floor(n/i)} 小时前`:n<7*a?`${Math.floor(n/a)} 天前`:n<30*a?`${Math.floor(n/(7*a))} 周前`:new Date(e).toLocaleDateString(`zh-CN`)}function Xm({value:e}){let t=async()=>{try{await navigator.clipboard.writeText(e),dn.success(`已复制 ${e}`)}catch{dn.error(`复制失败,请手动选择文本`)}};return(0,z.jsx)(Pl,{content:`复制 ${e}`,children:(0,z.jsxs)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),t()},"aria-label":`复制 ${e}`,className:`group/copy inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded px-1 py-0.5 font-mono text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,children:[(0,z.jsx)(`span`,{children:e}),(0,z.jsx)(Oe,{className:`size-3 shrink-0 opacity-0 transition-opacity group-hover/copy:opacity-70`})]})})}function Zm({status:e}){if(e.length===0)return(0,z.jsx)(q,{variant:`muted`,children:`—`});if(e===`已完成`)return(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 whitespace-nowrap text-xs font-medium text-success`,children:[(0,z.jsx)(ce,{className:`size-3.5 shrink-0`}),`已完成`]});let t=Zl[e]??`muted`;return(0,z.jsx)(q,{variant:t,children:e})}function Qm(e){return e===`未开始`?``:e}function $m(e,t){return t===`未开始`?``:e}function eh({value:e}){if(e.length===0)return(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`—`});if(e.startsWith(`免测`)){let t=e.replace(/^免测\s*[((]/,``).replace(/[))]$/,``);return(0,z.jsx)(Pl,{content:t.length>0?`免测:${t}`:`免测`,children:(0,z.jsx)(q,{variant:`warning`,children:`免测`})})}return e===`通过`?(0,z.jsx)(q,{variant:`success`,children:`通过`}):e===`失败`?(0,z.jsx)(q,{variant:`destructive`,children:`失败`}):(0,z.jsx)(q,{variant:`muted`,children:e})}function th({value:e}){return e.length===0?(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`—`}):(0,z.jsx)(q,{variant:e===`验收通过`?`success`:e===`验收驳回`?`destructive`:`warning`,children:e.replace(/^验收/,``)})}function nh({title:e,count:t}){return(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`h3`,{className:`text-sm font-medium`,children:e}),t===void 0?null:(0,z.jsx)(`span`,{className:`rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground`,children:t}),(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`h-px min-w-6 flex-1 bg-border`})]})}var rh=[`bg-sky-100 text-sky-700 dark:bg-sky-900/60 dark:text-sky-300`,`bg-violet-100 text-violet-700 dark:bg-violet-900/60 dark:text-violet-300`,`bg-emerald-100 text-emerald-700 dark:bg-emerald-900/60 dark:text-emerald-300`,`bg-amber-100 text-amber-700 dark:bg-amber-900/60 dark:text-amber-300`,`bg-rose-100 text-rose-700 dark:bg-rose-900/60 dark:text-rose-300`,`bg-cyan-100 text-cyan-700 dark:bg-cyan-900/60 dark:text-cyan-300`];function ih({name:e,className:t}){let n=0;for(let t of e)n=(n*31+t.charCodeAt(0))%997;let r=rh[n%rh.length];return(0,z.jsx)(`span`,{className:G(`flex size-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold uppercase`,r,t),children:e.slice(0,2)})}function ah(e){let t=new Map;for(let n of e){let e=t.get(n.year)??[];e.push(n),t.set(n.year,e)}return[...t.entries()].sort((e,t)=>t[0]-e[0])}function oh(e){let t=new URLSearchParams;e.source===`remote`&&t.set(`source`,`remote`),e.iteration!==void 0&&e.iteration.length>0&&t.set(`iteration`,e.iteration);let n=t.toString();window.location.hash=n.length===0?`iterations`:`iterations?${n}`}function sh({title:e,description:t,action:n}){return(0,z.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-2`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h3`,{className:`text-sm font-semibold tracking-tight`,children:e}),t===void 0?null:(0,z.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:t})]}),n]})}function ch(){let{snapshot:e,draft:t}=ou(),n=t?.profile.developer??``,r=t?.docs.root??``,i=r.trim().length>0,[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(i),[_,y]=(0,v.useState)(0),[b,x]=(0,v.useState)(null);(0,v.useEffect)(()=>Jm(()=>y(e=>e+1)),[]),(0,v.useEffect)(()=>{if(!i){g(!1),o(null),u(null),f(null),m(null),x(null);return}let e=!1;return g(!0),x(null),(async()=>{try{let[t,n,i]=await Promise.all([J.gitStatus().catch(()=>null),J.iterationCurrent(),J.listIterations(`local`).catch(()=>null)]);if(e)return;m(t),o(n),f(i);let a=i?.iterations??[],s=e=>{if(e===null)return null;let t=a.find(t=>t.relPath===e)??a.find(t=>t.name===e);return t===void 0?null:{name:t.name,relPath:t.relPath}},l=s(Km()),d=s(Wm(r)),p=n.iteration===null?null:s(n.iteration)??{name:n.iteration,relPath:n.iteration},h=l===null?d===null?p===null?null:{...p,source:`branch`}:{...d,source:`stored`}:{...l,source:`url`};if(c(h),h!==null&&(Gm(r,h.relPath),qm(h.relPath)),h===null){u(null),g(!1);return}let _=await J.iterationSummary(h.name,`local`).catch(()=>null);if(e)return;u(_)}catch(t){if(e)return;x(t instanceof Error?t.message:String(t))}finally{e||g(!1)}})(),()=>{e=!0}},[i,r,_]);let S=t?.terminals??{},C=Object.keys(S),w=C.reduce((e,t)=>e+Wl.reduce((e,n)=>e+(S[t]?.repos[n].length??0),0),0),T=e?.issues??[],E=T.filter(e=>e.level===`error`).length,D=T.filter(e=>e.level===`warning`).length,O=E>0?`destructive`:D>0?`warning`:`success`,k=E>0?`${E} error`:D>0?`${D} warning`:`健康`,A=l?.totals??null,j=l?.developers.find(e=>e.id===n)??null,M=l?.blocked.filter(e=>e.developer===n)??[],N=d?.iterations[0]?.developers.slice(0,6)??[],P=s?.name??null,F=a?.branch??null,I=s===null?``:s.source===`url`?`迭代依据:地址栏指定`:s.source===`stored`?`迭代依据:上次在看板选的${F===null?``:`(分支 ${F})`}`:`迭代依据:当前分支${F===null?``:` ${F}`}`;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 rounded-lg border bg-card px-3.5 py-2.5 text-xs`,children:[(0,z.jsxs)(q,{variant:O===`success`?`success`:O===`warning`?`warning`:`destructive`,children:[(0,z.jsx)(Et,{className:`size-3`}),k]}),p===null?null:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`span`,{className:`flex items-center gap-1.5 text-muted-foreground`,children:[(0,z.jsx)(He,{className:`size-3.5`}),(0,z.jsx)(`span`,{className:`max-w-64 truncate font-mono`,children:p.branch??`detached HEAD`})]}),p.behind>0?(0,z.jsxs)(q,{variant:`warning`,children:[`落后 `,p.behind,` 个提交`]}):null,p.ahead>0?(0,z.jsxs)(q,{variant:`muted`,children:[`本地领先 `,p.ahead,` 个提交`]}):null,p.dirty?(0,z.jsx)(q,{variant:`muted`,children:`工作区有未提交修改`}):null,!p.available&&p.error!==null?(0,z.jsx)(Pl,{content:p.error,children:(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`git 状态不可用`})}):null]}),(0,z.jsx)(`span`,{className:`min-w-6 flex-1`}),(0,z.jsxs)(`span`,{className:`flex items-center gap-1.5 text-muted-foreground`,children:[(0,z.jsx)(Wt,{className:`size-3.5`}),n.length===0?`未设置开发者标识`:n,(0,z.jsx)(`span`,{className:`text-border`,children:`|`}),t===null?`—`:Jl[t.profile.role]]})]}),b===null?null:(0,z.jsx)(`div`,{className:`rounded-lg border border-destructive/25 bg-destructive/8 px-3.5 py-2.5 text-xs text-destructive`,children:b}),i?h?(0,z.jsx)(su,{title:`当前迭代`,children:(0,z.jsx)(`div`,{className:`h-40 animate-pulse rounded-lg border bg-muted/30`})}):P===null?(0,z.jsx)(su,{title:`当前迭代`,description:`与当前分支对应的迭代`,children:(0,z.jsxs)(`div`,{className:`space-y-3 rounded-lg border border-dashed px-4 py-5`,children:[(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:a?.accessible===!1?a.reason??`无法读取文档仓库`:a===null?`读取失败,请检查文档仓库路径与权限`:a.candidates.length>0?`分支名同时匹配多个迭代:${a.candidates.join(`、`)}`:`当前分支未对应任何迭代目录(一迭代一分支的命名约定未命中)`}),(a?.available.length??0)===0?null:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`手动选择:`}),a?.available.map(e=>(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>oh({source:`local`,iteration:e.name}),children:e.name},e.relPath))]})]})}):A===null?(0,z.jsx)(su,{title:`当前迭代`,description:P,children:(0,z.jsxs)(`div`,{className:`rounded-lg border border-dashed px-4 py-5 text-sm text-muted-foreground`,children:[`迭代 `,P,` 的统计暂时读不出来,请打开看板查看原因。`]})}):(0,z.jsxs)(`section`,{className:`space-y-3 rounded-lg border bg-card px-4 py-4`,children:[(0,z.jsx)(sh,{title:(0,z.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[P,(0,z.jsx)(Pl,{content:I,children:(0,z.jsx)(q,{variant:s?.source===`branch`?`muted`:`secondary`,children:s?.source===`url`?`你指定的`:s?.source===`stored`?`上次选择`:`来自当前分支`})}),(0,z.jsx)(Pl,{content:`数字来自你本机工作区的文档(可能包含未提交改动)`,children:(0,z.jsx)(q,{variant:`muted`,children:`数据来源:我的工作区`})})]}),description:`${A.developers} 位成员 · ${A.requirements} 个需求 · ${A.tasks} 个任务`,action:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(Pl,{content:`进入看板查看你本机工作区的文档(含未提交修改)`,children:(0,z.jsx)(K,{variant:`default`,size:`sm`,onClick:()=>oh({source:`local`,iteration:P}),children:`我的工作区`})}),(0,z.jsx)(Pl,{content:`进入看板查看远端分支的提交快照(团队视角,只读)`,children:(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>oh({source:`remote`,iteration:P}),children:`团队快照`})})]})}),(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`div`,{className:`flex items-end justify-between gap-3`,children:[(0,z.jsxs)(`p`,{className:`text-3xl font-semibold tracking-tight tabular-nums`,children:[A.progress,`%`]}),(0,z.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[A.completedTasks,`/`,A.tasks,` 任务已完成`]})]}),(0,z.jsx)(`div`,{className:`mt-2 h-2 overflow-hidden rounded-full bg-muted`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full bg-primary transition-all`,style:{width:`${Math.max(0,Math.min(100,A.progress))}%`}})})]}),(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-4`,children:[(0,z.jsx)(lu,{label:`需求`,value:A.requirements,hint:`${A.developers} 位成员参与`}),(0,z.jsx)(lu,{label:`任务`,value:A.tasks,hint:`已完成 ${A.completedTasks}`}),(0,z.jsx)(lu,{label:`待验收`,value:A.taskStatusCounts.待验收??0,hint:`等待人工验收`,tone:`warning`}),(0,z.jsx)(lu,{label:`阻塞任务`,value:l?.blocked.length??0,hint:`前置依赖未完成`,tone:l!==null&&l.blocked.length>0?`destructive`:`default`})]}),(0,z.jsx)(Vm,{taskCounts:A.taskStatusCounts,requirementCounts:A.requirementStatusCounts,selfTestCounts:A.selfTestCounts,acceptanceCounts:A.acceptanceCounts}),A.errors>0||A.warnings>0?(0,z.jsxs)(`p`,{className:`text-xs text-warning`,children:[`文档校验:`,A.errors,` 个 error、`,A.warnings,` 个 warning,置信度受影响。`]}):null]}):(0,z.jsx)(su,{title:`当前迭代`,description:`配置文档仓库后,这里会显示你所在迭代的进度`,children:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 rounded-lg border border-dashed px-4 py-6`,children:[(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`尚未配置文档仓库。`}),(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>window.location.hash=`settings`,children:`去设置`})]})}),P===null?null:(0,z.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-2`,children:[(0,z.jsxs)(`section`,{className:`space-y-3 rounded-lg border bg-card px-4 py-4`,children:[(0,z.jsx)(sh,{title:`我的待办`,description:n.length===0?`未设置开发者标识`:`${n} 的任务`}),j===null?(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n.length===0?`在设置里填写开发者标识后,这里会显示你自己的任务。`:`你在这个迭代里没有任务文档。`}):(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-3`,children:[(0,z.jsx)(lu,{label:`待验收`,value:j.statusCounts.待验收??0,hint:`等待验收`,tone:(j.statusCounts.待验收??0)>0?`warning`:`default`}),(0,z.jsx)(lu,{label:`进行中`,value:j.statusCounts.进行中??0,hint:`开发中`,tone:(j.statusCounts.进行中??0)>0?`primary`:`default`}),(0,z.jsx)(lu,{label:`我阻塞了`,value:M.length,hint:`依赖我的未完成任务`,tone:M.length>0?`warning`:`default`})]}),j===null?null:(0,z.jsxs)(`p`,{className:`flex items-center gap-1.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(fe,{className:`size-3.5`}),`我的任务完成 `,j.stats.completedTasks,`/`,j.stats.tasks,`(`,j.stats.requirements,` 个需求)`]})]}),(0,z.jsxs)(`section`,{className:`space-y-3 rounded-lg border bg-card px-4 py-4`,children:[(0,z.jsx)(sh,{title:`最近更新`,description:d?.iterations[0]===void 0?``:`${d.iterations[0].relPath} 的成员文档`,action:(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,onClick:()=>oh({source:`local`,iteration:P}),children:[`查看全部`,(0,z.jsx)(ee,{className:`size-3.5`})]})}),N.length===0?(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`没有可显示的文档。`}):(0,z.jsx)(`ul`,{className:`space-y-1.5`,children:N.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>window.location.hash=`iterations?tab=doc&dev=${encodeURIComponent(e.id)}`,className:`flex w-full items-center justify-between gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-accent/50`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`truncate font-medium`,children:e.id}),e.id===n?(0,z.jsx)(q,{variant:`muted`,children:`我`}):null,(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[(e.size/1024).toFixed(0),` KB`]})]}),(0,z.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs text-muted-foreground`,children:[(0,z.jsx)(we,{className:`size-3`}),Ym(e.mtime)]})]})},e.id))})]})]}),(0,z.jsx)(su,{title:`配置`,description:`与设置页一致,改动后立即生效`,children:(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-4`,children:[(0,z.jsx)(lu,{icon:(0,z.jsx)(ot,{}),label:`执行终端`,value:C.length,hint:`PRD 来源映射`}),(0,z.jsx)(lu,{icon:(0,z.jsx)(Pe,{}),label:`本地仓库`,value:w,hint:`前后端合计`}),(0,z.jsx)(lu,{icon:(0,z.jsx)(Qe,{}),label:`文档仓库`,value:i?`已配置`:`未配置`,hint:i?r:`在设置页填写路径`,tone:i?`default`:`warning`}),(0,z.jsx)(lu,{icon:(0,z.jsx)(Et,{}),label:`配置校验`,value:T.length===0?`通过`:`${T.length} 条`,hint:T.length===0?`与 ylcwf doctor 一致`:`展开下方明细`,tone:E>0?`destructive`:D>0?`warning`:`success`,progress:T.length===0?100:void 0})]})}),T.length===0?null:(0,z.jsx)(su,{title:`校验问题`,description:`与 ylcwf doctor 使用同一套规则`,children:(0,z.jsx)(du,{issues:T})})]})}var lh=/^[a-z][a-z0-9]*$/;function uh(){let{draft:e,mutate:t}=ou(),n=e?.profile.developer??``,r=e?.profile.role??`frontend`,i=n.length===0||lh.test(n)?void 0:`必须是小写字母开头的字母数字串(姓名小写全拼)`;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(su,{title:`开发者标识`,description:`个人任务文档文件名,也是文档中「负责人」的取值`,children:(0,z.jsx)(uu,{label:`developer`,htmlFor:`developer`,hint:`姓名小写全拼,例如 zhangsan。仅允许小写字母开头,可含数字与字母。`,error:i,children:(0,z.jsx)(Al,{id:`developer`,value:n,placeholder:`yourname`,spellCheck:!1,autoComplete:`off`,className:`max-w-sm font-mono`,onChange:e=>t(t=>{t.profile.developer=e.target.value.trim()})})})}),(0,z.jsx)(su,{title:`默认角色`,description:`决定写文档时使用的模板与「负责范围」;不影响可录入的仓库数量`,children:(0,z.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-3`,children:Kl.map(e=>{let n=r===e;return(0,z.jsxs)(`button`,{type:`button`,onClick:()=>t(t=>{t.profile.role=e}),className:G(`group relative flex flex-col gap-2 rounded-xl border p-4 text-left transition-all`,n?`border-primary/60 bg-primary/5 shadow-sm ring-1 ring-primary/20`:`hover:border-border hover:bg-accent/40`),children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(`span`,{className:`text-sm font-medium`,children:Jl[e]}),(0,z.jsx)(`span`,{className:G(`flex size-4 items-center justify-center rounded-full border transition`,n?`border-primary bg-primary text-primary-foreground`:`border-muted-foreground/30`),children:n?(0,z.jsx)(ce,{className:`size-2.5`}):null})]}),(0,z.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:Yl[e]})]},e)})})})]})}function dh({value:e,onPick:t,title:n,description:r,label:i=`选择`,disabled:a=!1}){let[o,s]=(0,v.useState)(!1),c=async()=>{let r=await J.pickDirectory({title:n??`选择目录`,defaultPath:e.trim().length>0?e.trim():null});r.ok?r.path!==null&&t(r.path):s(!0)};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`h-8 shrink-0 gap-1 px-2 text-xs`,disabled:a,onClick:()=>void c(),children:[(0,z.jsx)(Ie,{className:`size-3.5`}),i]}),(0,z.jsx)(nm,{open:o,initialPath:e.trim().length===0?void 0:e.trim(),title:n,description:r,onOpenChange:s,onPick:e=>{t(e),s(!1)}})]})}function fh(){let{draft:e,mutate:t,snapshot:n}=ou(),r=e?.docs.root??``,[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(null),c=async()=>{if(r.trim().length!==0){a(!0);try{s(await J.inspect(r.trim()))}finally{a(!1)}}},l=n?.issues.find(e=>e.where===`docs.root`&&e.level===`error`);return(0,z.jsx)(z.Fragment,{children:(0,z.jsxs)(su,{title:`文档仓库路径`,description:`迭代任务文档仓库的绝对路径,需包含 skills/iteration-task-docs/`,actions:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,onClick:()=>void c(),disabled:i||r.length===0,children:[i?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(Re,{className:`size-3.5`}),`检查路径`]}),children:[(0,z.jsx)(uu,{label:`docs.root`,htmlFor:`docs-root`,error:l?.message,children:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(Al,{id:`docs-root`,value:r,placeholder:`/Users/you/develop/iteration-task-repo`,spellCheck:!1,autoComplete:`off`,className:`font-mono text-xs`,onChange:e=>t(t=>{t.docs.root=e.target.value.trim(),s(null)})}),(0,z.jsx)(dh,{value:r,title:`选择文档仓库目录`,description:`逐层进入文档仓库根目录后点「选择此目录」;需包含 skills/iteration-task-docs。`,onPick:e=>t(t=>{t.docs.root=e,s(null)})})]})}),o===null?null:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs`,children:[(0,z.jsx)(fu,{ok:o.exists,text:o.exists?`路径存在`:`路径不存在`}),(0,z.jsx)(fu,{ok:o.isGit,text:o.isGit?`git 仓库`:`非 git 仓库`}),o.hasDocsSkill===void 0?null:(0,z.jsx)(fu,{ok:o.hasDocsSkill,text:o.hasDocsSkill?`含 iteration-task-docs`:`缺少 iteration-task-docs`}),(0,z.jsx)(fu,{ok:(o.iterationYears??[]).length>0,text:(o.iterationYears??[]).length>0?`迭代年份:${(o.iterationYears??[]).join(`、`)}`:`尚无 iterations/<年份>/ 目录`})]}),(0,z.jsx)(mu,{children:`该路径只存于本机配置,不写进业务仓库。修改后点击右上角「保存」,再回到概览确认校验结果。`})]})})}var ph=typeof navigator<`u`&&/Windows/i.test(navigator.userAgent)?`E:\\IdeaProjects\\your-repo`:`/Users/you/develop/your-repo`;function mh(e,t){return{name:e,frontend:[...t.repos.frontend],backend:[...t.repos.backend]}}function hh({side:e,path:t,status:n,onChange:r,onRemove:i,onPick:a}){return(0,z.jsxs)(`div`,{className:`group flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`w-10 shrink-0 text-xs text-muted-foreground`,children:ql[e]}),(0,z.jsx)(Al,{value:t,spellCheck:!1,autoComplete:`off`,placeholder:ph,className:`font-mono text-xs`,onChange:e=>r(e.target.value)}),(0,z.jsx)(dh,{value:t,onPick:a,title:`选择仓库目录`,description:`逐层进入仓库根目录后点「选择此目录」;Windows 与 macOS 路径均可。`}),n===void 0?null:n.exists?(0,z.jsx)(fe,{className:G(`size-4 shrink-0`,n.isGit?`text-success`:`text-warning`)}):(0,z.jsx)(be,{className:`size-4 shrink-0 text-destructive`}),(0,z.jsx)(K,{variant:`ghost`,size:`icon`,className:`shrink-0`,onClick:i,children:(0,z.jsx)(It,{className:`size-3.5 text-muted-foreground`})})]})}function gh({open:e,initial:t,existingNames:n,catalog:r,onOpenChange:i,onSubmit:a}){let[o,s]=(0,v.useState)(t??{name:``,frontend:[],backend:[]}),[c,l]=(0,v.useState)(null);(0,v.useEffect)(()=>{e&&(s(t??{name:``,frontend:[],backend:[]}),l(null))},[e,t]);let u=t?.name??null,d=n.filter(e=>e!==u),f=(e,t,n)=>{s(r=>{let i={...r,[e]:[...r[e]]};return i[e][t]=n,i})},p=(e,t)=>{s(n=>({...n,[e]:n[e].filter((e,n)=>n!==t)}))};return(0,z.jsx)(Hp,{open:e,onOpenChange:i,children:(0,z.jsxs)(Up,{children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:t===null?`新增执行终端`:`编辑「${t.name}」`}),(0,z.jsx)(Kp,{children:`执行终端名取自 PRD 中的写法,可含中文;每端可配置多个仓库。`})]}),(0,z.jsxs)(`div`,{className:`space-y-4`,children:[(0,z.jsx)(uu,{label:`执行终端名`,htmlFor:`terminal-name`,hint:t===null?r.length>0?`只能从文档仓库 execution_terminals.json 中选择`:`文档仓库未提供 execution_terminals.json,按 PRD 写法自由输入`:`名字来自文档仓库 execution_terminals.json,重命名请删除后重新添加`,children:t===null?r.length>0?(0,z.jsxs)(Jp,{value:o.name,onValueChange:e=>{s(t=>({...t,name:e})),l(null)},children:[(0,z.jsx)(Qp,{id:`terminal-name`,children:(0,z.jsx)(Yp,{placeholder:`选择执行终端`})}),(0,z.jsx)($p,{children:r.map(e=>(0,z.jsx)(em,{value:e,children:e},e))})]}):(0,z.jsx)(Al,{id:`terminal-name`,value:o.name,placeholder:`示例执行终端-A`,onChange:e=>{s(t=>({...t,name:e.target.value})),l(null)}}):(0,z.jsx)(Al,{id:`terminal-name`,value:o.name,readOnly:!0,className:`bg-muted/40`})}),Wl.map(e=>(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsxs)(`span`,{className:`text-sm font-medium`,children:[ql[e],`仓库`]}),(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,className:`h-7 gap-1 text-xs`,onClick:()=>s(t=>({...t,[e]:[...t[e],``]})),children:[(0,z.jsx)(ft,{className:`size-3`}),`添加`]})]}),o[e].length===0?(0,z.jsxs)(`p`,{className:`rounded-md border border-dashed px-3 py-2.5 text-xs text-muted-foreground`,children:[`未配置`,ql[e],`仓库`]}):(0,z.jsx)(`div`,{className:`space-y-2`,children:o[e].map((t,n)=>(0,z.jsx)(hh,{side:e,path:t,status:void 0,onChange:t=>f(e,n,t),onRemove:()=>p(e,n),onPick:t=>f(e,n,t)},`${e}-${n}`))})]},e)),c===null?null:(0,z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-md border border-destructive/30 bg-destructive/8 px-3 py-2 text-xs text-destructive`,children:[(0,z.jsx)(Rt,{className:`size-3.5`}),c]})]}),(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>i(!1),children:`取消`}),(0,z.jsx)(K,{size:`sm`,onClick:()=>{let e=o.name.trim();if(e.length===0)return l(`执行终端名不能为空`);if(e.includes(`.`))return l(`执行终端名不能包含「.」`);if(d.includes(e))return l(`执行终端名已存在`);let t=o.frontend.map(e=>e.trim()).filter(e=>e.length>0),n=o.backend.map(e=>e.trim()).filter(e=>e.length>0);for(let e of[...t,...n])if(!El(e))return l(`仓库路径必须是绝对路径:${e}`);if(new Set(t).size!==t.length)return l(`前端仓库存在重复路径`);if(new Set(n).size!==n.length)return l(`后端仓库存在重复路径`);a({name:e,frontend:t,backend:n},u),i(!1)},children:t===null?`添加`:`保存修改`})]})]})})}function _h(){let{draft:e,mutate:t,snapshot:n}=ou(),[r,i]=(0,v.useState)(()=>new URLSearchParams(window.location.search).get(`q`)??``),[a,o]=(0,v.useState)(null),[s,c]=(0,v.useState)(!1),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)({}),[h,g]=(0,v.useState)([]);(0,v.useEffect)(()=>{let e=!1;return J.terminalCatalog().then(t=>{e||g(t.terminals.map(e=>e.name))}).catch(()=>void 0),()=>{e=!0}},[]);let _=e?.terminals??{},y=(0,v.useMemo)(()=>Object.keys(_).sort((e,t)=>e.localeCompare(t,`zh-CN`)),[_]);(0,v.useEffect)(()=>{let e=r.trim();if(e.length===0){o(null);return}let t=!1,n=setTimeout(()=>{J.resolve(e).then(e=>{t||o(e)}).catch(()=>{t||o(null)})},250);return()=>{t=!0,clearTimeout(n)}},[r]);let b=r.trim(),x=b.length===0?y:a?.matched===!0&&a.terminal!==null?y.filter(e=>e===a.terminal):y.filter(e=>e.toLowerCase().includes(b.toLowerCase())),S=(0,v.useMemo)(()=>y.flatMap(e=>Wl.flatMap(t=>_[e]?.repos[t]??[])),[y,_]),C=S.join(`\0`);(0,v.useEffect)(()=>{if(S.length===0){m({});return}let e=!1;return Promise.all(S.map(e=>J.inspect(e).then(t=>[e,t]))).then(t=>{e||m(Object.fromEntries(t))}).catch(()=>void 0),()=>{e=!0}},[C]);let w=(e,n)=>{t(t=>{n!==null&&n!==e.name&&delete t.terminals[n],t.terminals[e.name]={repos:{frontend:e.frontend,backend:e.backend}}})},T=e=>{t(t=>{delete t.terminals[e]}),f(null)};return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(su,{title:`PRD执行终端-本地仓库映射表`,description:`执行终端名用 PRD 中的写法;一端多个仓库时,解析会要求显式选择`,actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(`div`,{className:`relative hidden sm:block`,children:[(0,z.jsx)(St,{className:`pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground`}),(0,z.jsx)(Al,{value:r,placeholder:`搜索执行终端`,className:`h-8 w-44 pl-8 text-xs`,onChange:e=>i(e.target.value)})]}),(0,z.jsxs)(K,{size:`sm`,onClick:()=>{u(null),c(!0)},children:[(0,z.jsx)(ft,{className:`size-3.5`}),`新增执行终端`]})]}),children:[b.length===0?null:(0,z.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 rounded-lg border bg-muted/40 px-3 py-2 text-xs`,children:a===null?(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`解析中…`}):a.matched?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(q,{variant:`success`,children:`命中`}),(0,z.jsxs)(`span`,{className:`text-muted-foreground`,children:[a.matchedBy===null?``:Xl[a.matchedBy],` `,`→`]}),(0,z.jsx)(`span`,{className:`font-medium`,children:a.terminal}),[...a.repos.frontend,...a.repos.backend].length>1?(0,z.jsx)(q,{variant:`warning`,children:`多仓库,Agent 会先询问`}):null]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`未命中,候选(需人工确认):`}),a.candidates.length===0?(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`无`}):a.candidates.map(e=>(0,z.jsx)(`button`,{type:`button`,className:`rounded border bg-background px-2 py-0.5 transition-colors hover:bg-accent`,onClick:()=>i(e),children:e},e))]})}),y.length===0?(0,z.jsx)(pu,{icon:(0,z.jsx)(ot,{className:`size-5`}),title:`还没有配置执行终端`,description:`添加一个执行终端,把 PRD 里的写法映射到本地仓库;支持中文名与多个仓库。`,action:(0,z.jsxs)(K,{size:`sm`,onClick:()=>{u(null),c(!0)},children:[(0,z.jsx)(ft,{className:`size-3.5`}),`新增执行终端`]})}):x.length===0?(0,z.jsxs)(`p`,{className:`rounded-lg border border-dashed px-4 py-8 text-center text-xs text-muted-foreground`,children:[`没有匹配「`,r,`」的执行终端`]}):(0,z.jsx)(`div`,{className:`space-y-3`,children:x.map(e=>{let t=_[e];return t===void 0?null:(0,z.jsx)(Ol,{className:`gap-3 py-4`,children:(0,z.jsxs)(kl,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`min-w-0 space-y-1.5`,children:[(0,z.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:(0,z.jsx)(`span`,{className:`text-sm font-medium`,children:e})}),(0,z.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:Wl.map(e=>`${ql[e]} ${t.repos[e].length}`).join(` · `)})]}),(0,z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,z.jsx)(K,{variant:`ghost`,size:`sm`,className:`h-7 text-xs`,onClick:()=>{u(mh(e,t)),c(!0)},children:`编辑`}),(0,z.jsx)(K,{variant:`ghost`,size:`icon`,onClick:()=>f(e),children:(0,z.jsx)(It,{className:`size-3.5 text-muted-foreground`})})]})]}),(0,z.jsx)(`div`,{className:`space-y-1.5`,children:Wl.map(e=>{let n=t.repos[e];return n.length===0?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,z.jsx)(`span`,{className:`w-10`,children:ql[e]}),(0,z.jsx)(`span`,{className:`rounded border border-dashed px-2 py-0.5`,children:`未配置`})]},e):n.map(t=>{let n=p[t];return(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`w-10 shrink-0 text-xs text-muted-foreground`,children:ql[e]}),(0,z.jsx)(`code`,{className:`min-w-0 flex-1 truncate rounded bg-muted/60 px-2 py-1 font-mono text-xs`,children:t}),n===void 0?null:n.exists?(0,z.jsx)(q,{variant:n.isGit?`success`:`warning`,children:n.isGit?`存在`:`非 git`}):(0,z.jsx)(q,{variant:`destructive`,children:`不存在`})]},`${e}-${t}`)})})})]})},e)})}),n!==null&&n.issues.some(e=>e.where?.startsWith(`terminals`))?(0,z.jsx)(mu,{children:`执行终端相关的问题会显示在「概览 → 校验结果」中;保存后即可看到最新结果。`}):null]}),(0,z.jsx)(gh,{open:s,initial:l,existingNames:y,catalog:h,onOpenChange:c,onSubmit:w}),(0,z.jsx)(Hp,{open:d!==null,onOpenChange:e=>e?void 0:f(null),children:(0,z.jsxs)(Up,{className:`max-w-md`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:`删除执行终端`}),(0,z.jsxs)(Kp,{children:[`确认删除「`,d,`」?该操作会在保存后写入配置文件。`]})]}),(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>f(null),children:`取消`}),(0,z.jsx)(K,{variant:`destructive`,size:`sm`,onClick:()=>d!==null&&T(d),children:`删除`})]})]})})]})}function vh(e){return new Date(e).toLocaleString(`zh-CN`,{hour12:!1})}function yh(e){return e<1024?`${e} B`:`${(e/1024).toFixed(1)} KB`}function bh(){let{snapshot:e,restore:t,saving:n}=ou(),[r,i]=(0,v.useState)(null),a=e?.backups??[];return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(su,{title:`配置备份`,description:`每次保存前自动备份,最多保留 10 份;回滚会先备份当前文件`,actions:(0,z.jsxs)(q,{variant:`muted`,children:[a.length,` 份`]}),children:[a.length===0?(0,z.jsx)(pu,{icon:(0,z.jsx)(gt,{className:`size-5`}),title:`暂无备份`,description:`第一次保存配置后,这里会出现历史版本,可用于对比与回滚。`}):(0,z.jsx)(`div`,{className:`space-y-2`,children:a.map((e,t)=>(0,z.jsx)(Ol,{className:`gap-0 py-3`,children:(0,z.jsxs)(kl,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`text-xs font-medium`,children:vh(e.mtime)}),t===0?(0,z.jsx)(q,{variant:`secondary`,children:`最新`}):null]}),(0,z.jsxs)(`p`,{className:`truncate font-mono text-[10px] text-muted-foreground`,title:e.name,children:[e.name,` · `,yh(e.size)]})]}),(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`shrink-0 gap-1.5 text-xs`,onClick:()=>i(e.name),children:[(0,z.jsx)(vt,{className:`size-3`}),`回滚`]})]})},e.name))}),(0,z.jsx)(mu,{children:`回滚会覆盖当前配置文件。若当前存在未保存的修改,回滚后这些修改会被丢弃。`})]}),(0,z.jsx)(Hp,{open:r!==null,onOpenChange:e=>e?void 0:i(null),children:(0,z.jsxs)(Up,{className:`max-w-md`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:`回滚到该备份`}),(0,z.jsxs)(Kp,{children:[`将用 `,(0,z.jsx)(`code`,{className:`font-mono text-xs`,children:r}),` 覆盖当前配置,系统会先把当前文件再备份一次。`]})]}),(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>i(null),children:`取消`}),(0,z.jsxs)(K,{size:`sm`,disabled:n,onClick:()=>{if(r===null)return;let e=r;i(null),t(e)},children:[n?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(vt,{className:`size-3.5`}),`确认回滚`]})]})]})})]})}var xh={profile:`profile`,docs:`docs`,terminals:`terminals`,backups:`backups`};function Sh(){let[e,t]=window.location.hash.replace(`#`,``).split(`?`);return new URLSearchParams(t??``).get(`tab`)??xh[e??``]??`about`}function Ch(){let{snapshot:e,draft:t,mutate:n}=ou(),r=Am(),i=lm(),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(!1),[l,u]=(0,v.useState)(!1),d=e?.issues.filter(e=>e.level===`error`).length??0,f=e?.issues.filter(e=>e.level===`warning`).length??0,p=e?.backups.length??0,[m,h]=(0,v.useState)(null),[g,_]=(0,v.useState)(!1),[y,b]=(0,v.useState)(()=>Sh());(0,v.useEffect)(()=>{let e=()=>b(Sh());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]);let x=e=>{b(e);let t=new URL(window.location.href);t.hash=`settings?tab=${e}`,window.history.replaceState(null,``,t)},S=[{id:`profile`,label:`身份`,icon:Ht},{id:`docs`,label:`文档仓库`,icon:Pe},{id:`terminals`,label:`PRD执行终端映射`,icon:ot},{id:`backups`,label:`备份`,icon:gt},{id:`about`,label:`关于`,icon:Je}],C=async()=>{_(!0);try{h(await J.updateCheck(!0))}catch(t){h({current:e?.meta.version??``,latest:null,hasUpdate:!1,downloadUrl:null,source:`none`,checkedAt:new Date().toISOString(),error:t instanceof Error?t.message:String(t)})}finally{_(!1)}};(0,v.useEffect)(()=>{J.updateCheck(!1).then(h).catch(()=>void 0)},[]);let w=async()=>{c(!0);try{await J.reset(l),window.location.reload()}finally{c(!1),o(!1)}},T=()=>{if(t===null)return;let e=new Blob([JSON.stringify(t,null,2)],{type:`application/json`}),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=`ylcwf-config.json`,r.click(),URL.revokeObjectURL(n)},E=(0,z.jsx)(`nav`,{"aria-label":`设置分区`,className:`flex gap-1 overflow-x-auto rounded-xl border bg-card p-2 lg:flex-col lg:overflow-visible`,children:S.map(e=>{let t=e.icon,n=y===e.id;return(0,z.jsxs)(`button`,{type:`button`,"aria-current":n?`page`:void 0,onClick:()=>x(e.id),className:G(`relative flex shrink-0 items-center gap-2.5 rounded-lg px-3 py-2 text-sm transition-colors`,n?`bg-primary/8 font-medium text-foreground before:absolute before:inset-y-1.5 before:left-0 before:w-0.5 before:rounded-full before:bg-primary`:`text-muted-foreground hover:bg-accent/50 hover:text-foreground`),children:[(0,z.jsx)(t,{className:`size-4 shrink-0`}),e.label]},e.id)})});return(0,z.jsxs)(`div`,{className:`flex h-full min-h-0 animate-fade-up flex-col gap-4 p-6 lg:flex-row lg:gap-6`,children:[(0,z.jsx)(`aside`,{className:`shrink-0 lg:w-[200px]`,children:E}),(0,z.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto lg:pr-2`,children:(0,z.jsxs)(`div`,{className:`max-w-3xl space-y-6 pb-10`,children:[y===`profile`?(0,z.jsx)(uh,{}):null,y===`docs`?(0,z.jsx)(fh,{}):null,y===`terminals`?(0,z.jsx)(_h,{}):null,y===`backups`?(0,z.jsx)(bh,{}):null,y===`about`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(su,{title:`外观`,description:`深浅模式与主题色,仅保存在本机浏览器`,children:(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsx)(`div`,{className:`flex w-fit items-center gap-1 rounded-lg border p-0.5`,children:[`system`,`light`,`dark`].map(e=>(0,z.jsxs)(`button`,{type:`button`,onClick:()=>km(e),className:G(`flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs transition-colors`,r.mode===e?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`),children:[e===`system`?(0,z.jsx)(nt,{className:`size-3.5`}):e===`dark`?(0,z.jsx)(it,{className:`size-3.5`}):(0,z.jsx)(Pt,{className:`size-3.5`}),_m[e]]},e))}),(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:rm.map(e=>{let t=i===e.id;return(0,z.jsxs)(`button`,{type:`button`,onClick:()=>dm(e.id),style:t?{borderColor:e.dot}:void 0,className:G(`flex items-center gap-2 rounded-full border-2 px-3.5 py-1.5 text-xs transition-colors`,t?`font-medium text-foreground`:`border-border text-muted-foreground hover:border-muted-foreground/40 hover:text-foreground`),children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`size-3.5 shrink-0 rounded-full ring-1 ring-black/10 dark:ring-white/20`,style:{backgroundColor:e.dot}}),e.label]},e.id)})})]})}),(0,z.jsx)(su,{title:`配置文件`,description:`CLI 与桌面端共享配置`,children:(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg bg-muted/50 px-4 py-3`,children:[(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`路径`}),e===null?null:d>0?(0,z.jsxs)(q,{variant:`destructive`,children:[d,` 项 error`]}):f>0?(0,z.jsxs)(q,{variant:`warning`,children:[f,` 项 warning`]}):(0,z.jsx)(q,{variant:`success`,children:`配置健康`})]}),(0,z.jsx)(`p`,{className:`truncate font-mono text-xs`,title:e?.configPath,children:e?.configPath??`—`})]}),(0,z.jsxs)(`div`,{className:`flex shrink-0 gap-1.5`,children:[(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`gap-1.5 text-xs`,onClick:()=>{J.revealConfig()},children:[(0,z.jsx)(Ie,{className:`size-3.5`}),`打开目录`]}),(0,z.jsxs)(K,{variant:`outline`,size:`sm`,className:`gap-1.5 text-xs`,onClick:T,children:[(0,z.jsx)(Ae,{className:`size-3.5`}),`导出 JSON`]})]})]}),(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-3`,children:[(0,z.jsxs)(`div`,{className:`rounded-lg bg-muted/50 px-4 py-3`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`应用版本`}),(0,z.jsxs)(`div`,{className:`mt-1 flex flex-wrap items-center gap-2`,children:[(0,z.jsxs)(`span`,{className:`font-mono text-sm`,children:[`v`,e?.meta.version??`—`]}),m?.hasUpdate===!0?(0,z.jsxs)(q,{variant:`warning`,children:[`有新版 v`,m.latest]}):m!==null&&m.error===null&&m.latest!==null?(0,z.jsx)(q,{variant:`success`,children:`已是最新`}):null,(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,className:`h-6 px-2 text-xs`,disabled:g===!0,onClick:()=>void C(),children:[g===!0?(0,z.jsx)(et,{className:`size-3 animate-spin`}):null,`检查更新`]})]}),m?.error===null||m===null?null:(0,z.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:m.error}),m?.hasUpdate===!0?m.downloadUrl===null?J.mode===`electron`?(0,z.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[`v`,m.latest,` 的安装包请到 GitLab 仓库`,` `,(0,z.jsx)(`span`,{className:`font-mono`,children:`zhanyoulin/ylcwf`}),` 的`,` `,(0,z.jsx)(`span`,{className:`font-mono`,children:`release`}),` 目录下载`]}):(0,z.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[`当前界面由本地 CLI 提供,升级 CLI 后刷新即可:`,(0,z.jsx)(`code`,{className:`mx-1 rounded bg-muted px-1 py-0.5 font-mono`,children:`ylcwf upgrade`})]}):(0,z.jsxs)(`button`,{type:`button`,onClick:()=>window.open(m.downloadUrl??``,`_blank`),className:`mt-1 text-xs text-primary underline-offset-2 hover:underline`,children:[`下载 v`,m.latest]}):null]}),(0,z.jsxs)(`div`,{className:`rounded-lg bg-muted/50 px-4 py-3`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`运行模式`}),(0,z.jsx)(`p`,{className:`mt-1 text-sm`,children:J.mode===`electron`?`桌面端`:`本地浏览器`})]})]})]})}),(0,z.jsx)(su,{title:`Git 操作`,description:`状态变更后对文档仓库的 git 行为,不影响业务代码仓库`,children:(0,z.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[`cli`,`ui`].map(e=>{let r=t?.docs.git?.[e]??Gl;return(0,z.jsxs)(`div`,{className:`space-y-1.5 rounded-lg bg-muted/40 px-4 py-3`,children:[(0,z.jsx)(`p`,{className:`text-xs font-medium`,children:e===`cli`?`CLI / Agent 调用`:`界面操作`}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,z.jsx)(`input`,{type:`checkbox`,className:`size-3.5 accent-primary`,checked:r.commit,onChange:t=>n(n=>{n.docs.git[e].commit=t.target.checked,t.target.checked||(n.docs.git[e].push=!1)})}),`自动提交`]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,z.jsx)(`input`,{type:`checkbox`,className:`size-3.5 accent-primary`,checked:r.push,disabled:!r.commit,onChange:t=>n(n=>{n.docs.git[e].push=t.target.checked,t.target.checked&&(n.docs.git[e].commit=!0)})}),`提交后推送`]})]},e)})})}),(0,z.jsx)(su,{title:`清除配置`,description:`删除本机配置,下次启动会重新进入首次引导;配置备份默认保留`,children:(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg border border-destructive/25 bg-destructive/5 px-4 py-3`,children:[(0,z.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,z.jsx)(`p`,{className:`text-sm font-medium`,children:`从零重新开始`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`将删除 ~/.ylcwf/config.yaml,不可撤销。备份目录 backups/ 默认保留,可用于回滚;需要一并清空请在确认时勾选。`})]}),(0,z.jsxs)(K,{variant:`destructive`,size:`sm`,className:`shrink-0 gap-1.5`,onClick:()=>{u(!1),o(!0)},children:[(0,z.jsx)(It,{className:`size-3.5`}),`清除配置`]})]})}),(0,z.jsx)(Hp,{open:a,onOpenChange:e=>e?void 0:o(!1),children:(0,z.jsxs)(Up,{className:`max-w-md`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{children:`确认清除配置`}),(0,z.jsxs)(Kp,{children:[`将删除配置文件并回到首次引导,此操作不可撤销。`,p>0?`历史备份(${p} 份)默认保留,可在「配置备份」页回滚。`:`当前没有历史备份。`]})]}),p>0?(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,z.jsx)(`input`,{type:`checkbox`,className:`size-3.5 accent-destructive`,checked:l,disabled:s,onChange:e=>u(e.target.checked)}),`同时删除历史备份(`,p,` 份,删除后无法回滚)`]}):null,(0,z.jsxs)(qp,{children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>o(!1),children:`取消`}),(0,z.jsx)(K,{variant:`destructive`,size:`sm`,disabled:s,onClick:()=>void w(),children:`确认清除`})]})]})})]}):null]})})]})}function wh(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Th=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Eh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dh={};function Oh(e,t){return((t||Dh).jsx?Eh:Th).test(e)}var kh=/[ \t\n\f\r]/g;function Ah(e){return typeof e==`object`?e.type===`text`&&jh(e.value):jh(e)}function jh(e){return e.replace(kh,``)===``}var Mh=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Mh.prototype.normal={},Mh.prototype.property={},Mh.prototype.space=void 0;function Nh(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Mh(n,r,t)}function Ph(e){return e.toLowerCase()}var Fh=class{constructor(e,t){this.attribute=t,this.property=e}};Fh.prototype.attribute=``,Fh.prototype.booleanish=!1,Fh.prototype.boolean=!1,Fh.prototype.commaOrSpaceSeparated=!1,Fh.prototype.commaSeparated=!1,Fh.prototype.defined=!1,Fh.prototype.mustUseProperty=!1,Fh.prototype.number=!1,Fh.prototype.overloadedBoolean=!1,Fh.prototype.property=``,Fh.prototype.spaceSeparated=!1,Fh.prototype.space=void 0;var Ih=s({boolean:()=>X,booleanish:()=>Rh,commaOrSpaceSeparated:()=>Hh,commaSeparated:()=>Vh,number:()=>Z,overloadedBoolean:()=>zh,spaceSeparated:()=>Bh}),Lh=0,X=Uh(),Rh=Uh(),zh=Uh(),Z=Uh(),Bh=Uh(),Vh=Uh(),Hh=Uh();function Uh(){return 2**++Lh}var Wh=Object.keys(Ih),Gh=class extends Fh{constructor(e,t,n,r){let i=-1;if(super(e,t),Kh(this,`space`,r),typeof n==`number`)for(;++i<Wh.length;){let e=Wh[i];Kh(this,Wh[i],(n&Ih[e])===Ih[e])}}};Gh.prototype.defined=!0;function Kh(e,t,n){n&&(e[t]=n)}function qh(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Gh(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ph(r)]=r,n[Ph(a.attribute)]=r}return new Mh(t,n,e.space)}var Jh=qh({properties:{ariaActiveDescendant:null,ariaAtomic:Rh,ariaAutoComplete:null,ariaBusy:Rh,ariaChecked:Rh,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Bh,ariaCurrent:null,ariaDescribedBy:Bh,ariaDetails:null,ariaDisabled:Rh,ariaDropEffect:Bh,ariaErrorMessage:null,ariaExpanded:Rh,ariaFlowTo:Bh,ariaGrabbed:Rh,ariaHasPopup:null,ariaHidden:Rh,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bh,ariaLevel:Z,ariaLive:null,ariaModal:Rh,ariaMultiLine:Rh,ariaMultiSelectable:Rh,ariaOrientation:null,ariaOwns:Bh,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:Rh,ariaReadOnly:Rh,ariaRelevant:null,ariaRequired:Rh,ariaRoleDescription:Bh,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:Rh,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Yh(e,t){return t in e?e[t]:t}function Xh(e,t){return Yh(e,t.toLowerCase())}var Zh=qh({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Vh,acceptCharset:Bh,accessKey:Bh,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alpha:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:Bh,autoFocus:X,autoPlay:X,blocking:Bh,capture:null,charSet:null,checked:X,cite:null,className:Bh,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:Rh,controls:X,controlsList:Bh,coords:Z|Vh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:zh,draggable:Rh,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:Bh,height:Z,hidden:zh,high:Z,href:null,hrefLang:null,htmlFor:Bh,httpEquiv:Bh,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:Bh,itemRef:Bh,itemScope:X,itemType:Bh,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,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:X,optimum:Z,pattern:null,ping:Bh,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:Bh,required:X,reversed:X,rows:Z,rowSpan:Z,sandbox:Bh,scope:null,scoped:X,seamless:X,selected:X,shadowRootClonable:X,shadowRootCustomElementRegistry:X,shadowRootDelegatesFocus:X,shadowRootMode:null,shadowRootSerializable:X,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:Rh,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:Rh,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Bh,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:Rh,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:X,disablePictureInPicture:X,disableRemotePlayback:X,exportParts:Vh,part:Bh,prefix:null,property:null,results:Z,security:null,unselectable:null},space:`html`,transform:Xh}),Qh=qh({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:Hh,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Bh,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:X,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:Vh,g2:Vh,glyphName:Vh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Hh,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,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:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bh,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hh,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hh,rev:Hh,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hh,requiredFeatures:Hh,requiredFonts:Hh,requiredFormats:Hh,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Hh,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hh,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hh,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Yh}),$h=qh({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),eg=qh({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Xh}),tg=qh({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),ng={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`},rg=/[A-Z]/g,ig=/-[a-z]/g,ag=/^data[-\w.:]+$/i;function og(e,t){let n=Ph(t),r=t,i=Fh;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ag.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(ig,cg);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ig.test(e)){let n=e.replace(rg,sg);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Gh}return new i(r,t)}function sg(e){return`-`+e.toLowerCase()}function cg(e){return e.charAt(1).toUpperCase()}var lg=Nh([Jh,Zh,$h,eg,tg],`html`),ug=Nh([Jh,Qh,$h,eg,tg],`svg`);function dg(e){return e.join(` `).trim()}var fg=/\/\*(?:[^*]|\*(?!\/))*\*\//g,pg=/\n/g,mg=/^\s*/,hg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,gg=/^:\s*/,_g=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,vg=/^[;\s]*/,yg=`
|
|
50
|
+
`,bg=`/`,xg=`*`,Sg=``,Cg=`comment`,wg=`declaration`;function Tg(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(pg);t&&(n+=t.length);var i=e.lastIndexOf(yg);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(mg)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(bg==e.charAt(0)&&xg==e.charAt(1)){for(var n=2;Sg!=e.charAt(n)&&(xg!=e.charAt(n)||bg!=e.charAt(n+1));)++n;if(n+=2,Sg===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Cg,comment:o})}}function f(){var e=a(),t=c(hg);if(t){if(d(),!c(gg))return s(`property missing ':'`);var n=c(_g),r=e({type:wg,property:t[0].replace(fg,Sg).trim(),value:n?n[0].replace(fg,Sg).trim():Sg});return c(vg),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function Eg(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=Tg(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}var Dg=kg(`end`),Og=kg(`start`);function kg(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Ag(e){let t=Og(e),n=Dg(e);if(t&&n)return{start:t,end:n}}function jg(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Ng(e.position):`start`in e||`end`in e?Ng(e):`line`in e||`column`in e?Mg(e):``}function Mg(e){return Pg(e&&e.line)+`:`+Pg(e&&e.column)}function Ng(e){return Mg(e&&e.start)+`-`+Mg(e&&e.end)}function Pg(e){return e&&typeof e==`number`?e:1}var Fg=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=jg(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Object.defineProperties(Fg.prototype,{file:{configurable:!0,enumerable:!0,value:``,writable:!0},name:{configurable:!0,enumerable:!0,value:``,writable:!0},reason:{configurable:!0,enumerable:!0,value:``,writable:!0},message:{configurable:!0,enumerable:!0,value:``,writable:!0},stack:{configurable:!0,enumerable:!0,value:``,writable:!0},column:{configurable:!0,enumerable:!0,writable:!0},line:{configurable:!0,enumerable:!0,writable:!0},ancestors:{configurable:!0,enumerable:!0,writable:!0},cause:{configurable:!0,enumerable:!0,writable:!0},fatal:{configurable:!0,enumerable:!0,writable:!0},place:{configurable:!0,enumerable:!0,writable:!0},ruleId:{configurable:!0,enumerable:!0,writable:!0},source:{configurable:!0,enumerable:!0,writable:!0}});var Ig={}.hasOwnProperty,Lg=new Map,Rg=/[A-Z]/g,zg=/-([a-z])/g,Bg=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Vg=new Set([`td`,`th`]),Hg=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Ug(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=e_(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=$g(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?ug:lg,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Wg(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Wg(e,t,n){if(t.type===`element`)return Gg(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Kg(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Jg(e,t,n);if(t.type===`mdxjsEsm`)return qg(e,t);if(t.type===`root`)return Yg(e,t,n);if(t.type===`text`)return Xg(e,t)}function Gg(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=ug,e.schema=i),e.ancestors.push(t);let a=o_(e,t.tagName,!1),o=t_(e,t),s=r_(e,t);return Bg.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Ah(e)})),Zg(e,o,a,t),Qg(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Kg(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}s_(e,t.position)}function qg(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);s_(e,t.position)}function Jg(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=ug,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:o_(e,t.name,!0),o=n_(e,t),s=r_(e,t);return Zg(e,o,a,t),Qg(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Yg(e,t,n){let r={};return Qg(r,r_(e,t)),e.create(t,e.Fragment,r,n)}function Xg(e,t){return t.value}function Zg(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Qg(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function $g(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function e_(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Og(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function t_(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Ig.call(t.properties,i)){let a=i_(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Vg.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function n_(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else s_(e,t.position)}else{let{name:i}=r,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else s_(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function r_(e,t){let n=[],r=-1,i=e.passKeys?new Map:Lg;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Wg(e,a,o);s!==void 0&&n.push(s)}return n}function i_(e,t,n){if(n==null||typeof n==`number`&&Number.isNaN(n))return;let r=og(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?wh(n):dg(n)),r.property===`style`?[`style`,typeof n==`object`?e.stylePropertyNameCase===`dom`?n:c_(n):a_(e,String(n))]:[e.elementAttributeNameCase===`react`&&r.space?ng[r.property]||r.property:r.attribute,n]}function a_(e,t){let n={};try{Eg(t,function(t,r){if(t&&r){let i=t;i.slice(0,2)!==`--`&&(i=i.toLowerCase(),e.stylePropertyNameCase===`dom`&&(i.slice(0,4)===`-ms-`&&(i=i.slice(1)),i=i.replace(zg,d_))),n[i]=r}})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Fg("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Hg+`#cannot-parse-style-attribute`,r}return n}function o_(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Oh(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Oh(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Ig.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);s_(e)}function s_(e,t){let n=new Fg("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Hg+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function c_(e){let t={},n;for(n in e)Ig.call(e,n)&&(t[l_(n)]=e[n]);return t}function l_(e){if(e.slice(0,2)===`--`)return e;let t=e.replace(Rg,u_);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function u_(e){return`-`+e.toLowerCase()}function d_(e,t){return t.toUpperCase()}var f_={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`]},p_={};function m_(e,t){let n=t||p_;return h_(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function h_(e,t,n){if(__(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return g_(e.children,t,n)}return Array.isArray(e)?g_(e,t,n):``}function g_(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=h_(e[i],t,n);return r.join(``)}function __(e){return!!(e&&typeof e==`object`)}var v_=document.createElement(`i`);function y_(e){let t=`&`+e+`;`;v_.innerHTML=t;let n=v_.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function b_(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function x_(e,t){return e.length>0?(b_(e,e.length,0,t),e):t}var S_={}.hasOwnProperty;function C_(e){let t={},n=-1;for(;++n<e.length;)w_(t,e[n]);return t}function w_(e,t){let n;for(n in t){let r=(S_.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){S_.call(r,a)||(r[a]=[]);let e=i[a];T_(r[a],Array.isArray(e)?e:e?[e]:[])}}}function T_(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);b_(e,0,0,r)}function E_(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function D_(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var O_=R_(/[A-Za-z]/),k_=R_(/[\dA-Za-z]/),A_=R_(/[#-'*+\--9=?A-Z^-~]/);function j_(e){return e!==null&&(e<32||e===127)}var M_=R_(/\d/),N_=R_(/[\dA-Fa-f]/),P_=R_(/[!-/:-@[-`{-~]/);function Q(e){return e!==null&&e<-2}function F_(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}var I_=R_(/\p{P}|\p{S}/u),L_=R_(/\s/);function R_(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function z_(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&k_(e.charCodeAt(n+1))&&k_(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function B_(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return $(r)?(e.enter(n),s(r)):t(r)}function s(r){return $(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function V_(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&$(t)?(e.enter(r),c(t)):l(t)}function c(t){return $(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var H_={tokenize:U_};function U_(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),B_(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return Q(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var W_=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){G_(this,e,t,n,!1)}addBefore(e,t,n){G_(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function G_(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var K_={tokenize:J_},q_={tokenize:Y_};function J_(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new W_;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(q_,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(q_,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return Q(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new W_;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Y_(e,t,n){return B_(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function X_(e){if(e===null||F_(e)||L_(e))return 1;if(I_(e))return 2}function Z_(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Q_={name:`attention`,resolveAll:$_,tokenize:ev};function $_(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};tv(o,-a),tv(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=x_(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=x_(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=x_(r,Z_(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=x_(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=x_(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),b_(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function ev(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=X_(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=X_(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function tv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var nv={name:`autolink`,tokenize:rv};function rv(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return O_(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||k_(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||k_(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||j_(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):A_(t)?(e.consume(t),l):n(t)}function u(e){return k_(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||k_(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var iv={partial:!0,tokenize:av};function av(e,t,n){return r;function r(t){return $(t)?B_(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Q(e)?t(e):n(e)}}var ov={continuation:{tokenize:cv},exit:lv,name:`blockQuote`,tokenize:sv};function sv(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return $(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function cv(e,t,n){let r=this;return i;function i(t){return $(t)?B_(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(ov,t,n)(r)}}function lv(e){e.exit(`blockQuote`)}var uv={name:`characterEscape`,tokenize:dv};function dv(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return P_(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var fv={name:`characterReference`,tokenize:pv};function pv(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=k_,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=N_,u):(e.enter(`characterReferenceValue`),a=7,o=M_,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===k_&&!y_(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var mv={partial:!0,tokenize:hv};function hv(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var gv={concrete:!0,name:`codeFenced`,tokenize:_v};function _v(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),$(t)?B_(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Q(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(mv,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):$(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),B_(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Q(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&$(t)?B_(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Q(t)?e.check(mv,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Q(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),$(t)?B_(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),$(t)?B_(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Q(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var vv={name:`codeIndented`,tokenize:bv},yv={partial:!0,tokenize:xv};function bv(e,t,n){return r;function r(t){return e.enter(`codeIndented`),V_(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Q(t)?e.attempt(yv,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Q(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function xv(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Q(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):V_(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Q(e)?i(e):n(e)}}var Sv={name:`codeText`,previous:wv,resolve:Cv,tokenize:Tv};function Cv(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function wv(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Tv(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Q(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Ev=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Dv(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Dv(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Dv(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);Dv(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Dv(this.left,t.reverse())}}}};function Dv(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ov(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Ev(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,kv(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return b_(e,0,1/0,u.slice(0)),!l}function kv(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Av={resolve:Mv,tokenize:Nv},jv={partial:!0,tokenize:Pv};function Mv(e){return Ov(e),e}function Nv(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Q(t)?e.check(jv,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Pv(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),B_(e,a,`linePrefix`)}function a(i){if(i===null||Q(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Fv(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||j_(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Q(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||F_(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||j_(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Iv(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Q(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Q(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!$(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Lv(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),B_(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Q(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Rv(e,t){let n;return r;function r(i){return Q(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):$(i)?B_(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var zv={name:`definition`,tokenize:Vv},Bv={partial:!0,tokenize:Hv};function Vv(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Iv.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=D_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return F_(t)?Rv(e,l)(t):l(t)}function l(t){return Fv(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Bv,d,d)(t)}function d(t){return $(t)?B_(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Q(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Hv(e,t,n){return r;function r(t){return F_(t)?Rv(e,i)(t):n(t)}function i(t){return Lv(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return $(t)?B_(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Q(e)?t(e):n(e)}}var Uv={name:`hardBreakEscape`,tokenize:Wv};function Wv(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Q(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Gv={name:`headingAtx`,resolve:Kv,tokenize:qv};function Kv(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};b_(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function qv(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||F_(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Q(n)?(e.exit(`atxHeading`),t(n)):$(n)?B_(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||F_(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Jv=`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`.split(`.`),Yv=[`pre`,`script`,`style`,`textarea`],Xv={concrete:!0,name:`htmlFlow`,resolveTo:Qv,tokenize:$v},Zv={partial:!0,tokenize:ey};function Qv(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function $v(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):O_(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):O_(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return O_(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||F_(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Yv.includes(l)?(i=1,r.interrupt?t(s):O(s)):Jv.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||k_(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return $(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||O_(t)?(e.consume(t),b):$(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||k_(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):$(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):$(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Q(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||F_(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||$(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Q(t)?O(t):$(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),ee):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):Q(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Zv,te,k)(t)):t===null||Q(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(mv,A,te)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Q(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return Yv.includes(n)?(e.consume(t),ee):O(t)}return O_(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),ee):t===45&&i===2?(e.consume(t),I):O(t)}function ee(t){return t===null||Q(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),ee)}function te(n){return e.exit(`htmlFlow`),t(n)}}function ey(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(iv,t,n)}}var ty={name:`htmlText`,tokenize:ny};function ny(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):O_(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):O_(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Q(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Q(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):Q(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Q(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return O_(t)?(e.consume(t),S):n(t)}function S(t){return t===45||k_(t)?(e.consume(t),S):C(t)}function C(t){return Q(t)?(o=C,N(t)):$(t)?(e.consume(t),C):M(t)}function w(t){return t===45||k_(t)?(e.consume(t),w):t===47||t===62||F_(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||O_(t)?(e.consume(t),E):Q(t)?(o=T,N(t)):$(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||k_(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Q(t)?(o=D,N(t)):$(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):Q(t)?(o=O,N(t)):$(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):Q(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||F_(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||F_(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return $(t)?B_(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var ry={name:`labelEnd`,resolveAll:sy,resolveTo:cy,tokenize:ly},iy={tokenize:uy},ay={tokenize:dy},oy={tokenize:fy};function sy(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&b_(e,0,e.length,n),e}function cy(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=x_(o,e.slice(i+1,i+r+3)),o=x_(o,[[`enter`,l,t]]),o=x_(o,Z_(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=x_(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=x_(o,e.slice(a+1)),o=x_(o,[[`exit`,s,t]]),b_(e,i,e.length,o),e}function ly(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(D_(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(iy,u,o?u:d)(t):t===91?e.attempt(ay,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(oy,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function uy(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return F_(t)?Rv(e,a)(t):a(t)}function a(t){return t===41?u(t):Fv(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return F_(t)?Rv(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Lv(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return F_(t)?Rv(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function dy(e,t,n){let r=this;return i;function i(t){return Iv.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(D_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function fy(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var py={name:`labelStartImage`,resolveAll:ry.resolveAll,tokenize:my};function my(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var hy={name:`labelStartLink`,resolveAll:ry.resolveAll,tokenize:gy};function gy(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var _y={name:`lineEnding`,tokenize:vy};function vy(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),B_(e,t,`linePrefix`)}}var yy={name:`thematicBreak`,tokenize:by};function by(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Q(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),$(t)?B_(e,s,`whitespace`)(t):s(t))}}var xy={continuation:{tokenize:Ty},exit:Dy,name:`list`,tokenize:wy},Sy={partial:!0,tokenize:Oy},Cy={partial:!0,tokenize:Ey};function wy(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:M_(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(yy,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return M_(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(iv,r.interrupt?n:u,e.attempt(Sy,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return $(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Ty(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(iv,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B_(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!$(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Cy,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,B_(e,e.attempt(xy,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Ey(e,t,n){let r=this;return B_(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Dy(e){e.exit(this.containerState.type)}function Oy(e,t,n){let r=this;return B_(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!$(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var ky={name:`setextUnderline`,resolveTo:Ay,tokenize:jy};function Ay(e,t){let n=new W_,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function jy(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),$(t)?B_(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Q(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var My={tokenize:Ny};function Ny(e){let t=this,n=e.attempt(iv,r,e.attempt(this.parser.constructs.flowInitial,i,B_(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Av,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Py={resolveAll:Ry()},Fy=Ly(`string`),Iy=Ly(`text`);function Ly(e){return{resolveAll:Ry(e===`text`?zy:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Ry(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function zy(e,t){let n=new W_,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var By=s({attentionMarkers:()=>Jy,contentInitial:()=>Hy,disable:()=>Yy,document:()=>Vy,flow:()=>Wy,flowInitial:()=>Uy,insideSpan:()=>qy,string:()=>Gy,text:()=>Ky}),Vy={42:xy,43:xy,45:xy,48:xy,49:xy,50:xy,51:xy,52:xy,53:xy,54:xy,55:xy,56:xy,57:xy,62:ov},Hy={91:zv},Uy={[-2]:vv,[-1]:vv,32:vv},Wy={35:Gv,42:yy,45:[ky,yy],60:Xv,61:ky,95:yy,96:gv,126:gv},Gy={38:fv,92:uv},Ky={[-5]:_y,[-4]:_y,[-3]:_y,33:py,38:fv,42:Q_,60:[nv,ty],91:hy,92:[Uv,uv],93:ry,95:Q_,96:Sv},qy={null:[Q_,Py]},Jy={null:[42,95]},Yy={null:[]};function Xy(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=x_(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Z_(a,l.events,l),l.events):[]}function f(e,t){return Qy(p(e),t)}function p(e){return Zy(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){Q(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&b_(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Zy(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Qy(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
51
51
|
`;break;case-3:o=`\r
|
|
52
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Ky(e){let t={constructs:g_([Ny,...(e||{}).extensions||[]]),content:n(F_),defined:[],document:n(z_),flow:n(Ty),lazy:{},string:n(Oy),text:n(ky)};return t;function n(e){return n;function n(n){return Uy(t,e,n)}}}function qy(e){for(;!xv(e););return e}var Jy=/[\0\t\n\r]/g;function Yy(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){Jy.lastIndex=c;let n=Jy.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Xy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zy(e){return e.replace(Xy,Qy)}function Qy(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return y_(n.slice(t?2:1),t?16:10)}return f_(n)||e}var $y={}.hasOwnProperty;function eb(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),tb(n)(qy(Ky(n).document().write(Yy()(e,t,!0))))}function tb(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(_e),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(R),blockQuote:o(ue),characterEscape:E,characterReference:E,codeFenced:o(de),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(de,s),codeText:o(fe,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(pe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(L),hardBreakEscape:o(me),hardBreakTrailing:o(me),htmlFlow:o(he,s),htmlFlowData:E,htmlText:o(he,s),htmlTextData:E,image:o(ge),label:s,link:o(_e),listItem:o(ye),listItemValue:p,listOrdered:o(ve,f),listUnordered:o(ve),paragraph:o(be),reference:re,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(R),strong:o(xe),thematicBreak:o(Ce)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:le,autolinkProtocol:ce,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:oe,characterReference:se,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:I,labelText:F,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ie,resourceDestinationString:ee,resourceTitleString:te,resource:ne,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};rb(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),$y.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||ab).call(o,void 0,e[0])}for(r.position={start:nb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:nb(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+wg({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ab).call(this,e,r[0])),n.position.end=nb(e.end)}function d(){return s_(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=b_(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=Se(),n.position={start:nb(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=nb(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=nb(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Zy(t),n.identifier=b_(t).toLowerCase()}function I(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function re(){this.data.referenceType=`collapsed`}function ie(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=b_(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ae(e){this.data.characterReferenceType=e.type}function oe(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=y_(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=f_(t);let i=this.stack[this.stack.length-1];i.value+=r}function se(e){let t=this.stack.pop();t.position.end=nb(e.end)}function ce(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function le(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ue(){return{type:`blockquote`,children:[],position:void 0}}function de(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function fe(){return{type:`inlineCode`,value:``,position:void 0}}function pe(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function L(){return{type:`emphasis`,children:[],position:void 0}}function R(){return{type:`heading`,depth:0,children:[],position:void 0}}function me(){return{type:`break`,position:void 0}}function he(){return{type:`html`,value:``,position:void 0}}function ge(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function _e(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function ve(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function ye(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function be(){return{type:`paragraph`,children:[],position:void 0}}function xe(){return{type:`strong`,children:[],position:void 0}}function Se(){return{type:`text`,value:``,position:void 0}}function Ce(){return{type:`thematicBreak`,position:void 0}}}function nb(e){return{line:e.line,column:e.column,offset:e.offset}}function rb(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?rb(e,r):ib(e,r)}}function ib(e,t){let n;for(n in t)if($y.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function ab(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+wg({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wg({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+wg({start:t.start,end:t.end})+`) is still open`)}function ob(e){let t=this;t.parser=n;function n(n){return eb(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function sb(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function cb(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
53
|
-
`}]}function
|
|
54
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function
|
|
52
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function $y(e){let t={constructs:C_([By,...(e||{}).extensions||[]]),content:n(H_),defined:[],document:n(K_),flow:n(My),lazy:{},string:n(Fy),text:n(Iy)};return t;function n(e){return n;function n(n){return Xy(t,e,n)}}}function eb(e){for(;!Ov(e););return e}var tb=/[\0\t\n\r]/g;function nb(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){tb.lastIndex=c;let n=tb.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var rb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ib(e){return e.replace(rb,ab)}function ab(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return E_(n.slice(t?2:1),t?16:10)}return y_(n)||e}var ob={}.hasOwnProperty;function sb(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),cb(n)(eb($y(n).document().write(nb()(e,t,!0))))}function cb(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(_e),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(R),blockQuote:o(ue),characterEscape:E,characterReference:E,codeFenced:o(de),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(de,s),codeText:o(fe,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(pe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(L),hardBreakEscape:o(me),hardBreakTrailing:o(me),htmlFlow:o(he,s),htmlFlowData:E,htmlText:o(he,s),htmlTextData:E,image:o(ge),label:s,link:o(_e),listItem:o(ye),listItemValue:p,listOrdered:o(ve,f),listUnordered:o(ve),paragraph:o(be),reference:re,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(R),strong:o(xe),thematicBreak:o(Ce)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:le,autolinkProtocol:ce,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:oe,characterReference:se,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:I,labelText:F,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ie,resourceDestinationString:ee,resourceTitleString:te,resource:ne,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};ub(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),ob.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||fb).call(o,void 0,e[0])}for(r.position={start:lb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:lb(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+jg({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||fb).call(this,e,r[0])),n.position.end=lb(e.end)}function d(){return m_(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=D_(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=Se(),n.position={start:lb(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=lb(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=lb(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=ib(t),n.identifier=D_(t).toLowerCase()}function I(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function re(){this.data.referenceType=`collapsed`}function ie(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=D_(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ae(e){this.data.characterReferenceType=e.type}function oe(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=E_(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=y_(t);let i=this.stack[this.stack.length-1];i.value+=r}function se(e){let t=this.stack.pop();t.position.end=lb(e.end)}function ce(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function le(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ue(){return{type:`blockquote`,children:[],position:void 0}}function de(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function fe(){return{type:`inlineCode`,value:``,position:void 0}}function pe(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function L(){return{type:`emphasis`,children:[],position:void 0}}function R(){return{type:`heading`,depth:0,children:[],position:void 0}}function me(){return{type:`break`,position:void 0}}function he(){return{type:`html`,value:``,position:void 0}}function ge(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function _e(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function ve(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function ye(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function be(){return{type:`paragraph`,children:[],position:void 0}}function xe(){return{type:`strong`,children:[],position:void 0}}function Se(){return{type:`text`,value:``,position:void 0}}function Ce(){return{type:`thematicBreak`,position:void 0}}}function lb(e){return{line:e.line,column:e.column,offset:e.offset}}function ub(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?ub(e,r):db(e,r)}}function db(e,t){let n;for(n in t)if(ob.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function fb(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+jg({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+jg({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+jg({start:t.start,end:t.end})+`) is still open`)}function pb(e){let t=this;t.parser=n;function n(n){return sb(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function mb(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function hb(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
53
|
+
`}]}function gb(e,t){let n=t.value?t.value+`
|
|
54
|
+
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function _b(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vb(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yb(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=z_(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function bb(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xb(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Sb(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Cb(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sb(e,t);let i={src:z_(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function wb(e,t){let n={src:z_(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Tb(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Eb(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sb(e,t);let i={href:z_(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Db(e,t){let n={href:z_(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ob(e,t,n){let r=e.all(t),i=n?kb(n):Ab(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
55
55
|
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
56
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function
|
|
56
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function kb(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Ab(n[r])}return t}function Ab(e){return e.spread??e.children.length>1}function jb(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Mb(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nb(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Pb(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fb(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=Og(t.children[1]),o=Dg(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Ib(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Lb(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Rb=9,zb=32;function Bb(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Vb(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Vb(t.slice(i),i>0,!1)),a.join(``)}function Vb(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Rb||t===zb;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Rb||t===zb;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Hb(e,t){let n={type:`text`,value:Bb(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ub(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Wb={blockquote:mb,break:hb,code:gb,delete:_b,emphasis:vb,footnoteReference:yb,heading:bb,html:xb,imageReference:Cb,image:wb,inlineCode:Tb,linkReference:Eb,link:Db,listItem:Ob,list:jb,paragraph:Mb,root:Nb,strong:Pb,table:Fb,tableCell:Lb,tableRow:Ib,text:Hb,thematicBreak:Ub,toml:Gb,yaml:Gb,definition:Gb,footnoteDefinition:Gb};function Gb(){}var{defineProperty:Kb}=Object,qb=typeof self==`object`?self:globalThis,Jb=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new qb[e](t)},Yb=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Kb(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof qb[e]==`function`?Jb(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Jb(a,o),i)};return r},Xb=e=>Yb(new Map,e)(0),Zb=``,{toString:Qb}={},{keys:$b,is:ex}=Object,tx=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Qb.call(e).slice(8,-1);switch(n){case`Array`:return[1,Zb];case`Object`:return[2,Zb];case`Date`:return[3,Zb];case`RegExp`:return[4,Zb];case`Map`:return[5,Zb];case`Set`:return[6,Zb];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},nx=([e,t])=>e===0&&(t===`function`||t===`symbol`),rx=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=tx(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&ex(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of $b(o))(e||!nx(tx(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Zb:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(nx(tx(n))||nx(tx(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!nx(tx(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},ix=(e,{json:t,lossy:n}={})=>{let r=[];return rx(!(t||n),!!t,new Map,r)(e),r},ax=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Xb(ix(e,t)):structuredClone(e):(e,t)=>Xb(ix(e,t));function ox(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function sx(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function cx(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||ox,r=e.options.footnoteBackLabel||sx,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=z_(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...ax(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
57
57
|
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
58
|
-
`}]}}var
|
|
58
|
+
`}]}}var lx=(function(e){if(e==null)return mx;if(typeof e==`function`)return px(e);if(typeof e==`object`)return Array.isArray(e)?ux(e):dx(e);if(typeof e==`string`)return fx(e);throw Error(`Expected function, string, or object as test`)});function ux(e){let t=[],n=-1;for(;++n<e.length;)t[n]=lx(e[n]);return px(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function dx(e){let t=e;return px(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function fx(e){return px(t);function t(t){return t&&t.type===e}}function px(e){return t;function t(t,n,r){return!!(hx(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function mx(){return!0}function hx(e){return typeof e==`object`&&!!e&&`type`in e}function gx(e){return e}var _x=[],vx=`skip`;function yx(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=lx(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+gx(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=_x;if(s&&r&&(o=bx(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=t.children[e],i=d(n,e,r)();if(i[0]===!1)return i;e=typeof i[1]==`number`?i[1]:e+u}}}if(c&&r){let r=bx(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function bx(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?_x:[e]}function xx(e,t,n,r){let i,a,o;typeof n==`function`||n&&typeof n==`object`?(i=t,a=n,o=r):(a=t,o=n),typeof a==`function`?yx(e,i,Cx(a),o):yx(e,i,Sx(a),o)}function Sx(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?Cx(e.enter):e.enter,exit:typeof e.exit==`function`?Cx(e.exit):e.exit}}function Cx(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}var wx={}.hasOwnProperty,Tx={};function Ex(e,t){let n=t||Tx,r=new Map,i=new Map,a={all:s,applyData:Ox,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Wb,...n.handlers},one:o,options:n,patch:Dx,wrap:Ax};return xx(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(wx.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=ax(n);return r.children=a.all(e),r}return ax(e)}return(a.options.unknownHandler||kx)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=jx(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=jx(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Dx(e,t){e.position&&(t.position=Ag(e))}function Ox(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,ax(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function kx(e,t){let n=t.data||{},r=`value`in t&&!(wx.call(n,`hProperties`)||wx.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ax(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
59
59
|
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
60
60
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
61
|
-
`}),n}function
|
|
62
|
-
`},i)),a}function Ex(e,t){return e&&`run`in e?async function(n,r){let i=Tx(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Tx(n,{file:r,...e||t})}}function Dx(e){if(e)throw e}var Ox=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function kx(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ax(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?jx(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function jx(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Mx={basename:Nx,dirname:Px,extname:Fx,join:Ix,sep:`/`};function Nx(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);zx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Px(e){if(zx(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Fx(e){zx(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Ix(...e){let t=-1,n;for(;++t<e.length;)zx(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Lx(n)}function Lx(e){zx(e);let t=e.codePointAt(0)===47,n=Rx(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Rx(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function zx(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Bx={cwd:Vx};function Vx(){return`/`}function Hx(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Ux(e){if(typeof e==`string`)e=new URL(e);else if(!Hx(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Wx(e)}function Wx(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Gx=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Kx=class{constructor(e){let t;t=e?Hx(e)?{path:e}:typeof e==`string`||Xx(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Bx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Gx.length;){let e=Gx[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Gx.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Mx.basename(this.path):void 0}set basename(e){Jx(e,`basename`),qx(e,`basename`),this.path=Mx.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Mx.dirname(this.path):void 0}set dirname(e){Yx(this.basename,`dirname`),this.path=Mx.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Mx.extname(this.path):void 0}set extname(e){if(qx(e,`extname`),Yx(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=Mx.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Hx(e)&&(e=Ux(e)),Jx(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Mx.basename(this.path,this.extname):void 0}set stem(e){Jx(e,`stem`),qx(e,`stem`),this.path=Mx.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Og(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function qx(e,t){if(e&&e.includes(Mx.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Mx.sep+"`")}function Jx(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Yx(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Xx(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Zx=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Qx=l(Ox(),1),$x={}.hasOwnProperty,eS=new class e extends Zx{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=Ax()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Qx.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(rS(`data`,this.frozen),this.namespace[e]=t,this):$x.call(this.namespace,e)&&this.namespace[e]||void 0:e?(rS(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=oS(e),n=this.parser||this.Parser;return tS(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),tS(`process`,this.parser||this.Parser),nS(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=oS(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);cS(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),tS(`processSync`,this.parser||this.Parser),nS(`processSync`,this.compiler||this.Compiler),this.process(e,r),aS(`processSync`,`process`,t),n;function r(e,r){t=!0,Dx(e),n=r}}run(e,t,n){iS(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=oS(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),aS(`runSync`,`run`,n),r;function i(e,t){Dx(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=oS(t),r=this.compiler||this.Compiler;return nS(`stringify`,r),iS(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(rS(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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");o(e.plugins),e.settings&&(r.settings=(0,Qx.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];kx(o)&&kx(r)&&(r=(0,Qx.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function tS(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function nS(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function rS(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function iS(e){if(!kx(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function aS(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function oS(e){return sS(e)?e:new Kx(e)}function sS(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function cS(e){return typeof e==`string`||lS(e)}function lS(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var uS=[],dS={allowDangerousHtml:!0},fS=/^(https?|ircs?|mailto|xmpp)$/i,pS=[{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 mS(e){let t=hS(e),n=gS(e);return _S(t.runSync(t.parse(n),n),e)}function hS(e){let t=e.rehypePlugins||uS,n=e.remarkPlugins||uS,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...dS}:dS;return eS().use(ob).use(n).use(Ex,r).use(t)}function gS(e){let t=e.children||``,n=new Kx;return typeof t==`string`?n.value=t:``+t,n}function _S(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||vS;for(let e of pS)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return mx(e,l),Ig(e,{Fragment:z.Fragment,components:i,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in a_)if(Object.hasOwn(a_,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=a_[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function vS(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||fS.test(e.slice(0,t))?e:``}function yS(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function bS(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function xS(e,t,n){let r=nx((n||{}).ignore||[]),i=SS(t),a=-1;for(;++a<i.length;)fx(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return dx}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function SS(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([CS(e[0]),wS(e[1])])}return t}function CS(e){return typeof e==`string`?new RegExp(bS(e),`g`):e}function wS(e){return typeof e==`function`?e:function(){return e}}var TS=`phrasing`,ES=[`autolink`,`link`,`image`,`label`];function DS(){return{transforms:[FS],enter:{literalAutolink:kS,literalAutolinkEmail:AS,literalAutolinkHttp:AS,literalAutolinkWww:AS},exit:{literalAutolink:PS,literalAutolinkEmail:NS,literalAutolinkHttp:jS,literalAutolinkWww:MS}}}function OS(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:TS,notInConstruct:ES},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:TS,notInConstruct:ES},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:TS,notInConstruct:ES}]}}function kS(e){this.enter({type:`link`,title:null,url:``,children:[],position:void 0},e)}function AS(e){this.config.enter.autolinkProtocol.call(this,e)}function jS(e){this.config.exit.autolinkProtocol.call(this,e)}function MS(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function NS(e){this.config.exit.autolinkEmail.call(this,e)}function PS(e){this.exit(e)}function FS(e){xS(e,[[/(?<![\da-z])(https?:\/\/|www(?=\.))([\w-]*\.[\w\-.]*)([^\t\n\r ]*)/gi,IS],[/(?<![\w+\-.@])xmpp:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)(\/(?:[\w\-/]|\.(?=[\dA-Za-z]))*)?/g,zS],[/(?<![\w+\-.@])mailto:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,RS],[/(?<![\w+\-.]|(?:^|[^\d@A-Za-z])(?:mailto|xmpp):)([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,LS]],{ignore:[`link`,`linkReference`]})}function IS(e,t,n,r,i){if(!HS(i))return!1;let a=``;if(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),k_(n.charCodeAt(0))||!BS(n))return!1;let o=VS(n+r),s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0],position:void 0}],position:void 0};return o[1]?[s,{type:`text`,value:o[1],position:void 0}]:s}function LS(e,t,n){return!/[\d\-_]$/.test(n)&&{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n,position:void 0}],position:void 0}}function RS(e,t,n){if(/[\d\-_]$/.test(n))return!1;let r=`mailto:`+t+`@`+n;return{type:`link`,title:null,url:r,children:[{type:`text`,value:r,position:void 0}],position:void 0}}function zS(e,t,n,r,i){if(/[\d\-_]$/.test(n)||r&&(!/[A-Za-z]$/.test(r)||i.input.charAt(i.index+e.length)===`@`))return!1;let a=`xmpp:`+t+`@`+n+(r||``);return{type:`link`,title:null,url:a,children:[{type:`text`,value:a,position:void 0}],position:void 0}}function BS(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[\dA-Za-z]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[\dA-Za-z]/.test(t[t.length-2])))}function VS(e){let t=e.length;for(;t>0;){let n=e.charCodeAt(t-1);if(n===33||n===34||n===38||n===39||n===41||n===44||n===46||n===58||n===59||n===60||n===62||n===63||n===93||n===125)t--;else break}if(t===e.length)return[e,void 0];let n=e.slice(t);e=e.slice(0,t);let r=n.indexOf(`)`),i=yS(e,`(`),a=yS(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function HS(e){let t=e.input.charCodeAt(e.index-1);return e.index===0||A_(t)||k_(t)}QS.peek=ZS;function US(){this.buffer()}function WS(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function GS(){this.buffer()}function KS(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function qS(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=b_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function JS(e){this.exit(e)}function YS(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=b_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function XS(e){this.exit(e)}function ZS(){return`[`}function QS(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function $S(){return{enter:{gfmFootnoteCallString:US,gfmFootnoteCall:WS,gfmFootnoteDefinitionLabelString:GS,gfmFootnoteDefinition:KS},exit:{gfmFootnoteCallString:qS,gfmFootnoteCall:JS,gfmFootnoteDefinitionLabelString:YS,gfmFootnoteDefinition:XS}}}function eC(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:QS},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
63
|
-
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?
|
|
64
|
-
`)}function
|
|
65
|
-
`&&!e.before&&!e.after&&
|
|
66
|
-
`}function
|
|
61
|
+
`}),n}function jx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Mx(e,t){let n=Ex(e,t),r=n.one(e,void 0),i=cx(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
62
|
+
`},i)),a}function Nx(e,t){return e&&`run`in e?async function(n,r){let i=Mx(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Mx(n,{file:r,...e||t})}}function Px(e){if(e)throw e}var Fx=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Ix(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Lx(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Rx(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Rx(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var zx={basename:Bx,dirname:Vx,extname:Hx,join:Ux,sep:`/`};function Bx(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Kx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Vx(e){if(Kx(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Hx(e){Kx(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Ux(...e){let t=-1,n;for(;++t<e.length;)Kx(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Wx(n)}function Wx(e){Kx(e);let t=e.codePointAt(0)===47,n=Gx(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Gx(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Kx(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var qx={cwd:Jx};function Jx(){return`/`}function Yx(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Xx(e){if(typeof e==`string`)e=new URL(e);else if(!Yx(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Zx(e)}function Zx(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Qx=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],$x=class{constructor(e){let t;t=e?Yx(e)?{path:e}:typeof e==`string`||rS(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:qx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Qx.length;){let e=Qx[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Qx.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?zx.basename(this.path):void 0}set basename(e){tS(e,`basename`),eS(e,`basename`),this.path=zx.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?zx.dirname(this.path):void 0}set dirname(e){nS(this.basename,`dirname`),this.path=zx.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?zx.extname(this.path):void 0}set extname(e){if(eS(e,`extname`),nS(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=zx.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Yx(e)&&(e=Xx(e)),tS(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?zx.basename(this.path,this.extname):void 0}set stem(e){tS(e,`stem`),eS(e,`stem`),this.path=zx.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Fg(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function eS(e,t){if(e&&e.includes(zx.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+zx.sep+"`")}function tS(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nS(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function rS(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var iS=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),aS=l(Fx(),1),oS={}.hasOwnProperty,sS=new class e extends iS{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=Lx()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,aS.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(uS(`data`,this.frozen),this.namespace[e]=t,this):oS.call(this.namespace,e)&&this.namespace[e]||void 0:e?(uS(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=pS(e),n=this.parser||this.Parser;return cS(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),cS(`process`,this.parser||this.Parser),lS(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=pS(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);hS(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),cS(`processSync`,this.parser||this.Parser),lS(`processSync`,this.compiler||this.Compiler),this.process(e,r),fS(`processSync`,`process`,t),n;function r(e,r){t=!0,Px(e),n=r}}run(e,t,n){dS(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=pS(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),fS(`runSync`,`run`,n),r;function i(e,t){Px(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=pS(t),r=this.compiler||this.Compiler;return lS(`stringify`,r),dS(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(uS(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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");o(e.plugins),e.settings&&(r.settings=(0,aS.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Ix(o)&&Ix(r)&&(r=(0,aS.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function cS(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function lS(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function uS(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dS(e){if(!Ix(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function fS(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function pS(e){return mS(e)?e:new $x(e)}function mS(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function hS(e){return typeof e==`string`||gS(e)}function gS(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var _S=[],vS={allowDangerousHtml:!0},yS=/^(https?|ircs?|mailto|xmpp)$/i,bS=[{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 xS(e){let t=SS(e),n=CS(e);return wS(t.runSync(t.parse(n),n),e)}function SS(e){let t=e.rehypePlugins||_S,n=e.remarkPlugins||_S,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vS}:vS;return sS().use(pb).use(n).use(Nx,r).use(t)}function CS(e){let t=e.children||``,n=new $x;return typeof t==`string`?n.value=t:``+t,n}function wS(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||TS;for(let e of bS)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return xx(e,l),Ug(e,{Fragment:z.Fragment,components:i,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in f_)if(Object.hasOwn(f_,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=f_[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function TS(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||yS.test(e.slice(0,t))?e:``}function ES(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function DS(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function OS(e,t,n){let r=lx((n||{}).ignore||[]),i=kS(t),a=-1;for(;++a<i.length;)yx(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return vx}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function kS(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([AS(e[0]),jS(e[1])])}return t}function AS(e){return typeof e==`string`?new RegExp(DS(e),`g`):e}function jS(e){return typeof e==`function`?e:function(){return e}}var MS=`phrasing`,NS=[`autolink`,`link`,`image`,`label`];function PS(){return{transforms:[HS],enter:{literalAutolink:IS,literalAutolinkEmail:LS,literalAutolinkHttp:LS,literalAutolinkWww:LS},exit:{literalAutolink:VS,literalAutolinkEmail:BS,literalAutolinkHttp:RS,literalAutolinkWww:zS}}}function FS(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:MS,notInConstruct:NS},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:MS,notInConstruct:NS},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:MS,notInConstruct:NS}]}}function IS(e){this.enter({type:`link`,title:null,url:``,children:[],position:void 0},e)}function LS(e){this.config.enter.autolinkProtocol.call(this,e)}function RS(e){this.config.exit.autolinkProtocol.call(this,e)}function zS(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function BS(e){this.config.exit.autolinkEmail.call(this,e)}function VS(e){this.exit(e)}function HS(e){OS(e,[[/(?<![\da-z])(https?:\/\/|www(?=\.))([\w-]*\.[\w\-.]*)([^\t\n\r ]*)/gi,US],[/(?<![\w+\-.@])xmpp:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)(\/(?:[\w\-/]|\.(?=[\dA-Za-z]))*)?/g,KS],[/(?<![\w+\-.@])mailto:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,GS],[/(?<![\w+\-.]|(?:^|[^\d@A-Za-z])(?:mailto|xmpp):)([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,WS]],{ignore:[`link`,`linkReference`]})}function US(e,t,n,r,i){if(!YS(i))return!1;let a=``;if(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),I_(n.charCodeAt(0))||!qS(n))return!1;let o=JS(n+r),s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0],position:void 0}],position:void 0};return o[1]?[s,{type:`text`,value:o[1],position:void 0}]:s}function WS(e,t,n){return!/[\d\-_]$/.test(n)&&{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n,position:void 0}],position:void 0}}function GS(e,t,n){if(/[\d\-_]$/.test(n))return!1;let r=`mailto:`+t+`@`+n;return{type:`link`,title:null,url:r,children:[{type:`text`,value:r,position:void 0}],position:void 0}}function KS(e,t,n,r,i){if(/[\d\-_]$/.test(n)||r&&(!/[A-Za-z]$/.test(r)||i.input.charAt(i.index+e.length)===`@`))return!1;let a=`xmpp:`+t+`@`+n+(r||``);return{type:`link`,title:null,url:a,children:[{type:`text`,value:a,position:void 0}],position:void 0}}function qS(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[\dA-Za-z]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[\dA-Za-z]/.test(t[t.length-2])))}function JS(e){let t=e.length;for(;t>0;){let n=e.charCodeAt(t-1);if(n===33||n===34||n===38||n===39||n===41||n===44||n===46||n===58||n===59||n===60||n===62||n===63||n===93||n===125)t--;else break}if(t===e.length)return[e,void 0];let n=e.slice(t);e=e.slice(0,t);let r=n.indexOf(`)`),i=ES(e,`(`),a=ES(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function YS(e){let t=e.input.charCodeAt(e.index-1);return e.index===0||L_(t)||I_(t)}aC.peek=iC;function XS(){this.buffer()}function ZS(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function QS(){this.buffer()}function $S(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function eC(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=D_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function tC(e){this.exit(e)}function nC(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=D_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rC(e){this.exit(e)}function iC(){return`[`}function aC(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function oC(){return{enter:{gfmFootnoteCallString:XS,gfmFootnoteCall:ZS,gfmFootnoteDefinitionLabelString:QS,gfmFootnoteDefinition:$S},exit:{gfmFootnoteCallString:eC,gfmFootnoteCall:tC,gfmFootnoteDefinitionLabelString:nC,gfmFootnoteDefinition:rC}}}function sC(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:aC},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
63
|
+
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?lC:cC))),s(),o}}function cC(e,t,n){return t===0?e:lC(e,t,n)}function lC(e,t,n){return(n?``:` `)+e}var uC=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];hC.attention=gC,hC.peek=_C;function dC(){return{canContainEols:[`delete`],enter:{strikethrough:pC},exit:{strikethrough:mC}}}function fC(){return{handlers:{delete:hC},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:uC}]}}function pC(e){this.enter({type:`delete`,children:[],position:void 0},e)}function mC(e){this.exit(e)}function hC(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function gC(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function _C(){return`~`}function vC(e){return e.length}function yC(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||vC,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=bC(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=xC(r[d]);else{let e=xC(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u],r=n.fillRows===!1?Math.max(1,o[u===1?0:u].length):l;d=-1;let i=[];for(;++d<r;){let o=e[d]||``,s=``,l=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];if(n===114)s=` `.repeat(e);else if(n===99){let t=e/2;e%2?(s=` `.repeat(t+.5),l=` `.repeat(t-.5)):(s=` `.repeat(t),l=s)}else l=` `.repeat(e)}n.delimiterStart!==!1&&!d&&i.push(`|`),n.padding===!1||n.alignDelimiters===!1&&o===``||n.delimiterStart===!1&&!d||i.push(` `),n.alignDelimiters!==!1&&i.push(s),i.push(o),n.alignDelimiters!==!1&&i.push(l),n.padding!==!1&&i.push(` `),(n.delimiterEnd!==!1||d!==r-1)&&i.push(`|`)}m.push(n.delimiterEnd===!1?i.join(``).replace(/ +$/,``):i.join(``))}return m.join(`
|
|
64
|
+
`)}function bC(e){return e==null?``:String(e)}function xC(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var SC=lx([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function CC(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),wC);return i(),o}function wC(e,t,n){return`>`+(n?``:` `)+e}function TC(e,t){return EC(e,t.inConstruct,!0)&&!EC(e,t.notInConstruct,!1)}function EC(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function DC(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
|
|
65
|
+
`&&!e.before&&!e.after&&TC(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
|
|
66
|
+
`}function OC(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function kC(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function AC(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function jC(e,t,n,r){let i=AC(n),a=e.value||``;if(kC(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,MC);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(OC(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
|
|
67
67
|
`,encode:["`"],...o.current()})),t()}return u+=o.move(`
|
|
68
68
|
`),a&&(u+=o.move(a+`
|
|
69
|
-
`)),u+=o.move(s),c(),u}function
|
|
70
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function
|
|
71
|
-
`)&&l.type===`html`&&
|
|
72
|
-
`&&d!==`\r`&&
|
|
69
|
+
`)),u+=o.move(s),c(),u}function MC(e,t,n){return(n?``:` `)+e}function NC(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function PC(e,t,n,r){let i=NC(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
70
|
+
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function FC(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function IC(e){let t=e.codePointAt(0);return t===void 0?``:String.fromCodePoint(t)}function LC(e){let t=e.codePointAt(e.length-2);return t!==void 0&&t>65535?e.slice(-2):e.slice(-1)}function RC(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function zC(e,t,n){let r=X_(e),i=X_(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function BC(e){if(e.charCodeAt(0)!==60)return;let t=e.charCodeAt(1);if(t===33){let t=e.charCodeAt(2);return t===45?2:t===91?5:O_(t)?4:void 0}if(t===63)return 3;let n=t===47,r=n?2:1,i=r,a=e.charCodeAt(i);if(!O_(a))return;for(;a===45||k_(a);)a=e.charCodeAt(++i);let o=e.slice(r,i).toLowerCase();return!n&&a!==47&&Yv.includes(o)?1:Jv.includes(o)?6:7}var VC=new Map([[`*`,!1],[`_`,!0]]);function HC(e,t,n){let r=new Set;for(let i of e){let e=n.get(i);if(e&&i.attention&&t.some(e=>e.attention===i.attention))for(let t of e.tokens)r.add(t.attention)}let i=[];for(let t of e)t.attention&&r.delete(t.attention)&&i.push(t.attention);return i.reverse(),i}function UC(e,t,n){let r=[],i=new Map,a=new Map,o=0;for(;o<e.length;){if(!e[o].attention){o++;continue}let s=e[o].value.charAt(0),c=VC.get(s),l=o+1;for(;l<e.length&&e[l].attention&&e[l].value.charAt(0)===s;)l++;let u=o?e[o-1].value:t,d=X_(u.charCodeAt(u.length-1)),f=X_((l<e.length?e[l].value:n).charCodeAt(0)),p=!f||f===2&&!!d,m=!d||d===2&&!!f,h={tokens:e.slice(o,l),markers:[],start:0,end:0,open:c?p&&(!!d||!m):p,close:c?m&&(!!f||!p):m,split:c!==void 0};for(let e of h.tokens){i.set(e,[...h.tokens]),a.set(e,h);let t=e.value.length;for(;t--;)h.markers.push(e)}h.end=h.markers.length,r.push(h),o=l}for(KC(r,i),o=-1;++o<e.length;){let t=i.get(e[o]);if(t)return{attention:HC(e,t,a),index:o}}}function WC(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?IC(n.value):LC(n.value),i=RC(r.codePointAt(0));if(t)n.value=i+n.value.slice(r.length);else{let e=n.value.slice(0,n.value.length-r.length),t=0;for(;e.charCodeAt(e.length-1-t)===92;)t++;t%2&&(e+=`\\`),n.value=e+i}}function GC(e,t,n,r,i){for(let a of n.attention){let o=t.get(a)||a.sequences[0];for(let s of a.sequences){if(s===o)continue;let c=new Map(t);c.set(a,s);let l=QC(e,c,r,i),u=UC(l,r,i);if(!u||u.index>n.index)return{chosen:c,mistake:u,tokens:l}}}}function KC(e,t){let n=new Map;for(let r of e){let e=r.tokens[0].value.charAt(0),i=n.get(e);i||(i=[],n.set(e,i));let a=r.close?i.length:0;for(;a--&&r.start<r.end;){let e=i[a],n=e.end-e.start,o=r.end-r.start;if(r.split?(e.close||r.open)&&o%3&&!((n+o)%3):n!==e.markers.length||n!==o)continue;let s=r.split?n>1&&o>1?2:1:o,c=e.markers.slice(e.end-s,e.end),l=r.markers.slice(r.start,r.start+s),u=c[0],d=l[0];if(u===c[s-1]&&u.value.length===s&&d===l[s-1]&&d.value.length===s&&u.attention===d.attention)t.delete(u),t.delete(d);else{let e=[...new Set([...c,...l])];for(let n of e){let r=t.get(n);r&&r.push(...e)}}e.end-=s,r.start+=s,e.start===e.end&&i.splice(a,1),a=i.length}r.open&&r.start<r.end&&i.push(r)}}function qC(e,t,n){if(t.length===0)throw Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(n.length===0)throw Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(let t of n)if(!Number.isSafeInteger(t)||t<1)throw Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");let r=[];for(let i of t){if(i.length!==1)throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!P_(i.charCodeAt(0)))throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(let e of n)r.push(i.repeat(e))}return r}function JC(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before;r.push(-1);let c=t.createTracker(n);for(;++o<i.length;){let l=i[o],u;if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),u=n?IC(n(i[o+1],e,t,{before:``,after:``,...c.current()})):``}else u=n.after;let d=a[a.length-1];typeof d==`string`&&(s===`\r`||s===`
|
|
71
|
+
`)&&l.type===`html`&&BC(l.value)!==7&&(a[a.length-1]=d.replace(/(\r?\n|\r)$/,` `),s=` `,c=t.createTracker(n),c.move($C(a,n.before,n.after)));let f=t.handle.handlers[l.type];if(f&&f.attention){let e=YC(l,f.attention,t,c);if(!e)continue;a.push(e),s=LC(e.sequences[0])}else{let n=t.handle(l,e,t,{...c.current(),after:u,before:s});if(!n)continue;c.move(n),a.push(n),s=LC(n)}}return r.pop(),a}function YC(e,t,n,r){let{construct:i,markers:a,sizes:o}=t(e,n),s=qC(e.type,a,o),c=s[0],l=n.enter(i),u=n.createTracker(r.current());u.move(c);let d=JC(e,n,{...u.current(),before:c,after:c});if(l(),d.length!==0)return r.move(c),r.move($C(d,c,c)),r.move(c),{children:d,sequences:s}}function XC(e,t,n,r){let i=QC(e,t,n,r),a=UC(i,n,r);for(;a;){let o=GC(e,t,a,n,r);if(!o)return;t=o.chosen,i=o.tokens,a=o.mistake}return i}function ZC(e,t,n,r){let i=n,a=-1;for(;++a<e.length;){let o=e[a];if(typeof o==`string`){i=``;continue}let s=a===e.length-1?r:``,c=o.sequences.find(function(t){let r=t.charAt(0);return r!==i.charAt(0)&&r!==s.charAt(0)||e.length===1&&VC.has(r)&&t.length>n.length})||o.sequences[0];c!==o.sequences[0]&&t.set(o,c),ZC(o.children,t,c,c),i=c}}function QC(e,t,n,r){let i=[],a,o=LC(n),s=-1;for(;++s<e.length;){let n=e[s];if(typeof n==`string`){let e={value:n,attention:void 0};a&&a===IC(n)&&WC([e],!0),a=void 0,i.push(e),e.value&&(o=LC(e.value));continue}let c=t.get(n)||n.sequences[0],l=c.charAt(0),u=e[s+1],d=o,f=IC(u===void 0?r:typeof u==`string`?u:t.get(u)||u.sequences[0]),p=QC(n.children,t,c,c),m=p[0].value,h=zC(d.charCodeAt(d.length-1),m.charCodeAt(0),l);h.inside&&WC(p,!0);let g=LC(p[p.length-1].value),_=zC(f.charCodeAt(0),g.charCodeAt(g.length-1),l);_.inside&&WC(p,!1),h.outside&&d!==`
|
|
72
|
+
`&&d!==`\r`&&WC(i,!1),_.outside&&(a=f),i.push({value:c,attention:n},...p,{value:c,attention:n}),o=c.charAt(c.length-1)}return i}function $C(e,t,n){let r=new Map;ZC(e,r,t,n);let i=(r.size>0?XC(e,r,t,n):void 0)||XC(e,new Map,t,n)||QC(e,new Map,t,n),a=``;for(let e of i)a+=e.value;return a}ew.attention=tw,ew.peek=nw;function ew(e,t,n,r){let i=n.enter(`phrasing`),a=YC(e,tw,n,n.createTracker(r)),o=a?$C([a],r.before,r.after):``;return i(),o}function tw(e,t){return{construct:`emphasis`,markers:FC(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function nw(e,t,n){return n.options.emphasis||`*`}function rw(e,t){let n=!1;return xx(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&m_(e)&&(t.options.setext||n))}function iw(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(rw(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
73
73
|
`,after:`
|
|
74
74
|
`});return r(),t(),o+`
|
|
75
75
|
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
76
76
|
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
77
|
-
`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=
|
|
78
|
-
`||f===`\r`)){let e=0;for(;e<u.length&&u.charCodeAt(e)!==93;)e+=u.charCodeAt(e)===92?2:1;u.charCodeAt(e+1)===58&&(p=``)}return!e.url&&typeof p==`string`||d?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:typeof p==`string`?` `:`)`,...o.current()}))),c(),typeof p==`string`&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(p,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function
|
|
77
|
+
`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=RC(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}aw.peek=ow;function aw(e){return e.value||``}function ow(){return`<`}sw.peek=cw;function sw(e,t,n,r){let i=NC(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function cw(){return`!`}lw.peek=uw;function lw(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function uw(){return`!`}dw.peek=fw;function dw(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function fw(){return"`"}function pw(e,t){let n=m_(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}mw.peek=hw;function mw(e,t,n,r){let i=NC(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(pw(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`),u=n.containerPhrasing(e,{before:l,after:`](`,...o.current()});l+=o.move(u),c(),l+=o.move(`](`);let d=/[\0- \u007F]/.test(e.url),f=r.before.charAt(r.before.length-1),p=e.title||void 0;if(!p&&!d&&(f===`
|
|
78
|
+
`||f===`\r`)){let e=0;for(;e<u.length&&u.charCodeAt(e)!==93;)e+=u.charCodeAt(e)===92?2:1;u.charCodeAt(e+1)===58&&(p=``)}return!e.url&&typeof p==`string`||d?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:typeof p==`string`?` `:`)`,...o.current()}))),c(),typeof p==`string`&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(p,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function hw(e,t,n){return pw(e,n)?`<`:`[`}gw.peek=_w;function gw(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function _w(){return`[`}function vw(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function yw(e){let t=vw(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function bw(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function xw(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Sw(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?bw(n):vw(n),s=e.ordered?o===`.`?`)`:`.`:yw(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),xw(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Cw(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ww(e,t,n,r){let i=Cw(n),a=n.bulletCurrent||vw(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Tw(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function Ew(e,t,n,r){if(!e.children.some(function(e){return SC(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function Dw(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ow.attention=kw,Ow.peek=Aw;function Ow(e,t,n,r){let i=n.enter(`phrasing`),a=YC(e,kw,n,n.createTracker(r)),o=a?$C([a],r.before,r.after):``;return i(),o}function kw(e,t){return{construct:`strong`,markers:Dw(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function Aw(e,t,n){return n.options.strong||`*`}function jw(e,t,n,r){let i=t?t.children:[],a=n.indexStack[n.indexStack.length-1];return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function Mw(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Nw(e,t,n){let r=(xw(n)+(n.options.ruleSpaces?` `:``)).repeat(Mw(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Pw={blockquote:CC,break:DC,code:jC,definition:PC,emphasis:ew,hardBreak:DC,heading:iw,html:aw,image:sw,imageReference:lw,inlineCode:dw,link:mw,linkReference:gw,list:Sw,listItem:ww,paragraph:Tw,root:Ew,strong:Ow,text:jw,thematicBreak:Nw};function Fw(){return{enter:{table:Iw,tableData:Bw,tableHeader:Bw,tableRow:Rw},exit:{codeText:Vw,table:Lw,tableData:zw,tableHeader:zw,tableRow:zw}}}function Iw(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[],position:void 0},e),this.data.inTable=!0}function Lw(e){this.exit(e),this.data.inTable=void 0}function Rw(e){this.enter({type:`tableRow`,children:[],position:void 0},e)}function zw(e){this.exit(e)}function Bw(e){this.enter({type:`tableCell`,children:[],position:void 0},e)}function Vw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Hw));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Hw(e,t){return t===`|`?t:e}function Uw(e){let{tableCellPadding:t,tablePipeAlign:n,stringLength:r}=e||{},i=t?` `:`|`;return{handlers:{inlineCode:d,table:a,tableCell:s,tableRow:o},join:[Ww],unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
79
79
|
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}]};function a(e,t,n,r){let i=l(e,n,r),a=i[0];if(a){let t=e.align?e.align.length:0,n=-1;if(!t)for(;++n<i.length;)i[n].length>t&&(t=i[n].length);for(;a.length<t;)a.push(``)}return c(i,e.align)}function o(e,t,n,r){let i=c([u(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
80
|
-
`))}function s(e,t,n,r){let a=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function c(e,i){return fC(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function l(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=u(r[i],t,n);return o(),a}function u(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}function d(e,t,n){let r=Dw.inlineCode(e,t,n);if(!n.stack.includes(`tableCell`))return r;let i=[],a=0,o=r.indexOf(`|`);for(;o!==-1;){let e=o;for(;e>a&&r.charCodeAt(e-1)===92;)e--;i.push(r.slice(a,o)),(o-e)%2==0&&i.push(`\\`),a=o,o=r.indexOf(`|`,o+1)}return i.push(r.slice(a)),i.join(``)}}function Lw(e,t,n,r){if(e.type===`table`&&n.type===`listItem`&&n.spread===!1&&(t.type===`definition`||t.type===`heading`&&Rw(t,r)||t.type===`paragraph`||t.type===`table`))return 1}function Rw(e,t){let n=!1;return mx(e,function(e){if(e.type===`break`||`value`in e&&/\r?\n|\r/.test(e.value))return n=!0,!1}),!!((!e.depth||e.depth<3)&&s_(e)&&(t.options.setext||n))}function zw(){return{exit:{taskListCheckValueChecked:Vw,taskListCheckValueUnchecked:Vw,paragraph:Hw}}}function Bw(){return{handlers:{paragraph:Uw},join:[Ww]}}function Vw(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Hw(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start={...n.position.start}))}}this.exit(e)}function Uw(e,t,n,r){if(!t||t.type!==`listItem`||Gw(t)!==e)return Dw.paragraph(e,t,n,r);let i=`[`+(t.checked?`x`:` `)+`] `,a=n.createTracker(r);return a.move(i),i+Dw.paragraph(e.children.length>0?e:{type:`paragraph`,children:[{type:`text`,value:` `}]},t,n,{...r,...a.current()})}function Ww(e,t,n){if(e.type!==`definition`||n.type!==`listItem`)return;let r=Gw(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function Gw(e){if(typeof e.checked==`boolean`)for(let t of e.children){if(t.type===`paragraph`)return t;if(t.type!==`definition`)return}}function Kw(){return[DS(),$S(),iC(),Ow(),zw()]}function qw(e){return{extensions:[OS(),eC(e),aC(),Iw(e),Bw()]}}var Jw={tokenize:cT,partial:!0},Yw={tokenize:lT,partial:!0},Xw={tokenize:uT,partial:!0},Zw={tokenize:dT,partial:!0},Qw={tokenize:fT,partial:!0},$w={name:`wwwAutolink`,tokenize:oT,previous:pT},eT={name:`protocolAutolink`,tokenize:sT,previous:mT},tT={name:`emailAutolink`,tokenize:aT,previous:hT},nT={};function rT(){return{text:nT}}for(var iT=48;iT<123;)nT[iT]=tT,iT++,iT===58?iT=65:iT===91&&(iT=97);nT[43]=tT,nT[45]=tT,nT[46]=tT,nT[95]=tT,nT[72]=[tT,eT],nT[104]=[tT,eT],nT[87]=[tT,$w],nT[119]=[tT,$w];function aT(e,t,n){let r=this,i,a;return o;function o(t){return!gT(t)||!hT.call(r,r.previous)||_T(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return gT(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Qw,u,l)(t):t===45||t===95||S_(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&x_(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function oT(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!pT.call(r,r.previous)||_T(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Jw,e.attempt(Yw,e.attempt(Xw,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function sT(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&mT.call(r,r.previous)&&!_T(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(x_(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||w_(t)||O_(t)||A_(t)||k_(t)?n(t):e.attempt(Yw,e.attempt(Xw,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function cT(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function lT(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(Zw,c,s)(t):t===null||O_(t)||A_(t)||t!==45&&k_(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function uT(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Zw,t,a)(o):o===null||O_(o)||A_(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function dT(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||O_(o)||A_(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||O_(e)||A_(e)?t(e):r(e)}function a(e){return x_(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):x_(t)?(e.consume(t),o):n(t)}}function fT(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return S_(e)?n(e):t(e)}}function pT(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||O_(e)}function mT(e){return!x_(e)}function hT(e){return!(e===47||gT(e))}function gT(e){return e===43||e===45||e===46||e===95||S_(e)}function _T(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var vT={tokenize:ET,partial:!0};function yT(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:CT,continuation:{tokenize:wT},exit:TT}},text:{91:{name:`gfmFootnoteCall`,tokenize:ST},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:bT,resolveTo:xT}}}}function bT(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=b_(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function xT(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function ST(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||O_(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(b_(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return O_(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function CT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||O_(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=b_(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return O_(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),N_(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function wT(e,t,n){return e.check(Z_,t,e.attempt(vT,t,n))}function TT(e){e.exit(`gfmFootnoteDefinition`)}function ET(e,t,n){let r=this;return N_(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function DT(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&p_(o,o.length,0,W_(s,e.slice(r+1,n),t)),p_(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),p_(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=U_(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=U_(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var OT=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){kT(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function kT(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function AT(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function jT(){return{flow:{null:{name:`table`,tokenize:MT,resolveAll:NT}}}}function MT(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):Q(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):$(t)?N_(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||O_(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,$(t)?N_(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return $(t)?N_(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Q(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return $(t)?N_(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Q(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Q(n)?(e.exit(`tableRow`),t(n)):$(n)?N_(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||O_(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function NT(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new OT;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(FT(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=PT(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=PT(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=PT(f,t,o,i,n,d)):(o[0]=o[1],d=PT(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&FT(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=AT(t.events,n))}return e}function PT(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},IT(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=IT(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=IT(t.events,n[2]),a=IT(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},IT(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function FT(e,t,n,r,i){let a=[],o=IT(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function IT(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var LT={name:`tasklistCheck`,tokenize:zT};function RT(){return{text:{91:LT}}}function zT(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return O_(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Q(r)?t(r):$(r)?e.check({tokenize:BT},t,n)(r):n(r)}}function BT(e,t,n){return N_(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function VT(e){return g_([rT(),yT(),DT(e),jT(),RT()])}var HT={};function UT(e){let t=this,n=e||HT,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(VT(n)),a.push(Kw()),o.push(qw(n))}function WT(e,t){return t<=0?0:GT(e/t*100)}function GT(e){let t=Math.floor(e),n=e-t;return n>.5?t+1:n<.5||t%2==0?t:t+1}function KT({summary:e,active:t,onSelect:n}){return(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between px-1`,children:[(0,z.jsxs)(`span`,{className:`text-xs font-medium text-muted-foreground`,children:[`开发者(`,e.developers.length,`)`]}),(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`任务 `,e.totals.tasks]})]}),e.developers.map(r=>{let i=WT(r.stats.completedTasks,r.stats.tasks);return(0,z.jsxs)(`button`,{type:`button`,onClick:()=>n(r.id),className:G(`w-full rounded-lg border px-3 py-3 text-left transition-all`,r.id===t?`border-primary/50 bg-primary/5 shadow-sm`:`bg-card hover:border-border hover:bg-accent/40`),children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,z.jsx)(Zm,{name:r.id}),(0,z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,z.jsx)(`span`,{className:`truncate text-sm font-medium`,children:r.id}),(0,z.jsx)(q,{variant:`muted`,children:Jl[r.roleInferred??`unknown`]})]}),(0,z.jsxs)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(Pl,{content:e.source===`remote`?`远程快照取该文件最后一次提交时间`:`本地文件最后修改时间`,children:(0,z.jsx)(`span`,{className:`cursor-default`,children:Hm(r.mtime)})}),` `,`更新`]})]})]}),(0,z.jsxs)(`div`,{className:`mt-2.5 space-y-1.5`,children:[(0,z.jsx)(`div`,{className:`h-1.5 w-full overflow-hidden rounded-full bg-border`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full bg-primary transition-all`,style:{width:`${Math.max(0,Math.min(100,i))}%`}})}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between text-xs text-muted-foreground`,children:[(0,z.jsxs)(`span`,{children:[r.stats.completedTasks,`/`,r.stats.tasks,` 完成 ·`,` `,i,`%`]}),(0,z.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[r.errors>0?(0,z.jsxs)(`span`,{className:`text-destructive`,children:[r.errors,` error`]}):null,r.warnings>0?(0,z.jsxs)(`span`,{className:`text-warning`,children:[r.warnings,` warn`]}):null,r.parser===`fallback`?(0,z.jsx)(`span`,{className:`text-warning`,children:`未校验`}):null]})]})]})]},r.id)})]})}function qT({summary:e,onOpenTask:t,onSelectDeveloper:n}){let{totals:r}=e;return(0,z.jsxs)(`div`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-4`,children:[(0,z.jsx)(lu,{label:`开发者`,value:r.developers}),(0,z.jsx)(lu,{label:`需求`,value:r.requirements}),(0,z.jsx)(lu,{label:`任务`,value:r.tasks}),(0,z.jsx)(lu,{label:`已完成`,value:r.completedTasks,tone:`primary`,progress:r.progress})]}),(0,z.jsx)(Ol,{className:`gap-3 py-4`,children:(0,z.jsxs)(kl,{className:`space-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium`,children:[(0,z.jsx)(oe,{className:`size-4 text-muted-foreground`}),`状态分布`,(0,z.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:`按当前迭代全部成员聚合`})]}),(0,z.jsx)(Vm,{taskCounts:r.taskStatusCounts,requirementCounts:r.requirementStatusCounts,selfTestCounts:r.selfTestCounts,acceptanceCounts:r.acceptanceCounts})]})}),(0,z.jsx)(Ol,{className:`gap-3 py-4`,children:(0,z.jsxs)(kl,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium`,children:[(0,z.jsx)(Wt,{className:`size-4 text-muted-foreground`}),`成员进度`,(0,z.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:`点击成员可查看其任务`})]}),(0,z.jsx)(`div`,{className:`overflow-x-auto rounded-lg border`,children:(0,z.jsxs)(`table`,{className:`w-full min-w-[560px] text-left text-xs`,children:[(0,z.jsx)(`thead`,{className:`bg-muted/50 text-muted-foreground`,children:(0,z.jsxs)(`tr`,{children:[(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`开发者`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`角色`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`需求`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`任务`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`进度`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`问题`})]})}),(0,z.jsx)(`tbody`,{children:e.developers.map(e=>{let t=WT(e.stats.completedTasks,e.stats.tasks);return(0,z.jsxs)(`tr`,{tabIndex:0,role:`button`,onClick:()=>n(e.id),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(e.id))},className:`cursor-pointer border-t transition-colors hover:bg-accent/40 focus:bg-accent/40 focus:outline-none`,children:[(0,z.jsx)(`td`,{className:`px-3 py-2 font-medium`,children:(0,z.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(Zm,{name:e.id}),e.id]})}),(0,z.jsx)(`td`,{className:`px-3 py-2 text-muted-foreground`,children:Jl[e.roleInferred??`unknown`]}),(0,z.jsx)(`td`,{className:`px-3 py-2`,children:e.stats.requirements}),(0,z.jsx)(`td`,{className:`px-3 py-2`,children:e.stats.tasks}),(0,z.jsx)(`td`,{className:`w-48 px-3 py-2`,children:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(zm,{counts:e.statusCounts,defs:Mm,className:`h-1.5`}),(0,z.jsxs)(`span`,{className:`w-8 shrink-0 text-right font-mono text-xs tabular-nums text-muted-foreground`,children:[t,`%`]})]})}),(0,z.jsx)(`td`,{className:`px-3 py-2`,children:e.errors===0&&e.warnings===0?(0,z.jsx)(`span`,{className:`text-success`,children:`—`}):(0,z.jsxs)(`span`,{className:`space-x-1.5`,children:[e.errors>0?(0,z.jsxs)(`span`,{className:`text-destructive`,children:[e.errors,`E`]}):null,e.warnings>0?(0,z.jsxs)(`span`,{className:`text-warning`,children:[e.warnings,`W`]}):null]})})]},e.id)})})]})})]})}),(0,z.jsx)(Ol,{className:`gap-3 py-4`,children:(0,z.jsxs)(kl,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium`,children:[(0,z.jsx)(Rt,{className:`size-4 text-warning`}),`被阻塞的任务(`,e.blocked.length,`)`]}),e.blocked.length===0?(0,z.jsx)(`p`,{className:`rounded-lg border border-success/25 bg-success/8 px-3 py-2 text-xs text-success`,children:`没有被阻塞的任务`}):(0,z.jsx)(`ul`,{className:`max-h-80 space-y-1.5 overflow-y-auto pr-1`,children:e.blocked.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsx)(Pl,{content:`${e.name}(点击查看任务详情)`,children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>t(e.developer,e.taskId),className:`flex w-full flex-col gap-1 rounded-lg bg-muted/50 px-3 py-2 text-left text-xs transition-colors hover:bg-accent/60`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,z.jsx)(q,{variant:`muted`,children:e.developer}),(0,z.jsx)(`span`,{className:`truncate font-medium`,children:e.name}),(0,z.jsx)(`span`,{className:`ml-auto shrink-0 font-mono text-xs text-muted-foreground`,children:e.taskId})]}),(e.blocking??[]).length===0?null:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 pl-0.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(we,{className:`size-3 shrink-0`}),(0,z.jsx)(`span`,{children:`等待前置任务完成:`}),(e.blocking??[]).map(e=>(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 font-mono`,children:[e.id,(0,z.jsx)(`span`,{className:`rounded bg-warning/12 px-1 py-0.5 font-sans text-warning`,children:e.status})]},e.id))]})]})})},`${e.developer}-${e.taskId}`))})]})})]})}var JT={start:`开始实施`,submit:`提交验收`,accept:`验收通过`,reject:`验收驳回`},YT={start:{status:`进行中`,acceptance:null},submit:{status:`待验收`,acceptance:null},accept:{status:`已完成`,acceptance:`验收通过`},reject:{status:`进行中`,acceptance:`验收驳回`}};function XT(e,t,n){switch(e.key){case`id`:return(0,z.jsx)(Um,{value:t.id});case`name`:return(0,z.jsx)(Pl,{content:`${t.name}(点击查看详情)`,children:(0,z.jsx)(`button`,{type:`button`,onClick:()=>n(t.id),className:`block w-full truncate text-left text-primary transition-colors hover:underline`,children:t.name})});case`type`:return(0,z.jsx)(Fl,{text:t.type});case`terminal`:return(0,z.jsx)(Fl,{text:t.terminal});case`scope`:return(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:ql[t.scope]??t.scope});case`selfTest`:return(0,z.jsx)(qm,{value:t.selfTest});case`acceptance`:return(0,z.jsx)(Jm,{value:Km(t.acceptance,t.status)});case`status`:return(0,z.jsx)(Wm,{status:Gm(t.status)});case`updatedAt`:return(0,z.jsx)(Pl,{content:t.updatedAt,children:(0,z.jsx)(`span`,{className:`cursor-default`,children:Hm(t.updatedAt)})});default:{let n=t[e.key];return n==null||n===``?`—`:Array.isArray(n)?n.join(`、`):String(n)}}}function ZT({validation:e,onOpenDetail:t,editable:n,actions:r,actingTaskId:i,onAction:a,onBatchAction:o}){let[s,c]=(0,v.useState)([]),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(`all`),[p,m]=(0,v.useState)(`all`),[h,g]=(0,v.useState)(`all`),[_,y]=(0,v.useState)(``),b=(0,v.useMemo)(()=>e.view.taskColumns.filter(e=>e.ui.board!==!1),[e.view.taskColumns]),x=(0,v.useMemo)(()=>Array.from(new Set(e.tasks.map(e=>e.status).filter(e=>e.length>0))),[e.tasks]),S=(0,v.useMemo)(()=>Array.from(new Set(e.tasks.map(e=>e.type).filter(e=>e.length>0))),[e.tasks]),C=e.tasks.filter(e=>{if(d!==`all`&&e.status!==d||p!==`all`&&e.type!==p||h!==`all`&&e.requirementId!==h)return!1;if(_.trim().length>0){let t=_.trim().toLowerCase();if(!`${e.id} ${e.name} ${e.terminal}`.toLowerCase().includes(t))return!1}return!0});return(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(St,{className:`pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground`}),(0,z.jsx)(Al,{value:_,placeholder:`搜索任务编号 / 名称 / 执行终端`,className:`h-8 w-56 pl-8 text-xs`,onChange:e=>y(e.target.value)})]}),(0,z.jsxs)(Jp,{value:d,onValueChange:f,children:[(0,z.jsx)(Qp,{className:`h-8 w-32 text-xs`,children:(0,z.jsx)(Yp,{})}),(0,z.jsxs)($p,{children:[(0,z.jsx)(em,{value:`all`,children:`全部状态`}),x.map(e=>(0,z.jsx)(em,{value:e,children:e},e))]})]}),(0,z.jsxs)(Jp,{value:p,onValueChange:m,children:[(0,z.jsx)(Qp,{className:`h-8 w-32 text-xs`,children:(0,z.jsx)(Yp,{})}),(0,z.jsxs)($p,{children:[(0,z.jsx)(em,{value:`all`,children:`全部类型`}),S.map(e=>(0,z.jsx)(em,{value:e,children:e},e))]})]}),(0,z.jsxs)(Jp,{value:h,onValueChange:g,children:[(0,z.jsx)(Qp,{className:`h-8 w-56 text-xs`,children:(0,z.jsx)(Yp,{})}),(0,z.jsxs)($p,{children:[(0,z.jsx)(em,{value:`all`,children:`全部需求`}),e.requirements.map(e=>(0,z.jsxs)(em,{value:e.id,children:[e.id,` `,e.title]},e.id))]})]}),(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[C.length,`/`,e.tasks.length]}),n&&s.length>0?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-primary/30 bg-primary/5 px-2.5 py-1.5`,children:[(0,z.jsxs)(`span`,{className:`text-xs text-primary`,children:[`已选 `,s.length,` 项`]}),(0,z.jsx)(K,{size:`sm`,className:`h-6 px-2 text-xs`,onClick:()=>u({kind:`batch`,taskIds:[...s],action:`accept`}),children:`批量验收通过`}),(0,z.jsx)(K,{size:`sm`,variant:`outline`,className:`h-6 px-2 text-xs`,onClick:()=>u({kind:`batch`,taskIds:[...s],action:`reject`}),children:`批量驳回`}),(0,z.jsx)(K,{size:`sm`,variant:`ghost`,className:`h-6 px-2 text-xs`,onClick:()=>c([]),children:`清空`})]}):null]}),(0,z.jsx)(`div`,{className:`overflow-x-auto rounded-lg border`,children:(0,z.jsxs)(`table`,{className:`w-full min-w-[1040px] table-fixed text-left text-xs`,children:[(0,z.jsx)(`thead`,{className:`bg-muted/50 text-muted-foreground`,children:(0,z.jsxs)(`tr`,{children:[n?(0,z.jsx)(`th`,{className:`w-[32px] px-1.5 py-2`}):null,b.map(e=>(0,z.jsx)(`th`,{className:G(`whitespace-nowrap px-2 py-2 font-medium`,e.key===`id`?`w-[76px] px-2`:`px-3`),style:e.ui.width?{width:e.ui.width}:void 0,children:e.label},e.key)),n?(0,z.jsx)(`th`,{className:`sticky right-0 z-20 w-[148px] whitespace-nowrap border-l bg-muted px-2 py-2 font-medium`,children:`操作`}):null]})}),(0,z.jsxs)(`tbody`,{children:[C.map(e=>(0,z.jsxs)(`tr`,{className:`group border-t transition-colors hover:bg-accent/40`,children:[n?(0,z.jsx)(`td`,{className:`px-2 py-2`,onClick:e=>e.stopPropagation(),children:(0,z.jsx)(`input`,{type:`checkbox`,className:`size-3.5 accent-primary`,checked:s.includes(e.id),onChange:t=>c(n=>t.target.checked?[...n,e.id]:n.filter(t=>t!==e.id))})}):null,b.map(n=>(0,z.jsx)(`td`,{className:G(`px-2 py-2`,n.key===`name`?`px-3`:n.key===`updatedAt`?`whitespace-nowrap pr-6 text-muted-foreground`:`text-muted-foreground`),children:XT(n,e,t)},n.key)),n?(0,z.jsx)(`td`,{className:`sticky right-0 z-10 border-l bg-card px-2.5 py-2 pr-3 group-hover:bg-accent`,onClick:e=>e.stopPropagation(),children:(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[(r[e.id]??[]).map(t=>t.enabled===!1?(0,z.jsx)(Pl,{content:(0,z.jsxs)(`span`,{className:`block space-y-1`,children:[(0,z.jsx)(`span`,{className:`block`,children:t.reason}),t.nextStep===void 0?null:(0,z.jsx)(`code`,{className:`block font-mono text-[10px] opacity-80`,children:t.nextStep})]}),children:(0,z.jsxs)(`span`,{className:G(`inline-flex cursor-not-allowed flex-col rounded-md border border-dashed border-muted-foreground/40 px-2 py-0.5 text-muted-foreground`),children:[(0,z.jsx)(`span`,{className:`text-xs`,children:JT[t.action]}),(0,z.jsx)(`span`,{className:`text-[10px] leading-tight`,children:t.reason})]})},t.action):(0,z.jsxs)(K,{size:`sm`,variant:t.action===`accept`?`default`:`outline`,className:G(`h-6 whitespace-nowrap px-2 text-xs`,t.action===`reject`?`text-destructive hover:text-destructive`:``),disabled:i===e.id,onClick:()=>u({kind:`single`,taskId:e.id,action:t.action}),children:[i===e.id?(0,z.jsx)(et,{className:`size-3 animate-spin`}):null,JT[t.action]]},t.action)),(r[e.id]??[]).length===0?(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`—`}):null]})}):null]},e.id)),C.length===0?(0,z.jsx)(`tr`,{children:(0,z.jsx)(`td`,{colSpan:n?9:7,className:`px-3 py-8 text-center text-muted-foreground`,children:`没有符合条件的任务`})}):null]})]})}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`点击任意行查看任务详情。`}),(0,z.jsx)(Hp,{open:l!==null,onOpenChange:e=>e?void 0:u(null),children:(0,z.jsxs)(Up,{className:`max-w-md`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsxs)(Gp,{children:[`确认`,l===null?``:l.kind===`batch`?`批量「${JT[l.action]}」`:`「${JT[l.action]}」`,`?`]}),(0,z.jsx)(Kp,{children:l?.kind===`single`?e.tasks.find(e=>e.id===l.taskId)?.name??l.taskId:l===null?``:`将对 ${l.taskIds.length} 个任务执行该动作`})]}),l===null?null:(0,z.jsxs)(`div`,{className:`space-y-1.5 rounded-lg bg-muted/50 px-3 py-2.5 text-xs`,children:[(0,z.jsxs)(`p`,{className:`text-muted-foreground`,children:[`任务状态:`,l.kind===`single`?`${e.tasks.find(e=>e.id===l.taskId)?.status??`—`} → ${YT[l.action].status}`:`→ ${YT[l.action].status}`]}),YT[l.action].acceptance===null?null:(0,z.jsxs)(`p`,{className:`text-muted-foreground`,children:[`开发人工验收:`,l.kind===`single`?`${e.tasks.find(e=>e.id===l.taskId)?.acceptance??`—`} → ${YT[l.action].acceptance}`:`→ ${YT[l.action].acceptance}`]}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`所属需求的状态与进度会同步重算,写入后可执行 git diff 核对。`})]}),(0,z.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>u(null),children:`取消`}),(0,z.jsx)(K,{size:`sm`,variant:l?.action===`reject`?`destructive`:`default`,onClick:()=>{l!==null&&(l.kind===`single`?a(l.taskId,l.action):(o(l.taskIds,l.action),c([])),u(null))},children:`确认执行`})]})]})})]})}function QT(e,t,n,r){switch(e.key){case`id`:return(0,z.jsx)(Um,{value:t.id});case`title`:return(0,z.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,z.jsx)(`span`,{className:`min-w-0 flex-1`,children:(0,z.jsx)(Fl,{text:t.title})}),n?(0,z.jsx)(q,{variant:`warning`,children:`待人工验收`}):null]});case`terminal`:return(0,z.jsx)(Fl,{text:t.terminal});case`status`:return(0,z.jsx)(Wm,{status:t.status});case`progress`:{let e=Number.parseInt(t.progress,10),n=Number.isFinite(e)?Math.max(0,Math.min(100,e)):0;return(0,z.jsx)(Pl,{content:`${n}%`,children:(0,z.jsxs)(`span`,{className:`inline-flex cursor-default items-center justify-end`,children:[(0,z.jsxs)(`span`,{className:`tabular-nums`,children:[n,`%`]}),(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 inline-block h-1 w-14 overflow-hidden rounded-full bg-border`,children:(0,z.jsx)(`span`,{className:`block h-full rounded-full bg-success transition-all`,style:{width:`${n}%`}})})]})})}case`updatedAt`:return(0,z.jsx)(Pl,{content:t.updatedAt,children:(0,z.jsx)(`span`,{className:`cursor-default`,children:Hm(t.updatedAt)})});case`note`:return t.note.length===0?`—`:(0,z.jsx)(Fl,{text:t.note});default:{let n=t[e.key];return n==null||n===``?`—`:Array.isArray(n)?n.join(`、`):String(n)}}}function $T({validation:e,onOpenDetail:t}){let[n,r]=(0,v.useState)(`all`),[i,a]=(0,v.useState)(``),o=(0,v.useMemo)(()=>e.view.requirementColumns.filter(e=>e.ui.board!==!1),[e.view.requirementColumns]),s=(0,v.useMemo)(()=>Array.from(new Set(e.requirements.map(e=>e.terminal).filter(e=>e.length>0))),[e.requirements]),c=e.requirements.filter(e=>{if(n!==`all`&&e.terminal!==n)return!1;if(i.trim().length>0){let t=i.trim().toLowerCase().replace(/^#/,``);if(!`${e.id.replace(/^#/,``)} ${e.title}`.toLowerCase().includes(t))return!1}return!0});return(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(St,{className:`pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground`}),(0,z.jsx)(Al,{value:i,placeholder:`搜索需求编号 / 名称`,className:`h-8 w-52 pl-8 text-xs`,onChange:e=>a(e.target.value)})]}),(0,z.jsxs)(Jp,{value:n,onValueChange:r,children:[(0,z.jsx)(Qp,{className:`h-8 w-40 text-xs`,children:(0,z.jsx)(Yp,{})}),(0,z.jsxs)($p,{children:[(0,z.jsx)(em,{value:`all`,children:`全部执行终端`}),s.map(e=>(0,z.jsx)(em,{value:e,children:e},e))]})]}),(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[c.length,`/`,e.requirements.length]})]}),(0,z.jsx)(`div`,{className:`overflow-x-auto rounded-lg border`,children:(0,z.jsxs)(`table`,{className:`w-full min-w-[880px] table-fixed text-left text-xs`,children:[(0,z.jsx)(`thead`,{className:`bg-muted/50 text-muted-foreground`,children:(0,z.jsx)(`tr`,{children:o.map(e=>(0,z.jsx)(`th`,{className:G(`whitespace-nowrap px-2 py-2 font-medium`,e.key===`title`?`w-[26%] px-3`:``,e.key===`progress`?`text-right`:``),style:e.ui.width?{width:e.ui.width}:void 0,children:e.label},e.key))})}),(0,z.jsxs)(`tbody`,{children:[c.map(n=>{let r=e.tasks.filter(e=>e.requirementId===n.id),i=r.length>0&&r.every(e=>e.status===`待验收`)&&n.status!==`已完成`;return(0,z.jsx)(`tr`,{className:`border-t transition-colors hover:bg-accent/40`,children:o.map(e=>(0,z.jsx)(`td`,{className:G(`px-2 py-2`,e.key===`title`?`px-3`:``,e.key===`updatedAt`?`whitespace-nowrap pr-4 text-muted-foreground`:e.key===`id`?`whitespace-nowrap`:e.key===`progress`?`whitespace-nowrap text-right`:`text-muted-foreground`),children:QT(e,n,i,t)},e.key))},n.id)}),c.length===0?(0,z.jsx)(`tr`,{children:(0,z.jsx)(`td`,{colSpan:o.length,className:`px-3 py-8 text-center text-muted-foreground`,children:`没有符合条件的需求`})}):null]})]})})]})}function eE(e){let t=e.trim();return t.length===0?`未执行`:t.startsWith(`免测`)?`免测`:t}function tE(e){let t=e.trim();return t.length===0?`待验收`:t}function nE(e,t){let n={};for(let r of e){let e=t(r).trim(),i=e.length===0?`未知`:e;n[i]=(n[i]??0)+1}return n}function rE(e){let t=e.split(`/`).map(e=>e.trim()).filter(e=>e.length>0);if(t.length===0)return null;let n=[];for(let e of t){let t=e.match(/^(.*?)(\d{4}-\d{2}-\d{2})\s*$/),r=t?.[2];if(t===null||r===void 0)return null;n.push({name:(t[1]??``).trim(),date:r})}return n}function iE({milestones:e}){let t=(0,v.useMemo)(()=>{let e=new Date;return e.setHours(0,0,0,0),e.getTime()},[]),n=e.findIndex(e=>new Date(`${e.date}T00:00:00`).getTime()>=t);return(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map((e,t)=>{let r=t<n||n<0,i=t===n;return(0,z.jsxs)(`span`,{className:G(`inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs`,r&&`border-success/25 bg-success/10 text-success`,i&&`border-warning/40 bg-warning/10 font-medium text-warning`,!r&&!i&&`border-dashed border-border text-muted-foreground`),children:[r?(0,z.jsx)(ce,{className:`size-3 shrink-0`}):null,e.name.length>0?(0,z.jsx)(`span`,{children:e.name}):null,(0,z.jsx)(`span`,{className:`font-mono`,children:e.date.slice(5)})]},`${e.name}-${e.date}`)})})}function aE({validation:e}){let t=e.iterationInfo,n=[{label:`迭代版本`,value:t.迭代版本},{label:`负责人`,value:t.负责人},{label:`负责范围`,value:t.负责范围},{label:`PRD`,value:t[`PRD 来源`],link:!0}].filter(e=>(e.value??``).length>0);return(0,z.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-4`,children:n.map(e=>(0,z.jsxs)(`div`,{className:`rounded-lg bg-muted/50 px-3.5 py-2.5`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.label}),e.link===!0&&e.value!==void 0?(0,z.jsx)(`a`,{href:e.value,target:`_blank`,rel:`noreferrer`,className:`mt-0.5 block truncate text-[13px] text-primary underline-offset-2 hover:underline`,children:e.value}):(0,z.jsx)(`p`,{className:`mt-0.5 truncate text-[13px]`,children:e.value})]},e.label))})}function oE({validation:e}){let t=[...e.errors,...e.warnings];return t.length===0?null:(0,z.jsx)(`div`,{className:`space-y-1.5`,children:t.map((e,t)=>(0,z.jsxs)(`div`,{className:G(`flex items-start gap-2 rounded-lg border px-3 py-2 text-xs`,e.level===`error`?`border-destructive/25 bg-destructive/6 text-destructive`:`border-warning/30 bg-warning/8 text-warning`),children:[(0,z.jsx)(Rt,{className:`mt-0.5 size-3.5 shrink-0`}),(0,z.jsx)(`span`,{className:`leading-snug`,children:e.message})]},`${e.code}-${t}`))})}function sE({doc:e,onOpenDetail:t,editable:n,actions:r,actingTaskId:i,onAction:a,onBatchAction:o}){let{validation:s}=e,c=WT(s.stats.completedTasks,s.stats.tasks),l=s.iterationInfo.排期计划,u=l===void 0?null:rE(l);return(0,z.jsxs)(`div`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(Me,{className:`size-4 text-muted-foreground`}),(0,z.jsxs)(`span`,{className:`text-sm font-medium`,children:[e.developer,`.md`]}),(0,z.jsx)(q,{variant:`muted`,children:Jl[e.roleInferred??`unknown`]}),e.source===`remote`?(0,z.jsx)(Pl,{content:`校验依据:快照内的 schema.json(不读工作区)@${e.ref?.sha.slice(0,7)??``}`,children:(0,z.jsxs)(q,{variant:`secondary`,children:[(0,z.jsx)(Ee,{className:`size-3`}),`团队快照 `,e.ref?.sha.slice(0,7)??``]})}):(0,z.jsxs)(q,{variant:`muted`,children:[(0,z.jsx)(We,{className:`size-3`}),`我的工作区`]}),e.parser===`fallback`?(0,z.jsx)(q,{variant:`warning`,children:`未校验`}):null]}),(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[(0,z.jsx)(Pl,{content:e.source===`remote`?`团队快照取该文件最后一次提交时间`:`工作区文件的最后修改时间`,children:(0,z.jsx)(`span`,{className:`cursor-default`,children:Hm(e.mtime)})}),` `,`更新`]})]}),e.parser===`fallback`?(0,z.jsxs)(mu,{children:[`未执行规则校验,仅为结构解析(数据仅供参考)。`,e.parserError===null?``:`原因:${e.parserError}。`,`把「负责范围」改成 schema 里的角色名(frontend / backend / fullstack)后刷新即可恢复。`]}):null,(0,z.jsx)(Ym,{title:`文档信息`}),(0,z.jsx)(aE,{validation:s}),l===void 0?null:(0,z.jsxs)(`div`,{className:`rounded-lg bg-muted/50 px-3.5 py-2.5`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`排期计划`}),(0,z.jsx)(`div`,{className:`mt-1.5`,children:u===null?(0,z.jsx)(`p`,{className:`text-[13px]`,children:l}):(0,z.jsx)(iE,{milestones:u})})]}),(0,z.jsx)(Ym,{title:`进度总览`}),(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-4`,children:[(0,z.jsx)(lu,{label:`需求`,value:s.stats.requirements}),(0,z.jsx)(lu,{label:`任务`,value:s.stats.tasks}),(0,z.jsx)(lu,{label:`已完成`,value:s.stats.completedTasks}),(0,z.jsx)(lu,{label:`进度`,value:`${c}%`,tone:`primary`,progress:c})]}),(0,z.jsx)(Ym,{title:`状态明细`}),(0,z.jsx)(Vm,{taskCounts:nE(s.tasks,e=>e.status),requirementCounts:nE(s.requirements,e=>e.status),selfTestCounts:nE(s.tasks,e=>eE(e.selfTest)),acceptanceCounts:nE(s.tasks,e=>tE(e.acceptance))}),(0,z.jsx)(oE,{validation:s}),(0,z.jsx)(Ym,{title:`需求清单`,count:s.requirements.length}),(0,z.jsx)($T,{validation:s,onOpenDetail:t}),(0,z.jsx)(Ym,{title:`任务清单`,count:s.tasks.length}),(0,z.jsx)(ZT,{validation:s,onOpenDetail:t,editable:n,actions:r,actingTaskId:i,onAction:a,onBatchAction:o})]})}var cE=[`source`,`ref`,`iteration`,`dev`,`task`,`tab`];function lE(){let e=window.location.hash,t=e.indexOf(`?`);return t>=0?new URLSearchParams(e.slice(t+1)):new URLSearchParams(window.location.search)}function uE(){let e=lE(),t=ou(e=>e.snapshot),n=t?.config?.profile.developer??``,r=e.get(`tab`),i=r===`doc`||r===`overview`?r:`doc`,a=e.get(`dev`),o=e.get(`task`),s=e.get(`source`)===`remote`?`remote`:`local`,c=(0,v.useRef)(e.get(`iteration`)),[l,u]=(0,v.useState)(s),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(null),[_,y]=(0,v.useState)(null),[b,x]=(0,v.useState)([]),[S,C]=(0,v.useState)(e.get(`ref`)),[w,T]=(0,v.useState)(!1),[E,D]=(0,v.useState)(null),[O,k]=(0,v.useState)(null),[A,j]=(0,v.useState)(null),[M,N]=(0,v.useState)(a),[P,I]=(0,v.useState)(null),[ee,te]=(0,v.useState)(i),[ne,re]=(0,v.useState)(!1),[ie,ae]=(0,v.useState)(null),[oe,se]=(0,v.useState)(null),ce=t!==null&&(t.meta.features??[]).includes(`status-breakdown`)===!1,[le,ue]=(0,v.useState)(0),de=(0,v.useRef)(null),fe=(0,v.useRef)(o),pe=(0,v.useRef)(Date.now()),L=(0,v.useRef)(null),R=async(e,t={})=>{let n=t.silent===!0;n||re(!0),ae(null);try{let t=e===`remote`?S??void 0:void 0,[n,r,i]=await Promise.all([J.listIterations(e,t),J.gitStatus(),J.gitBranches().catch(()=>null)]);D(n),f(r),m(i),k(e=>{let t=c.current;c.current=null;let r=t??e;return n.iterations.some(e=>e.name===r)?r:n.iterations[0]?.name??null}),n.iterations.length===0&&(k(null),j(null),I(null),se(null))}catch(e){D(null),ae(e instanceof Error?e.message:String(e))}finally{n||re(!1)}};(0,v.useEffect)(()=>{let e=window.location.hash,t=e.indexOf(`?`);if(t<0)return;let n=new URL(window.location.href);for(let e of cE)n.searchParams.delete(e);for(let[r,i]of new URLSearchParams(e.slice(t+1)))n.searchParams.set(r,i);n.hash=e.slice(0,t),window.history.replaceState(null,``,n)},[]),(0,v.useEffect)(()=>{R(l)},[l,S]),(0,v.useEffect)(()=>{let e=new URL(window.location.href);l===`remote`?(e.searchParams.set(`source`,`remote`),S===null?e.searchParams.delete(`ref`):e.searchParams.set(`ref`,S)):(e.searchParams.delete(`source`),e.searchParams.delete(`ref`)),window.history.replaceState(null,``,e)},[l,S]),(0,v.useEffect)(()=>{if(O===null)return;let e=!1;return re(!0),ae(null),J.iterationSummary(O,l,l===`remote`?S??void 0:void 0).then(t=>{e||(j(t),N(e=>t.developers.some(t=>t.id===e)?e:(n.length===0?void 0:t.developers.find(e=>e.id===n))?.id??t.developers[0]?.id??null))}).catch(t=>{e||(j(null),ae(t instanceof Error?t.message:String(t)))}).finally(()=>{e||re(!1)}),()=>{e=!0}},[O,l,S,le,n]),(0,v.useEffect)(()=>{if(O===null||M===null)return;let e=!1;return J.iterationDoc(O,M,l,l===`remote`?S??void 0:void 0).then(t=>{if(e)return;I(t);let n=de.current??fe.current;if(n!==null){let e=t.details.find(e=>e.id===n||e.id===n.replace(/^#/,``));e!==void 0&&se(e),de.current=null,fe.current=null}else se(e=>e===null?null:t.details.find(t=>t.id===e.id||t.id===e.id.replace(/^#/,``))??e)}).catch(t=>{e||(I(null),ae(t instanceof Error?t.message:String(t)))}),()=>{e=!0}},[O,M,l,S,le]),(0,v.useEffect)(()=>{let e=()=>{if(document.visibilityState!==`visible`)return;let e=Date.now();e-pe.current<5e3||(pe.current=e,R(l,{silent:!0}),ue(e=>e+1))};return window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[l]);let me=l===`local`&&M!==null&&n.length>0&&M===n&&h?.editable===!0;(0,v.useEffect)(()=>{if(O===null||M===null||M!==n||l!==`local`){g(null);return}let e=!1;return J.taskActions(O,M).then(t=>{e||g(t)}).catch(()=>{e||g(null)}),()=>{e=!0}},[O,M,l,le,P,n]);let he=async()=>{await R(l,{silent:!0}),ue(e=>e+1)},ge=async(e,t)=>{if(O!==null&&M!==null){y(e);try{let n=await J.taskAction(O,M,e,t);dn.success(n.message,{description:n.changes.slice(0,3).join(`;`)}),await he()}catch(e){dn.error(`操作失败`,{description:e instanceof Error?e.message:String(e)})}finally{y(null)}}},_e=async(e,t)=>{if(O!==null&&M!==null&&e.length!==0){y(e[0]??null);try{let n=await J.taskBatch(O,M,e,t);dn.success(n.message,{description:n.changes.slice(0,3).join(`;`)}),await he()}catch(e){dn.error(`批量操作失败`,{description:e instanceof Error?e.message:String(e)})}finally{y(null)}}},ve=async()=>{T(!0);try{let e=await J.gitFetch();e.ok&&await R(l),ae(e.ok?null:e.message)}catch(e){ae(e instanceof Error?e.message:String(e))}finally{T(!1)}};(0,v.useEffect)(()=>{let e=Number.parseInt(new URLSearchParams(window.location.search).get(`scroll`)??`0`,10);if(!Number.isFinite(e)||e<=0)return;let t=setTimeout(()=>{L.current!==null&&(L.current.scrollTop=e)},300);return()=>clearTimeout(t)},[P,ee]);let ye=(e,t)=>{if(e===M){let e=P?.details.find(e=>e.id===t||e.id===t.replace(/^#/,``));e!==void 0&&se(e)}else de.current=t,N(e)};(0,v.useEffect)(()=>{if(oe===null||O===null||M===null){x([]);return}let e=!1;return J.taskHistory(O,M,oe.id).then(t=>{e||x(t)}).catch(()=>{e||x([])}),()=>{e=!0}},[oe,O,M,le]);let be=A?.blocked.find(e=>e.taskId===oe?.id)?.blocking??[],xe=e=>{let t=P?.details.find(t=>t.id===e||t.id===e.replace(/^#/,``));se(t??null)},Se=()=>(0,z.jsx)(`div`,{className:`shrink-0 border-b bg-background px-8 py-3`,children:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-1 rounded-lg border p-0.5`,children:[(0,z.jsx)(Pl,{content:`读取你本机工作区的文档(含未提交修改)`,children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>u(`local`),className:G(`flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs transition-colors`,l===`local`?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`),children:[(0,z.jsx)(We,{className:`size-3`}),`我的工作区`]})}),(0,z.jsx)(Pl,{content:`团队视角:读取远端分支的提交快照,不 pull、不 checkout、不改动工作区`,children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>u(`remote`),disabled:d!==null&&!d.hasRemote,className:G(`flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs transition-colors`,l===`remote`?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`,d!==null&&!d.hasRemote?`cursor-not-allowed opacity-40`:``),children:[(0,z.jsx)(Ee,{className:`size-3`}),`团队快照`]})})]}),l===`local`?(0,z.jsxs)(`div`,{className:`flex h-8 items-center overflow-hidden rounded-lg border bg-card`,children:[(0,z.jsx)(Pl,{content:p?.dirty===!0?`当前检出分支:${p.current??`detached HEAD`}(工作区有未提交改动)`:`当前检出分支:${p?.current??`detached HEAD`}`,children:(0,z.jsxs)(`span`,{className:`flex h-full cursor-default items-center gap-1.5 px-2.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(He,{className:`size-3 shrink-0`}),(0,z.jsx)(`span`,{className:`max-w-56 truncate font-mono text-xs`,children:p===null?`…`:p.current??`detached HEAD`}),p?.dirty===!0?(0,z.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-warning`}):null]})}),(0,z.jsx)(Pl,{content:`重新扫描工作区(不联网):IDE 里改过文档、执行终端切过分支后点这里`,children:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,className:`size-8 shrink-0 rounded-none border-l`,onClick:()=>void R(l),disabled:ne,"aria-label":`重新扫描工作区`,children:ne?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(mt,{className:`size-3.5`})})})]}):null,l===`remote`&&p!==null&&p.remote.length>0?(0,z.jsxs)(Jp,{value:S??p.upstream??p.remote[0]??``,onValueChange:e=>C(e),children:[(0,z.jsx)(Pl,{content:`选择要查看的远端分支(只读快照,不改动工作区)`,children:(0,z.jsx)(Qp,{className:`h-9 w-64 text-xs`,children:(0,z.jsx)(`span`,{className:`truncate font-mono text-xs`,children:S??p.upstream??p.remote[0]??`选择远端分支`})})}),(0,z.jsx)($p,{children:p.remote.map(e=>(0,z.jsxs)(em,{value:e,children:[e,e===p.upstream?`(当前上游)`:``]},e))})]}):null,E===null||E.iterations.length===0?null:(0,z.jsxs)(Jp,{value:O??``,onValueChange:e=>k(e),children:[(0,z.jsx)(Qp,{className:`h-9 w-64 text-sm`,children:(0,z.jsx)(Yp,{placeholder:`选择迭代`})}),(0,z.jsx)($p,{children:Qm(E.iterations).map(([e,t])=>(0,z.jsxs)(Xp,{children:[(0,z.jsxs)(Zp,{children:[e,` 年`]}),t.map(e=>(0,z.jsxs)(em,{value:e.name,children:[e.name,`(`,e.developers.length,` 人)`]},e.relPath))]},e))})]}),l===`remote`?(0,z.jsxs)(`div`,{className:`flex h-8 items-center overflow-hidden rounded-lg border bg-card`,children:[(0,z.jsx)(Pl,{content:`重新读取本地保存的团队快照(不联网);要拉取远端最新提交请用右侧「同步远程」`,children:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,className:`size-8 shrink-0 rounded-none`,onClick:()=>void R(l),disabled:ne,"aria-label":`重新读取团队快照`,children:ne?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(mt,{className:`size-3.5`})})}),(0,z.jsx)(Pl,{content:`执行 git fetch --prune origin:拉取远端最新提交并清理已删除的分支,不改动工作区`,children:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,className:`size-8 shrink-0 rounded-none border-l`,onClick:()=>void ve(),disabled:w,"aria-label":`同步远程`,children:w?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(F,{className:`size-3.5`})})})]}):null]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-1 rounded-lg border p-0.5`,children:[(0,z.jsx)(`button`,{type:`button`,onClick:()=>te(`doc`),className:G(`rounded-md px-3 py-1.5 text-xs transition-colors`,ee===`doc`?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`),children:`个人文档`}),(0,z.jsx)(`button`,{type:`button`,onClick:()=>te(`overview`),className:G(`rounded-md px-3 py-1.5 text-xs transition-colors`,ee===`overview`?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`),children:`迭代总览`})]})]})});if(E===null)return(0,z.jsx)(hu,{label:`正在读取迭代…`,className:`h-full`});if(!E.configured)return(0,z.jsx)(pu,{icon:(0,z.jsx)(Ot,{className:`size-5`}),title:`尚未配置文档仓库`,description:"当前账号还没有可用的迭代任务文档仓库。请联系管理员开通访问权限,或用 `ylcwf init` 完成配置后刷新。",action:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,onClick:()=>void R(l),children:[(0,z.jsx)(mt,{className:`size-3.5`}),`重新检测`]})});if(!E.accessible)return(0,z.jsx)(pu,{icon:(0,z.jsx)(Ot,{className:`size-5`}),title:`无法访问文档仓库`,description:`${E.reason??`未知原因`}。如果这是团队共享仓库,请联系管理员开通文档仓库访问权限。`,action:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,onClick:()=>void R(l),children:[(0,z.jsx)(mt,{className:`size-3.5`}),`重新检测`]})});if(E.iterations.length===0){let e=l===`remote`?E.ref?.name??S??`当前远端分支`:`当前工作区`;return(0,z.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[Se(),(0,z.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center`,children:(0,z.jsx)(pu,{icon:(0,z.jsx)(Pe,{className:`size-5`}),title:`${e} 上没有迭代文档`,description:l===`remote`?`该分支未包含「迭代目录/开发者.md」结构的文档。可切换到其他远端分支,或切回「我的工作区」。`:`已读取 ${E.docsRoot},但未找到包含个人文档的迭代目录。确认仓库路径正确,且目录下存在 {开发者}.md。`,action:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,onClick:()=>void R(l),children:[(0,z.jsx)(mt,{className:`size-3.5`}),`重新扫描`]})})})]})}return(0,z.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[Se(),l===`remote`&&d!==null?(0,z.jsx)(`div`,{className:`shrink-0`,children:(0,z.jsxs)(`div`,{className:`mx-8 mt-3 flex flex-wrap items-center gap-2 rounded-lg border bg-muted/40 px-3.5 py-2 text-xs text-muted-foreground`,children:[(0,z.jsx)(Ee,{className:`size-3.5`}),(0,z.jsx)(`span`,{className:`font-mono`,children:d.upstream??`无上游`}),E?.ref===null||E?.ref===void 0?null:(0,z.jsxs)(`span`,{className:`font-mono`,children:[`@`,E.ref.sha.slice(0,7)]}),d.behind>0?(0,z.jsxs)(q,{variant:`warning`,children:[`落后 `,d.behind,` 个提交`]}):null,d.ahead>0?(0,z.jsx)(Pl,{content:`远程快照不含本地未推送的提交`,children:(0,z.jsxs)(q,{variant:`warning`,children:[`本地领先 `,d.ahead,` 个提交`]})}):null,d.dirty?(0,z.jsx)(q,{variant:`muted`,children:`工作区有未提交修改`}):null,d.ahead>0?(0,z.jsx)(`span`,{className:`text-warning`,children:`当前是团队快照(只读),可能滞后于你的工作区;查看最新请切回「我的工作区」`}):(0,z.jsx)(`span`,{children:`团队快照(只读),不会改动工作区`})]})}):null,ce?(0,z.jsx)(`div`,{className:`shrink-0 px-8 py-2`,children:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 rounded-lg border border-warning/35 bg-warning/8 px-3.5 py-2.5 text-xs text-warning`,children:[(0,z.jsx)(Rt,{className:`size-3.5 shrink-0`}),(0,z.jsxs)(`span`,{className:`flex-1`,children:[`本地服务版本比界面旧(升级后未重启):状态统计等新数据可能为空。请在执行终端重启`,` `,(0,z.jsx)(`code`,{className:`rounded bg-warning/15 px-1 py-0.5 font-mono`,children:`ylcwf serve`}),` `,`后刷新。`]})]})}):null,ie===null?null:(0,z.jsx)(`div`,{className:`shrink-0 px-8 py-2`,children:(0,z.jsx)(`div`,{className:`flex flex-wrap items-center gap-3 rounded-lg border border-destructive/25 bg-destructive/8 px-3.5 py-2.5 text-xs text-destructive`,children:(0,z.jsx)(`span`,{className:`flex-1`,children:ie})})}),(0,z.jsxs)(`div`,{className:G(`grid min-h-0 flex-1 gap-0`,ee===`doc`?`lg:grid-cols-[224px_1fr]`:`grid-cols-1`),children:[ee===`doc`?(0,z.jsx)(`aside`,{className:`min-h-0 overflow-y-auto border-r px-4 py-4`,children:A===null?(0,z.jsx)(hu,{label:`加载中…`,className:`h-full`}):(0,z.jsx)(KT,{summary:A,active:M,onSelect:e=>N(e)})}):null,(0,z.jsx)(`div`,{ref:L,className:`min-h-0 min-w-0 overflow-y-auto px-6 py-5`,children:(0,z.jsx)(`div`,{className:`space-y-4`,children:A===null?(0,z.jsx)(hu,{label:`正在汇总该迭代…`,className:`h-full`}):ee===`overview`?(0,z.jsx)(qT,{summary:A,onOpenTask:ye,onSelectDeveloper:e=>{N(e),te(`doc`)}}):P===null?(0,z.jsx)(Ol,{className:`py-16`,children:(0,z.jsx)(kl,{className:`text-center text-sm text-muted-foreground`,children:`选择左侧开发者查看文档`})}):(0,z.jsx)(sE,{doc:P,onOpenDetail:xe,editable:me,actions:h?.actions??{},actingTaskId:_,onAction:(e,t)=>void ge(e,t),onBatchAction:(e,t)=>void _e(e,t)})})})]}),(0,z.jsx)(Hp,{open:oe!==null,onOpenChange:e=>e?void 0:se(null),children:(0,z.jsxs)(Up,{className:`flex max-h-[82vh] max-w-2xl flex-col gap-0 overflow-hidden p-0`,children:[(0,z.jsx)(`div`,{className:`shrink-0 border-b px-6 py-4 pr-12`,children:(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{className:`line-clamp-2 leading-snug`,children:oe?.name??``}),(0,z.jsxs)(Kp,{children:[oe?.id??``,` · 只读视图,修改请通过 Agent 流程`]})]})}),be.length>0?(0,z.jsxs)(`div`,{className:`mx-6 mt-4 flex flex-wrap items-center gap-2 rounded-lg border border-warning/35 bg-warning/8 px-3 py-2 text-xs text-warning`,children:[(0,z.jsx)(we,{className:`size-3.5 shrink-0`}),(0,z.jsx)(`span`,{children:`该任务被前置任务阻塞:`}),be.map(e=>(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 font-mono`,children:[e.id,(0,z.jsx)(`span`,{className:`rounded bg-warning/15 px-1 py-0.5`,children:e.status})]},e.id))]}):null,b.length===0?null:(0,z.jsxs)(`div`,{className:`mx-6 mt-3 space-y-1 rounded-lg border bg-muted/40 px-3 py-2`,children:[(0,z.jsx)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:`最近变更`}),b.map(e=>(0,z.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[(0,z.jsx)(`span`,{className:`font-mono`,children:new Date(e.at).toLocaleString(`zh-CN`)}),` · `,e.changes.slice(0,2).join(`;`)]},`${e.at}-${e.action}`))]}),(0,z.jsx)(`div`,{className:`prose prose-sm min-h-0 max-w-none flex-1 overflow-y-auto px-6 py-4 dark:prose-invert prose-code:rounded prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[12px] prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted/60 prose-table:text-xs prose-headings:font-semibold`,children:oe===null?null:(0,z.jsx)(mS,{remarkPlugins:[UT],skipHtml:!0,children:oe.markdown})})]})})]})}var dE=[{id:`overview`,label:`概览`,description:`当前迭代进度、我的待办与仓库状态`,icon:Xe,component:th,wide:!0},{id:`iterations`,label:`迭代看板`,description:`按我的工作区或团队快照查看迭代进度、成员文档与任务详情`,icon:At,component:uE,wide:!0,fullHeight:!0},{id:`settings`,label:`设置`,description:`身份、文档仓库、执行终端映射、备份与关于`,icon:wt,component:gh,fullHeight:!0}];function fE(e){return dE.some(t=>t.id===e)}function pE({trigger:e,children:t,placement:n=`bottom-end`}){let[r,i]=(0,v.useState)(!1),a=(0,v.useRef)(null);return(0,v.useEffect)(()=>{if(!r)return;let e=e=>{a.current!==null&&!a.current.contains(e.target)&&i(!1)},t=e=>{e.key===`Escape`&&i(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[r]),(0,z.jsxs)(`div`,{ref:a,className:`relative`,children:[(0,z.jsx)(`span`,{className:G(`inline-flex`,n===`top-start`?`w-full`:void 0),onClick:()=>i(e=>!e),children:e}),r?(0,z.jsx)(`div`,{onClick:()=>i(!1),className:G(`absolute z-50 w-44 rounded-lg border bg-popover p-1.5 shadow-lg animate-in fade-in-0 zoom-in-95`,n===`bottom-end`?`right-0 top-[calc(100%+6px)]`:`bottom-[calc(100%+6px)] left-0`),children:t}):null]})}function mE({children:e}){return(0,z.jsx)(`p`,{className:`px-2 pb-1 pt-1.5 text-xs font-medium text-muted-foreground`,children:e})}function hE({active:e,onClick:t,children:n}){return(0,z.jsx)(`button`,{type:`button`,onClick:t,"aria-current":e?`true`:void 0,className:G(`flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-sm transition-colors`,e?`font-medium text-primary`:`hover:bg-accent`),children:n})}function gE({mode:e}){return e===`system`?(0,z.jsx)(nt,{className:`size-3.5 shrink-0`}):e===`dark`?(0,z.jsx)(it,{className:`size-3.5 shrink-0`}):(0,z.jsx)(Pt,{className:`size-3.5 shrink-0`})}var _E={profile:`settings`,docs:`settings`,terminals:`settings`,backups:`settings`};function vE(){let e=window.location.hash.replace(`#`,``).split(`?`)[0]??``,t=_E[e]??e;return fE(t)?t:`overview`}function yE(){let[e,t]=(0,v.useState)(vE),[n,r]=(0,v.useState)(()=>{let e=new URLSearchParams(window.location.search).get(`sidebar`);return e===`collapsed`||e!==`expanded`&&localStorage.getItem(`ylcwf-sidebar`)===`collapsed`}),{mode:i}=Am(),a=um(lm()),{onboarding:o,loading:s,saving:c,snapshot:l,draft:u,dirty:d,error:f,save:p,discard:m}=ou();(0,v.useEffect)(()=>{let e=()=>t(vE());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]);let h=e=>{window.location.hash=e,t(e)};(0,v.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`s`&&(e.preventDefault(),d&&!c&&p())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[d,c,p]),(0,v.useEffect)(()=>{if(!d)return;let e=e=>{e.preventDefault(),e.returnValue=``};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[d]),(0,v.useEffect)(()=>{localStorage.setItem(`ylcwf-sidebar`,n?`collapsed`:`expanded`)},[n]);let g=dE;(0,v.useEffect)(()=>{g.some(t=>t.id===e)||t(g[0]?.id??`iterations`)},[e,g]);let _=dE.find(t=>t.id===e)??dE[0],y=_?.component??th;return f===null?o===null?(0,z.jsx)(hu,{label:`正在检测运行环境…`,className:`h-full`}):o.nextStep===`ready`?l===null?(0,z.jsx)(hu,{label:`正在读取配置…`,className:`h-full`}):(0,z.jsx)(Nl,{children:(0,z.jsxs)(`div`,{className:`app-glow flex h-full`,children:[(0,z.jsxs)(`aside`,{className:G(`relative z-10 flex shrink-0 flex-col border-r bg-card/50 backdrop-blur-xl transition-[width] duration-200`,n?`w-[64px]`:`w-44`),children:[(0,z.jsxs)(`div`,{className:G(`flex items-center gap-2.5 py-5`,n?`justify-center px-2`:`px-5`),children:[(0,z.jsx)(`div`,{className:`flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-lg shadow-sm`,children:(0,z.jsx)(fm,{})}),n?null:(0,z.jsxs)(`div`,{className:`min-w-0 flex-1 leading-tight`,children:[(0,z.jsx)(`p`,{className:`truncate text-sm font-semibold tracking-tight`,children:`ylcwf`}),(0,z.jsx)(`p`,{className:`truncate text-xs text-muted-foreground`,children:`研发工作台`})]})]}),(0,z.jsx)(`nav`,{className:G(`flex-1 space-y-0.5`,n?`px-2`:`px-3`),children:g.map(t=>{let r=t.icon,i=t.id===e,a=(0,z.jsxs)(`button`,{type:`button`,onClick:()=>h(t.id),"aria-label":t.label,"aria-current":i?`page`:void 0,className:G(`group relative flex w-full items-center rounded-md py-2 text-sm transition-colors`,n?`justify-center px-0`:`gap-2.5 px-3`,i?`bg-accent font-medium text-accent-foreground`:`text-muted-foreground hover:bg-accent/60 hover:text-foreground`),children:[i?(0,z.jsx)(`span`,{className:`absolute inset-y-1.5 left-0 w-0.5 rounded-full bg-primary`}):null,(0,z.jsx)(r,{className:`size-4 shrink-0`}),n?null:(0,z.jsx)(`span`,{className:`truncate`,children:t.label})]},t.id);return n?(0,z.jsx)(Pl,{content:t.label,side:`right`,children:a},t.id):a})}),(0,z.jsx)(`div`,{className:G(`space-y-2 border-t py-3`,n?`px-2`:`px-4`),children:(0,z.jsx)(Pl,{content:n?`展开侧边栏`:`收起侧边栏`,children:(0,z.jsx)(`span`,{className:`inline-flex w-full`,children:(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,className:G(`w-full gap-2 text-xs`,n?`justify-center px-0`:`justify-start`),"aria-label":n?`展开侧边栏`:`收起侧边栏`,onClick:()=>r(e=>!e),children:[n?(0,z.jsx)(ut,{className:`size-3.5`}):(0,z.jsx)(ct,{className:`size-3.5`}),n?null:`收起侧边栏`]})})})})]}),(0,z.jsxs)(`main`,{className:`relative z-10 flex min-w-0 flex-1 flex-col`,children:[(0,z.jsxs)(`header`,{className:`relative z-30 flex h-11 shrink-0 items-center justify-between gap-4 border-b bg-background/60 px-8 backdrop-blur-xl`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-3`,children:[(0,z.jsx)(`h1`,{className:`text-sm font-semibold tracking-tight`,children:_?.label}),(0,z.jsx)(`p`,{className:`hidden truncate text-xs text-muted-foreground md:block`,children:_?.description})]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(pE,{trigger:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":`主题色:${a.label}`,children:(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`size-3.5 rounded-full ring-1 ring-black/10 dark:ring-white/20`,style:{backgroundColor:a.dot}})}),children:[(0,z.jsx)(mE,{children:`主题色`}),rm.map(e=>(0,z.jsxs)(hE,{active:a.id===e.id,onClick:()=>dm(e.id),children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`size-3.5 shrink-0 rounded-full`,style:{backgroundColor:e.dot}}),e.label]},e.id))]}),(0,z.jsxs)(pE,{trigger:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":`主题:${_m[i]}`,children:(0,z.jsx)(gE,{mode:i})}),children:[(0,z.jsx)(mE,{children:`主题`}),vm.map(e=>(0,z.jsxs)(hE,{active:i===e,onClick:()=>km(e),children:[(0,z.jsx)(gE,{mode:e}),_m[e]]},e))]}),d?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,onClick:m,disabled:c,children:[(0,z.jsx)(vt,{className:`size-3.5`}),`放弃更改`]}),(0,z.jsxs)(K,{size:`sm`,onClick:()=>void p(),disabled:c,children:[c?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(bt,{className:`size-3.5`}),`保存`,(0,z.jsx)(`kbd`,{className:`ml-1 rounded border bg-primary-foreground/15 px-1 font-mono text-[10px]`,children:`⌘S`})]})]}):null]})]}),(0,z.jsx)(`div`,{className:G(`min-h-0 flex-1`,_?.fullHeight===!0?`overflow-hidden`:`overflow-y-auto px-8 py-6`),children:(0,z.jsx)(`div`,{className:G(`mx-auto w-full`,_?.fullHeight===!0?`h-full max-w-none`:G(`animate-fade-up space-y-5`,_?.wide===!0?`max-w-[1600px]`:`max-w-4xl`)),children:(0,z.jsx)(gm,{area:_?.label??`页面`,children:(0,z.jsx)(y,{})})},e)})]}),(0,z.jsx)(En,{position:`top-right`,toastOptions:{classNames:{toast:`rounded-lg border bg-card text-card-foreground shadow-lg`}}})]})}):(0,z.jsx)(hm,{state:o,onDone:async()=>{window.location.reload()}}):(0,z.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center gap-3 px-6 text-center`,children:[(0,z.jsx)(Ot,{className:`size-6 text-destructive`}),(0,z.jsx)(`p`,{className:`max-w-md text-sm font-medium text-destructive`,children:f}),(0,z.jsxs)(`p`,{className:`max-w-md text-xs text-muted-foreground`,children:[`在执行终端重新执行`,` `,(0,z.jsx)(`code`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono`,children:`ylcwf serve`}),` `,`后打开它打印的地址。令牌已持久化,正常重启不会让已打开的链接失效。`]}),(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>window.location.reload(),children:`刷新页面`})]})}var bE=document.getElementById(`root`);if(bE===null)throw Error(`缺少 #root 容器`);ou.getState().bootstrap(),(0,y.createRoot)(bE).render((0,z.jsx)(v.StrictMode,{children:(0,z.jsx)(yE,{})}));
|
|
80
|
+
`))}function s(e,t,n,r){let a=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function c(e,i){return yC(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function l(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=u(r[i],t,n);return o(),a}function u(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}function d(e,t,n){let r=Pw.inlineCode(e,t,n);if(!n.stack.includes(`tableCell`))return r;let i=[],a=0,o=r.indexOf(`|`);for(;o!==-1;){let e=o;for(;e>a&&r.charCodeAt(e-1)===92;)e--;i.push(r.slice(a,o)),(o-e)%2==0&&i.push(`\\`),a=o,o=r.indexOf(`|`,o+1)}return i.push(r.slice(a)),i.join(``)}}function Ww(e,t,n,r){if(e.type===`table`&&n.type===`listItem`&&n.spread===!1&&(t.type===`definition`||t.type===`heading`&&Gw(t,r)||t.type===`paragraph`||t.type===`table`))return 1}function Gw(e,t){let n=!1;return xx(e,function(e){if(e.type===`break`||`value`in e&&/\r?\n|\r/.test(e.value))return n=!0,!1}),!!((!e.depth||e.depth<3)&&m_(e)&&(t.options.setext||n))}function Kw(){return{exit:{taskListCheckValueChecked:Jw,taskListCheckValueUnchecked:Jw,paragraph:Yw}}}function qw(){return{handlers:{paragraph:Xw},join:[Zw]}}function Jw(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Yw(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start={...n.position.start}))}}this.exit(e)}function Xw(e,t,n,r){if(!t||t.type!==`listItem`||Qw(t)!==e)return Pw.paragraph(e,t,n,r);let i=`[`+(t.checked?`x`:` `)+`] `,a=n.createTracker(r);return a.move(i),i+Pw.paragraph(e.children.length>0?e:{type:`paragraph`,children:[{type:`text`,value:` `}]},t,n,{...r,...a.current()})}function Zw(e,t,n){if(e.type!==`definition`||n.type!==`listItem`)return;let r=Qw(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function Qw(e){if(typeof e.checked==`boolean`)for(let t of e.children){if(t.type===`paragraph`)return t;if(t.type!==`definition`)return}}function $w(){return[PS(),oC(),dC(),Fw(),Kw()]}function eT(e){return{extensions:[FS(),sC(e),fC(),Uw(e),qw()]}}var tT={tokenize:hT,partial:!0},nT={tokenize:gT,partial:!0},rT={tokenize:_T,partial:!0},iT={tokenize:vT,partial:!0},aT={tokenize:yT,partial:!0},oT={name:`wwwAutolink`,tokenize:pT,previous:bT},sT={name:`protocolAutolink`,tokenize:mT,previous:xT},cT={name:`emailAutolink`,tokenize:fT,previous:ST},lT={};function uT(){return{text:lT}}for(var dT=48;dT<123;)lT[dT]=cT,dT++,dT===58?dT=65:dT===91&&(dT=97);lT[43]=cT,lT[45]=cT,lT[46]=cT,lT[95]=cT,lT[72]=[cT,sT],lT[104]=[cT,sT],lT[87]=[cT,oT],lT[119]=[cT,oT];function fT(e,t,n){let r=this,i,a;return o;function o(t){return!CT(t)||!ST.call(r,r.previous)||wT(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return CT(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(aT,u,l)(t):t===45||t===95||k_(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&O_(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function pT(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!bT.call(r,r.previous)||wT(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(tT,e.attempt(nT,e.attempt(rT,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function mT(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&xT.call(r,r.previous)&&!wT(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(O_(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||j_(t)||F_(t)||L_(t)||I_(t)?n(t):e.attempt(nT,e.attempt(rT,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function hT(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function gT(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(iT,c,s)(t):t===null||F_(t)||L_(t)||t!==45&&I_(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function _T(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(iT,t,a)(o):o===null||F_(o)||L_(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function vT(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||F_(o)||L_(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||F_(e)||L_(e)?t(e):r(e)}function a(e){return O_(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):O_(t)?(e.consume(t),o):n(t)}}function yT(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return k_(e)?n(e):t(e)}}function bT(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||F_(e)}function xT(e){return!O_(e)}function ST(e){return!(e===47||CT(e))}function CT(e){return e===43||e===45||e===46||e===95||k_(e)}function wT(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var TT={tokenize:NT,partial:!0};function ET(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:AT,continuation:{tokenize:jT},exit:MT}},text:{91:{name:`gfmFootnoteCall`,tokenize:kT},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:DT,resolveTo:OT}}}}function DT(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=D_(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function OT(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function kT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||F_(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(D_(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return F_(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function AT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||F_(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=D_(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return F_(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),B_(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function jT(e,t,n){return e.check(iv,t,e.attempt(TT,t,n))}function MT(e){e.exit(`gfmFootnoteDefinition`)}function NT(e,t,n){let r=this;return B_(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function PT(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&b_(o,o.length,0,Z_(s,e.slice(r+1,n),t)),b_(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),b_(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=X_(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=X_(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var FT=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){IT(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function IT(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function LT(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function RT(){return{flow:{null:{name:`table`,tokenize:zT,resolveAll:BT}}}}function zT(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):Q(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):$(t)?B_(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||F_(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,$(t)?B_(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return $(t)?B_(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Q(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return $(t)?B_(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Q(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Q(n)?(e.exit(`tableRow`),t(n)):$(n)?B_(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||F_(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function BT(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new FT;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(HT(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=VT(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=VT(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=VT(f,t,o,i,n,d)):(o[0]=o[1],d=VT(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&HT(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=LT(t.events,n))}return e}function VT(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},UT(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=UT(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=UT(t.events,n[2]),a=UT(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},UT(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function HT(e,t,n,r,i){let a=[],o=UT(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function UT(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var WT={name:`tasklistCheck`,tokenize:KT};function GT(){return{text:{91:WT}}}function KT(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return F_(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Q(r)?t(r):$(r)?e.check({tokenize:qT},t,n)(r):n(r)}}function qT(e,t,n){return B_(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function JT(e){return C_([uT(),ET(),PT(e),RT(),GT()])}var YT={};function XT(e){let t=this,n=e||YT,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(JT(n)),a.push($w()),o.push(eT(n))}function ZT(e,t){return t<=0?0:QT(e/t*100)}function QT(e){let t=Math.floor(e),n=e-t;return n>.5?t+1:n<.5||t%2==0?t:t+1}function $T({summary:e,active:t,onSelect:n}){return(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between px-1`,children:[(0,z.jsxs)(`span`,{className:`text-xs font-medium text-muted-foreground`,children:[`开发者(`,e.developers.length,`)`]}),(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`任务 `,e.totals.tasks]})]}),e.developers.map(r=>{let i=ZT(r.stats.completedTasks,r.stats.tasks);return(0,z.jsxs)(`button`,{type:`button`,onClick:()=>n(r.id),className:G(`w-full rounded-lg border px-3 py-3 text-left transition-all`,r.id===t?`border-primary/50 bg-primary/5 shadow-sm`:`bg-card hover:border-border hover:bg-accent/40`),children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,z.jsx)(ih,{name:r.id}),(0,z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,z.jsx)(`span`,{className:`truncate text-sm font-medium`,children:r.id}),(0,z.jsx)(q,{variant:`muted`,children:Jl[r.roleInferred??`unknown`]})]}),(0,z.jsxs)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(Pl,{content:e.source===`remote`?`远程快照取该文件最后一次提交时间`:`本地文件最后修改时间`,children:(0,z.jsx)(`span`,{className:`cursor-default`,children:Ym(r.mtime)})}),` `,`更新`]})]})]}),(0,z.jsxs)(`div`,{className:`mt-2.5 space-y-1.5`,children:[(0,z.jsx)(`div`,{className:`h-1.5 w-full overflow-hidden rounded-full bg-border`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full bg-primary transition-all`,style:{width:`${Math.max(0,Math.min(100,i))}%`}})}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between text-xs text-muted-foreground`,children:[(0,z.jsxs)(`span`,{children:[r.stats.completedTasks,`/`,r.stats.tasks,` 完成 ·`,` `,i,`%`]}),(0,z.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[r.errors>0?(0,z.jsxs)(`span`,{className:`text-destructive`,children:[r.errors,` error`]}):null,r.warnings>0?(0,z.jsxs)(`span`,{className:`text-warning`,children:[r.warnings,` warn`]}):null,r.parser===`fallback`?(0,z.jsx)(`span`,{className:`text-warning`,children:`未校验`}):null]})]})]})]},r.id)})]})}function eE({summary:e,onOpenTask:t,onSelectDeveloper:n}){let{totals:r}=e;return(0,z.jsxs)(`div`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-4`,children:[(0,z.jsx)(lu,{label:`开发者`,value:r.developers}),(0,z.jsx)(lu,{label:`需求`,value:r.requirements}),(0,z.jsx)(lu,{label:`任务`,value:r.tasks}),(0,z.jsx)(lu,{label:`已完成`,value:r.completedTasks,tone:`primary`,progress:r.progress})]}),(0,z.jsx)(Ol,{className:`gap-3 py-4`,children:(0,z.jsxs)(kl,{className:`space-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium`,children:[(0,z.jsx)(oe,{className:`size-4 text-muted-foreground`}),`状态分布`,(0,z.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:`按当前迭代全部成员聚合`})]}),(0,z.jsx)(Vm,{taskCounts:r.taskStatusCounts,requirementCounts:r.requirementStatusCounts,selfTestCounts:r.selfTestCounts,acceptanceCounts:r.acceptanceCounts})]})}),(0,z.jsx)(Ol,{className:`gap-3 py-4`,children:(0,z.jsxs)(kl,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium`,children:[(0,z.jsx)(Wt,{className:`size-4 text-muted-foreground`}),`成员进度`,(0,z.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:`点击成员可查看其任务`})]}),(0,z.jsx)(`div`,{className:`overflow-x-auto rounded-lg border`,children:(0,z.jsxs)(`table`,{className:`w-full min-w-[560px] text-left text-xs`,children:[(0,z.jsx)(`thead`,{className:`bg-muted/50 text-muted-foreground`,children:(0,z.jsxs)(`tr`,{children:[(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`开发者`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`角色`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`需求`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`任务`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`进度`}),(0,z.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`问题`})]})}),(0,z.jsx)(`tbody`,{children:e.developers.map(e=>{let t=ZT(e.stats.completedTasks,e.stats.tasks);return(0,z.jsxs)(`tr`,{tabIndex:0,role:`button`,onClick:()=>n(e.id),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(e.id))},className:`cursor-pointer border-t transition-colors hover:bg-accent/40 focus:bg-accent/40 focus:outline-none`,children:[(0,z.jsx)(`td`,{className:`px-3 py-2 font-medium`,children:(0,z.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(ih,{name:e.id}),e.id]})}),(0,z.jsx)(`td`,{className:`px-3 py-2 text-muted-foreground`,children:Jl[e.roleInferred??`unknown`]}),(0,z.jsx)(`td`,{className:`px-3 py-2`,children:e.stats.requirements}),(0,z.jsx)(`td`,{className:`px-3 py-2`,children:e.stats.tasks}),(0,z.jsx)(`td`,{className:`w-48 px-3 py-2`,children:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(zm,{counts:e.statusCounts,defs:Mm,className:`h-1.5`}),(0,z.jsxs)(`span`,{className:`w-8 shrink-0 text-right font-mono text-xs tabular-nums text-muted-foreground`,children:[t,`%`]})]})}),(0,z.jsx)(`td`,{className:`px-3 py-2`,children:e.errors===0&&e.warnings===0?(0,z.jsx)(`span`,{className:`text-success`,children:`—`}):(0,z.jsxs)(`span`,{className:`space-x-1.5`,children:[e.errors>0?(0,z.jsxs)(`span`,{className:`text-destructive`,children:[e.errors,`E`]}):null,e.warnings>0?(0,z.jsxs)(`span`,{className:`text-warning`,children:[e.warnings,`W`]}):null]})})]},e.id)})})]})})]})}),(0,z.jsx)(Ol,{className:`gap-3 py-4`,children:(0,z.jsxs)(kl,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium`,children:[(0,z.jsx)(Rt,{className:`size-4 text-warning`}),`被阻塞的任务(`,e.blocked.length,`)`]}),e.blocked.length===0?(0,z.jsx)(`p`,{className:`rounded-lg border border-success/25 bg-success/8 px-3 py-2 text-xs text-success`,children:`没有被阻塞的任务`}):(0,z.jsx)(`ul`,{className:`max-h-80 space-y-1.5 overflow-y-auto pr-1`,children:e.blocked.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsx)(Pl,{content:`${e.name}(点击查看任务详情)`,children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>t(e.developer,e.taskId),className:`flex w-full flex-col gap-1 rounded-lg bg-muted/50 px-3 py-2 text-left text-xs transition-colors hover:bg-accent/60`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,z.jsx)(q,{variant:`muted`,children:e.developer}),(0,z.jsx)(`span`,{className:`truncate font-medium`,children:e.name}),(0,z.jsx)(`span`,{className:`ml-auto shrink-0 font-mono text-xs text-muted-foreground`,children:e.taskId})]}),(e.blocking??[]).length===0?null:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 pl-0.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(we,{className:`size-3 shrink-0`}),(0,z.jsx)(`span`,{children:`等待前置任务完成:`}),(e.blocking??[]).map(e=>(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 font-mono`,children:[e.id,(0,z.jsx)(`span`,{className:`rounded bg-warning/12 px-1 py-0.5 font-sans text-warning`,children:e.status})]},e.id))]})]})})},`${e.developer}-${e.taskId}`))})]})})]})}var tE={start:`开始实施`,submit:`提交验收`,accept:`验收通过`,reject:`验收驳回`},nE={start:{status:`进行中`,acceptance:null},submit:{status:`待验收`,acceptance:null},accept:{status:`已完成`,acceptance:`验收通过`},reject:{status:`进行中`,acceptance:`验收驳回`}};function rE(e,t,n){switch(e.key){case`id`:return(0,z.jsx)(Xm,{value:t.id});case`name`:return(0,z.jsx)(Pl,{content:`${t.name}(点击查看详情)`,children:(0,z.jsx)(`button`,{type:`button`,onClick:()=>n(t.id),className:`block w-full truncate text-left text-primary transition-colors hover:underline`,children:t.name})});case`type`:return(0,z.jsx)(Fl,{text:t.type});case`terminal`:return(0,z.jsx)(Fl,{text:t.terminal});case`scope`:return(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:ql[t.scope]??t.scope});case`selfTest`:return(0,z.jsx)(eh,{value:t.selfTest});case`acceptance`:return(0,z.jsx)(th,{value:$m(t.acceptance,t.status)});case`status`:return(0,z.jsx)(Zm,{status:Qm(t.status)});case`updatedAt`:return(0,z.jsx)(Pl,{content:t.updatedAt,children:(0,z.jsx)(`span`,{className:`cursor-default`,children:Ym(t.updatedAt)})});default:{let n=t[e.key];return n==null||n===``?`—`:Array.isArray(n)?n.join(`、`):String(n)}}}function iE({validation:e,onOpenDetail:t,editable:n,actions:r,actingTaskId:i,onAction:a,onBatchAction:o}){let[s,c]=(0,v.useState)([]),[l,u]=(0,v.useState)(null),[d,f]=(0,v.useState)(`all`),[p,m]=(0,v.useState)(`all`),[h,g]=(0,v.useState)(`all`),[_,y]=(0,v.useState)(``),b=(0,v.useMemo)(()=>e.view.taskColumns.filter(e=>e.ui.board!==!1),[e.view.taskColumns]),x=(0,v.useMemo)(()=>Array.from(new Set(e.tasks.map(e=>e.status).filter(e=>e.length>0))),[e.tasks]),S=(0,v.useMemo)(()=>Array.from(new Set(e.tasks.map(e=>e.type).filter(e=>e.length>0))),[e.tasks]),C=e.tasks.filter(e=>{if(d!==`all`&&e.status!==d||p!==`all`&&e.type!==p||h!==`all`&&e.requirementId!==h)return!1;if(_.trim().length>0){let t=_.trim().toLowerCase();if(!`${e.id} ${e.name} ${e.terminal}`.toLowerCase().includes(t))return!1}return!0});return(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(St,{className:`pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground`}),(0,z.jsx)(Al,{value:_,placeholder:`搜索任务编号 / 名称 / 执行终端`,className:`h-8 w-56 pl-8 text-xs`,onChange:e=>y(e.target.value)})]}),(0,z.jsxs)(Jp,{value:d,onValueChange:f,children:[(0,z.jsx)(Qp,{className:`h-8 w-32 text-xs`,children:(0,z.jsx)(Yp,{})}),(0,z.jsxs)($p,{children:[(0,z.jsx)(em,{value:`all`,children:`全部状态`}),x.map(e=>(0,z.jsx)(em,{value:e,children:e},e))]})]}),(0,z.jsxs)(Jp,{value:p,onValueChange:m,children:[(0,z.jsx)(Qp,{className:`h-8 w-32 text-xs`,children:(0,z.jsx)(Yp,{})}),(0,z.jsxs)($p,{children:[(0,z.jsx)(em,{value:`all`,children:`全部类型`}),S.map(e=>(0,z.jsx)(em,{value:e,children:e},e))]})]}),(0,z.jsxs)(Jp,{value:h,onValueChange:g,children:[(0,z.jsx)(Qp,{className:`h-8 w-56 text-xs`,children:(0,z.jsx)(Yp,{})}),(0,z.jsxs)($p,{children:[(0,z.jsx)(em,{value:`all`,children:`全部需求`}),e.requirements.map(e=>(0,z.jsxs)(em,{value:e.id,children:[e.id,` `,e.title]},e.id))]})]}),(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[C.length,`/`,e.tasks.length]}),n&&s.length>0?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-primary/30 bg-primary/5 px-2.5 py-1.5`,children:[(0,z.jsxs)(`span`,{className:`text-xs text-primary`,children:[`已选 `,s.length,` 项`]}),(0,z.jsx)(K,{size:`sm`,className:`h-6 px-2 text-xs`,onClick:()=>u({kind:`batch`,taskIds:[...s],action:`accept`}),children:`批量验收通过`}),(0,z.jsx)(K,{size:`sm`,variant:`outline`,className:`h-6 px-2 text-xs`,onClick:()=>u({kind:`batch`,taskIds:[...s],action:`reject`}),children:`批量驳回`}),(0,z.jsx)(K,{size:`sm`,variant:`ghost`,className:`h-6 px-2 text-xs`,onClick:()=>c([]),children:`清空`})]}):null]}),(0,z.jsx)(`div`,{className:`overflow-x-auto rounded-lg border`,children:(0,z.jsxs)(`table`,{className:`w-full min-w-[1040px] table-fixed text-left text-xs`,children:[(0,z.jsx)(`thead`,{className:`bg-muted/50 text-muted-foreground`,children:(0,z.jsxs)(`tr`,{children:[n?(0,z.jsx)(`th`,{className:`w-[32px] px-1.5 py-2`}):null,b.map(e=>(0,z.jsx)(`th`,{className:G(`whitespace-nowrap px-2 py-2 font-medium`,e.key===`id`?`w-[76px] px-2`:`px-3`),style:e.ui.width?{width:e.ui.width}:void 0,children:e.label},e.key)),n?(0,z.jsx)(`th`,{className:`sticky right-0 z-20 w-[148px] whitespace-nowrap border-l bg-muted px-2 py-2 font-medium`,children:`操作`}):null]})}),(0,z.jsxs)(`tbody`,{children:[C.map(e=>(0,z.jsxs)(`tr`,{className:`group border-t transition-colors hover:bg-accent/40`,children:[n?(0,z.jsx)(`td`,{className:`px-2 py-2`,onClick:e=>e.stopPropagation(),children:(0,z.jsx)(`input`,{type:`checkbox`,className:`size-3.5 accent-primary`,checked:s.includes(e.id),onChange:t=>c(n=>t.target.checked?[...n,e.id]:n.filter(t=>t!==e.id))})}):null,b.map(n=>(0,z.jsx)(`td`,{className:G(`px-2 py-2`,n.key===`name`?`px-3`:n.key===`updatedAt`?`whitespace-nowrap pr-6 text-muted-foreground`:`text-muted-foreground`),children:rE(n,e,t)},n.key)),n?(0,z.jsx)(`td`,{className:`sticky right-0 z-10 border-l bg-card px-2.5 py-2 pr-3 group-hover:bg-accent`,onClick:e=>e.stopPropagation(),children:(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[(r[e.id]??[]).map(t=>t.enabled===!1?(0,z.jsx)(Pl,{content:(0,z.jsxs)(`span`,{className:`block space-y-1`,children:[(0,z.jsx)(`span`,{className:`block`,children:t.reason}),t.nextStep===void 0?null:(0,z.jsx)(`code`,{className:`block font-mono text-[10px] opacity-80`,children:t.nextStep})]}),children:(0,z.jsxs)(`span`,{className:G(`inline-flex cursor-not-allowed flex-col rounded-md border border-dashed border-muted-foreground/40 px-2 py-0.5 text-muted-foreground`),children:[(0,z.jsx)(`span`,{className:`text-xs`,children:tE[t.action]}),(0,z.jsx)(`span`,{className:`text-[10px] leading-tight`,children:t.reason})]})},t.action):(0,z.jsxs)(K,{size:`sm`,variant:t.action===`accept`?`default`:`outline`,className:G(`h-6 whitespace-nowrap px-2 text-xs`,t.action===`reject`?`text-destructive hover:text-destructive`:``),disabled:i===e.id,onClick:()=>u({kind:`single`,taskId:e.id,action:t.action}),children:[i===e.id?(0,z.jsx)(et,{className:`size-3 animate-spin`}):null,tE[t.action]]},t.action)),(r[e.id]??[]).length===0?(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`—`}):null]})}):null]},e.id)),C.length===0?(0,z.jsx)(`tr`,{children:(0,z.jsx)(`td`,{colSpan:n?9:7,className:`px-3 py-8 text-center text-muted-foreground`,children:`没有符合条件的任务`})}):null]})]})}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`点击任意行查看任务详情。`}),(0,z.jsx)(Hp,{open:l!==null,onOpenChange:e=>e?void 0:u(null),children:(0,z.jsxs)(Up,{className:`max-w-md`,children:[(0,z.jsxs)(Wp,{children:[(0,z.jsxs)(Gp,{children:[`确认`,l===null?``:l.kind===`batch`?`批量「${tE[l.action]}」`:`「${tE[l.action]}」`,`?`]}),(0,z.jsx)(Kp,{children:l?.kind===`single`?e.tasks.find(e=>e.id===l.taskId)?.name??l.taskId:l===null?``:`将对 ${l.taskIds.length} 个任务执行该动作`})]}),l===null?null:(0,z.jsxs)(`div`,{className:`space-y-1.5 rounded-lg bg-muted/50 px-3 py-2.5 text-xs`,children:[(0,z.jsxs)(`p`,{className:`text-muted-foreground`,children:[`任务状态:`,l.kind===`single`?`${e.tasks.find(e=>e.id===l.taskId)?.status??`—`} → ${nE[l.action].status}`:`→ ${nE[l.action].status}`]}),nE[l.action].acceptance===null?null:(0,z.jsxs)(`p`,{className:`text-muted-foreground`,children:[`开发人工验收:`,l.kind===`single`?`${e.tasks.find(e=>e.id===l.taskId)?.acceptance??`—`} → ${nE[l.action].acceptance}`:`→ ${nE[l.action].acceptance}`]}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`所属需求的状态与进度会同步重算,写入后可执行 git diff 核对。`})]}),(0,z.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>u(null),children:`取消`}),(0,z.jsx)(K,{size:`sm`,variant:l?.action===`reject`?`destructive`:`default`,onClick:()=>{l!==null&&(l.kind===`single`?a(l.taskId,l.action):(o(l.taskIds,l.action),c([])),u(null))},children:`确认执行`})]})]})})]})}function aE(e,t,n,r){switch(e.key){case`id`:return(0,z.jsx)(Xm,{value:t.id});case`title`:return(0,z.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,z.jsx)(`span`,{className:`min-w-0 flex-1`,children:(0,z.jsx)(Fl,{text:t.title})}),n?(0,z.jsx)(q,{variant:`warning`,children:`待人工验收`}):null]});case`terminal`:return(0,z.jsx)(Fl,{text:t.terminal});case`status`:return(0,z.jsx)(Zm,{status:t.status});case`progress`:{let e=Number.parseInt(t.progress,10),n=Number.isFinite(e)?Math.max(0,Math.min(100,e)):0;return(0,z.jsx)(Pl,{content:`${n}%`,children:(0,z.jsxs)(`span`,{className:`inline-flex cursor-default items-center justify-end`,children:[(0,z.jsxs)(`span`,{className:`tabular-nums`,children:[n,`%`]}),(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 inline-block h-1 w-14 overflow-hidden rounded-full bg-border`,children:(0,z.jsx)(`span`,{className:`block h-full rounded-full bg-success transition-all`,style:{width:`${n}%`}})})]})})}case`updatedAt`:return(0,z.jsx)(Pl,{content:t.updatedAt,children:(0,z.jsx)(`span`,{className:`cursor-default`,children:Ym(t.updatedAt)})});case`note`:return t.note.length===0?`—`:(0,z.jsx)(Fl,{text:t.note});default:{let n=t[e.key];return n==null||n===``?`—`:Array.isArray(n)?n.join(`、`):String(n)}}}function oE({validation:e,onOpenDetail:t}){let[n,r]=(0,v.useState)(`all`),[i,a]=(0,v.useState)(``),o=(0,v.useMemo)(()=>e.view.requirementColumns.filter(e=>e.ui.board!==!1),[e.view.requirementColumns]),s=(0,v.useMemo)(()=>Array.from(new Set(e.requirements.map(e=>e.terminal).filter(e=>e.length>0))),[e.requirements]),c=e.requirements.filter(e=>{if(n!==`all`&&e.terminal!==n)return!1;if(i.trim().length>0){let t=i.trim().toLowerCase().replace(/^#/,``);if(!`${e.id.replace(/^#/,``)} ${e.title}`.toLowerCase().includes(t))return!1}return!0});return(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(St,{className:`pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground`}),(0,z.jsx)(Al,{value:i,placeholder:`搜索需求编号 / 名称`,className:`h-8 w-52 pl-8 text-xs`,onChange:e=>a(e.target.value)})]}),(0,z.jsxs)(Jp,{value:n,onValueChange:r,children:[(0,z.jsx)(Qp,{className:`h-8 w-40 text-xs`,children:(0,z.jsx)(Yp,{})}),(0,z.jsxs)($p,{children:[(0,z.jsx)(em,{value:`all`,children:`全部执行终端`}),s.map(e=>(0,z.jsx)(em,{value:e,children:e},e))]})]}),(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[c.length,`/`,e.requirements.length]})]}),(0,z.jsx)(`div`,{className:`overflow-x-auto rounded-lg border`,children:(0,z.jsxs)(`table`,{className:`w-full min-w-[880px] table-fixed text-left text-xs`,children:[(0,z.jsx)(`thead`,{className:`bg-muted/50 text-muted-foreground`,children:(0,z.jsx)(`tr`,{children:o.map(e=>(0,z.jsx)(`th`,{className:G(`whitespace-nowrap px-2 py-2 font-medium`,e.key===`title`?`w-[26%] px-3`:``,e.key===`progress`?`text-right`:``),style:e.ui.width?{width:e.ui.width}:void 0,children:e.label},e.key))})}),(0,z.jsxs)(`tbody`,{children:[c.map(n=>{let r=e.tasks.filter(e=>e.requirementId===n.id),i=r.length>0&&r.every(e=>e.status===`待验收`)&&n.status!==`已完成`;return(0,z.jsx)(`tr`,{className:`border-t transition-colors hover:bg-accent/40`,children:o.map(e=>(0,z.jsx)(`td`,{className:G(`px-2 py-2`,e.key===`title`?`px-3`:``,e.key===`updatedAt`?`whitespace-nowrap pr-4 text-muted-foreground`:e.key===`id`?`whitespace-nowrap`:e.key===`progress`?`whitespace-nowrap text-right`:`text-muted-foreground`),children:aE(e,n,i,t)},e.key))},n.id)}),c.length===0?(0,z.jsx)(`tr`,{children:(0,z.jsx)(`td`,{colSpan:o.length,className:`px-3 py-8 text-center text-muted-foreground`,children:`没有符合条件的需求`})}):null]})]})})]})}function sE(e){let t=e.trim();return t.length===0?`未执行`:t.startsWith(`免测`)?`免测`:t}function cE(e){let t=e.trim();return t.length===0?`待验收`:t}function lE(e,t){let n={};for(let r of e){let e=t(r).trim(),i=e.length===0?`未知`:e;n[i]=(n[i]??0)+1}return n}function uE({milestones:e,overdue:t}){let n=(0,v.useMemo)(()=>{let e=new Date;return e.setHours(0,0,0,0),e.getTime()},[]),r=e.findIndex(e=>new Date(`${e.date}T00:00:00`).getTime()>=n);return(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map((e,n)=>{let i=n<r||r<0,a=n===r,o=i&&t;return(0,z.jsxs)(`span`,{title:i?t?`计划日期已过(${e.date}),仍有未完成任务`:`已完成(计划 ${e.date})`:e.date,className:G(`inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs`,o&&`border-destructive/40 bg-destructive/10 text-destructive`,i&&!o&&`border-success/25 bg-success/10 text-success`,a&&`border-warning/40 bg-warning/10 font-medium text-warning`,!i&&!a&&`border-dashed border-border text-muted-foreground`),children:[o?(0,z.jsx)(Rt,{className:`size-3 shrink-0`}):null,i&&!o?(0,z.jsx)(ce,{className:`size-3 shrink-0`}):null,e.name.length>0?(0,z.jsx)(`span`,{children:e.name}):null,(0,z.jsx)(`span`,{className:`font-mono`,children:e.date.slice(5)})]},`${e.name}-${e.date}`)})})}function dE({validation:e}){let t=e.iterationInfo,n=[{label:`迭代ID`,value:t.迭代ID},{label:`迭代名称`,value:t.迭代名称},{label:`负责人`,value:t.负责人},{label:`负责范围`,value:t.负责范围},{label:`PRD`,value:t[`PRD 来源`],link:!0}].filter(e=>(e.value??``).length>0);return(0,z.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-5`,children:n.map(e=>(0,z.jsxs)(`div`,{className:`rounded-lg bg-muted/50 px-3.5 py-2.5`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.label}),e.link===!0&&e.value!==void 0?(0,z.jsx)(`a`,{href:e.value,target:`_blank`,rel:`noreferrer`,className:`mt-0.5 block truncate text-[13px] text-primary underline-offset-2 hover:underline`,children:e.value}):(0,z.jsx)(`p`,{className:`mt-0.5 truncate text-[13px]`,children:e.value})]},e.label))})}function fE({validation:e}){let t=[...e.errors,...e.warnings];return t.length===0?null:(0,z.jsx)(`div`,{className:`space-y-1.5`,children:t.map((e,t)=>(0,z.jsxs)(`div`,{className:G(`flex items-start gap-2 rounded-lg border px-3 py-2 text-xs`,e.level===`error`?`border-destructive/25 bg-destructive/6 text-destructive`:`border-warning/30 bg-warning/8 text-warning`),children:[(0,z.jsx)(Rt,{className:`mt-0.5 size-3.5 shrink-0`}),(0,z.jsx)(`span`,{className:`leading-snug`,children:e.message})]},`${e.code}-${t}`))})}function pE({doc:e,onOpenDetail:t,editable:n,actions:r,actingTaskId:i,onAction:a,onBatchAction:o}){let{validation:s}=e,c=ZT(s.stats.completedTasks,s.stats.tasks),l=(s.milestones??[]).map(e=>({name:e.label,date:e.date}));return(0,z.jsxs)(`div`,{className:`space-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(Me,{className:`size-4 text-muted-foreground`}),(0,z.jsxs)(`span`,{className:`text-sm font-medium`,children:[e.developer,`.md`]}),(0,z.jsx)(q,{variant:`muted`,children:Jl[e.roleInferred??`unknown`]}),e.source===`remote`?(0,z.jsx)(Pl,{content:`校验依据:快照内的 schema.json(不读工作区)@${e.ref?.sha.slice(0,7)??``}`,children:(0,z.jsxs)(q,{variant:`secondary`,children:[(0,z.jsx)(Ee,{className:`size-3`}),`团队快照 `,e.ref?.sha.slice(0,7)??``]})}):(0,z.jsxs)(q,{variant:`muted`,children:[(0,z.jsx)(We,{className:`size-3`}),`我的工作区`]}),e.parser===`fallback`?(0,z.jsx)(q,{variant:`warning`,children:`未校验`}):null]}),(0,z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[(0,z.jsx)(Pl,{content:e.source===`remote`?`团队快照取该文件最后一次提交时间`:`工作区文件的最后修改时间`,children:(0,z.jsx)(`span`,{className:`cursor-default`,children:Ym(e.mtime)})}),` `,`更新`]})]}),e.parser===`fallback`?(0,z.jsxs)(mu,{children:[`未执行规则校验,仅为结构解析(数据仅供参考)。`,e.parserError===null?``:`原因:${e.parserError}。`,`把「负责范围」改成 schema 里的角色名(frontend / backend / fullstack)后刷新即可恢复。`]}):null,(0,z.jsx)(nh,{title:`文档信息`}),(0,z.jsx)(dE,{validation:s}),l.length===0?null:(0,z.jsxs)(`div`,{className:`rounded-lg bg-muted/50 px-3.5 py-2.5`,children:[(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`排期计划`}),(0,z.jsx)(`div`,{className:`mt-1.5`,children:(0,z.jsx)(uE,{milestones:l,overdue:s.stats.completedTasks<s.stats.tasks})})]}),(0,z.jsx)(nh,{title:`进度总览`}),(0,z.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-4`,children:[(0,z.jsx)(lu,{label:`需求`,value:s.stats.requirements}),(0,z.jsx)(lu,{label:`任务`,value:s.stats.tasks}),(0,z.jsx)(lu,{label:`已完成`,value:s.stats.completedTasks}),(0,z.jsx)(lu,{label:`进度`,value:`${c}%`,tone:`primary`,progress:c})]}),(0,z.jsx)(nh,{title:`状态明细`}),(0,z.jsx)(Vm,{taskCounts:lE(s.tasks,e=>e.status),requirementCounts:lE(s.requirements,e=>e.status),selfTestCounts:lE(s.tasks,e=>sE(e.selfTest)),acceptanceCounts:lE(s.tasks,e=>cE(e.acceptance))}),(0,z.jsx)(fE,{validation:s}),(0,z.jsx)(nh,{title:`需求清单`,count:s.requirements.length}),(0,z.jsx)(oE,{validation:s,onOpenDetail:t}),(0,z.jsx)(nh,{title:`任务清单`,count:s.tasks.length}),(0,z.jsx)(iE,{validation:s,onOpenDetail:t,editable:n,actions:r,actingTaskId:i,onAction:a,onBatchAction:o})]})}var mE=[`source`,`ref`,`iteration`,`dev`,`task`,`tab`];function hE(){let e=window.location.hash,t=e.indexOf(`?`);return t>=0?new URLSearchParams(e.slice(t+1)):new URLSearchParams(window.location.search)}function gE(){let e=hE(),t=ou(e=>e.snapshot),n=t?.config?.profile.developer??``,r=e.get(`tab`),i=r===`doc`||r===`overview`?r:`doc`,a=e.get(`dev`),o=e.get(`task`),s=e.get(`source`)===`remote`?`remote`:`local`,c=(0,v.useRef)(e.get(`iteration`)),[l,u]=(0,v.useState)(s),[d,f]=(0,v.useState)(null),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(null),[_,y]=(0,v.useState)(null),[b,x]=(0,v.useState)([]),[S,C]=(0,v.useState)(e.get(`ref`)),[w,T]=(0,v.useState)(!1),[E,D]=(0,v.useState)(null),[O,k]=(0,v.useState)(null),[A,j]=(0,v.useState)(null),[M,N]=(0,v.useState)(a),[P,I]=(0,v.useState)(null),[ee,te]=(0,v.useState)(i),[ne,re]=(0,v.useState)(!1),[ie,ae]=(0,v.useState)(null),[oe,se]=(0,v.useState)(null),ce=t!==null&&(t.meta.features??[]).includes(`status-breakdown`)===!1,[le,ue]=(0,v.useState)(0),de=(0,v.useRef)(null),fe=(0,v.useRef)(o),pe=(0,v.useRef)(Date.now()),L=(0,v.useRef)(null),R=async(e,t={})=>{let n=t.silent===!0;n||re(!0),ae(null);try{let t=e===`remote`?S??void 0:void 0,[n,r,i]=await Promise.all([J.listIterations(e,t),J.gitStatus(),J.gitBranches().catch(()=>null)]);D(n),f(r),m(i),k(e=>{let t=c.current;c.current=null;let r=e=>e===null?null:(n.iterations.find(t=>t.relPath===e)??n.iterations.find(t=>t.name===e))?.name??null,i=r(t)??r(e);return i===null?n.iterations[0]?.name??null:i}),n.iterations.length===0&&(k(null),j(null),I(null),se(null))}catch(e){D(null),ae(e instanceof Error?e.message:String(e))}finally{n||re(!1)}};(0,v.useEffect)(()=>{let e=window.location.hash,t=e.indexOf(`?`);if(t<0)return;let n=new URL(window.location.href);for(let e of mE)n.searchParams.delete(e);for(let[r,i]of new URLSearchParams(e.slice(t+1)))n.searchParams.set(r,i);n.hash=e.slice(0,t),window.history.replaceState(null,``,n)},[]),(0,v.useEffect)(()=>{R(l)},[l,S]),(0,v.useEffect)(()=>{let e=new URL(window.location.href);l===`remote`?(e.searchParams.set(`source`,`remote`),S===null?e.searchParams.delete(`ref`):e.searchParams.set(`ref`,S)):(e.searchParams.delete(`source`),e.searchParams.delete(`ref`)),window.history.replaceState(null,``,e)},[l,S]),(0,v.useEffect)(()=>{if(O===null||E===null)return;let e=E.iterations.find(e=>e.name===O)?.relPath??O;qm(e),Gm(E.docsRoot,e)},[O,E]),(0,v.useEffect)(()=>{if(O===null)return;let e=!1;return re(!0),ae(null),J.iterationSummary(O,l,l===`remote`?S??void 0:void 0).then(t=>{e||(j(t),N(e=>t.developers.some(t=>t.id===e)?e:(n.length===0?void 0:t.developers.find(e=>e.id===n))?.id??t.developers[0]?.id??null))}).catch(t=>{e||(j(null),ae(t instanceof Error?t.message:String(t)))}).finally(()=>{e||re(!1)}),()=>{e=!0}},[O,l,S,le,n]),(0,v.useEffect)(()=>{if(O===null||M===null)return;let e=!1;return J.iterationDoc(O,M,l,l===`remote`?S??void 0:void 0).then(t=>{if(e)return;I(t);let n=de.current??fe.current;if(n!==null){let e=t.details.find(e=>e.id===n||e.id===n.replace(/^#/,``));e!==void 0&&se(e),de.current=null,fe.current=null}else se(e=>e===null?null:t.details.find(t=>t.id===e.id||t.id===e.id.replace(/^#/,``))??e)}).catch(t=>{e||(I(null),ae(t instanceof Error?t.message:String(t)))}),()=>{e=!0}},[O,M,l,S,le]),(0,v.useEffect)(()=>{let e=()=>{if(document.visibilityState!==`visible`)return;let e=Date.now();e-pe.current<5e3||(pe.current=e,R(l,{silent:!0}),ue(e=>e+1))};return window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[l]);let me=l===`local`&&M!==null&&n.length>0&&M===n&&h?.editable===!0;(0,v.useEffect)(()=>{if(O===null||M===null||M!==n||l!==`local`){g(null);return}let e=!1;return J.taskActions(O,M).then(t=>{e||g(t)}).catch(()=>{e||g(null)}),()=>{e=!0}},[O,M,l,le,P,n]);let he=async()=>{await R(l,{silent:!0}),ue(e=>e+1)},ge=async(e,t)=>{if(O!==null&&M!==null){y(e);try{let n=await J.taskAction(O,M,e,t);dn.success(n.message,{description:n.changes.slice(0,3).join(`;`)}),await he()}catch(e){dn.error(`操作失败`,{description:e instanceof Error?e.message:String(e)})}finally{y(null)}}},_e=async(e,t)=>{if(O!==null&&M!==null&&e.length!==0){y(e[0]??null);try{let n=await J.taskBatch(O,M,e,t);dn.success(n.message,{description:n.changes.slice(0,3).join(`;`)}),await he()}catch(e){dn.error(`批量操作失败`,{description:e instanceof Error?e.message:String(e)})}finally{y(null)}}},ve=async()=>{T(!0);try{let e=await J.gitFetch();e.ok&&await R(l),ae(e.ok?null:e.message)}catch(e){ae(e instanceof Error?e.message:String(e))}finally{T(!1)}};(0,v.useEffect)(()=>{let e=Number.parseInt(new URLSearchParams(window.location.search).get(`scroll`)??`0`,10);if(!Number.isFinite(e)||e<=0)return;let t=setTimeout(()=>{L.current!==null&&(L.current.scrollTop=e)},300);return()=>clearTimeout(t)},[P,ee]);let ye=(e,t)=>{if(e===M){let e=P?.details.find(e=>e.id===t||e.id===t.replace(/^#/,``));e!==void 0&&se(e)}else de.current=t,N(e)};(0,v.useEffect)(()=>{if(oe===null||O===null||M===null){x([]);return}let e=!1;return J.taskHistory(O,M,oe.id).then(t=>{e||x(t)}).catch(()=>{e||x([])}),()=>{e=!0}},[oe,O,M,le]);let be=A?.blocked.find(e=>e.taskId===oe?.id)?.blocking??[],xe=e=>{let t=P?.details.find(t=>t.id===e||t.id===e.replace(/^#/,``));se(t??null)},Se=()=>(0,z.jsx)(`div`,{className:`shrink-0 border-b bg-background px-8 py-3`,children:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-1 rounded-lg border p-0.5`,children:[(0,z.jsx)(Pl,{content:`读取你本机工作区的文档(含未提交修改)`,children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>u(`local`),className:G(`flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs transition-colors`,l===`local`?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`),children:[(0,z.jsx)(We,{className:`size-3`}),`我的工作区`]})}),(0,z.jsx)(Pl,{content:`团队视角:读取远端分支的提交快照,不 pull、不 checkout、不改动工作区`,children:(0,z.jsxs)(`button`,{type:`button`,onClick:()=>u(`remote`),disabled:d!==null&&!d.hasRemote,className:G(`flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs transition-colors`,l===`remote`?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`,d!==null&&!d.hasRemote?`cursor-not-allowed opacity-40`:``),children:[(0,z.jsx)(Ee,{className:`size-3`}),`团队快照`]})})]}),l===`local`?(0,z.jsxs)(`div`,{className:`flex h-8 items-center overflow-hidden rounded-lg border bg-card`,children:[(0,z.jsx)(Pl,{content:p?.dirty===!0?`当前检出分支:${p.current??`detached HEAD`}(工作区有未提交改动)`:`当前检出分支:${p?.current??`detached HEAD`}`,children:(0,z.jsxs)(`span`,{className:`flex h-full cursor-default items-center gap-1.5 px-2.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(He,{className:`size-3 shrink-0`}),(0,z.jsx)(`span`,{className:`max-w-56 truncate font-mono text-xs`,children:p===null?`…`:p.current??`detached HEAD`}),p?.dirty===!0?(0,z.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-warning`}):null]})}),(0,z.jsx)(Pl,{content:`重新扫描工作区(不联网):IDE 里改过文档、执行终端切过分支后点这里`,children:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,className:`size-8 shrink-0 rounded-none border-l`,onClick:()=>void R(l),disabled:ne,"aria-label":`重新扫描工作区`,children:ne?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(mt,{className:`size-3.5`})})})]}):null,l===`remote`&&p!==null&&p.remote.length>0?(0,z.jsxs)(Jp,{value:S??p.upstream??p.remote[0]??``,onValueChange:e=>C(e),children:[(0,z.jsx)(Pl,{content:`选择要查看的远端分支(只读快照,不改动工作区)`,children:(0,z.jsx)(Qp,{className:`h-9 w-64 text-xs`,children:(0,z.jsx)(`span`,{className:`truncate font-mono text-xs`,children:S??p.upstream??p.remote[0]??`选择远端分支`})})}),(0,z.jsx)($p,{children:p.remote.map(e=>(0,z.jsxs)(em,{value:e,children:[e,e===p.upstream?`(当前上游)`:``]},e))})]}):null,E===null||E.iterations.length===0?null:(0,z.jsxs)(Jp,{value:O??``,onValueChange:e=>k(e),children:[(0,z.jsx)(Qp,{className:`h-9 w-64 text-sm`,children:(0,z.jsx)(Yp,{placeholder:`选择迭代`})}),(0,z.jsx)($p,{children:ah(E.iterations).map(([e,t])=>(0,z.jsxs)(Xp,{children:[(0,z.jsxs)(Zp,{children:[e,` 年`]}),t.map(e=>(0,z.jsxs)(em,{value:e.name,children:[e.name,`(`,e.developers.length,` 人)`]},e.relPath))]},e))})]}),l===`remote`?(0,z.jsxs)(`div`,{className:`flex h-8 items-center overflow-hidden rounded-lg border bg-card`,children:[(0,z.jsx)(Pl,{content:`重新读取本地保存的团队快照(不联网);要拉取远端最新提交请用右侧「同步远程」`,children:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,className:`size-8 shrink-0 rounded-none`,onClick:()=>void R(l),disabled:ne,"aria-label":`重新读取团队快照`,children:ne?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(mt,{className:`size-3.5`})})}),(0,z.jsx)(Pl,{content:`执行 git fetch --prune origin:拉取远端最新提交并清理已删除的分支,不改动工作区`,children:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,className:`size-8 shrink-0 rounded-none border-l`,onClick:()=>void ve(),disabled:w,"aria-label":`同步远程`,children:w?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(F,{className:`size-3.5`})})})]}):null]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-1 rounded-lg border p-0.5`,children:[(0,z.jsx)(`button`,{type:`button`,onClick:()=>te(`doc`),className:G(`rounded-md px-3 py-1.5 text-xs transition-colors`,ee===`doc`?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`),children:`个人文档`}),(0,z.jsx)(`button`,{type:`button`,onClick:()=>te(`overview`),className:G(`rounded-md px-3 py-1.5 text-xs transition-colors`,ee===`overview`?`bg-accent font-medium`:`text-muted-foreground hover:text-foreground`),children:`迭代总览`})]})]})});if(E===null)return(0,z.jsx)(hu,{label:`正在读取迭代…`,className:`h-full`});if(!E.configured)return(0,z.jsx)(pu,{icon:(0,z.jsx)(Ot,{className:`size-5`}),title:`尚未配置文档仓库`,description:"当前账号还没有可用的迭代任务文档仓库。请联系管理员开通访问权限,或用 `ylcwf init` 完成配置后刷新。",action:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,onClick:()=>void R(l),children:[(0,z.jsx)(mt,{className:`size-3.5`}),`重新检测`]})});if(!E.accessible)return(0,z.jsx)(pu,{icon:(0,z.jsx)(Ot,{className:`size-5`}),title:`无法访问文档仓库`,description:`${E.reason??`未知原因`}。如果这是团队共享仓库,请联系管理员开通文档仓库访问权限。`,action:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,onClick:()=>void R(l),children:[(0,z.jsx)(mt,{className:`size-3.5`}),`重新检测`]})});if(E.iterations.length===0){let e=l===`remote`?E.ref?.name??S??`当前远端分支`:`当前工作区`;return(0,z.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[Se(),(0,z.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center`,children:(0,z.jsx)(pu,{icon:(0,z.jsx)(Pe,{className:`size-5`}),title:`${e} 上没有迭代文档`,description:l===`remote`?`该分支未包含「迭代目录/开发者.md」结构的文档。可切换到其他远端分支,或切回「我的工作区」。`:`已读取 ${E.docsRoot},但未找到包含个人文档的迭代目录。确认仓库路径正确,且目录下存在 {开发者}.md。`,action:(0,z.jsxs)(K,{variant:`outline`,size:`sm`,onClick:()=>void R(l),children:[(0,z.jsx)(mt,{className:`size-3.5`}),`重新扫描`]})})})]})}return(0,z.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[Se(),l===`remote`&&d!==null?(0,z.jsx)(`div`,{className:`shrink-0`,children:(0,z.jsxs)(`div`,{className:`mx-8 mt-3 flex flex-wrap items-center gap-2 rounded-lg border bg-muted/40 px-3.5 py-2 text-xs text-muted-foreground`,children:[(0,z.jsx)(Ee,{className:`size-3.5`}),(0,z.jsx)(`span`,{className:`font-mono`,children:d.upstream??`无上游`}),E?.ref===null||E?.ref===void 0?null:(0,z.jsxs)(`span`,{className:`font-mono`,children:[`@`,E.ref.sha.slice(0,7)]}),d.behind>0?(0,z.jsxs)(q,{variant:`warning`,children:[`落后 `,d.behind,` 个提交`]}):null,d.ahead>0?(0,z.jsx)(Pl,{content:`远程快照不含本地未推送的提交`,children:(0,z.jsxs)(q,{variant:`warning`,children:[`本地领先 `,d.ahead,` 个提交`]})}):null,d.dirty?(0,z.jsx)(q,{variant:`muted`,children:`工作区有未提交修改`}):null,d.ahead>0?(0,z.jsx)(`span`,{className:`text-warning`,children:`当前是团队快照(只读),可能滞后于你的工作区;查看最新请切回「我的工作区」`}):(0,z.jsx)(`span`,{children:`团队快照(只读),不会改动工作区`})]})}):null,ce?(0,z.jsx)(`div`,{className:`shrink-0 px-8 py-2`,children:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 rounded-lg border border-warning/35 bg-warning/8 px-3.5 py-2.5 text-xs text-warning`,children:[(0,z.jsx)(Rt,{className:`size-3.5 shrink-0`}),(0,z.jsxs)(`span`,{className:`flex-1`,children:[`本地服务版本比界面旧(升级后未重启):状态统计等新数据可能为空。请在执行终端重启`,` `,(0,z.jsx)(`code`,{className:`rounded bg-warning/15 px-1 py-0.5 font-mono`,children:`ylcwf serve`}),` `,`后刷新。`]})]})}):null,ie===null?null:(0,z.jsx)(`div`,{className:`shrink-0 px-8 py-2`,children:(0,z.jsx)(`div`,{className:`flex flex-wrap items-center gap-3 rounded-lg border border-destructive/25 bg-destructive/8 px-3.5 py-2.5 text-xs text-destructive`,children:(0,z.jsx)(`span`,{className:`flex-1`,children:ie})})}),(0,z.jsxs)(`div`,{className:G(`grid min-h-0 flex-1 gap-0`,ee===`doc`?`lg:grid-cols-[224px_1fr]`:`grid-cols-1`),children:[ee===`doc`?(0,z.jsx)(`aside`,{className:`min-h-0 overflow-y-auto border-r px-4 py-4`,children:A===null?(0,z.jsx)(hu,{label:`加载中…`,className:`h-full`}):(0,z.jsx)($T,{summary:A,active:M,onSelect:e=>N(e)})}):null,(0,z.jsx)(`div`,{ref:L,className:`min-h-0 min-w-0 overflow-y-auto px-6 py-5`,children:(0,z.jsx)(`div`,{className:`space-y-4`,children:A===null?(0,z.jsx)(hu,{label:`正在汇总该迭代…`,className:`h-full`}):ee===`overview`?(0,z.jsx)(eE,{summary:A,onOpenTask:ye,onSelectDeveloper:e=>{N(e),te(`doc`)}}):P===null?(0,z.jsx)(Ol,{className:`py-16`,children:(0,z.jsx)(kl,{className:`text-center text-sm text-muted-foreground`,children:`选择左侧开发者查看文档`})}):(0,z.jsx)(pE,{doc:P,onOpenDetail:xe,editable:me,actions:h?.actions??{},actingTaskId:_,onAction:(e,t)=>void ge(e,t),onBatchAction:(e,t)=>void _e(e,t)})})})]}),(0,z.jsx)(Hp,{open:oe!==null,onOpenChange:e=>e?void 0:se(null),children:(0,z.jsxs)(Up,{className:`flex max-h-[82vh] max-w-2xl flex-col gap-0 overflow-hidden p-0`,children:[(0,z.jsx)(`div`,{className:`shrink-0 border-b px-6 py-4 pr-12`,children:(0,z.jsxs)(Wp,{children:[(0,z.jsx)(Gp,{className:`line-clamp-2 leading-snug`,children:oe?.name??``}),(0,z.jsxs)(Kp,{children:[oe?.id??``,` · 只读视图,修改请通过 Agent 流程`]})]})}),be.length>0?(0,z.jsxs)(`div`,{className:`mx-6 mt-4 flex flex-wrap items-center gap-2 rounded-lg border border-warning/35 bg-warning/8 px-3 py-2 text-xs text-warning`,children:[(0,z.jsx)(we,{className:`size-3.5 shrink-0`}),(0,z.jsx)(`span`,{children:`该任务被前置任务阻塞:`}),be.map(e=>(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 font-mono`,children:[e.id,(0,z.jsx)(`span`,{className:`rounded bg-warning/15 px-1 py-0.5`,children:e.status})]},e.id))]}):null,b.length===0?null:(0,z.jsxs)(`div`,{className:`mx-6 mt-3 space-y-1 rounded-lg border bg-muted/40 px-3 py-2`,children:[(0,z.jsx)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:`最近变更`}),b.map(e=>(0,z.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[(0,z.jsx)(`span`,{className:`font-mono`,children:new Date(e.at).toLocaleString(`zh-CN`)}),` · `,e.changes.slice(0,2).join(`;`)]},`${e.at}-${e.action}`))]}),(0,z.jsx)(`div`,{className:`prose prose-sm min-h-0 max-w-none flex-1 overflow-y-auto px-6 py-4 dark:prose-invert prose-code:rounded prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[12px] prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted/60 prose-table:text-xs prose-headings:font-semibold`,children:oe===null?null:(0,z.jsx)(xS,{remarkPlugins:[XT],skipHtml:!0,children:oe.markdown})})]})})]})}var _E=[{id:`overview`,label:`概览`,description:`当前迭代进度、我的待办与仓库状态`,icon:Xe,component:ch,wide:!0},{id:`iterations`,label:`迭代看板`,description:`按我的工作区或团队快照查看迭代进度、成员文档与任务详情`,icon:At,component:gE,wide:!0,fullHeight:!0},{id:`settings`,label:`设置`,description:`身份、文档仓库、执行终端映射、备份与关于`,icon:wt,component:Ch,fullHeight:!0}];function vE(e){return _E.some(t=>t.id===e)}function yE({trigger:e,children:t,placement:n=`bottom-end`}){let[r,i]=(0,v.useState)(!1),a=(0,v.useRef)(null);return(0,v.useEffect)(()=>{if(!r)return;let e=e=>{a.current!==null&&!a.current.contains(e.target)&&i(!1)},t=e=>{e.key===`Escape`&&i(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[r]),(0,z.jsxs)(`div`,{ref:a,className:`relative`,children:[(0,z.jsx)(`span`,{className:G(`inline-flex`,n===`top-start`?`w-full`:void 0),onClick:()=>i(e=>!e),children:e}),r?(0,z.jsx)(`div`,{onClick:()=>i(!1),className:G(`absolute z-50 w-44 rounded-lg border bg-popover p-1.5 shadow-lg animate-in fade-in-0 zoom-in-95`,n===`bottom-end`?`right-0 top-[calc(100%+6px)]`:`bottom-[calc(100%+6px)] left-0`),children:t}):null]})}function bE({children:e}){return(0,z.jsx)(`p`,{className:`px-2 pb-1 pt-1.5 text-xs font-medium text-muted-foreground`,children:e})}function xE({active:e,onClick:t,children:n}){return(0,z.jsx)(`button`,{type:`button`,onClick:t,"aria-current":e?`true`:void 0,className:G(`flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-sm transition-colors`,e?`font-medium text-primary`:`hover:bg-accent`),children:n})}function SE({mode:e}){return e===`system`?(0,z.jsx)(nt,{className:`size-3.5 shrink-0`}):e===`dark`?(0,z.jsx)(it,{className:`size-3.5 shrink-0`}):(0,z.jsx)(Pt,{className:`size-3.5 shrink-0`})}var CE={profile:`settings`,docs:`settings`,terminals:`settings`,backups:`settings`};function wE(){let e=window.location.hash.replace(`#`,``).split(`?`)[0]??``,t=CE[e]??e;return vE(t)?t:`overview`}function TE(){let[e,t]=(0,v.useState)(wE),[n,r]=(0,v.useState)(()=>{let e=new URLSearchParams(window.location.search).get(`sidebar`);return e===`collapsed`||e!==`expanded`&&localStorage.getItem(`ylcwf-sidebar`)===`collapsed`}),{mode:i}=Am(),a=um(lm()),{onboarding:o,loading:s,saving:c,snapshot:l,draft:u,dirty:d,error:f,save:p,discard:m}=ou();(0,v.useEffect)(()=>{let e=()=>t(wE());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]);let h=e=>{window.location.hash=e,t(e)};(0,v.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`s`&&(e.preventDefault(),d&&!c&&p())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[d,c,p]),(0,v.useEffect)(()=>{if(!d)return;let e=e=>{e.preventDefault(),e.returnValue=``};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[d]),(0,v.useEffect)(()=>{localStorage.setItem(`ylcwf-sidebar`,n?`collapsed`:`expanded`)},[n]);let g=_E;(0,v.useEffect)(()=>{g.some(t=>t.id===e)||t(g[0]?.id??`iterations`)},[e,g]);let _=_E.find(t=>t.id===e)??_E[0],y=_?.component??ch;return f===null?o===null?(0,z.jsx)(hu,{label:`正在检测运行环境…`,className:`h-full`}):o.nextStep===`ready`?l===null?(0,z.jsx)(hu,{label:`正在读取配置…`,className:`h-full`}):(0,z.jsx)(Nl,{children:(0,z.jsxs)(`div`,{className:`app-glow flex h-full`,children:[(0,z.jsxs)(`aside`,{className:G(`relative z-10 flex shrink-0 flex-col border-r bg-card/50 backdrop-blur-xl transition-[width] duration-200`,n?`w-[64px]`:`w-44`),children:[(0,z.jsxs)(`div`,{className:G(`flex items-center gap-2.5 py-5`,n?`justify-center px-2`:`px-5`),children:[(0,z.jsx)(`div`,{className:`flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-lg shadow-sm`,children:(0,z.jsx)(fm,{})}),n?null:(0,z.jsxs)(`div`,{className:`min-w-0 flex-1 leading-tight`,children:[(0,z.jsx)(`p`,{className:`truncate text-sm font-semibold tracking-tight`,children:`ylcwf`}),(0,z.jsx)(`p`,{className:`truncate text-xs text-muted-foreground`,children:`研发工作台`})]})]}),(0,z.jsx)(`nav`,{className:G(`flex-1 space-y-0.5`,n?`px-2`:`px-3`),children:g.map(t=>{let r=t.icon,i=t.id===e,a=(0,z.jsxs)(`button`,{type:`button`,onClick:()=>h(t.id),"aria-label":t.label,"aria-current":i?`page`:void 0,className:G(`group relative flex w-full items-center rounded-md py-2 text-sm transition-colors`,n?`justify-center px-0`:`gap-2.5 px-3`,i?`bg-accent font-medium text-accent-foreground`:`text-muted-foreground hover:bg-accent/60 hover:text-foreground`),children:[i?(0,z.jsx)(`span`,{className:`absolute inset-y-1.5 left-0 w-0.5 rounded-full bg-primary`}):null,(0,z.jsx)(r,{className:`size-4 shrink-0`}),n?null:(0,z.jsx)(`span`,{className:`truncate`,children:t.label})]},t.id);return n?(0,z.jsx)(Pl,{content:t.label,side:`right`,children:a},t.id):a})}),(0,z.jsx)(`div`,{className:G(`space-y-2 border-t py-3`,n?`px-2`:`px-4`),children:(0,z.jsx)(Pl,{content:n?`展开侧边栏`:`收起侧边栏`,children:(0,z.jsx)(`span`,{className:`inline-flex w-full`,children:(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,className:G(`w-full gap-2 text-xs`,n?`justify-center px-0`:`justify-start`),"aria-label":n?`展开侧边栏`:`收起侧边栏`,onClick:()=>r(e=>!e),children:[n?(0,z.jsx)(ut,{className:`size-3.5`}):(0,z.jsx)(ct,{className:`size-3.5`}),n?null:`收起侧边栏`]})})})})]}),(0,z.jsxs)(`main`,{className:`relative z-10 flex min-w-0 flex-1 flex-col`,children:[(0,z.jsxs)(`header`,{className:`relative z-30 flex h-11 shrink-0 items-center justify-between gap-4 border-b bg-background/60 px-8 backdrop-blur-xl`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-baseline gap-3`,children:[(0,z.jsx)(`h1`,{className:`text-sm font-semibold tracking-tight`,children:_?.label}),(0,z.jsx)(`p`,{className:`hidden truncate text-xs text-muted-foreground md:block`,children:_?.description})]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(yE,{trigger:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":`主题色:${a.label}`,children:(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`size-3.5 rounded-full ring-1 ring-black/10 dark:ring-white/20`,style:{backgroundColor:a.dot}})}),children:[(0,z.jsx)(bE,{children:`主题色`}),rm.map(e=>(0,z.jsxs)(xE,{active:a.id===e.id,onClick:()=>dm(e.id),children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`size-3.5 shrink-0 rounded-full`,style:{backgroundColor:e.dot}}),e.label]},e.id))]}),(0,z.jsxs)(yE,{trigger:(0,z.jsx)(K,{variant:`ghost`,size:`icon`,"aria-label":`主题:${_m[i]}`,children:(0,z.jsx)(SE,{mode:i})}),children:[(0,z.jsx)(bE,{children:`主题`}),vm.map(e=>(0,z.jsxs)(xE,{active:i===e,onClick:()=>km(e),children:[(0,z.jsx)(SE,{mode:e}),_m[e]]},e))]}),d?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(K,{variant:`ghost`,size:`sm`,onClick:m,disabled:c,children:[(0,z.jsx)(vt,{className:`size-3.5`}),`放弃更改`]}),(0,z.jsxs)(K,{size:`sm`,onClick:()=>void p(),disabled:c,children:[c?(0,z.jsx)(et,{className:`size-3.5 animate-spin`}):(0,z.jsx)(bt,{className:`size-3.5`}),`保存`,(0,z.jsx)(`kbd`,{className:`ml-1 rounded border bg-primary-foreground/15 px-1 font-mono text-[10px]`,children:`⌘S`})]})]}):null]})]}),(0,z.jsx)(`div`,{className:G(`min-h-0 flex-1`,_?.fullHeight===!0?`overflow-hidden`:`overflow-y-auto px-8 py-6`),children:(0,z.jsx)(`div`,{className:G(`mx-auto w-full`,_?.fullHeight===!0?`h-full max-w-none`:G(`animate-fade-up space-y-5`,_?.wide===!0?`max-w-[1600px]`:`max-w-4xl`)),children:(0,z.jsx)(gm,{area:_?.label??`页面`,children:(0,z.jsx)(y,{})})},e)})]}),(0,z.jsx)(En,{position:`top-right`,toastOptions:{classNames:{toast:`rounded-lg border bg-card text-card-foreground shadow-lg`}}})]})}):(0,z.jsx)(hm,{state:o,onDone:async()=>{window.location.reload()}}):(0,z.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center gap-3 px-6 text-center`,children:[(0,z.jsx)(Ot,{className:`size-6 text-destructive`}),(0,z.jsx)(`p`,{className:`max-w-md text-sm font-medium text-destructive`,children:f}),(0,z.jsxs)(`p`,{className:`max-w-md text-xs text-muted-foreground`,children:[`在执行终端重新执行`,` `,(0,z.jsx)(`code`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono`,children:`ylcwf serve`}),` `,`后打开它打印的地址。令牌已持久化,正常重启不会让已打开的链接失效。`]}),(0,z.jsx)(K,{variant:`outline`,size:`sm`,onClick:()=>window.location.reload(),children:`刷新页面`})]})}var EE=document.getElementById(`root`);if(EE===null)throw Error(`缺少 #root 容器`);ou.getState().bootstrap(),(0,y.createRoot)(EE).render((0,z.jsx)(v.StrictMode,{children:(0,z.jsx)(TE,{})}));
|