@agi-cli/web-ui 0.1.56 → 0.1.57
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.
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/var Dv;function VI(){if(Dv)return eo;Dv=1;var e=GI(),n=Wh(),a=$I();function i(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function c(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function d(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function g(t){if(u(t)!==t)throw Error(i(188))}function f(t){var r=t.alternate;if(!r){if(r=u(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,s=r;;){var p=o.return;if(p===null)break;var m=p.alternate;if(m===null){if(s=p.return,s!==null){o=s;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===o)return g(p),t;if(m===s)return g(p),r;m=m.sibling}throw Error(i(188))}if(o.return!==s.return)o=p,s=m;else{for(var v=!1,R=p.child;R;){if(R===o){v=!0,o=p,s=m;break}if(R===s){v=!0,s=p,o=m;break}R=R.sibling}if(!v){for(R=m.child;R;){if(R===o){v=!0,o=m,s=p;break}if(R===s){v=!0,s=m,o=p;break}R=R.sibling}if(!v)throw Error(i(189))}}if(o.alternate!==s)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function b(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=b(t),r!==null)return r;t=t.sibling}return null}var h=Object.assign,E=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),N=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function Q(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var ne=Symbol.for("react.client.reference");function oe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ne?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case T:return"Fragment";case x:return"Profiler";case C:return"StrictMode";case U:return"Suspense";case w:return"SuspenseList";case z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case _:return"Portal";case N:return t.displayName||"Context";case A:return(t._context.displayName||"Context")+".Consumer";case D:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case M:return r=t.displayName||null,r!==null?r:oe(t.type)||"Memo";case H:r=t._payload,t=t._init;try{return oe(t(r))}catch{}}return null}var se=Array.isArray,G=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},fe=[],I=-1;function O(t){return{current:t}}function V(t){0>I||(t.current=fe[I],fe[I]=null,I--)}function k(t,r){I++,fe[I]=t.current,t.current=r}var re=O(null),ue=O(null),ce=O(null),he=O(null);function Ie(t,r){switch(k(ce,r),k(ue,t),k(re,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?WS(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=WS(r),t=KS(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}V(re),k(re,t)}function we(){V(re),V(ue),V(ce)}function it(t){t.memoizedState!==null&&k(he,t);var r=re.current,o=KS(r,t.type);r!==o&&(k(ue,t),k(re,o))}function ft(t){ue.current===t&&(V(re),V(ue)),he.current===t&&(V(he),Ki._currentValue=ae)}var Un,an;function vn(t){if(Un===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);Un=r&&r[1]||"",an=-1<o.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Un+t+an}var Rn=!1;function
|
|
43
|
+
`+Un+t+an}var Rn=!1;function Ct(t,r){if(!t||Rn)return"";Rn=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(r){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(Y){var $=Y}Reflect.construct(t,[],J)}else{try{J.call()}catch(Y){$=Y}t.call(J.prototype)}}else{try{throw Error()}catch(Y){$=Y}(J=t())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(Y){if(Y&&$&&typeof Y.stack=="string")return[Y.stack,$.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=s.DetermineComponentFrameRoot(),v=m[0],R=m[1];if(v&&R){var L=v.split(`
|
|
44
44
|
`),P=R.split(`
|
|
45
45
|
`);for(p=s=0;s<L.length&&!L[s].includes("DetermineComponentFrameRoot");)s++;for(;p<P.length&&!P[p].includes("DetermineComponentFrameRoot");)p++;if(s===L.length||p===P.length)for(s=L.length-1,p=P.length-1;1<=s&&0<=p&&L[s]!==P[p];)p--;for(;1<=s&&0<=p;s--,p--)if(L[s]!==P[p]){if(s!==1||p!==1)do if(s--,p--,0>p||L[s]!==P[p]){var X=`
|
|
46
|
-
`+L[s].replace(" at new "," at ");return t.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",t.displayName)),X}while(1<=s&&0<=p);break}}}finally{Rn=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?vn(o):""}function Fr(t,r){switch(t.tag){case 26:case 27:case 5:return vn(t.type);case 16:return vn("Lazy");case 13:return t.child!==r&&r!==null?vn("Suspense Fallback"):vn("Suspense");case 19:return vn("SuspenseList");case 0:case 15:return
|
|
46
|
+
`+L[s].replace(" at new "," at ");return t.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",t.displayName)),X}while(1<=s&&0<=p);break}}}finally{Rn=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?vn(o):""}function Fr(t,r){switch(t.tag){case 26:case 27:case 5:return vn(t.type);case 16:return vn("Lazy");case 13:return t.child!==r&&r!==null?vn("Suspense Fallback"):vn("Suspense");case 19:return vn("SuspenseList");case 0:case 15:return Ct(t.type,!1);case 11:return Ct(t.type.render,!1);case 1:return Ct(t.type,!0);case 31:return vn("Activity");default:return""}}function on(t){try{var r="",o=null;do r+=Fr(t,o),o=t,t=t.return;while(t);return r}catch(s){return`
|
|
47
47
|
Error generating stack: `+s.message+`
|
|
48
|
-
`+s.stack}}var Fn=Object.prototype.hasOwnProperty,Mt=e.unstable_scheduleCallback,Bn=e.unstable_cancelCallback,Nn=e.unstable_shouldYield,Br=e.unstable_requestPaint,Qe=e.unstable_now,ht=e.unstable_getCurrentPriorityLevel,K=e.unstable_ImmediatePriority,ie=e.unstable_UserBlockingPriority,de=e.unstable_NormalPriority,Ee=e.unstable_LowPriority,Oe=e.unstable_IdlePriority,bt=e.log,yt=e.unstable_setDisableYieldValue,nt=null,He=null;function Xe(t){if(typeof bt=="function"&&yt(t),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(nt,t)}catch{}}var Be=Math.clz32?Math.clz32:ln,Ut=Math.log,At=Math.LN2;function ln(t){return t>>>=0,t===0?32:31-(Ut(t)/At|0)|0}var Je=256,wn=262144,da=4194304;function kn(t){var r=t&42;if(r!==0)return r;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function jr(t,r,o){var s=t.pendingLanes;if(s===0)return 0;var p=0,m=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var R=s&134217727;return R!==0?(s=R&~m,s!==0?p=kn(s):(v&=R,v!==0?p=kn(v):o||(o=R&~t,o!==0&&(p=kn(o))))):(R=s&~m,R!==0?p=kn(R):v!==0?p=kn(v):o||(o=s&~t,o!==0&&(p=kn(o)))),p===0?0:r!==0&&r!==p&&(r&m)===0&&(m=p&-p,o=r&-r,m>=o||m===32&&(o&4194048)!==0)?r:p}function lr(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function si(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 kb(){var t=da;return da<<=1,(da&62914560)===0&&(da=4194304),t}function os(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function ui(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function NC(t,r,o,s,p,m){var v=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var R=t.entanglements,L=t.expirationTimes,P=t.hiddenUpdates;for(o=v&~o;0<o;){var X=31-Be(o),J=1<<X;R[X]=0,L[X]=-1;var $=P[X];if($!==null)for(P[X]=null,X=0;X<$.length;X++){var Y=$[X];Y!==null&&(Y.lane&=-536870913)}o&=~J}s!==0&&Cb(t,s,0),m!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=m&~(v&~r))}function Cb(t,r,o){t.pendingLanes|=r,t.suspendedLanes&=~r;var s=31-Be(r);t.entangledLanes|=r,t.entanglements[s]=t.entanglements[s]|1073741824|o&261930}function Ib(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var s=31-Be(o),p=1<<s;p&r|t[s]&r&&(t[s]|=r),o&=~p}}function Ob(t,r){var o=r&-r;return o=(o&42)!==0?1:ls(o),(o&(t.suspendedLanes|r))!==0?0:o}function ls(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ss(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Db(){var t=ee.p;return t!==0?t:(t=window.event,t===void 0?32:yv(t.type))}function Lb(t,r){var o=ee.p;try{return ee.p=t,r()}finally{ee.p=o}}var sr=Math.random().toString(36).slice(2),Et="__reactFiber$"+sr,Ft="__reactProps$"+sr,pa="__reactContainer$"+sr,us="__reactEvents$"+sr,wC="__reactListeners$"+sr,kC="__reactHandles$"+sr,Mb="__reactResources$"+sr,ci="__reactMarker$"+sr;function cs(t){delete t[Et],delete t[Ft],delete t[us],delete t[wC],delete t[kC]}function fa(t){var r=t[Et];if(r)return r;for(var o=t.parentNode;o;){if(r=o[pa]||o[Et]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=nv(t);t!==null;){if(o=t[Et])return o;t=nv(t)}return r}t=o,o=t.parentNode}return null}function ga(t){if(t=t[Et]||t[pa]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function di(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(i(33))}function ma(t){var r=t[Mb];return r||(r=t[Mb]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function gt(t){t[ci]=!0}var Ub=new Set,Fb={};function zr(t,r){ha(t,r),ha(t+"Capture",r)}function ha(t,r){for(Fb[t]=r,t=0;t<r.length;t++)Ub.add(r[t])}var CC=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]*$"),Bb={},jb={};function IC(t){return Fn.call(jb,t)?!0:Fn.call(Bb,t)?!1:CC.test(t)?jb[t]=!0:(Bb[t]=!0,!1)}function bo(t,r,o){if(IC(r))if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+o)}}function yo(t,r,o){if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+o)}}function jn(t,r,o,s){if(s===null)t.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(r,o,""+s)}}function sn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function zb(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function OC(t,r,o){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,m=s.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(v){o=""+v,m.call(this,v)}}),Object.defineProperty(t,r,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(v){o=""+v},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ds(t){if(!t._valueTracker){var r=zb(t)?"checked":"value";t._valueTracker=OC(t,r,""+t[r])}}function qb(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),s="";return t&&(s=zb(t)?t.checked?"true":"false":t.value),t=s,t!==o?(r.setValue(t),!0):!1}function Eo(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var DC=/[\n"\\]/g;function un(t){return t.replace(DC,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function ps(t,r,o,s,p,m,v,R){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),r!=null?v==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+sn(r)):t.value!==""+sn(r)&&(t.value=""+sn(r)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),r!=null?fs(t,v,sn(r)):o!=null?fs(t,v,sn(o)):s!=null&&t.removeAttribute("value"),p==null&&m!=null&&(t.defaultChecked=!!m),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?t.name=""+sn(R):t.removeAttribute("name")}function Pb(t,r,o,s,p,m,v,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||o!=null){if(!(m!=="submit"&&m!=="reset"||r!=null)){ds(t);return}o=o!=null?""+sn(o):"",r=r!=null?""+sn(r):o,R||r===t.value||(t.value=r),t.defaultValue=r}s=s??p,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=R?t.checked:!!s,t.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),ds(t)}function fs(t,r,o){r==="number"&&Eo(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function ba(t,r,o,s){if(t=t.options,r){r={};for(var p=0;p<o.length;p++)r["$"+o[p]]=!0;for(o=0;o<t.length;o++)p=r.hasOwnProperty("$"+t[o].value),t[o].selected!==p&&(t[o].selected=p),p&&s&&(t[o].defaultSelected=!0)}else{for(o=""+sn(o),r=null,p=0;p<t.length;p++){if(t[p].value===o){t[p].selected=!0,s&&(t[p].defaultSelected=!0);return}r!==null||t[p].disabled||(r=t[p])}r!==null&&(r.selected=!0)}}function Gb(t,r,o){if(r!=null&&(r=""+sn(r),r!==t.value&&(t.value=r),o==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=o!=null?""+sn(o):""}function Hb(t,r,o,s){if(r==null){if(s!=null){if(o!=null)throw Error(i(92));if(se(s)){if(1<s.length)throw Error(i(93));s=s[0]}o=s}o==null&&(o=""),r=o}o=sn(r),t.defaultValue=o,s=t.textContent,s===o&&s!==""&&s!==null&&(t.value=s),ds(t)}function ya(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var LC=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 $b(t,r,o){var s=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?s?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":s?t.setProperty(r,o):typeof o!="number"||o===0||LC.has(r)?r==="float"?t.cssFloat=o:t[r]=(""+o).trim():t[r]=o+"px"}function Vb(t,r,o){if(r!=null&&typeof r!="object")throw Error(i(62));if(t=t.style,o!=null){for(var s in o)!o.hasOwnProperty(s)||r!=null&&r.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var p in r)s=r[p],r.hasOwnProperty(p)&&o[p]!==s&&$b(t,p,s)}else for(var m in r)r.hasOwnProperty(m)&&$b(t,m,r[m])}function gs(t){if(t.indexOf("-")===-1)return!1;switch(t){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 MC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),UC=/^[\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 So(t){return UC.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function zn(){}var ms=null;function hs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ea=null,Sa=null;function Yb(t){var r=ga(t);if(r&&(t=r.stateNode)){var o=t[Ft]||null;e:switch(t=r.stateNode,r.type){case"input":if(ps(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+un(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var s=o[r];if(s!==t&&s.form===t.form){var p=s[Ft]||null;if(!p)throw Error(i(90));ps(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<o.length;r++)s=o[r],s.form===t.form&&qb(s)}break e;case"textarea":Gb(t,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&ba(t,!!o.multiple,r,!1)}}}var bs=!1;function Wb(t,r,o){if(bs)return t(r,o);bs=!0;try{var s=t(r);return s}finally{if(bs=!1,(Ea!==null||Sa!==null)&&(ll(),Ea&&(r=Ea,t=Sa,Sa=Ea=null,Yb(r),t)))for(r=0;r<t.length;r++)Yb(t[r])}}function pi(t,r){var o=t.stateNode;if(o===null)return null;var s=o[Ft]||null;if(s===null)return null;o=s[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ys=!1;if(qn)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){ys=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{ys=!1}var ur=null,Es=null,vo=null;function Kb(){if(vo)return vo;var t,r=Es,o=r.length,s,p="value"in ur?ur.value:ur.textContent,m=p.length;for(t=0;t<o&&r[t]===p[t];t++);var v=o-t;for(s=1;s<=v&&r[o-s]===p[m-s];s++);return vo=p.slice(t,1<s?1-s:void 0)}function xo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function To(){return!0}function Xb(){return!1}function Bt(t){function r(o,s,p,m,v){this._reactName=o,this._targetInst=p,this.type=s,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(o=t[R],this[R]=o?o(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?To:Xb,this.isPropagationStopped=Xb,this}return h(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=To)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),r}var qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ao=Bt(qr),gi=h({},qr,{view:0,detail:0}),FC=Bt(gi),Ss,vs,mi,_o=h({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ts,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==mi&&(mi&&t.type==="mousemove"?(Ss=t.screenX-mi.screenX,vs=t.screenY-mi.screenY):vs=Ss=0,mi=t),Ss)},movementY:function(t){return"movementY"in t?t.movementY:vs}}),Zb=Bt(_o),BC=h({},_o,{dataTransfer:0}),jC=Bt(BC),zC=h({},gi,{relatedTarget:0}),xs=Bt(zC),qC=h({},qr,{animationName:0,elapsedTime:0,pseudoElement:0}),PC=Bt(qC),GC=h({},qr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),HC=Bt(GC),$C=h({},qr,{data:0}),Qb=Bt($C),VC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YC={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"},WC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KC(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=WC[t])?!!r[t]:!1}function Ts(){return KC}var XC=h({},gi,{key:function(t){if(t.key){var r=VC[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=xo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?YC[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ts,charCode:function(t){return t.type==="keypress"?xo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?xo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ZC=Bt(XC),QC=h({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jb=Bt(QC),JC=h({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ts}),e0=Bt(JC),t0=h({},qr,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0=Bt(t0),r0=h({},_o,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),a0=Bt(r0),i0=h({},qr,{newState:0,oldState:0}),o0=Bt(i0),l0=[9,13,27,32],As=qn&&"CompositionEvent"in window,hi=null;qn&&"documentMode"in document&&(hi=document.documentMode);var s0=qn&&"TextEvent"in window&&!hi,ey=qn&&(!As||hi&&8<hi&&11>=hi),ty=" ",ny=!1;function ry(t,r){switch(t){case"keyup":return l0.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ay(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var va=!1;function u0(t,r){switch(t){case"compositionend":return ay(r);case"keypress":return r.which!==32?null:(ny=!0,ty);case"textInput":return t=r.data,t===ty&&ny?null:t;default:return null}}function c0(t,r){if(va)return t==="compositionend"||!As&&ry(t,r)?(t=Kb(),vo=Es=ur=null,va=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return ey&&r.locale!=="ko"?null:r.data;default:return null}}var d0={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 iy(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!d0[t.type]:r==="textarea"}function oy(t,r,o,s){Ea?Sa?Sa.push(s):Sa=[s]:Ea=s,r=gl(r,"onChange"),0<r.length&&(o=new Ao("onChange","change",null,o,s),t.push({event:o,listeners:r}))}var bi=null,yi=null;function p0(t){PS(t,0)}function Ro(t){var r=di(t);if(qb(r))return t}function ly(t,r){if(t==="change")return r}var sy=!1;if(qn){var _s;if(qn){var Rs="oninput"in document;if(!Rs){var uy=document.createElement("div");uy.setAttribute("oninput","return;"),Rs=typeof uy.oninput=="function"}_s=Rs}else _s=!1;sy=_s&&(!document.documentMode||9<document.documentMode)}function cy(){bi&&(bi.detachEvent("onpropertychange",dy),yi=bi=null)}function dy(t){if(t.propertyName==="value"&&Ro(yi)){var r=[];oy(r,yi,t,hs(t)),Wb(p0,r)}}function f0(t,r,o){t==="focusin"?(cy(),bi=r,yi=o,bi.attachEvent("onpropertychange",dy)):t==="focusout"&&cy()}function g0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ro(yi)}function m0(t,r){if(t==="click")return Ro(r)}function h0(t,r){if(t==="input"||t==="change")return Ro(r)}function b0(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Wt=typeof Object.is=="function"?Object.is:b0;function Ei(t,r){if(Wt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),s=Object.keys(r);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var p=o[s];if(!Fn.call(r,p)||!Wt(t[p],r[p]))return!1}return!0}function py(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fy(t,r){var o=py(t);t=0;for(var s;o;){if(o.nodeType===3){if(s=t+o.textContent.length,t<=r&&s>=r)return{node:o,offset:r-t};t=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=py(o)}}function gy(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?gy(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function my(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Eo(t.document);r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=Eo(t.document)}return r}function Ns(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var y0=qn&&"documentMode"in document&&11>=document.documentMode,xa=null,ws=null,Si=null,ks=!1;function hy(t,r,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ks||xa==null||xa!==Eo(s)||(s=xa,"selectionStart"in s&&Ns(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Si&&Ei(Si,s)||(Si=s,s=gl(ws,"onSelect"),0<s.length&&(r=new Ao("onSelect","select",null,r,o),t.push({event:r,listeners:s}),r.target=xa)))}function Pr(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var Ta={animationend:Pr("Animation","AnimationEnd"),animationiteration:Pr("Animation","AnimationIteration"),animationstart:Pr("Animation","AnimationStart"),transitionrun:Pr("Transition","TransitionRun"),transitionstart:Pr("Transition","TransitionStart"),transitioncancel:Pr("Transition","TransitionCancel"),transitionend:Pr("Transition","TransitionEnd")},Cs={},by={};qn&&(by=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function Gr(t){if(Cs[t])return Cs[t];if(!Ta[t])return t;var r=Ta[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in by)return Cs[t]=r[o];return t}var yy=Gr("animationend"),Ey=Gr("animationiteration"),Sy=Gr("animationstart"),E0=Gr("transitionrun"),S0=Gr("transitionstart"),v0=Gr("transitioncancel"),vy=Gr("transitionend"),xy=new Map,Is="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Is.push("scrollEnd");function xn(t,r){xy.set(t,r),zr(r,[t])}var No=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},cn=[],Aa=0,Os=0;function wo(){for(var t=Aa,r=Os=Aa=0;r<t;){var o=cn[r];cn[r++]=null;var s=cn[r];cn[r++]=null;var p=cn[r];cn[r++]=null;var m=cn[r];if(cn[r++]=null,s!==null&&p!==null){var v=s.pending;v===null?p.next=p:(p.next=v.next,v.next=p),s.pending=p}m!==0&&Ty(o,p,m)}}function ko(t,r,o,s){cn[Aa++]=t,cn[Aa++]=r,cn[Aa++]=o,cn[Aa++]=s,Os|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Ds(t,r,o,s){return ko(t,r,o,s),Co(t)}function Hr(t,r){return ko(t,null,null,r),Co(t)}function Ty(t,r,o){t.lanes|=o;var s=t.alternate;s!==null&&(s.lanes|=o);for(var p=!1,m=t.return;m!==null;)m.childLanes|=o,s=m.alternate,s!==null&&(s.childLanes|=o),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(p=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,p&&r!==null&&(p=31-Be(o),t=m.hiddenUpdates,s=t[p],s===null?t[p]=[r]:s.push(r),r.lane=o|536870912),m):null}function Co(t){if(50<Pi)throw Pi=0,Pu=null,Error(i(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var _a={};function x0(t,r,o,s){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(t,r,o,s){return new x0(t,r,o,s)}function Ls(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Pn(t,r){var o=t.alternate;return o===null?(o=Kt(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function Ay(t,r){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,r=o.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Io(t,r,o,s,p,m){var v=0;if(s=t,typeof t=="function")Ls(t)&&(v=1);else if(typeof t=="string")v=NI(t,o,re.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case z:return t=Kt(31,o,r,p),t.elementType=z,t.lanes=m,t;case T:return $r(o.children,p,m,r);case C:v=8,p|=24;break;case x:return t=Kt(12,o,r,p|2),t.elementType=x,t.lanes=m,t;case U:return t=Kt(13,o,r,p),t.elementType=U,t.lanes=m,t;case w:return t=Kt(19,o,r,p),t.elementType=w,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case N:v=10;break e;case A:v=9;break e;case D:v=11;break e;case M:v=14;break e;case H:v=16,s=null;break e}v=29,o=Error(i(130,t===null?"null":typeof t,"")),s=null}return r=Kt(v,o,r,p),r.elementType=t,r.type=s,r.lanes=m,r}function $r(t,r,o,s){return t=Kt(7,t,s,r),t.lanes=o,t}function Ms(t,r,o){return t=Kt(6,t,null,r),t.lanes=o,t}function _y(t){var r=Kt(18,null,null,0);return r.stateNode=t,r}function Us(t,r,o){return r=Kt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var Ry=new WeakMap;function dn(t,r){if(typeof t=="object"&&t!==null){var o=Ry.get(t);return o!==void 0?o:(r={value:t,source:r,stack:on(r)},Ry.set(t,r),r)}return{value:t,source:r,stack:on(r)}}var Ra=[],Na=0,Oo=null,vi=0,pn=[],fn=0,cr=null,Cn=1,In="";function Gn(t,r){Ra[Na++]=vi,Ra[Na++]=Oo,Oo=t,vi=r}function Ny(t,r,o){pn[fn++]=Cn,pn[fn++]=In,pn[fn++]=cr,cr=t;var s=Cn;t=In;var p=32-Be(s)-1;s&=~(1<<p),o+=1;var m=32-Be(r)+p;if(30<m){var v=p-p%5;m=(s&(1<<v)-1).toString(32),s>>=v,p-=v,Cn=1<<32-Be(r)+p|o<<p|s,In=m+t}else Cn=1<<m|o<<p|s,In=t}function Fs(t){t.return!==null&&(Gn(t,1),Ny(t,1,0))}function Bs(t){for(;t===Oo;)Oo=Ra[--Na],Ra[Na]=null,vi=Ra[--Na],Ra[Na]=null;for(;t===cr;)cr=pn[--fn],pn[fn]=null,In=pn[--fn],pn[fn]=null,Cn=pn[--fn],pn[fn]=null}function wy(t,r){pn[fn++]=Cn,pn[fn++]=In,pn[fn++]=cr,Cn=r.id,In=r.overflow,cr=t}var St=null,We=null,De=!1,dr=null,gn=!1,js=Error(i(519));function pr(t){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xi(dn(r,t)),js}function ky(t){var r=t.stateNode,o=t.type,s=t.memoizedProps;switch(r[Et]=t,r[Ft]=s,o){case"dialog":Re("cancel",r),Re("close",r);break;case"iframe":case"object":case"embed":Re("load",r);break;case"video":case"audio":for(o=0;o<Hi.length;o++)Re(Hi[o],r);break;case"source":Re("error",r);break;case"img":case"image":case"link":Re("error",r),Re("load",r);break;case"details":Re("toggle",r);break;case"input":Re("invalid",r),Pb(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Re("invalid",r);break;case"textarea":Re("invalid",r),Hb(r,s.value,s.defaultValue,s.children)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||s.suppressHydrationWarning===!0||VS(r.textContent,o)?(s.popover!=null&&(Re("beforetoggle",r),Re("toggle",r)),s.onScroll!=null&&Re("scroll",r),s.onScrollEnd!=null&&Re("scrollend",r),s.onClick!=null&&(r.onclick=zn),r=!0):r=!1,r||pr(t,!0)}function Cy(t){for(St=t.return;St;)switch(St.tag){case 5:case 31:case 13:gn=!1;return;case 27:case 3:gn=!0;return;default:St=St.return}}function wa(t){if(t!==St)return!1;if(!De)return Cy(t),De=!0,!1;var r=t.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||rc(t.type,t.memoizedProps)),o=!o),o&&We&&pr(t),Cy(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));We=tv(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));We=tv(t)}else r===27?(r=We,Rr(t.type)?(t=sc,sc=null,We=t):We=r):We=St?hn(t.stateNode.nextSibling):null;return!0}function Vr(){We=St=null,De=!1}function zs(){var t=dr;return t!==null&&(Pt===null?Pt=t:Pt.push.apply(Pt,t),dr=null),t}function xi(t){dr===null?dr=[t]:dr.push(t)}var qs=O(null),Yr=null,Hn=null;function fr(t,r,o){k(qs,r._currentValue),r._currentValue=o}function $n(t){t._currentValue=qs.current,V(qs)}function Ps(t,r,o){for(;t!==null;){var s=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),t===o)break;t=t.return}}function Gs(t,r,o,s){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var m=p.dependencies;if(m!==null){var v=p.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=p;for(var L=0;L<r.length;L++)if(R.context===r[L]){m.lanes|=o,R=m.alternate,R!==null&&(R.lanes|=o),Ps(m.return,o,t),s||(v=null);break e}m=R.next}}else if(p.tag===18){if(v=p.return,v===null)throw Error(i(341));v.lanes|=o,m=v.alternate,m!==null&&(m.lanes|=o),Ps(v,o,t),v=null}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===t){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}}function ka(t,r,o,s){t=null;for(var p=r,m=!1;p!==null;){if(!m){if((p.flags&524288)!==0)m=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var v=p.alternate;if(v===null)throw Error(i(387));if(v=v.memoizedProps,v!==null){var R=p.type;Wt(p.pendingProps.value,v.value)||(t!==null?t.push(R):t=[R])}}else if(p===he.current){if(v=p.alternate,v===null)throw Error(i(387));v.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(Ki):t=[Ki])}p=p.return}t!==null&&Gs(r,t,o,s),r.flags|=262144}function Do(t){for(t=t.firstContext;t!==null;){if(!Wt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wr(t){Yr=t,Hn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function vt(t){return Iy(Yr,t)}function Lo(t,r){return Yr===null&&Wr(t),Iy(t,r)}function Iy(t,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},Hn===null){if(t===null)throw Error(i(308));Hn=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Hn=Hn.next=r;return o}var T0=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(o,s){t.push(s)}};this.abort=function(){r.aborted=!0,t.forEach(function(o){return o()})}},A0=e.unstable_scheduleCallback,_0=e.unstable_NormalPriority,ot={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hs(){return{controller:new T0,data:new Map,refCount:0}}function Ti(t){t.refCount--,t.refCount===0&&A0(_0,function(){t.controller.abort()})}var Ai=null,$s=0,Ca=0,Ia=null;function R0(t,r){if(Ai===null){var o=Ai=[];$s=0,Ca=Wu(),Ia={status:"pending",value:void 0,then:function(s){o.push(s)}}}return $s++,r.then(Oy,Oy),r}function Oy(){if(--$s===0&&Ai!==null){Ia!==null&&(Ia.status="fulfilled");var t=Ai;Ai=null,Ca=0,Ia=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function N0(t,r){var o=[],s={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return t.then(function(){s.status="fulfilled",s.value=r;for(var p=0;p<o.length;p++)(0,o[p])(r)},function(p){for(s.status="rejected",s.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),s}var Dy=G.S;G.S=function(t,r){hS=Qe(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&R0(t,r),Dy!==null&&Dy(t,r)};var Kr=O(null);function Vs(){var t=Kr.current;return t!==null?t:$e.pooledCache}function Mo(t,r){r===null?k(Kr,Kr.current):k(Kr,r.pool)}function Ly(){var t=Vs();return t===null?null:{parent:ot._currentValue,pool:t}}var Oa=Error(i(460)),Ys=Error(i(474)),Uo=Error(i(542)),Fo={then:function(){}};function My(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Uy(t,r,o){switch(o=t[o],o===void 0?t.push(r):o!==r&&(r.then(zn,zn),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,By(t),t;default:if(typeof r.status=="string")r.then(zn,zn);else{if(t=$e,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=r,t.status="pending",t.then(function(s){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=s}},function(s){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=s}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,By(t),t}throw Zr=r,Oa}}function Xr(t){try{var r=t._init;return r(t._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Zr=o,Oa):o}}var Zr=null;function Fy(){if(Zr===null)throw Error(i(459));var t=Zr;return Zr=null,t}function By(t){if(t===Oa||t===Uo)throw Error(i(483))}var Da=null,_i=0;function Bo(t){var r=_i;return _i+=1,Da===null&&(Da=[]),Uy(Da,t,r)}function Ri(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function jo(t,r){throw r.$$typeof===E?Error(i(525)):(t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function jy(t){function r(j,B){if(t){var q=j.deletions;q===null?(j.deletions=[B],j.flags|=16):q.push(B)}}function o(j,B){if(!t)return null;for(;B!==null;)r(j,B),B=B.sibling;return null}function s(j){for(var B=new Map;j!==null;)j.key!==null?B.set(j.key,j):B.set(j.index,j),j=j.sibling;return B}function p(j,B){return j=Pn(j,B),j.index=0,j.sibling=null,j}function m(j,B,q){return j.index=q,t?(q=j.alternate,q!==null?(q=q.index,q<B?(j.flags|=67108866,B):q):(j.flags|=67108866,B)):(j.flags|=1048576,B)}function v(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function R(j,B,q,Z){return B===null||B.tag!==6?(B=Ms(q,j.mode,Z),B.return=j,B):(B=p(B,q),B.return=j,B)}function L(j,B,q,Z){var me=q.type;return me===T?X(j,B,q.props.children,Z,q.key):B!==null&&(B.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===H&&Xr(me)===B.type)?(B=p(B,q.props),Ri(B,q),B.return=j,B):(B=Io(q.type,q.key,q.props,null,j.mode,Z),Ri(B,q),B.return=j,B)}function P(j,B,q,Z){return B===null||B.tag!==4||B.stateNode.containerInfo!==q.containerInfo||B.stateNode.implementation!==q.implementation?(B=Us(q,j.mode,Z),B.return=j,B):(B=p(B,q.children||[]),B.return=j,B)}function X(j,B,q,Z,me){return B===null||B.tag!==7?(B=$r(q,j.mode,Z,me),B.return=j,B):(B=p(B,q),B.return=j,B)}function J(j,B,q){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=Ms(""+B,j.mode,q),B.return=j,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return q=Io(B.type,B.key,B.props,null,j.mode,q),Ri(q,B),q.return=j,q;case _:return B=Us(B,j.mode,q),B.return=j,B;case H:return B=Xr(B),J(j,B,q)}if(se(B)||Q(B))return B=$r(B,j.mode,q,null),B.return=j,B;if(typeof B.then=="function")return J(j,Bo(B),q);if(B.$$typeof===N)return J(j,Lo(j,B),q);jo(j,B)}return null}function $(j,B,q,Z){var me=B!==null?B.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return me!==null?null:R(j,B,""+q,Z);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===me?L(j,B,q,Z):null;case _:return q.key===me?P(j,B,q,Z):null;case H:return q=Xr(q),$(j,B,q,Z)}if(se(q)||Q(q))return me!==null?null:X(j,B,q,Z,null);if(typeof q.then=="function")return $(j,B,Bo(q),Z);if(q.$$typeof===N)return $(j,B,Lo(j,q),Z);jo(j,q)}return null}function Y(j,B,q,Z,me){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return j=j.get(q)||null,R(B,j,""+Z,me);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return j=j.get(Z.key===null?q:Z.key)||null,L(B,j,Z,me);case _:return j=j.get(Z.key===null?q:Z.key)||null,P(B,j,Z,me);case H:return Z=Xr(Z),Y(j,B,q,Z,me)}if(se(Z)||Q(Z))return j=j.get(q)||null,X(B,j,Z,me,null);if(typeof Z.then=="function")return Y(j,B,q,Bo(Z),me);if(Z.$$typeof===N)return Y(j,B,q,Lo(B,Z),me);jo(B,Z)}return null}function pe(j,B,q,Z){for(var me=null,Me=null,ge=B,xe=B=0,Ce=null;ge!==null&&xe<q.length;xe++){ge.index>xe?(Ce=ge,ge=null):Ce=ge.sibling;var Ue=$(j,ge,q[xe],Z);if(Ue===null){ge===null&&(ge=Ce);break}t&&ge&&Ue.alternate===null&&r(j,ge),B=m(Ue,B,xe),Me===null?me=Ue:Me.sibling=Ue,Me=Ue,ge=Ce}if(xe===q.length)return o(j,ge),De&&Gn(j,xe),me;if(ge===null){for(;xe<q.length;xe++)ge=J(j,q[xe],Z),ge!==null&&(B=m(ge,B,xe),Me===null?me=ge:Me.sibling=ge,Me=ge);return De&&Gn(j,xe),me}for(ge=s(ge);xe<q.length;xe++)Ce=Y(ge,j,xe,q[xe],Z),Ce!==null&&(t&&Ce.alternate!==null&&ge.delete(Ce.key===null?xe:Ce.key),B=m(Ce,B,xe),Me===null?me=Ce:Me.sibling=Ce,Me=Ce);return t&&ge.forEach(function(Ir){return r(j,Ir)}),De&&Gn(j,xe),me}function ye(j,B,q,Z){if(q==null)throw Error(i(151));for(var me=null,Me=null,ge=B,xe=B=0,Ce=null,Ue=q.next();ge!==null&&!Ue.done;xe++,Ue=q.next()){ge.index>xe?(Ce=ge,ge=null):Ce=ge.sibling;var Ir=$(j,ge,Ue.value,Z);if(Ir===null){ge===null&&(ge=Ce);break}t&&ge&&Ir.alternate===null&&r(j,ge),B=m(Ir,B,xe),Me===null?me=Ir:Me.sibling=Ir,Me=Ir,ge=Ce}if(Ue.done)return o(j,ge),De&&Gn(j,xe),me;if(ge===null){for(;!Ue.done;xe++,Ue=q.next())Ue=J(j,Ue.value,Z),Ue!==null&&(B=m(Ue,B,xe),Me===null?me=Ue:Me.sibling=Ue,Me=Ue);return De&&Gn(j,xe),me}for(ge=s(ge);!Ue.done;xe++,Ue=q.next())Ue=Y(ge,j,xe,Ue.value,Z),Ue!==null&&(t&&Ue.alternate!==null&&ge.delete(Ue.key===null?xe:Ue.key),B=m(Ue,B,xe),Me===null?me=Ue:Me.sibling=Ue,Me=Ue);return t&&ge.forEach(function(BI){return r(j,BI)}),De&&Gn(j,xe),me}function Ge(j,B,q,Z){if(typeof q=="object"&&q!==null&&q.type===T&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case S:e:{for(var me=q.key;B!==null;){if(B.key===me){if(me=q.type,me===T){if(B.tag===7){o(j,B.sibling),Z=p(B,q.props.children),Z.return=j,j=Z;break e}}else if(B.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===H&&Xr(me)===B.type){o(j,B.sibling),Z=p(B,q.props),Ri(Z,q),Z.return=j,j=Z;break e}o(j,B);break}else r(j,B);B=B.sibling}q.type===T?(Z=$r(q.props.children,j.mode,Z,q.key),Z.return=j,j=Z):(Z=Io(q.type,q.key,q.props,null,j.mode,Z),Ri(Z,q),Z.return=j,j=Z)}return v(j);case _:e:{for(me=q.key;B!==null;){if(B.key===me)if(B.tag===4&&B.stateNode.containerInfo===q.containerInfo&&B.stateNode.implementation===q.implementation){o(j,B.sibling),Z=p(B,q.children||[]),Z.return=j,j=Z;break e}else{o(j,B);break}else r(j,B);B=B.sibling}Z=Us(q,j.mode,Z),Z.return=j,j=Z}return v(j);case H:return q=Xr(q),Ge(j,B,q,Z)}if(se(q))return pe(j,B,q,Z);if(Q(q)){if(me=Q(q),typeof me!="function")throw Error(i(150));return q=me.call(q),ye(j,B,q,Z)}if(typeof q.then=="function")return Ge(j,B,Bo(q),Z);if(q.$$typeof===N)return Ge(j,B,Lo(j,q),Z);jo(j,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,B!==null&&B.tag===6?(o(j,B.sibling),Z=p(B,q),Z.return=j,j=Z):(o(j,B),Z=Ms(q,j.mode,Z),Z.return=j,j=Z),v(j)):o(j,B)}return function(j,B,q,Z){try{_i=0;var me=Ge(j,B,q,Z);return Da=null,me}catch(ge){if(ge===Oa||ge===Uo)throw ge;var Me=Kt(29,ge,null,j.mode);return Me.lanes=Z,Me.return=j,Me}finally{}}}var Qr=jy(!0),zy=jy(!1),gr=!1;function Ws(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ks(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function mr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function hr(t,r,o){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Fe&2)!==0){var p=s.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),s.pending=r,r=Co(t),Ty(t,null,o),r}return ko(t,s,r,o),Co(t)}function Ni(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var s=r.lanes;s&=t.pendingLanes,o|=s,r.lanes=o,Ib(t,o)}}function Xs(t,r){var o=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var p=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var v={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};m===null?p=m=v:m=m.next=v,o=o.next}while(o!==null);m===null?p=m=r:m=m.next=r}else p=m=r;o={baseState:s.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}var Zs=!1;function wi(){if(Zs){var t=Ia;if(t!==null)throw t}}function ki(t,r,o,s){Zs=!1;var p=t.updateQueue;gr=!1;var m=p.firstBaseUpdate,v=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var L=R,P=L.next;L.next=null,v===null?m=P:v.next=P,v=L;var X=t.alternate;X!==null&&(X=X.updateQueue,R=X.lastBaseUpdate,R!==v&&(R===null?X.firstBaseUpdate=P:R.next=P,X.lastBaseUpdate=L))}if(m!==null){var J=p.baseState;v=0,X=P=L=null,R=m;do{var $=R.lane&-536870913,Y=$!==R.lane;if(Y?(ke&$)===$:(s&$)===$){$!==0&&$===Ca&&(Zs=!0),X!==null&&(X=X.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var pe=t,ye=R;$=r;var Ge=o;switch(ye.tag){case 1:if(pe=ye.payload,typeof pe=="function"){J=pe.call(Ge,J,$);break e}J=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ye.payload,$=typeof pe=="function"?pe.call(Ge,J,$):pe,$==null)break e;J=h({},J,$);break e;case 2:gr=!0}}$=R.callback,$!==null&&(t.flags|=64,Y&&(t.flags|=8192),Y=p.callbacks,Y===null?p.callbacks=[$]:Y.push($))}else Y={lane:$,tag:R.tag,payload:R.payload,callback:R.callback,next:null},X===null?(P=X=Y,L=J):X=X.next=Y,v|=$;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,p.lastBaseUpdate=Y,p.shared.pending=null}}while(!0);X===null&&(L=J),p.baseState=L,p.firstBaseUpdate=P,p.lastBaseUpdate=X,m===null&&(p.shared.lanes=0),vr|=v,t.lanes=v,t.memoizedState=J}}function qy(t,r){if(typeof t!="function")throw Error(i(191,t));t.call(r)}function Py(t,r){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)qy(o[t],r)}var La=O(null),zo=O(0);function Gy(t,r){t=er,k(zo,t),k(La,r),er=t|r.baseLanes}function Qs(){k(zo,er),k(La,La.current)}function Js(){er=zo.current,V(La),V(zo)}var Xt=O(null),mn=null;function br(t){var r=t.alternate;k(rt,rt.current&1),k(Xt,t),mn===null&&(r===null||La.current!==null||r.memoizedState!==null)&&(mn=t)}function eu(t){k(rt,rt.current),k(Xt,t),mn===null&&(mn=t)}function Hy(t){t.tag===22?(k(rt,rt.current),k(Xt,t),mn===null&&(mn=t)):yr()}function yr(){k(rt,rt.current),k(Xt,Xt.current)}function Zt(t){V(Xt),mn===t&&(mn=null),V(rt)}var rt=O(0);function qo(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||oc(o)||lc(o)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Vn=0,ve=null,qe=null,lt=null,Po=!1,Ma=!1,Jr=!1,Go=0,Ci=0,Ua=null,w0=0;function et(){throw Error(i(321))}function tu(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!Wt(t[o],r[o]))return!1;return!0}function nu(t,r,o,s,p,m){return Vn=m,ve=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,G.H=t===null||t.memoizedState===null?NE:bu,Jr=!1,m=o(s,p),Jr=!1,Ma&&(m=Vy(r,o,s,p)),$y(t),m}function $y(t){G.H=Di;var r=qe!==null&&qe.next!==null;if(Vn=0,lt=qe=ve=null,Po=!1,Ci=0,Ua=null,r)throw Error(i(300));t===null||st||(t=t.dependencies,t!==null&&Do(t)&&(st=!0))}function Vy(t,r,o,s){ve=t;var p=0;do{if(Ma&&(Ua=null),Ci=0,Ma=!1,25<=p)throw Error(i(301));if(p+=1,lt=qe=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}G.H=wE,m=r(o,s)}while(Ma);return m}function k0(){var t=G.H,r=t.useState()[0];return r=typeof r.then=="function"?Ii(r):r,t=t.useState()[0],(qe!==null?qe.memoizedState:null)!==t&&(ve.flags|=1024),r}function ru(){var t=Go!==0;return Go=0,t}function au(t,r,o){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~o}function iu(t){if(Po){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Po=!1}Vn=0,lt=qe=ve=null,Ma=!1,Ci=Go=0,Ua=null}function Ct(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?ve.memoizedState=lt=t:lt=lt.next=t,lt}function at(){if(qe===null){var t=ve.alternate;t=t!==null?t.memoizedState:null}else t=qe.next;var r=lt===null?ve.memoizedState:lt.next;if(r!==null)lt=r,qe=t;else{if(t===null)throw ve.alternate===null?Error(i(467)):Error(i(310));qe=t,t={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},lt===null?ve.memoizedState=lt=t:lt=lt.next=t}return lt}function Ho(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(t){var r=Ci;return Ci+=1,Ua===null&&(Ua=[]),t=Uy(Ua,t,r),r=ve,(lt===null?r.memoizedState:lt.next)===null&&(r=r.alternate,G.H=r===null||r.memoizedState===null?NE:bu),t}function $o(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ii(t);if(t.$$typeof===N)return vt(t)}throw Error(i(438,String(t)))}function ou(t){var r=null,o=ve.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var s=ve.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=Ho(),ve.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(t),s=0;s<t;s++)o[s]=F;return r.index++,o}function Yn(t,r){return typeof r=="function"?r(t):r}function Vo(t){var r=at();return lu(r,qe,t)}function lu(t,r,o){var s=t.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=o;var p=t.baseQueue,m=s.pending;if(m!==null){if(p!==null){var v=p.next;p.next=m.next,m.next=v}r.baseQueue=p=m,s.pending=null}if(m=t.baseState,p===null)t.memoizedState=m;else{r=p.next;var R=v=null,L=null,P=r,X=!1;do{var J=P.lane&-536870913;if(J!==P.lane?(ke&J)===J:(Vn&J)===J){var $=P.revertLane;if($===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),J===Ca&&(X=!0);else if((Vn&$)===$){P=P.next,$===Ca&&(X=!0);continue}else J={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},L===null?(R=L=J,v=m):L=L.next=J,ve.lanes|=$,vr|=$;J=P.action,Jr&&o(m,J),m=P.hasEagerState?P.eagerState:o(m,J)}else $={lane:J,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},L===null?(R=L=$,v=m):L=L.next=$,ve.lanes|=J,vr|=J;P=P.next}while(P!==null&&P!==r);if(L===null?v=m:L.next=R,!Wt(m,t.memoizedState)&&(st=!0,X&&(o=Ia,o!==null)))throw o;t.memoizedState=m,t.baseState=v,t.baseQueue=L,s.lastRenderedState=m}return p===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function su(t){var r=at(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var s=o.dispatch,p=o.pending,m=r.memoizedState;if(p!==null){o.pending=null;var v=p=p.next;do m=t(m,v.action),v=v.next;while(v!==p);Wt(m,r.memoizedState)||(st=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),o.lastRenderedState=m}return[m,s]}function Yy(t,r,o){var s=ve,p=at(),m=De;if(m){if(o===void 0)throw Error(i(407));o=o()}else o=r();var v=!Wt((qe||p).memoizedState,o);if(v&&(p.memoizedState=o,st=!0),p=p.queue,du(Xy.bind(null,s,p,t),[t]),p.getSnapshot!==r||v||lt!==null&<.memoizedState.tag&1){if(s.flags|=2048,Fa(9,{destroy:void 0},Ky.bind(null,s,p,o,r),null),$e===null)throw Error(i(349));m||(Vn&127)!==0||Wy(s,r,o)}return o}function Wy(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=ve.updateQueue,r===null?(r=Ho(),ve.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function Ky(t,r,o,s){r.value=o,r.getSnapshot=s,Zy(r)&&Qy(t)}function Xy(t,r,o){return o(function(){Zy(r)&&Qy(t)})}function Zy(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!Wt(t,o)}catch{return!0}}function Qy(t){var r=Hr(t,2);r!==null&&Gt(r,t,2)}function uu(t){var r=Ct();if(typeof t=="function"){var o=t;if(t=o(),Jr){Xe(!0);try{o()}finally{Xe(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:t},r}function Jy(t,r,o,s){return t.baseState=o,lu(t,qe,typeof s=="function"?s:Yn)}function C0(t,r,o,s,p){if(Ko(t))throw Error(i(485));if(t=r.action,t!==null){var m={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};G.T!==null?o(!0):m.isTransition=!1,s(m),o=r.pending,o===null?(m.next=r.pending=m,eE(r,m)):(m.next=o.next,r.pending=o.next=m)}}function eE(t,r){var o=r.action,s=r.payload,p=t.state;if(r.isTransition){var m=G.T,v={};G.T=v;try{var R=o(p,s),L=G.S;L!==null&&L(v,R),tE(t,r,R)}catch(P){cu(t,r,P)}finally{m!==null&&v.types!==null&&(m.types=v.types),G.T=m}}else try{m=o(p,s),tE(t,r,m)}catch(P){cu(t,r,P)}}function tE(t,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(s){nE(t,r,s)},function(s){return cu(t,r,s)}):nE(t,r,o)}function nE(t,r,o){r.status="fulfilled",r.value=o,rE(r),t.state=o,r=t.pending,r!==null&&(o=r.next,o===r?t.pending=null:(o=o.next,r.next=o,eE(t,o)))}function cu(t,r,o){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=o,rE(r),r=r.next;while(r!==s)}t.action=null}function rE(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function aE(t,r){return r}function iE(t,r){if(De){var o=$e.formState;if(o!==null){e:{var s=ve;if(De){if(We){t:{for(var p=We,m=gn;p.nodeType!==8;){if(!m){p=null;break t}if(p=hn(p.nextSibling),p===null){p=null;break t}}m=p.data,p=m==="F!"||m==="F"?p:null}if(p){We=hn(p.nextSibling),s=p.data==="F!";break e}}pr(s)}s=!1}s&&(r=o[0])}}return o=Ct(),o.memoizedState=o.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aE,lastRenderedState:r},o.queue=s,o=AE.bind(null,ve,s),s.dispatch=o,s=uu(!1),m=hu.bind(null,ve,!1,s.queue),s=Ct(),p={state:r,dispatch:null,action:t,pending:null},s.queue=p,o=C0.bind(null,ve,p,m,o),p.dispatch=o,s.memoizedState=t,[r,o,!1]}function oE(t){var r=at();return lE(r,qe,t)}function lE(t,r,o){if(r=lu(t,r,aE)[0],t=Vo(Yn)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Ii(r)}catch(v){throw v===Oa?Uo:v}else s=r;r=at();var p=r.queue,m=p.dispatch;return o!==r.memoizedState&&(ve.flags|=2048,Fa(9,{destroy:void 0},I0.bind(null,p,o),null)),[s,m,t]}function I0(t,r){t.action=r}function sE(t){var r=at(),o=qe;if(o!==null)return lE(r,o,t);at(),r=r.memoizedState,o=at();var s=o.queue.dispatch;return o.memoizedState=t,[r,s,!1]}function Fa(t,r,o,s){return t={tag:t,create:o,deps:s,inst:r,next:null},r=ve.updateQueue,r===null&&(r=Ho(),ve.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=t.next=t:(s=o.next,o.next=t,t.next=s,r.lastEffect=t),t}function uE(){return at().memoizedState}function Yo(t,r,o,s){var p=Ct();ve.flags|=t,p.memoizedState=Fa(1|r,{destroy:void 0},o,s===void 0?null:s)}function Wo(t,r,o,s){var p=at();s=s===void 0?null:s;var m=p.memoizedState.inst;qe!==null&&s!==null&&tu(s,qe.memoizedState.deps)?p.memoizedState=Fa(r,m,o,s):(ve.flags|=t,p.memoizedState=Fa(1|r,m,o,s))}function cE(t,r){Yo(8390656,8,t,r)}function du(t,r){Wo(2048,8,t,r)}function O0(t){ve.flags|=4;var r=ve.updateQueue;if(r===null)r=Ho(),ve.updateQueue=r,r.events=[t];else{var o=r.events;o===null?r.events=[t]:o.push(t)}}function dE(t){var r=at().memoizedState;return O0({ref:r,nextImpl:t}),function(){if((Fe&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function pE(t,r){return Wo(4,2,t,r)}function fE(t,r){return Wo(4,4,t,r)}function gE(t,r){if(typeof r=="function"){t=t();var o=r(t);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function mE(t,r,o){o=o!=null?o.concat([t]):null,Wo(4,4,gE.bind(null,r,t),o)}function pu(){}function hE(t,r){var o=at();r=r===void 0?null:r;var s=o.memoizedState;return r!==null&&tu(r,s[1])?s[0]:(o.memoizedState=[t,r],t)}function bE(t,r){var o=at();r=r===void 0?null:r;var s=o.memoizedState;if(r!==null&&tu(r,s[1]))return s[0];if(s=t(),Jr){Xe(!0);try{t()}finally{Xe(!1)}}return o.memoizedState=[s,r],s}function fu(t,r,o){return o===void 0||(Vn&1073741824)!==0&&(ke&261930)===0?t.memoizedState=r:(t.memoizedState=o,t=yS(),ve.lanes|=t,vr|=t,o)}function yE(t,r,o,s){return Wt(o,r)?o:La.current!==null?(t=fu(t,o,s),Wt(t,r)||(st=!0),t):(Vn&42)===0||(Vn&1073741824)!==0&&(ke&261930)===0?(st=!0,t.memoizedState=o):(t=yS(),ve.lanes|=t,vr|=t,r)}function EE(t,r,o,s,p){var m=ee.p;ee.p=m!==0&&8>m?m:8;var v=G.T,R={};G.T=R,hu(t,!1,r,o);try{var L=p(),P=G.S;if(P!==null&&P(R,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var X=N0(L,s);Oi(t,r,X,en(t))}else Oi(t,r,s,en(t))}catch(J){Oi(t,r,{then:function(){},status:"rejected",reason:J},en())}finally{ee.p=m,v!==null&&R.types!==null&&(v.types=R.types),G.T=v}}function D0(){}function gu(t,r,o,s){if(t.tag!==5)throw Error(i(476));var p=SE(t).queue;EE(t,p,r,ae,o===null?D0:function(){return vE(t),o(s)})}function SE(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:ae},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:o},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function vE(t){var r=SE(t);r.next===null&&(r=t.alternate.memoizedState),Oi(t,r.next.queue,{},en())}function mu(){return vt(Ki)}function xE(){return at().memoizedState}function TE(){return at().memoizedState}function L0(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var o=en();t=mr(o);var s=hr(r,t,o);s!==null&&(Gt(s,r,o),Ni(s,r,o)),r={cache:Hs()},t.payload=r;return}r=r.return}}function M0(t,r,o){var s=en();o={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ko(t)?_E(r,o):(o=Ds(t,r,o,s),o!==null&&(Gt(o,t,s),RE(o,r,s)))}function AE(t,r,o){var s=en();Oi(t,r,o,s)}function Oi(t,r,o,s){var p={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ko(t))_E(r,p);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var v=r.lastRenderedState,R=m(v,o);if(p.hasEagerState=!0,p.eagerState=R,Wt(R,v))return ko(t,r,p,0),$e===null&&wo(),!1}catch{}finally{}if(o=Ds(t,r,p,s),o!==null)return Gt(o,t,s),RE(o,r,s),!0}return!1}function hu(t,r,o,s){if(s={lane:2,revertLane:Wu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ko(t)){if(r)throw Error(i(479))}else r=Ds(t,o,s,2),r!==null&&Gt(r,t,2)}function Ko(t){var r=t.alternate;return t===ve||r!==null&&r===ve}function _E(t,r){Ma=Po=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function RE(t,r,o){if((o&4194048)!==0){var s=r.lanes;s&=t.pendingLanes,o|=s,r.lanes=o,Ib(t,o)}}var Di={readContext:vt,use:$o,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};Di.useEffectEvent=et;var NE={readContext:vt,use:$o,useCallback:function(t,r){return Ct().memoizedState=[t,r===void 0?null:r],t},useContext:vt,useEffect:cE,useImperativeHandle:function(t,r,o){o=o!=null?o.concat([t]):null,Yo(4194308,4,gE.bind(null,r,t),o)},useLayoutEffect:function(t,r){return Yo(4194308,4,t,r)},useInsertionEffect:function(t,r){Yo(4,2,t,r)},useMemo:function(t,r){var o=Ct();r=r===void 0?null:r;var s=t();if(Jr){Xe(!0);try{t()}finally{Xe(!1)}}return o.memoizedState=[s,r],s},useReducer:function(t,r,o){var s=Ct();if(o!==void 0){var p=o(r);if(Jr){Xe(!0);try{o(r)}finally{Xe(!1)}}}else p=r;return s.memoizedState=s.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},s.queue=t,t=t.dispatch=M0.bind(null,ve,t),[s.memoizedState,t]},useRef:function(t){var r=Ct();return t={current:t},r.memoizedState=t},useState:function(t){t=uu(t);var r=t.queue,o=AE.bind(null,ve,r);return r.dispatch=o,[t.memoizedState,o]},useDebugValue:pu,useDeferredValue:function(t,r){var o=Ct();return fu(o,t,r)},useTransition:function(){var t=uu(!1);return t=EE.bind(null,ve,t.queue,!0,!1),Ct().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,o){var s=ve,p=Ct();if(De){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),$e===null)throw Error(i(349));(ke&127)!==0||Wy(s,r,o)}p.memoizedState=o;var m={value:o,getSnapshot:r};return p.queue=m,cE(Xy.bind(null,s,m,t),[t]),s.flags|=2048,Fa(9,{destroy:void 0},Ky.bind(null,s,m,o,r),null),o},useId:function(){var t=Ct(),r=$e.identifierPrefix;if(De){var o=In,s=Cn;o=(s&~(1<<32-Be(s)-1)).toString(32)+o,r="_"+r+"R_"+o,o=Go++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=w0++,r="_"+r+"r_"+o.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:mu,useFormState:iE,useActionState:iE,useOptimistic:function(t){var r=Ct();r.memoizedState=r.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=hu.bind(null,ve,!0,o),o.dispatch=r,[t,r]},useMemoCache:ou,useCacheRefresh:function(){return Ct().memoizedState=L0.bind(null,ve)},useEffectEvent:function(t){var r=Ct(),o={impl:t};return r.memoizedState=o,function(){if((Fe&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},bu={readContext:vt,use:$o,useCallback:hE,useContext:vt,useEffect:du,useImperativeHandle:mE,useInsertionEffect:pE,useLayoutEffect:fE,useMemo:bE,useReducer:Vo,useRef:uE,useState:function(){return Vo(Yn)},useDebugValue:pu,useDeferredValue:function(t,r){var o=at();return yE(o,qe.memoizedState,t,r)},useTransition:function(){var t=Vo(Yn)[0],r=at().memoizedState;return[typeof t=="boolean"?t:Ii(t),r]},useSyncExternalStore:Yy,useId:xE,useHostTransitionStatus:mu,useFormState:oE,useActionState:oE,useOptimistic:function(t,r){var o=at();return Jy(o,qe,t,r)},useMemoCache:ou,useCacheRefresh:TE};bu.useEffectEvent=dE;var wE={readContext:vt,use:$o,useCallback:hE,useContext:vt,useEffect:du,useImperativeHandle:mE,useInsertionEffect:pE,useLayoutEffect:fE,useMemo:bE,useReducer:su,useRef:uE,useState:function(){return su(Yn)},useDebugValue:pu,useDeferredValue:function(t,r){var o=at();return qe===null?fu(o,t,r):yE(o,qe.memoizedState,t,r)},useTransition:function(){var t=su(Yn)[0],r=at().memoizedState;return[typeof t=="boolean"?t:Ii(t),r]},useSyncExternalStore:Yy,useId:xE,useHostTransitionStatus:mu,useFormState:sE,useActionState:sE,useOptimistic:function(t,r){var o=at();return qe!==null?Jy(o,qe,t,r):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:ou,useCacheRefresh:TE};wE.useEffectEvent=dE;function yu(t,r,o,s){r=t.memoizedState,o=o(s,r),o=o==null?r:h({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Eu={enqueueSetState:function(t,r,o){t=t._reactInternals;var s=en(),p=mr(s);p.payload=r,o!=null&&(p.callback=o),r=hr(t,p,s),r!==null&&(Gt(r,t,s),Ni(r,t,s))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var s=en(),p=mr(s);p.tag=1,p.payload=r,o!=null&&(p.callback=o),r=hr(t,p,s),r!==null&&(Gt(r,t,s),Ni(r,t,s))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=en(),s=mr(o);s.tag=2,r!=null&&(s.callback=r),r=hr(t,s,o),r!==null&&(Gt(r,t,o),Ni(r,t,o))}};function kE(t,r,o,s,p,m,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,m,v):r.prototype&&r.prototype.isPureReactComponent?!Ei(o,s)||!Ei(p,m):!0}function CE(t,r,o,s){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,s),r.state!==t&&Eu.enqueueReplaceState(r,r.state,null)}function ea(t,r){var o=r;if("ref"in r){o={};for(var s in r)s!=="ref"&&(o[s]=r[s])}if(t=t.defaultProps){o===r&&(o=h({},o));for(var p in t)o[p]===void 0&&(o[p]=t[p])}return o}function IE(t){No(t)}function OE(t){console.error(t)}function DE(t){No(t)}function Xo(t,r){try{var o=t.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function LE(t,r,o){try{var s=t.onCaughtError;s(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Su(t,r,o){return o=mr(o),o.tag=3,o.payload={element:null},o.callback=function(){Xo(t,r)},o}function ME(t){return t=mr(t),t.tag=3,t}function UE(t,r,o,s){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var m=s.value;t.payload=function(){return p(m)},t.callback=function(){LE(r,o,s)}}var v=o.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){LE(r,o,s),typeof p!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var R=s.stack;this.componentDidCatch(s.value,{componentStack:R!==null?R:""})})}function U0(t,r,o,s,p){if(o.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=o.alternate,r!==null&&ka(r,o,p,!0),o=Xt.current,o!==null){switch(o.tag){case 31:case 13:return mn===null?sl():o.alternate===null&&tt===0&&(tt=3),o.flags&=-257,o.flags|=65536,o.lanes=p,s===Fo?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([s]):r.add(s),$u(t,s,p)),!1;case 22:return o.flags|=65536,s===Fo?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([s]):o.add(s)),$u(t,s,p)),!1}throw Error(i(435,o.tag))}return $u(t,s,p),sl(),!1}if(De)return r=Xt.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,s!==js&&(t=Error(i(422),{cause:s}),xi(dn(t,o)))):(s!==js&&(r=Error(i(423),{cause:s}),xi(dn(r,o))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,s=dn(s,o),p=Su(t.stateNode,s,p),Xs(t,p),tt!==4&&(tt=2)),!1;var m=Error(i(520),{cause:s});if(m=dn(m,o),qi===null?qi=[m]:qi.push(m),tt!==4&&(tt=2),r===null)return!0;s=dn(s,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,t=p&-p,o.lanes|=t,t=Su(o.stateNode,s,t),Xs(o,t),!1;case 1:if(r=o.type,m=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(xr===null||!xr.has(m))))return o.flags|=65536,p&=-p,o.lanes|=p,p=ME(p),UE(p,t,o,s),Xs(o,p),!1}o=o.return}while(o!==null);return!1}var vu=Error(i(461)),st=!1;function xt(t,r,o,s){r.child=t===null?zy(r,null,o,s):Qr(r,t.child,o,s)}function FE(t,r,o,s,p){o=o.render;var m=r.ref;if("ref"in s){var v={};for(var R in s)R!=="ref"&&(v[R]=s[R])}else v=s;return Wr(r),s=nu(t,r,o,v,m,p),R=ru(),t!==null&&!st?(au(t,r,p),Wn(t,r,p)):(De&&R&&Fs(r),r.flags|=1,xt(t,r,s,p),r.child)}function BE(t,r,o,s,p){if(t===null){var m=o.type;return typeof m=="function"&&!Ls(m)&&m.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=m,jE(t,r,m,s,p)):(t=Io(o.type,null,s,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!ku(t,p)){var v=m.memoizedProps;if(o=o.compare,o=o!==null?o:Ei,o(v,s)&&t.ref===r.ref)return Wn(t,r,p)}return r.flags|=1,t=Pn(m,s),t.ref=r.ref,t.return=r,r.child=t}function jE(t,r,o,s,p){if(t!==null){var m=t.memoizedProps;if(Ei(m,s)&&t.ref===r.ref)if(st=!1,r.pendingProps=s=m,ku(t,p))(t.flags&131072)!==0&&(st=!0);else return r.lanes=t.lanes,Wn(t,r,p)}return xu(t,r,o,s,p)}function zE(t,r,o,s){var p=s.children,m=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((r.flags&128)!==0){if(m=m!==null?m.baseLanes|o:o,t!==null){for(s=r.child=t.child,p=0;s!==null;)p=p|s.lanes|s.childLanes,s=s.sibling;s=p&~m}else s=0,r.child=null;return qE(t,r,m,o,s)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Mo(r,m!==null?m.cachePool:null),m!==null?Gy(r,m):Qs(),Hy(r);else return s=r.lanes=536870912,qE(t,r,m!==null?m.baseLanes|o:o,o,s)}else m!==null?(Mo(r,m.cachePool),Gy(r,m),yr(),r.memoizedState=null):(t!==null&&Mo(r,null),Qs(),yr());return xt(t,r,p,o),r.child}function Li(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function qE(t,r,o,s,p){var m=Vs();return m=m===null?null:{parent:ot._currentValue,pool:m},r.memoizedState={baseLanes:o,cachePool:m},t!==null&&Mo(r,null),Qs(),Hy(r),t!==null&&ka(t,r,s,!0),r.childLanes=p,null}function Zo(t,r){return r=Jo({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function PE(t,r,o){return Qr(r,t.child,null,o),t=Zo(r,r.pendingProps),t.flags|=2,Zt(r),r.memoizedState=null,t}function F0(t,r,o){var s=r.pendingProps,p=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(De){if(s.mode==="hidden")return t=Zo(r,s),r.lanes=536870912,Li(null,t);if(eu(r),(t=We)?(t=ev(t,gn),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:cr!==null?{id:Cn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},o=_y(t),o.return=r,r.child=o,St=r,We=null)):t=null,t===null)throw pr(r);return r.lanes=536870912,null}return Zo(r,s)}var m=t.memoizedState;if(m!==null){var v=m.dehydrated;if(eu(r),p)if(r.flags&256)r.flags&=-257,r=PE(t,r,o);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(i(558));else if(st||ka(t,r,o,!1),p=(o&t.childLanes)!==0,st||p){if(s=$e,s!==null&&(v=Ob(s,o),v!==0&&v!==m.retryLane))throw m.retryLane=v,Hr(t,v),Gt(s,t,v),vu;sl(),r=PE(t,r,o)}else t=m.treeContext,We=hn(v.nextSibling),St=r,De=!0,dr=null,gn=!1,t!==null&&wy(r,t),r=Zo(r,s),r.flags|=4096;return r}return t=Pn(t.child,{mode:s.mode,children:s.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Qo(t,r){var o=r.ref;if(o===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(r.flags|=4194816)}}function xu(t,r,o,s,p){return Wr(r),o=nu(t,r,o,s,void 0,p),s=ru(),t!==null&&!st?(au(t,r,p),Wn(t,r,p)):(De&&s&&Fs(r),r.flags|=1,xt(t,r,o,p),r.child)}function GE(t,r,o,s,p,m){return Wr(r),r.updateQueue=null,o=Vy(r,s,o,p),$y(t),s=ru(),t!==null&&!st?(au(t,r,m),Wn(t,r,m)):(De&&s&&Fs(r),r.flags|=1,xt(t,r,o,m),r.child)}function HE(t,r,o,s,p){if(Wr(r),r.stateNode===null){var m=_a,v=o.contextType;typeof v=="object"&&v!==null&&(m=vt(v)),m=new o(s,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Eu,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=s,m.state=r.memoizedState,m.refs={},Ws(r),v=o.contextType,m.context=typeof v=="object"&&v!==null?vt(v):_a,m.state=r.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(yu(r,o,v,s),m.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&Eu.enqueueReplaceState(m,m.state,null),ki(r,s,m,p),wi(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(t===null){m=r.stateNode;var R=r.memoizedProps,L=ea(o,R);m.props=L;var P=m.context,X=o.contextType;v=_a,typeof X=="object"&&X!==null&&(v=vt(X));var J=o.getDerivedStateFromProps;X=typeof J=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=r.pendingProps!==R,X||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||P!==v)&&CE(r,m,s,v),gr=!1;var $=r.memoizedState;m.state=$,ki(r,s,m,p),wi(),P=r.memoizedState,R||$!==P||gr?(typeof J=="function"&&(yu(r,o,J,s),P=r.memoizedState),(L=gr||kE(r,o,L,s,$,P,v))?(X||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=P),m.props=s,m.state=P,m.context=v,s=L):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{m=r.stateNode,Ks(t,r),v=r.memoizedProps,X=ea(o,v),m.props=X,J=r.pendingProps,$=m.context,P=o.contextType,L=_a,typeof P=="object"&&P!==null&&(L=vt(P)),R=o.getDerivedStateFromProps,(P=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==J||$!==L)&&CE(r,m,s,L),gr=!1,$=r.memoizedState,m.state=$,ki(r,s,m,p),wi();var Y=r.memoizedState;v!==J||$!==Y||gr||t!==null&&t.dependencies!==null&&Do(t.dependencies)?(typeof R=="function"&&(yu(r,o,R,s),Y=r.memoizedState),(X=gr||kE(r,o,X,s,$,Y,L)||t!==null&&t.dependencies!==null&&Do(t.dependencies))?(P||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,Y,L),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,Y,L)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=Y),m.props=s,m.state=Y,m.context=L,s=X):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(r.flags|=1024),s=!1)}return m=s,Qo(t,r),s=(r.flags&128)!==0,m||s?(m=r.stateNode,o=s&&typeof o.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&s?(r.child=Qr(r,t.child,null,p),r.child=Qr(r,null,o,p)):xt(t,r,o,p),r.memoizedState=m.state,t=r.child):t=Wn(t,r,p),t}function $E(t,r,o,s){return Vr(),r.flags|=256,xt(t,r,o,s),r.child}var Tu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Au(t){return{baseLanes:t,cachePool:Ly()}}function _u(t,r,o){return t=t!==null?t.childLanes&~o:0,r&&(t|=Jt),t}function VE(t,r,o){var s=r.pendingProps,p=!1,m=(r.flags&128)!==0,v;if((v=m)||(v=t!==null&&t.memoizedState===null?!1:(rt.current&2)!==0),v&&(p=!0,r.flags&=-129),v=(r.flags&32)!==0,r.flags&=-33,t===null){if(De){if(p?br(r):yr(),(t=We)?(t=ev(t,gn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:cr!==null?{id:Cn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},o=_y(t),o.return=r,r.child=o,St=r,We=null)):t=null,t===null)throw pr(r);return lc(t)?r.lanes=32:r.lanes=536870912,null}var R=s.children;return s=s.fallback,p?(yr(),p=r.mode,R=Jo({mode:"hidden",children:R},p),s=$r(s,p,o,null),R.return=r,s.return=r,R.sibling=s,r.child=R,s=r.child,s.memoizedState=Au(o),s.childLanes=_u(t,v,o),r.memoizedState=Tu,Li(null,s)):(br(r),Ru(r,R))}var L=t.memoizedState;if(L!==null&&(R=L.dehydrated,R!==null)){if(m)r.flags&256?(br(r),r.flags&=-257,r=Nu(t,r,o)):r.memoizedState!==null?(yr(),r.child=t.child,r.flags|=128,r=null):(yr(),R=s.fallback,p=r.mode,s=Jo({mode:"visible",children:s.children},p),R=$r(R,p,o,null),R.flags|=2,s.return=r,R.return=r,s.sibling=R,r.child=s,Qr(r,t.child,null,o),s=r.child,s.memoizedState=Au(o),s.childLanes=_u(t,v,o),r.memoizedState=Tu,r=Li(null,s));else if(br(r),lc(R)){if(v=R.nextSibling&&R.nextSibling.dataset,v)var P=v.dgst;v=P,s=Error(i(419)),s.stack="",s.digest=v,xi({value:s,source:null,stack:null}),r=Nu(t,r,o)}else if(st||ka(t,r,o,!1),v=(o&t.childLanes)!==0,st||v){if(v=$e,v!==null&&(s=Ob(v,o),s!==0&&s!==L.retryLane))throw L.retryLane=s,Hr(t,s),Gt(v,t,s),vu;oc(R)||sl(),r=Nu(t,r,o)}else oc(R)?(r.flags|=192,r.child=t.child,r=null):(t=L.treeContext,We=hn(R.nextSibling),St=r,De=!0,dr=null,gn=!1,t!==null&&wy(r,t),r=Ru(r,s.children),r.flags|=4096);return r}return p?(yr(),R=s.fallback,p=r.mode,L=t.child,P=L.sibling,s=Pn(L,{mode:"hidden",children:s.children}),s.subtreeFlags=L.subtreeFlags&65011712,P!==null?R=Pn(P,R):(R=$r(R,p,o,null),R.flags|=2),R.return=r,s.return=r,s.sibling=R,r.child=s,Li(null,s),s=r.child,R=t.child.memoizedState,R===null?R=Au(o):(p=R.cachePool,p!==null?(L=ot._currentValue,p=p.parent!==L?{parent:L,pool:L}:p):p=Ly(),R={baseLanes:R.baseLanes|o,cachePool:p}),s.memoizedState=R,s.childLanes=_u(t,v,o),r.memoizedState=Tu,Li(t.child,s)):(br(r),o=t.child,t=o.sibling,o=Pn(o,{mode:"visible",children:s.children}),o.return=r,o.sibling=null,t!==null&&(v=r.deletions,v===null?(r.deletions=[t],r.flags|=16):v.push(t)),r.child=o,r.memoizedState=null,o)}function Ru(t,r){return r=Jo({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Jo(t,r){return t=Kt(22,t,null,r),t.lanes=0,t}function Nu(t,r,o){return Qr(r,t.child,null,o),t=Ru(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function YE(t,r,o){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r),Ps(t.return,r,o)}function wu(t,r,o,s,p,m){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:p,treeForkCount:m}:(v.isBackwards=r,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=o,v.tailMode=p,v.treeForkCount=m)}function WE(t,r,o){var s=r.pendingProps,p=s.revealOrder,m=s.tail;s=s.children;var v=rt.current,R=(v&2)!==0;if(R?(v=v&1|2,r.flags|=128):v&=1,k(rt,v),xt(t,r,s,o),s=De?vi:0,!R&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&YE(t,o,r);else if(t.tag===19)YE(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(p){case"forwards":for(o=r.child,p=null;o!==null;)t=o.alternate,t!==null&&qo(t)===null&&(p=o),o=o.sibling;o=p,o===null?(p=r.child,r.child=null):(p=o.sibling,o.sibling=null),wu(r,!1,p,o,m,s);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&qo(t)===null){r.child=p;break}t=p.sibling,p.sibling=o,o=p,p=t}wu(r,!0,o,null,m,s);break;case"together":wu(r,!1,null,null,void 0,s);break;default:r.memoizedState=null}return r.child}function Wn(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),vr|=r.lanes,(o&r.childLanes)===0)if(t!==null){if(ka(t,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=Pn(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=Pn(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function ku(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Do(t)))}function B0(t,r,o){switch(r.tag){case 3:Ie(r,r.stateNode.containerInfo),fr(r,ot,t.memoizedState.cache),Vr();break;case 27:case 5:it(r);break;case 4:Ie(r,r.stateNode.containerInfo);break;case 10:fr(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,eu(r),null;break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(br(r),r.flags|=128,null):(o&r.child.childLanes)!==0?VE(t,r,o):(br(r),t=Wn(t,r,o),t!==null?t.sibling:null);br(r);break;case 19:var p=(t.flags&128)!==0;if(s=(o&r.childLanes)!==0,s||(ka(t,r,o,!1),s=(o&r.childLanes)!==0),p){if(s)return WE(t,r,o);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),k(rt,rt.current),s)break;return null;case 22:return r.lanes=0,zE(t,r,o,r.pendingProps);case 24:fr(r,ot,t.memoizedState.cache)}return Wn(t,r,o)}function KE(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps)st=!0;else{if(!ku(t,o)&&(r.flags&128)===0)return st=!1,B0(t,r,o);st=(t.flags&131072)!==0}else st=!1,De&&(r.flags&1048576)!==0&&Ny(r,vi,r.index);switch(r.lanes=0,r.tag){case 16:e:{var s=r.pendingProps;if(t=Xr(r.elementType),r.type=t,typeof t=="function")Ls(t)?(s=ea(t,s),r.tag=1,r=HE(null,r,t,s,o)):(r.tag=0,r=xu(null,r,t,s,o));else{if(t!=null){var p=t.$$typeof;if(p===D){r.tag=11,r=FE(null,r,t,s,o);break e}else if(p===M){r.tag=14,r=BE(null,r,t,s,o);break e}}throw r=oe(t)||t,Error(i(306,r,""))}}return r;case 0:return xu(t,r,r.type,r.pendingProps,o);case 1:return s=r.type,p=ea(s,r.pendingProps),HE(t,r,s,p,o);case 3:e:{if(Ie(r,r.stateNode.containerInfo),t===null)throw Error(i(387));s=r.pendingProps;var m=r.memoizedState;p=m.element,Ks(t,r),ki(r,s,null,o);var v=r.memoizedState;if(s=v.cache,fr(r,ot,s),s!==m.cache&&Gs(r,[ot],o,!0),wi(),s=v.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:v.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=$E(t,r,s,o);break e}else if(s!==p){p=dn(Error(i(424)),r),xi(p),r=$E(t,r,s,o);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(We=hn(t.firstChild),St=r,De=!0,dr=null,gn=!0,o=zy(r,null,s,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Vr(),s===p){r=Wn(t,r,o);break e}xt(t,r,s,o)}r=r.child}return r;case 26:return Qo(t,r),t===null?(o=ov(r.type,null,r.pendingProps,null))?r.memoizedState=o:De||(o=r.type,t=r.pendingProps,s=ml(ce.current).createElement(o),s[Et]=r,s[Ft]=t,Tt(s,o,t),gt(s),r.stateNode=s):r.memoizedState=ov(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return it(r),t===null&&De&&(s=r.stateNode=rv(r.type,r.pendingProps,ce.current),St=r,gn=!0,p=We,Rr(r.type)?(sc=p,We=hn(s.firstChild)):We=p),xt(t,r,r.pendingProps.children,o),Qo(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&De&&((p=s=We)&&(s=gI(s,r.type,r.pendingProps,gn),s!==null?(r.stateNode=s,St=r,We=hn(s.firstChild),gn=!1,p=!0):p=!1),p||pr(r)),it(r),p=r.type,m=r.pendingProps,v=t!==null?t.memoizedProps:null,s=m.children,rc(p,m)?s=null:v!==null&&rc(p,v)&&(r.flags|=32),r.memoizedState!==null&&(p=nu(t,r,k0,null,null,o),Ki._currentValue=p),Qo(t,r),xt(t,r,s,o),r.child;case 6:return t===null&&De&&((t=o=We)&&(o=mI(o,r.pendingProps,gn),o!==null?(r.stateNode=o,St=r,We=null,t=!0):t=!1),t||pr(r)),null;case 13:return VE(t,r,o);case 4:return Ie(r,r.stateNode.containerInfo),s=r.pendingProps,t===null?r.child=Qr(r,null,s,o):xt(t,r,s,o),r.child;case 11:return FE(t,r,r.type,r.pendingProps,o);case 7:return xt(t,r,r.pendingProps,o),r.child;case 8:return xt(t,r,r.pendingProps.children,o),r.child;case 12:return xt(t,r,r.pendingProps.children,o),r.child;case 10:return s=r.pendingProps,fr(r,r.type,s.value),xt(t,r,s.children,o),r.child;case 9:return p=r.type._context,s=r.pendingProps.children,Wr(r),p=vt(p),s=s(p),r.flags|=1,xt(t,r,s,o),r.child;case 14:return BE(t,r,r.type,r.pendingProps,o);case 15:return jE(t,r,r.type,r.pendingProps,o);case 19:return WE(t,r,o);case 31:return F0(t,r,o);case 22:return zE(t,r,o,r.pendingProps);case 24:return Wr(r),s=vt(ot),t===null?(p=Vs(),p===null&&(p=$e,m=Hs(),p.pooledCache=m,m.refCount++,m!==null&&(p.pooledCacheLanes|=o),p=m),r.memoizedState={parent:s,cache:p},Ws(r),fr(r,ot,p)):((t.lanes&o)!==0&&(Ks(t,r),ki(r,null,null,o),wi()),p=t.memoizedState,m=r.memoizedState,p.parent!==s?(p={parent:s,cache:s},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),fr(r,ot,s)):(s=m.cache,fr(r,ot,s),s!==p.cache&&Gs(r,[ot],o,!0))),xt(t,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function Kn(t){t.flags|=4}function Cu(t,r,o,s,p){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(p&335544128)===p)if(t.stateNode.complete)t.flags|=8192;else if(xS())t.flags|=8192;else throw Zr=Fo,Ys}else t.flags&=-16777217}function XE(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!dv(r))if(xS())t.flags|=8192;else throw Zr=Fo,Ys}function el(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?kb():536870912,t.lanes|=r,qa|=r)}function Mi(t,r){if(!De)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Ke(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,s=0;if(r)for(var p=t.child;p!==null;)o|=p.lanes|p.childLanes,s|=p.subtreeFlags&65011712,s|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)o|=p.lanes|p.childLanes,s|=p.subtreeFlags,s|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=s,t.childLanes=o,r}function j0(t,r,o){var s=r.pendingProps;switch(Bs(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(r),null;case 1:return Ke(r),null;case 3:return o=r.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),$n(ot),we(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(wa(r)?Kn(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,zs())),Ke(r),null;case 26:var p=r.type,m=r.memoizedState;return t===null?(Kn(r),m!==null?(Ke(r),XE(r,m)):(Ke(r),Cu(r,p,null,s,o))):m?m!==t.memoizedState?(Kn(r),Ke(r),XE(r,m)):(Ke(r),r.flags&=-16777217):(t=t.memoizedProps,t!==s&&Kn(r),Ke(r),Cu(r,p,t,s,o)),null;case 27:if(ft(r),o=ce.current,p=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Kn(r);else{if(!s){if(r.stateNode===null)throw Error(i(166));return Ke(r),null}t=re.current,wa(r)?ky(r):(t=rv(p,s,o),r.stateNode=t,Kn(r))}return Ke(r),null;case 5:if(ft(r),p=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Kn(r);else{if(!s){if(r.stateNode===null)throw Error(i(166));return Ke(r),null}if(m=re.current,wa(r))ky(r);else{var v=ml(ce.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?m.multiple=!0:s.size&&(m.size=s.size);break;default:m=typeof s.is=="string"?v.createElement(p,{is:s.is}):v.createElement(p)}}m[Et]=r,m[Ft]=s;e:for(v=r.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===r)break e;for(;v.sibling===null;){if(v.return===null||v.return===r)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}r.stateNode=m;e:switch(Tt(m,p,s),p){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Kn(r)}}return Ke(r),Cu(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,o),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==s&&Kn(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(i(166));if(t=ce.current,wa(r)){if(t=r.stateNode,o=r.memoizedProps,s=null,p=St,p!==null)switch(p.tag){case 27:case 5:s=p.memoizedProps}t[Et]=r,t=!!(t.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||VS(t.nodeValue,o)),t||pr(r,!0)}else t=ml(t).createTextNode(s),t[Et]=r,r.stateNode=t}return Ke(r),null;case 31:if(o=r.memoizedState,t===null||t.memoizedState!==null){if(s=wa(r),o!==null){if(t===null){if(!s)throw Error(i(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[Et]=r}else Vr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ke(r),t=!1}else o=zs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),t=!0;if(!t)return r.flags&256?(Zt(r),r):(Zt(r),null);if((r.flags&128)!==0)throw Error(i(558))}return Ke(r),null;case 13:if(s=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=wa(r),s!==null&&s.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[Et]=r}else Vr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ke(r),p=!1}else p=zs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(Zt(r),r):(Zt(r),null)}return Zt(r),(r.flags&128)!==0?(r.lanes=o,r):(o=s!==null,t=t!==null&&t.memoizedState!==null,o&&(s=r.child,p=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(p=s.alternate.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==p&&(s.flags|=2048)),o!==t&&o&&(r.child.flags|=8192),el(r,r.updateQueue),Ke(r),null);case 4:return we(),t===null&&Qu(r.stateNode.containerInfo),Ke(r),null;case 10:return $n(r.type),Ke(r),null;case 19:if(V(rt),s=r.memoizedState,s===null)return Ke(r),null;if(p=(r.flags&128)!==0,m=s.rendering,m===null)if(p)Mi(s,!1);else{if(tt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(m=qo(t),m!==null){for(r.flags|=128,Mi(s,!1),t=m.updateQueue,r.updateQueue=t,el(r,t),r.subtreeFlags=0,t=o,o=r.child;o!==null;)Ay(o,t),o=o.sibling;return k(rt,rt.current&1|2),De&&Gn(r,s.treeForkCount),r.child}t=t.sibling}s.tail!==null&&Qe()>il&&(r.flags|=128,p=!0,Mi(s,!1),r.lanes=4194304)}else{if(!p)if(t=qo(m),t!==null){if(r.flags|=128,p=!0,t=t.updateQueue,r.updateQueue=t,el(r,t),Mi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!m.alternate&&!De)return Ke(r),null}else 2*Qe()-s.renderingStartTime>il&&o!==536870912&&(r.flags|=128,p=!0,Mi(s,!1),r.lanes=4194304);s.isBackwards?(m.sibling=r.child,r.child=m):(t=s.last,t!==null?t.sibling=m:r.child=m,s.last=m)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,o=rt.current,k(rt,p?o&1|2:o&1),De&&Gn(r,s.treeForkCount),t):(Ke(r),null);case 22:case 23:return Zt(r),Js(),s=r.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(o&536870912)!==0&&(r.flags&128)===0&&(Ke(r),r.subtreeFlags&6&&(r.flags|=8192)):Ke(r),o=r.updateQueue,o!==null&&el(r,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==o&&(r.flags|=2048),t!==null&&V(Kr),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),$n(ot),Ke(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function z0(t,r){switch(Bs(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return $n(ot),we(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return ft(r),null;case 31:if(r.memoizedState!==null){if(Zt(r),r.alternate===null)throw Error(i(340));Vr()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(Zt(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Vr()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return V(rt),null;case 4:return we(),null;case 10:return $n(r.type),null;case 22:case 23:return Zt(r),Js(),t!==null&&V(Kr),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return $n(ot),null;case 25:return null;default:return null}}function ZE(t,r){switch(Bs(r),r.tag){case 3:$n(ot),we();break;case 26:case 27:case 5:ft(r);break;case 4:we();break;case 31:r.memoizedState!==null&&Zt(r);break;case 13:Zt(r);break;case 19:V(rt);break;case 10:$n(r.type);break;case 22:case 23:Zt(r),Js(),t!==null&&V(Kr);break;case 24:$n(ot)}}function Ui(t,r){try{var o=r.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var p=s.next;o=p;do{if((o.tag&t)===t){s=void 0;var m=o.create,v=o.inst;s=m(),v.destroy=s}o=o.next}while(o!==p)}}catch(R){ze(r,r.return,R)}}function Er(t,r,o){try{var s=r.updateQueue,p=s!==null?s.lastEffect:null;if(p!==null){var m=p.next;s=m;do{if((s.tag&t)===t){var v=s.inst,R=v.destroy;if(R!==void 0){v.destroy=void 0,p=r;var L=o,P=R;try{P()}catch(X){ze(p,L,X)}}}s=s.next}while(s!==m)}}catch(X){ze(r,r.return,X)}}function QE(t){var r=t.updateQueue;if(r!==null){var o=t.stateNode;try{Py(r,o)}catch(s){ze(t,t.return,s)}}}function JE(t,r,o){o.props=ea(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(s){ze(t,r,s)}}function Fi(t,r){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof o=="function"?t.refCleanup=o(s):o.current=s}}catch(p){ze(t,r,p)}}function On(t,r){var o=t.ref,s=t.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(p){ze(t,r,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){ze(t,r,p)}else o.current=null}function eS(t){var r=t.type,o=t.memoizedProps,s=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(p){ze(t,t.return,p)}}function Iu(t,r,o){try{var s=t.stateNode;sI(s,t.type,o,r),s[Ft]=r}catch(p){ze(t,t.return,p)}}function tS(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Rr(t.type)||t.tag===4}function Ou(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||tS(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Rr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Du(t,r,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(t),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=zn));else if(s!==4&&(s===27&&Rr(t.type)&&(o=t.stateNode,r=null),t=t.child,t!==null))for(Du(t,r,o),t=t.sibling;t!==null;)Du(t,r,o),t=t.sibling}function tl(t,r,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(s!==4&&(s===27&&Rr(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(tl(t,r,o),t=t.sibling;t!==null;)tl(t,r,o),t=t.sibling}function nS(t){var r=t.stateNode,o=t.memoizedProps;try{for(var s=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Tt(r,s,o),r[Et]=t,r[Ft]=o}catch(m){ze(t,t.return,m)}}var Xn=!1,ut=!1,Lu=!1,rS=typeof WeakSet=="function"?WeakSet:Set,mt=null;function q0(t,r){if(t=t.containerInfo,tc=xl,t=my(t),Ns(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var p=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var v=0,R=-1,L=-1,P=0,X=0,J=t,$=null;t:for(;;){for(var Y;J!==o||p!==0&&J.nodeType!==3||(R=v+p),J!==m||s!==0&&J.nodeType!==3||(L=v+s),J.nodeType===3&&(v+=J.nodeValue.length),(Y=J.firstChild)!==null;)$=J,J=Y;for(;;){if(J===t)break t;if($===o&&++P===p&&(R=v),$===m&&++X===s&&(L=v),(Y=J.nextSibling)!==null)break;J=$,$=J.parentNode}J=Y}o=R===-1||L===-1?null:{start:R,end:L}}else o=null}o=o||{start:0,end:0}}else o=null;for(nc={focusedElem:t,selectionRange:o},xl=!1,mt=r;mt!==null;)if(r=mt,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,mt=t;else for(;mt!==null;){switch(r=mt,m=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(o=0;o<t.length;o++)p=t[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,o=r,p=m.memoizedProps,m=m.memoizedState,s=o.stateNode;try{var pe=ea(o.type,p);t=s.getSnapshotBeforeUpdate(pe,m),s.__reactInternalSnapshotBeforeUpdate=t}catch(ye){ze(o,o.return,ye)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,o=t.nodeType,o===9)ic(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ic(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=r.sibling,t!==null){t.return=r.return,mt=t;break}mt=r.return}}function aS(t,r,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:Qn(t,o),s&4&&Ui(5,o);break;case 1:if(Qn(t,o),s&4)if(t=o.stateNode,r===null)try{t.componentDidMount()}catch(v){ze(o,o.return,v)}else{var p=ea(o.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(v){ze(o,o.return,v)}}s&64&&QE(o),s&512&&Fi(o,o.return);break;case 3:if(Qn(t,o),s&64&&(t=o.updateQueue,t!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{Py(t,r)}catch(v){ze(o,o.return,v)}}break;case 27:r===null&&s&4&&nS(o);case 26:case 5:Qn(t,o),r===null&&s&4&&eS(o),s&512&&Fi(o,o.return);break;case 12:Qn(t,o);break;case 31:Qn(t,o),s&4&&lS(t,o);break;case 13:Qn(t,o),s&4&&sS(t,o),s&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=X0.bind(null,o),hI(t,o))));break;case 22:if(s=o.memoizedState!==null||Xn,!s){r=r!==null&&r.memoizedState!==null||ut,p=Xn;var m=ut;Xn=s,(ut=r)&&!m?Jn(t,o,(o.subtreeFlags&8772)!==0):Qn(t,o),Xn=p,ut=m}break;case 30:break;default:Qn(t,o)}}function iS(t){var r=t.alternate;r!==null&&(t.alternate=null,iS(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&cs(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ze=null,jt=!1;function Zn(t,r,o){for(o=o.child;o!==null;)oS(t,r,o),o=o.sibling}function oS(t,r,o){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(nt,o)}catch{}switch(o.tag){case 26:ut||On(o,r),Zn(t,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:ut||On(o,r);var s=Ze,p=jt;Rr(o.type)&&(Ze=o.stateNode,jt=!1),Zn(t,r,o),Vi(o.stateNode),Ze=s,jt=p;break;case 5:ut||On(o,r);case 6:if(s=Ze,p=jt,Ze=null,Zn(t,r,o),Ze=s,jt=p,Ze!==null)if(jt)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(o.stateNode)}catch(m){ze(o,r,m)}else try{Ze.removeChild(o.stateNode)}catch(m){ze(o,r,m)}break;case 18:Ze!==null&&(jt?(t=Ze,QS(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),Ka(t)):QS(Ze,o.stateNode));break;case 4:s=Ze,p=jt,Ze=o.stateNode.containerInfo,jt=!0,Zn(t,r,o),Ze=s,jt=p;break;case 0:case 11:case 14:case 15:Er(2,o,r),ut||Er(4,o,r),Zn(t,r,o);break;case 1:ut||(On(o,r),s=o.stateNode,typeof s.componentWillUnmount=="function"&&JE(o,r,s)),Zn(t,r,o);break;case 21:Zn(t,r,o);break;case 22:ut=(s=ut)||o.memoizedState!==null,Zn(t,r,o),ut=s;break;default:Zn(t,r,o)}}function lS(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ka(t)}catch(o){ze(r,r.return,o)}}}function sS(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ka(t)}catch(o){ze(r,r.return,o)}}function P0(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new rS),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new rS),r;default:throw Error(i(435,t.tag))}}function nl(t,r){var o=P0(t);r.forEach(function(s){if(!o.has(s)){o.add(s);var p=Z0.bind(null,t,s);s.then(p,p)}})}function zt(t,r){var o=r.deletions;if(o!==null)for(var s=0;s<o.length;s++){var p=o[s],m=t,v=r,R=v;e:for(;R!==null;){switch(R.tag){case 27:if(Rr(R.type)){Ze=R.stateNode,jt=!1;break e}break;case 5:Ze=R.stateNode,jt=!1;break e;case 3:case 4:Ze=R.stateNode.containerInfo,jt=!0;break e}R=R.return}if(Ze===null)throw Error(i(160));oS(m,v,p),Ze=null,jt=!1,m=p.alternate,m!==null&&(m.return=null),p.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)uS(r,t),r=r.sibling}var Tn=null;function uS(t,r){var o=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:zt(r,t),qt(t),s&4&&(Er(3,t,t.return),Ui(3,t),Er(5,t,t.return));break;case 1:zt(r,t),qt(t),s&512&&(ut||o===null||On(o,o.return)),s&64&&Xn&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?s:o.concat(s))));break;case 26:var p=Tn;if(zt(r,t),qt(t),s&512&&(ut||o===null||On(o,o.return)),s&4){var m=o!==null?o.memoizedState:null;if(s=t.memoizedState,o===null)if(s===null)if(t.stateNode===null){e:{s=t.type,o=t.memoizedProps,p=p.ownerDocument||p;t:switch(s){case"title":m=p.getElementsByTagName("title")[0],(!m||m[ci]||m[Et]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=p.createElement(s),p.head.insertBefore(m,p.querySelector("head > title"))),Tt(m,s,o),m[Et]=t,gt(m),s=m;break e;case"link":var v=uv("link","href",p).get(s+(o.href||""));if(v){for(var R=0;R<v.length;R++)if(m=v[R],m.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&m.getAttribute("rel")===(o.rel==null?null:o.rel)&&m.getAttribute("title")===(o.title==null?null:o.title)&&m.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){v.splice(R,1);break t}}m=p.createElement(s),Tt(m,s,o),p.head.appendChild(m);break;case"meta":if(v=uv("meta","content",p).get(s+(o.content||""))){for(R=0;R<v.length;R++)if(m=v[R],m.getAttribute("content")===(o.content==null?null:""+o.content)&&m.getAttribute("name")===(o.name==null?null:o.name)&&m.getAttribute("property")===(o.property==null?null:o.property)&&m.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&m.getAttribute("charset")===(o.charSet==null?null:o.charSet)){v.splice(R,1);break t}}m=p.createElement(s),Tt(m,s,o),p.head.appendChild(m);break;default:throw Error(i(468,s))}m[Et]=t,gt(m),s=m}t.stateNode=s}else cv(p,t.type,t.stateNode);else t.stateNode=sv(p,s,t.memoizedProps);else m!==s?(m===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):m.count--,s===null?cv(p,t.type,t.stateNode):sv(p,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Iu(t,t.memoizedProps,o.memoizedProps)}break;case 27:zt(r,t),qt(t),s&512&&(ut||o===null||On(o,o.return)),o!==null&&s&4&&Iu(t,t.memoizedProps,o.memoizedProps);break;case 5:if(zt(r,t),qt(t),s&512&&(ut||o===null||On(o,o.return)),t.flags&32){p=t.stateNode;try{ya(p,"")}catch(pe){ze(t,t.return,pe)}}s&4&&t.stateNode!=null&&(p=t.memoizedProps,Iu(t,p,o!==null?o.memoizedProps:p)),s&1024&&(Lu=!0);break;case 6:if(zt(r,t),qt(t),s&4){if(t.stateNode===null)throw Error(i(162));s=t.memoizedProps,o=t.stateNode;try{o.nodeValue=s}catch(pe){ze(t,t.return,pe)}}break;case 3:if(yl=null,p=Tn,Tn=hl(r.containerInfo),zt(r,t),Tn=p,qt(t),s&4&&o!==null&&o.memoizedState.isDehydrated)try{Ka(r.containerInfo)}catch(pe){ze(t,t.return,pe)}Lu&&(Lu=!1,cS(t));break;case 4:s=Tn,Tn=hl(t.stateNode.containerInfo),zt(r,t),qt(t),Tn=s;break;case 12:zt(r,t),qt(t);break;case 31:zt(r,t),qt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,nl(t,s)));break;case 13:zt(r,t),qt(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(al=Qe()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,nl(t,s)));break;case 22:p=t.memoizedState!==null;var L=o!==null&&o.memoizedState!==null,P=Xn,X=ut;if(Xn=P||p,ut=X||L,zt(r,t),ut=X,Xn=P,qt(t),s&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(o===null||L||Xn||ut||ta(t)),o=null,r=t;;){if(r.tag===5||r.tag===26){if(o===null){L=o=r;try{if(m=L.stateNode,p)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{R=L.stateNode;var J=L.memoizedProps.style,$=J!=null&&J.hasOwnProperty("display")?J.display:null;R.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(pe){ze(L,L.return,pe)}}}else if(r.tag===6){if(o===null){L=r;try{L.stateNode.nodeValue=p?"":L.memoizedProps}catch(pe){ze(L,L.return,pe)}}}else if(r.tag===18){if(o===null){L=r;try{var Y=L.stateNode;p?JS(Y,!0):JS(L.stateNode,!1)}catch(pe){ze(L,L.return,pe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=t.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,nl(t,o))));break;case 19:zt(r,t),qt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,nl(t,s)));break;case 30:break;case 21:break;default:zt(r,t),qt(t)}}function qt(t){var r=t.flags;if(r&2){try{for(var o,s=t.return;s!==null;){if(tS(s)){o=s;break}s=s.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var p=o.stateNode,m=Ou(t);tl(t,m,p);break;case 5:var v=o.stateNode;o.flags&32&&(ya(v,""),o.flags&=-33);var R=Ou(t);tl(t,R,v);break;case 3:case 4:var L=o.stateNode.containerInfo,P=Ou(t);Du(t,P,L);break;default:throw Error(i(161))}}catch(X){ze(t,t.return,X)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function cS(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;cS(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Qn(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)aS(t,r.alternate,r),r=r.sibling}function ta(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Er(4,r,r.return),ta(r);break;case 1:On(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&JE(r,r.return,o),ta(r);break;case 27:Vi(r.stateNode);case 26:case 5:On(r,r.return),ta(r);break;case 22:r.memoizedState===null&&ta(r);break;case 30:ta(r);break;default:ta(r)}t=t.sibling}}function Jn(t,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var s=r.alternate,p=t,m=r,v=m.flags;switch(m.tag){case 0:case 11:case 15:Jn(p,m,o),Ui(4,m);break;case 1:if(Jn(p,m,o),s=m,p=s.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(P){ze(s,s.return,P)}if(s=m,p=s.updateQueue,p!==null){var R=s.stateNode;try{var L=p.shared.hiddenCallbacks;if(L!==null)for(p.shared.hiddenCallbacks=null,p=0;p<L.length;p++)qy(L[p],R)}catch(P){ze(s,s.return,P)}}o&&v&64&&QE(m),Fi(m,m.return);break;case 27:nS(m);case 26:case 5:Jn(p,m,o),o&&s===null&&v&4&&eS(m),Fi(m,m.return);break;case 12:Jn(p,m,o);break;case 31:Jn(p,m,o),o&&v&4&&lS(p,m);break;case 13:Jn(p,m,o),o&&v&4&&sS(p,m);break;case 22:m.memoizedState===null&&Jn(p,m,o),Fi(m,m.return);break;case 30:break;default:Jn(p,m,o)}r=r.sibling}}function Mu(t,r){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&Ti(o))}function Uu(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Ti(t))}function An(t,r,o,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)dS(t,r,o,s),r=r.sibling}function dS(t,r,o,s){var p=r.flags;switch(r.tag){case 0:case 11:case 15:An(t,r,o,s),p&2048&&Ui(9,r);break;case 1:An(t,r,o,s);break;case 3:An(t,r,o,s),p&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Ti(t)));break;case 12:if(p&2048){An(t,r,o,s),t=r.stateNode;try{var m=r.memoizedProps,v=m.id,R=m.onPostCommit;typeof R=="function"&&R(v,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(L){ze(r,r.return,L)}}else An(t,r,o,s);break;case 31:An(t,r,o,s);break;case 13:An(t,r,o,s);break;case 23:break;case 22:m=r.stateNode,v=r.alternate,r.memoizedState!==null?m._visibility&2?An(t,r,o,s):Bi(t,r):m._visibility&2?An(t,r,o,s):(m._visibility|=2,Ba(t,r,o,s,(r.subtreeFlags&10256)!==0||!1)),p&2048&&Mu(v,r);break;case 24:An(t,r,o,s),p&2048&&Uu(r.alternate,r);break;default:An(t,r,o,s)}}function Ba(t,r,o,s,p){for(p=p&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var m=t,v=r,R=o,L=s,P=v.flags;switch(v.tag){case 0:case 11:case 15:Ba(m,v,R,L,p),Ui(8,v);break;case 23:break;case 22:var X=v.stateNode;v.memoizedState!==null?X._visibility&2?Ba(m,v,R,L,p):Bi(m,v):(X._visibility|=2,Ba(m,v,R,L,p)),p&&P&2048&&Mu(v.alternate,v);break;case 24:Ba(m,v,R,L,p),p&&P&2048&&Uu(v.alternate,v);break;default:Ba(m,v,R,L,p)}r=r.sibling}}function Bi(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=t,s=r,p=s.flags;switch(s.tag){case 22:Bi(o,s),p&2048&&Mu(s.alternate,s);break;case 24:Bi(o,s),p&2048&&Uu(s.alternate,s);break;default:Bi(o,s)}r=r.sibling}}var ji=8192;function ja(t,r,o){if(t.subtreeFlags&ji)for(t=t.child;t!==null;)pS(t,r,o),t=t.sibling}function pS(t,r,o){switch(t.tag){case 26:ja(t,r,o),t.flags&ji&&t.memoizedState!==null&&wI(o,Tn,t.memoizedState,t.memoizedProps);break;case 5:ja(t,r,o);break;case 3:case 4:var s=Tn;Tn=hl(t.stateNode.containerInfo),ja(t,r,o),Tn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=ji,ji=16777216,ja(t,r,o),ji=s):ja(t,r,o));break;default:ja(t,r,o)}}function fS(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function zi(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var s=r[o];mt=s,mS(s,t)}fS(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gS(t),t=t.sibling}function gS(t){switch(t.tag){case 0:case 11:case 15:zi(t),t.flags&2048&&Er(9,t,t.return);break;case 3:zi(t);break;case 12:zi(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,rl(t)):zi(t);break;default:zi(t)}}function rl(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var s=r[o];mt=s,mS(s,t)}fS(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Er(8,r,r.return),rl(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,rl(r));break;default:rl(r)}t=t.sibling}}function mS(t,r){for(;mt!==null;){var o=mt;switch(o.tag){case 0:case 11:case 15:Er(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var s=o.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Ti(o.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,mt=s;else e:for(o=t;mt!==null;){s=mt;var p=s.sibling,m=s.return;if(iS(s),s===o){mt=null;break e}if(p!==null){p.return=m,mt=p;break e}mt=m}}}var G0={getCacheForType:function(t){var r=vt(ot),o=r.data.get(t);return o===void 0&&(o=t(),r.data.set(t,o)),o},cacheSignal:function(){return vt(ot).controller.signal}},H0=typeof WeakMap=="function"?WeakMap:Map,Fe=0,$e=null,_e=null,ke=0,je=0,Qt=null,Sr=!1,za=!1,Fu=!1,er=0,tt=0,vr=0,na=0,Bu=0,Jt=0,qa=0,qi=null,Pt=null,ju=!1,al=0,hS=0,il=1/0,ol=null,xr=null,dt=0,Tr=null,Pa=null,tr=0,zu=0,qu=null,bS=null,Pi=0,Pu=null;function en(){return(Fe&2)!==0&&ke!==0?ke&-ke:G.T!==null?Wu():Db()}function yS(){if(Jt===0)if((ke&536870912)===0||De){var t=wn;wn<<=1,(wn&3932160)===0&&(wn=262144),Jt=t}else Jt=536870912;return t=Xt.current,t!==null&&(t.flags|=32),Jt}function Gt(t,r,o){(t===$e&&(je===2||je===9)||t.cancelPendingCommit!==null)&&(Ga(t,0),Ar(t,ke,Jt,!1)),ui(t,o),((Fe&2)===0||t!==$e)&&(t===$e&&((Fe&2)===0&&(na|=o),tt===4&&Ar(t,ke,Jt,!1)),Dn(t))}function ES(t,r,o){if((Fe&6)!==0)throw Error(i(327));var s=!o&&(r&127)===0&&(r&t.expiredLanes)===0||lr(t,r),p=s?Y0(t,r):Hu(t,r,!0),m=s;do{if(p===0){za&&!s&&Ar(t,r,0,!1);break}else{if(o=t.current.alternate,m&&!$0(o)){p=Hu(t,r,!1),m=!1;continue}if(p===2){if(m=r,t.errorRecoveryDisabledLanes&m)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){r=v;e:{var R=t;p=qi;var L=R.current.memoizedState.isDehydrated;if(L&&(Ga(R,v).flags|=256),v=Hu(R,v,!1),v!==2){if(Fu&&!L){R.errorRecoveryDisabledLanes|=m,na|=m,p=4;break e}m=Pt,Pt=p,m!==null&&(Pt===null?Pt=m:Pt.push.apply(Pt,m))}p=v}if(m=!1,p!==2)continue}}if(p===1){Ga(t,0),Ar(t,r,0,!0);break}e:{switch(s=t,m=p,m){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:Ar(s,r,Jt,!Sr);break e;case 2:Pt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(p=al+300-Qe(),10<p)){if(Ar(s,r,Jt,!Sr),jr(s,0,!0)!==0)break e;tr=r,s.timeoutHandle=XS(SS.bind(null,s,o,Pt,ol,ju,r,Jt,na,qa,Sr,m,"Throttled",-0,0),p);break e}SS(s,o,Pt,ol,ju,r,Jt,na,qa,Sr,m,null,-0,0)}}break}while(!0);Dn(t)}function SS(t,r,o,s,p,m,v,R,L,P,X,J,$,Y){if(t.timeoutHandle=-1,J=r.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zn},pS(r,m,J);var pe=(m&62914560)===m?al-Qe():(m&4194048)===m?hS-Qe():0;if(pe=kI(J,pe),pe!==null){tr=m,t.cancelPendingCommit=pe(wS.bind(null,t,r,m,o,s,p,v,R,L,X,J,null,$,Y)),Ar(t,m,v,!P);return}}wS(t,r,m,o,s,p,v,R,L)}function $0(t){for(var r=t;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var s=0;s<o.length;s++){var p=o[s],m=p.getSnapshot;p=p.value;try{if(!Wt(m(),p))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ar(t,r,o,s){r&=~Bu,r&=~na,t.suspendedLanes|=r,t.pingedLanes&=~r,s&&(t.warmLanes|=r),s=t.expirationTimes;for(var p=r;0<p;){var m=31-Be(p),v=1<<m;s[m]=-1,p&=~v}o!==0&&Cb(t,o,r)}function ll(){return(Fe&6)===0?(Gi(0),!1):!0}function Gu(){if(_e!==null){if(je===0)var t=_e.return;else t=_e,Hn=Yr=null,iu(t),Da=null,_i=0,t=_e;for(;t!==null;)ZE(t.alternate,t),t=t.return;_e=null}}function Ga(t,r){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,dI(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),tr=0,Gu(),$e=t,_e=o=Pn(t.current,null),ke=r,je=0,Qt=null,Sr=!1,za=lr(t,r),Fu=!1,qa=Jt=Bu=na=vr=tt=0,Pt=qi=null,ju=!1,(r&8)!==0&&(r|=r&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=r;0<s;){var p=31-Be(s),m=1<<p;r|=t[p],s&=~m}return er=r,wo(),o}function vS(t,r){ve=null,G.H=Di,r===Oa||r===Uo?(r=Fy(),je=3):r===Ys?(r=Fy(),je=4):je=r===vu?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Qt=r,_e===null&&(tt=1,Xo(t,dn(r,t.current)))}function xS(){var t=Xt.current;return t===null?!0:(ke&4194048)===ke?mn===null:(ke&62914560)===ke||(ke&536870912)!==0?t===mn:!1}function TS(){var t=G.H;return G.H=Di,t===null?Di:t}function AS(){var t=G.A;return G.A=G0,t}function sl(){tt=4,Sr||(ke&4194048)!==ke&&Xt.current!==null||(za=!0),(vr&134217727)===0&&(na&134217727)===0||$e===null||Ar($e,ke,Jt,!1)}function Hu(t,r,o){var s=Fe;Fe|=2;var p=TS(),m=AS();($e!==t||ke!==r)&&(ol=null,Ga(t,r)),r=!1;var v=tt;e:do try{if(je!==0&&_e!==null){var R=_e,L=Qt;switch(je){case 8:Gu(),v=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(r=!0);var P=je;if(je=0,Qt=null,Ha(t,R,L,P),o&&za){v=0;break e}break;default:P=je,je=0,Qt=null,Ha(t,R,L,P)}}V0(),v=tt;break}catch(X){vS(t,X)}while(!0);return r&&t.shellSuspendCounter++,Hn=Yr=null,Fe=s,G.H=p,G.A=m,_e===null&&($e=null,ke=0,wo()),v}function V0(){for(;_e!==null;)_S(_e)}function Y0(t,r){var o=Fe;Fe|=2;var s=TS(),p=AS();$e!==t||ke!==r?(ol=null,il=Qe()+500,Ga(t,r)):za=lr(t,r);e:do try{if(je!==0&&_e!==null){r=_e;var m=Qt;t:switch(je){case 1:je=0,Qt=null,Ha(t,r,m,1);break;case 2:case 9:if(My(m)){je=0,Qt=null,RS(r);break}r=function(){je!==2&&je!==9||$e!==t||(je=7),Dn(t)},m.then(r,r);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:My(m)?(je=0,Qt=null,RS(r)):(je=0,Qt=null,Ha(t,r,m,7));break;case 5:var v=null;switch(_e.tag){case 26:v=_e.memoizedState;case 5:case 27:var R=_e;if(v?dv(v):R.stateNode.complete){je=0,Qt=null;var L=R.sibling;if(L!==null)_e=L;else{var P=R.return;P!==null?(_e=P,ul(P)):_e=null}break t}}je=0,Qt=null,Ha(t,r,m,5);break;case 6:je=0,Qt=null,Ha(t,r,m,6);break;case 8:Gu(),tt=6;break e;default:throw Error(i(462))}}W0();break}catch(X){vS(t,X)}while(!0);return Hn=Yr=null,G.H=s,G.A=p,Fe=o,_e!==null?0:($e=null,ke=0,wo(),tt)}function W0(){for(;_e!==null&&!Nn();)_S(_e)}function _S(t){var r=KE(t.alternate,t,er);t.memoizedProps=t.pendingProps,r===null?ul(t):_e=r}function RS(t){var r=t,o=r.alternate;switch(r.tag){case 15:case 0:r=GE(o,r,r.pendingProps,r.type,void 0,ke);break;case 11:r=GE(o,r,r.pendingProps,r.type.render,r.ref,ke);break;case 5:iu(r);default:ZE(o,r),r=_e=Ay(r,er),r=KE(o,r,er)}t.memoizedProps=t.pendingProps,r===null?ul(t):_e=r}function Ha(t,r,o,s){Hn=Yr=null,iu(r),Da=null,_i=0;var p=r.return;try{if(U0(t,p,r,o,ke)){tt=1,Xo(t,dn(o,t.current)),_e=null;return}}catch(m){if(p!==null)throw _e=p,m;tt=1,Xo(t,dn(o,t.current)),_e=null;return}r.flags&32768?(De||s===1?t=!0:za||(ke&536870912)!==0?t=!1:(Sr=t=!0,(s===2||s===9||s===3||s===6)&&(s=Xt.current,s!==null&&s.tag===13&&(s.flags|=16384))),NS(r,t)):ul(r)}function ul(t){var r=t;do{if((r.flags&32768)!==0){NS(r,Sr);return}t=r.return;var o=j0(r.alternate,r,er);if(o!==null){_e=o;return}if(r=r.sibling,r!==null){_e=r;return}_e=r=t}while(r!==null);tt===0&&(tt=5)}function NS(t,r){do{var o=z0(t.alternate,t);if(o!==null){o.flags&=32767,_e=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(t=t.sibling,t!==null)){_e=t;return}_e=t=o}while(t!==null);tt=6,_e=null}function wS(t,r,o,s,p,m,v,R,L){t.cancelPendingCommit=null;do cl();while(dt!==0);if((Fe&6)!==0)throw Error(i(327));if(r!==null){if(r===t.current)throw Error(i(177));if(m=r.lanes|r.childLanes,m|=Os,NC(t,o,m,v,R,L),t===$e&&(_e=$e=null,ke=0),Pa=r,Tr=t,tr=o,zu=m,qu=p,bS=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Q0(de,function(){return DS(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=G.T,G.T=null,p=ee.p,ee.p=2,v=Fe,Fe|=4;try{q0(t,r,o)}finally{Fe=v,ee.p=p,G.T=s}}dt=1,kS(),CS(),IS()}}function kS(){if(dt===1){dt=0;var t=Tr,r=Pa,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var s=ee.p;ee.p=2;var p=Fe;Fe|=4;try{uS(r,t);var m=nc,v=my(t.containerInfo),R=m.focusedElem,L=m.selectionRange;if(v!==R&&R&&R.ownerDocument&&gy(R.ownerDocument.documentElement,R)){if(L!==null&&Ns(R)){var P=L.start,X=L.end;if(X===void 0&&(X=P),"selectionStart"in R)R.selectionStart=P,R.selectionEnd=Math.min(X,R.value.length);else{var J=R.ownerDocument||document,$=J&&J.defaultView||window;if($.getSelection){var Y=$.getSelection(),pe=R.textContent.length,ye=Math.min(L.start,pe),Ge=L.end===void 0?ye:Math.min(L.end,pe);!Y.extend&&ye>Ge&&(v=Ge,Ge=ye,ye=v);var j=fy(R,ye),B=fy(R,Ge);if(j&&B&&(Y.rangeCount!==1||Y.anchorNode!==j.node||Y.anchorOffset!==j.offset||Y.focusNode!==B.node||Y.focusOffset!==B.offset)){var q=J.createRange();q.setStart(j.node,j.offset),Y.removeAllRanges(),ye>Ge?(Y.addRange(q),Y.extend(B.node,B.offset)):(q.setEnd(B.node,B.offset),Y.addRange(q))}}}}for(J=[],Y=R;Y=Y.parentNode;)Y.nodeType===1&&J.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<J.length;R++){var Z=J[R];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}xl=!!tc,nc=tc=null}finally{Fe=p,ee.p=s,G.T=o}}t.current=r,dt=2}}function CS(){if(dt===2){dt=0;var t=Tr,r=Pa,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var s=ee.p;ee.p=2;var p=Fe;Fe|=4;try{aS(t,r.alternate,r)}finally{Fe=p,ee.p=s,G.T=o}}dt=3}}function IS(){if(dt===4||dt===3){dt=0,Br();var t=Tr,r=Pa,o=tr,s=bS;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?dt=5:(dt=0,Pa=Tr=null,OS(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(xr=null),ss(o),r=r.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(nt,r,void 0,(r.current.flags&128)===128)}catch{}if(s!==null){r=G.T,p=ee.p,ee.p=2,G.T=null;try{for(var m=t.onRecoverableError,v=0;v<s.length;v++){var R=s[v];m(R.value,{componentStack:R.stack})}}finally{G.T=r,ee.p=p}}(tr&3)!==0&&cl(),Dn(t),p=t.pendingLanes,(o&261930)!==0&&(p&42)!==0?t===Pu?Pi++:(Pi=0,Pu=t):Pi=0,Gi(0)}}function OS(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Ti(r)))}function cl(){return kS(),CS(),IS(),DS()}function DS(){if(dt!==5)return!1;var t=Tr,r=zu;zu=0;var o=ss(tr),s=G.T,p=ee.p;try{ee.p=32>o?32:o,G.T=null,o=qu,qu=null;var m=Tr,v=tr;if(dt=0,Pa=Tr=null,tr=0,(Fe&6)!==0)throw Error(i(331));var R=Fe;if(Fe|=4,gS(m.current),dS(m,m.current,v,o),Fe=R,Gi(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(nt,m)}catch{}return!0}finally{ee.p=p,G.T=s,OS(t,r)}}function LS(t,r,o){r=dn(o,r),r=Su(t.stateNode,r,2),t=hr(t,r,2),t!==null&&(ui(t,2),Dn(t))}function ze(t,r,o){if(t.tag===3)LS(t,t,o);else for(;r!==null;){if(r.tag===3){LS(r,t,o);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(xr===null||!xr.has(s))){t=dn(o,t),o=ME(2),s=hr(r,o,2),s!==null&&(UE(o,s,r,t),ui(s,2),Dn(s));break}}r=r.return}}function $u(t,r,o){var s=t.pingCache;if(s===null){s=t.pingCache=new H0;var p=new Set;s.set(r,p)}else p=s.get(r),p===void 0&&(p=new Set,s.set(r,p));p.has(o)||(Fu=!0,p.add(o),t=K0.bind(null,t,r,o),r.then(t,t))}function K0(t,r,o){var s=t.pingCache;s!==null&&s.delete(r),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,$e===t&&(ke&o)===o&&(tt===4||tt===3&&(ke&62914560)===ke&&300>Qe()-al?(Fe&2)===0&&Ga(t,0):Bu|=o,qa===ke&&(qa=0)),Dn(t)}function MS(t,r){r===0&&(r=kb()),t=Hr(t,r),t!==null&&(ui(t,r),Dn(t))}function X0(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),MS(t,o)}function Z0(t,r){var o=0;switch(t.tag){case 31:case 13:var s=t.stateNode,p=t.memoizedState;p!==null&&(o=p.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(r),MS(t,o)}function Q0(t,r){return Mt(t,r)}var dl=null,$a=null,Vu=!1,pl=!1,Yu=!1,_r=0;function Dn(t){t!==$a&&t.next===null&&($a===null?dl=$a=t:$a=$a.next=t),pl=!0,Vu||(Vu=!0,eI())}function Gi(t,r){if(!Yu&&pl){Yu=!0;do for(var o=!1,s=dl;s!==null;){if(t!==0){var p=s.pendingLanes;if(p===0)var m=0;else{var v=s.suspendedLanes,R=s.pingedLanes;m=(1<<31-Be(42|t)+1)-1,m&=p&~(v&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(o=!0,jS(s,m))}else m=ke,m=jr(s,s===$e?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||lr(s,m)||(o=!0,jS(s,m));s=s.next}while(o);Yu=!1}}function J0(){US()}function US(){pl=Vu=!1;var t=0;_r!==0&&cI()&&(t=_r);for(var r=Qe(),o=null,s=dl;s!==null;){var p=s.next,m=FS(s,r);m===0?(s.next=null,o===null?dl=p:o.next=p,p===null&&($a=o)):(o=s,(t!==0||(m&3)!==0)&&(pl=!0)),s=p}dt!==0&&dt!==5||Gi(t),_r!==0&&(_r=0)}function FS(t,r){for(var o=t.suspendedLanes,s=t.pingedLanes,p=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var v=31-Be(m),R=1<<v,L=p[v];L===-1?((R&o)===0||(R&s)!==0)&&(p[v]=si(R,r)):L<=r&&(t.expiredLanes|=R),m&=~R}if(r=$e,o=ke,o=jr(t,t===r?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,o===0||t===r&&(je===2||je===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&Bn(s),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||lr(t,o)){if(r=o&-o,r===t.callbackPriority)return r;switch(s!==null&&Bn(s),ss(o)){case 2:case 8:o=ie;break;case 32:o=de;break;case 268435456:o=Oe;break;default:o=de}return s=BS.bind(null,t),o=Mt(o,s),t.callbackPriority=r,t.callbackNode=o,r}return s!==null&&s!==null&&Bn(s),t.callbackPriority=2,t.callbackNode=null,2}function BS(t,r){if(dt!==0&&dt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(cl()&&t.callbackNode!==o)return null;var s=ke;return s=jr(t,t===$e?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(ES(t,s,r),FS(t,Qe()),t.callbackNode!=null&&t.callbackNode===o?BS.bind(null,t):null)}function jS(t,r){if(cl())return null;ES(t,r,!0)}function eI(){pI(function(){(Fe&6)!==0?Mt(K,J0):US()})}function Wu(){if(_r===0){var t=Ca;t===0&&(t=Je,Je<<=1,(Je&261888)===0&&(Je=256)),_r=t}return _r}function zS(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:So(""+t)}function qS(t,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,t.id&&o.setAttribute("form",t.id),r.parentNode.insertBefore(o,r),t=new FormData(t),o.parentNode.removeChild(o),t}function tI(t,r,o,s,p){if(r==="submit"&&o&&o.stateNode===p){var m=zS((p[Ft]||null).action),v=s.submitter;v&&(r=(r=v[Ft]||null)?zS(r.formAction):v.getAttribute("formAction"),r!==null&&(m=r,v=null));var R=new Ao("action","action",null,s,p);t.push({event:R,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(_r!==0){var L=v?qS(p,v):new FormData(p);gu(o,{pending:!0,data:L,method:p.method,action:m},null,L)}}else typeof m=="function"&&(R.preventDefault(),L=v?qS(p,v):new FormData(p),gu(o,{pending:!0,data:L,method:p.method,action:m},m,L))},currentTarget:p}]})}}for(var Ku=0;Ku<Is.length;Ku++){var Xu=Is[Ku],nI=Xu.toLowerCase(),rI=Xu[0].toUpperCase()+Xu.slice(1);xn(nI,"on"+rI)}xn(yy,"onAnimationEnd"),xn(Ey,"onAnimationIteration"),xn(Sy,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(E0,"onTransitionRun"),xn(S0,"onTransitionStart"),xn(v0,"onTransitionCancel"),xn(vy,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),zr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zr("onBeforeInput",["compositionend","keypress","textInput","paste"]),zr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hi="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(" "),aI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hi));function PS(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var s=t[o],p=s.event;s=s.listeners;e:{var m=void 0;if(r)for(var v=s.length-1;0<=v;v--){var R=s[v],L=R.instance,P=R.currentTarget;if(R=R.listener,L!==m&&p.isPropagationStopped())break e;m=R,p.currentTarget=P;try{m(p)}catch(X){No(X)}p.currentTarget=null,m=L}else for(v=0;v<s.length;v++){if(R=s[v],L=R.instance,P=R.currentTarget,R=R.listener,L!==m&&p.isPropagationStopped())break e;m=R,p.currentTarget=P;try{m(p)}catch(X){No(X)}p.currentTarget=null,m=L}}}}function Re(t,r){var o=r[us];o===void 0&&(o=r[us]=new Set);var s=t+"__bubble";o.has(s)||(GS(r,t,2,!1),o.add(s))}function Zu(t,r,o){var s=0;r&&(s|=4),GS(o,t,s,r)}var fl="_reactListening"+Math.random().toString(36).slice(2);function Qu(t){if(!t[fl]){t[fl]=!0,Ub.forEach(function(o){o!=="selectionchange"&&(aI.has(o)||Zu(o,!1,t),Zu(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[fl]||(r[fl]=!0,Zu("selectionchange",!1,r))}}function GS(t,r,o,s){switch(yv(r)){case 2:var p=OI;break;case 8:p=DI;break;default:p=fc}o=p.bind(null,r,o,t),p=void 0,!ys||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),s?p!==void 0?t.addEventListener(r,o,{capture:!0,passive:p}):t.addEventListener(r,o,!0):p!==void 0?t.addEventListener(r,o,{passive:p}):t.addEventListener(r,o,!1)}function Ju(t,r,o,s,p){var m=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var R=s.stateNode.containerInfo;if(R===p)break;if(v===4)for(v=s.return;v!==null;){var L=v.tag;if((L===3||L===4)&&v.stateNode.containerInfo===p)return;v=v.return}for(;R!==null;){if(v=fa(R),v===null)return;if(L=v.tag,L===5||L===6||L===26||L===27){s=m=v;continue e}R=R.parentNode}}s=s.return}Wb(function(){var P=m,X=hs(o),J=[];e:{var $=xy.get(t);if($!==void 0){var Y=Ao,pe=t;switch(t){case"keypress":if(xo(o)===0)break e;case"keydown":case"keyup":Y=ZC;break;case"focusin":pe="focus",Y=xs;break;case"focusout":pe="blur",Y=xs;break;case"beforeblur":case"afterblur":Y=xs;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Zb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=jC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=e0;break;case yy:case Ey:case Sy:Y=PC;break;case vy:Y=n0;break;case"scroll":case"scrollend":Y=FC;break;case"wheel":Y=a0;break;case"copy":case"cut":case"paste":Y=HC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Jb;break;case"toggle":case"beforetoggle":Y=o0}var ye=(r&4)!==0,Ge=!ye&&(t==="scroll"||t==="scrollend"),j=ye?$!==null?$+"Capture":null:$;ye=[];for(var B=P,q;B!==null;){var Z=B;if(q=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||q===null||j===null||(Z=pi(B,j),Z!=null&&ye.push($i(B,Z,q))),Ge)break;B=B.return}0<ye.length&&($=new Y($,pe,null,o,X),J.push({event:$,listeners:ye}))}}if((r&7)===0){e:{if($=t==="mouseover"||t==="pointerover",Y=t==="mouseout"||t==="pointerout",$&&o!==ms&&(pe=o.relatedTarget||o.fromElement)&&(fa(pe)||pe[pa]))break e;if((Y||$)&&($=X.window===X?X:($=X.ownerDocument)?$.defaultView||$.parentWindow:window,Y?(pe=o.relatedTarget||o.toElement,Y=P,pe=pe?fa(pe):null,pe!==null&&(Ge=u(pe),ye=pe.tag,pe!==Ge||ye!==5&&ye!==27&&ye!==6)&&(pe=null)):(Y=null,pe=P),Y!==pe)){if(ye=Zb,Z="onMouseLeave",j="onMouseEnter",B="mouse",(t==="pointerout"||t==="pointerover")&&(ye=Jb,Z="onPointerLeave",j="onPointerEnter",B="pointer"),Ge=Y==null?$:di(Y),q=pe==null?$:di(pe),$=new ye(Z,B+"leave",Y,o,X),$.target=Ge,$.relatedTarget=q,Z=null,fa(X)===P&&(ye=new ye(j,B+"enter",pe,o,X),ye.target=q,ye.relatedTarget=Ge,Z=ye),Ge=Z,Y&&pe)t:{for(ye=iI,j=Y,B=pe,q=0,Z=j;Z;Z=ye(Z))q++;Z=0;for(var me=B;me;me=ye(me))Z++;for(;0<q-Z;)j=ye(j),q--;for(;0<Z-q;)B=ye(B),Z--;for(;q--;){if(j===B||B!==null&&j===B.alternate){ye=j;break t}j=ye(j),B=ye(B)}ye=null}else ye=null;Y!==null&&HS(J,$,Y,ye,!1),pe!==null&&Ge!==null&&HS(J,Ge,pe,ye,!0)}}e:{if($=P?di(P):window,Y=$.nodeName&&$.nodeName.toLowerCase(),Y==="select"||Y==="input"&&$.type==="file")var Me=ly;else if(iy($))if(sy)Me=h0;else{Me=g0;var ge=f0}else Y=$.nodeName,!Y||Y.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?P&&gs(P.elementType)&&(Me=ly):Me=m0;if(Me&&(Me=Me(t,P))){oy(J,Me,o,X);break e}ge&&ge(t,$,P),t==="focusout"&&P&&$.type==="number"&&P.memoizedProps.value!=null&&fs($,"number",$.value)}switch(ge=P?di(P):window,t){case"focusin":(iy(ge)||ge.contentEditable==="true")&&(xa=ge,ws=P,Si=null);break;case"focusout":Si=ws=xa=null;break;case"mousedown":ks=!0;break;case"contextmenu":case"mouseup":case"dragend":ks=!1,hy(J,o,X);break;case"selectionchange":if(y0)break;case"keydown":case"keyup":hy(J,o,X)}var xe;if(As)e:{switch(t){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else va?ry(t,o)&&(Ce="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(Ce="onCompositionStart");Ce&&(ey&&o.locale!=="ko"&&(va||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&va&&(xe=Kb()):(ur=X,Es="value"in ur?ur.value:ur.textContent,va=!0)),ge=gl(P,Ce),0<ge.length&&(Ce=new Qb(Ce,t,null,o,X),J.push({event:Ce,listeners:ge}),xe?Ce.data=xe:(xe=ay(o),xe!==null&&(Ce.data=xe)))),(xe=s0?u0(t,o):c0(t,o))&&(Ce=gl(P,"onBeforeInput"),0<Ce.length&&(ge=new Qb("onBeforeInput","beforeinput",null,o,X),J.push({event:ge,listeners:Ce}),ge.data=xe)),tI(J,t,P,o,X)}PS(J,r)})}function $i(t,r,o){return{instance:t,listener:r,currentTarget:o}}function gl(t,r){for(var o=r+"Capture",s=[];t!==null;){var p=t,m=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||m===null||(p=pi(t,o),p!=null&&s.unshift($i(t,p,m)),p=pi(t,r),p!=null&&s.push($i(t,p,m))),t.tag===3)return s;t=t.return}return[]}function iI(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function HS(t,r,o,s,p){for(var m=r._reactName,v=[];o!==null&&o!==s;){var R=o,L=R.alternate,P=R.stateNode;if(R=R.tag,L!==null&&L===s)break;R!==5&&R!==26&&R!==27||P===null||(L=P,p?(P=pi(o,m),P!=null&&v.unshift($i(o,P,L))):p||(P=pi(o,m),P!=null&&v.push($i(o,P,L)))),o=o.return}v.length!==0&&t.push({event:r,listeners:v})}var oI=/\r\n?/g,lI=/\u0000|\uFFFD/g;function $S(t){return(typeof t=="string"?t:""+t).replace(oI,`
|
|
49
|
-
`).replace(lI,"")}function VS(t,r){return r=$S(r),$S(t)===r}function Pe(t,r,o,s,p,m){switch(o){case"children":typeof s=="string"?r==="body"||r==="textarea"&&s===""||ya(t,s):(typeof s=="number"||typeof s=="bigint")&&r!=="body"&&ya(t,""+s);break;case"className":yo(t,"class",s);break;case"tabIndex":yo(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":yo(t,o,s);break;case"style":Vb(t,s,m);break;case"data":if(r!=="object"){yo(t,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||o!=="href")){t.removeAttribute(o);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}s=So(""+s),t.setAttribute(o,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(o==="formAction"?(r!=="input"&&Pe(t,r,"name",p.name,p,null),Pe(t,r,"formEncType",p.formEncType,p,null),Pe(t,r,"formMethod",p.formMethod,p,null),Pe(t,r,"formTarget",p.formTarget,p,null)):(Pe(t,r,"encType",p.encType,p,null),Pe(t,r,"method",p.method,p,null),Pe(t,r,"target",p.target,p,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}s=So(""+s),t.setAttribute(o,s);break;case"onClick":s!=null&&(t.onclick=zn);break;case"onScroll":s!=null&&Re("scroll",t);break;case"onScrollEnd":s!=null&&Re("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(o=s.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}o=So(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,""+s):t.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":s===!0?t.setAttribute(o,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,s):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(o,s):t.removeAttribute(o);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(o):t.setAttribute(o,s);break;case"popover":Re("beforetoggle",t),Re("toggle",t),bo(t,"popover",s);break;case"xlinkActuate":jn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":jn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":jn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":jn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":jn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":jn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":jn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":jn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":jn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":bo(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=MC.get(o)||o,bo(t,o,s))}}function ec(t,r,o,s,p,m){switch(o){case"style":Vb(t,s,m);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(o=s.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof s=="string"?ya(t,s):(typeof s=="number"||typeof s=="bigint")&&ya(t,""+s);break;case"onScroll":s!=null&&Re("scroll",t);break;case"onScrollEnd":s!=null&&Re("scrollend",t);break;case"onClick":s!=null&&(t.onclick=zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fb.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),r=o.slice(2,p?o.length-7:void 0),m=t[Ft]||null,m=m!=null?m[o]:null,typeof m=="function"&&t.removeEventListener(r,m,p),typeof s=="function")){typeof m!="function"&&m!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(r,s,p);break e}o in t?t[o]=s:s===!0?t.setAttribute(o,""):bo(t,o,s)}}}function Tt(t,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",t),Re("load",t);var s=!1,p=!1,m;for(m in o)if(o.hasOwnProperty(m)){var v=o[m];if(v!=null)switch(m){case"src":s=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Pe(t,r,m,v,o,null)}}p&&Pe(t,r,"srcSet",o.srcSet,o,null),s&&Pe(t,r,"src",o.src,o,null);return;case"input":Re("invalid",t);var R=m=v=p=null,L=null,P=null;for(s in o)if(o.hasOwnProperty(s)){var X=o[s];if(X!=null)switch(s){case"name":p=X;break;case"type":v=X;break;case"checked":L=X;break;case"defaultChecked":P=X;break;case"value":m=X;break;case"defaultValue":R=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,r));break;default:Pe(t,r,s,X,o,null)}}Pb(t,m,R,L,P,v,p,!1);return;case"select":Re("invalid",t),s=v=m=null;for(p in o)if(o.hasOwnProperty(p)&&(R=o[p],R!=null))switch(p){case"value":m=R;break;case"defaultValue":v=R;break;case"multiple":s=R;default:Pe(t,r,p,R,o,null)}r=m,o=v,t.multiple=!!s,r!=null?ba(t,!!s,r,!1):o!=null&&ba(t,!!s,o,!0);return;case"textarea":Re("invalid",t),m=p=s=null;for(v in o)if(o.hasOwnProperty(v)&&(R=o[v],R!=null))switch(v){case"value":s=R;break;case"defaultValue":p=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Pe(t,r,v,R,o,null)}Hb(t,s,p,m);return;case"option":for(L in o)if(o.hasOwnProperty(L)&&(s=o[L],s!=null))switch(L){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Pe(t,r,L,s,o,null)}return;case"dialog":Re("beforetoggle",t),Re("toggle",t),Re("cancel",t),Re("close",t);break;case"iframe":case"object":Re("load",t);break;case"video":case"audio":for(s=0;s<Hi.length;s++)Re(Hi[s],t);break;case"image":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"embed":case"source":case"link":Re("error",t),Re("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in o)if(o.hasOwnProperty(P)&&(s=o[P],s!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Pe(t,r,P,s,o,null)}return;default:if(gs(r)){for(X in o)o.hasOwnProperty(X)&&(s=o[X],s!==void 0&&ec(t,r,X,s,o,void 0));return}}for(R in o)o.hasOwnProperty(R)&&(s=o[R],s!=null&&Pe(t,r,R,s,o,null))}function sI(t,r,o,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,m=null,v=null,R=null,L=null,P=null,X=null;for(Y in o){var J=o[Y];if(o.hasOwnProperty(Y)&&J!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":L=J;default:s.hasOwnProperty(Y)||Pe(t,r,Y,null,s,J)}}for(var $ in s){var Y=s[$];if(J=o[$],s.hasOwnProperty($)&&(Y!=null||J!=null))switch($){case"type":m=Y;break;case"name":p=Y;break;case"checked":P=Y;break;case"defaultChecked":X=Y;break;case"value":v=Y;break;case"defaultValue":R=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,r));break;default:Y!==J&&Pe(t,r,$,Y,s,J)}}ps(t,v,R,L,P,X,m,p);return;case"select":Y=v=R=$=null;for(m in o)if(L=o[m],o.hasOwnProperty(m)&&L!=null)switch(m){case"value":break;case"multiple":Y=L;default:s.hasOwnProperty(m)||Pe(t,r,m,null,s,L)}for(p in s)if(m=s[p],L=o[p],s.hasOwnProperty(p)&&(m!=null||L!=null))switch(p){case"value":$=m;break;case"defaultValue":R=m;break;case"multiple":v=m;default:m!==L&&Pe(t,r,p,m,s,L)}r=R,o=v,s=Y,$!=null?ba(t,!!o,$,!1):!!s!=!!o&&(r!=null?ba(t,!!o,r,!0):ba(t,!!o,o?[]:"",!1));return;case"textarea":Y=$=null;for(R in o)if(p=o[R],o.hasOwnProperty(R)&&p!=null&&!s.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Pe(t,r,R,null,s,p)}for(v in s)if(p=s[v],m=o[v],s.hasOwnProperty(v)&&(p!=null||m!=null))switch(v){case"value":$=p;break;case"defaultValue":Y=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==m&&Pe(t,r,v,p,s,m)}Gb(t,$,Y);return;case"option":for(var pe in o)if($=o[pe],o.hasOwnProperty(pe)&&$!=null&&!s.hasOwnProperty(pe))switch(pe){case"selected":t.selected=!1;break;default:Pe(t,r,pe,null,s,$)}for(L in s)if($=s[L],Y=o[L],s.hasOwnProperty(L)&&$!==Y&&($!=null||Y!=null))switch(L){case"selected":t.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Pe(t,r,L,$,s,Y)}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 ye in o)$=o[ye],o.hasOwnProperty(ye)&&$!=null&&!s.hasOwnProperty(ye)&&Pe(t,r,ye,null,s,$);for(P in s)if($=s[P],Y=o[P],s.hasOwnProperty(P)&&$!==Y&&($!=null||Y!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,r));break;default:Pe(t,r,P,$,s,Y)}return;default:if(gs(r)){for(var Ge in o)$=o[Ge],o.hasOwnProperty(Ge)&&$!==void 0&&!s.hasOwnProperty(Ge)&&ec(t,r,Ge,void 0,s,$);for(X in s)$=s[X],Y=o[X],!s.hasOwnProperty(X)||$===Y||$===void 0&&Y===void 0||ec(t,r,X,$,s,Y);return}}for(var j in o)$=o[j],o.hasOwnProperty(j)&&$!=null&&!s.hasOwnProperty(j)&&Pe(t,r,j,null,s,$);for(J in s)$=s[J],Y=o[J],!s.hasOwnProperty(J)||$===Y||$==null&&Y==null||Pe(t,r,J,$,s,Y)}function YS(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uI(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,o=performance.getEntriesByType("resource"),s=0;s<o.length;s++){var p=o[s],m=p.transferSize,v=p.initiatorType,R=p.duration;if(m&&R&&YS(v)){for(v=0,R=p.responseEnd,s+=1;s<o.length;s++){var L=o[s],P=L.startTime;if(P>R)break;var X=L.transferSize,J=L.initiatorType;X&&YS(J)&&(L=L.responseEnd,v+=X*(L<R?1:(R-P)/(L-P)))}if(--s,r+=8*(m+v)/(p.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var tc=null,nc=null;function ml(t){return t.nodeType===9?t:t.ownerDocument}function WS(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function KS(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function rc(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var ac=null;function cI(){var t=window.event;return t&&t.type==="popstate"?t===ac?!1:(ac=t,!0):(ac=null,!1)}var XS=typeof setTimeout=="function"?setTimeout:void 0,dI=typeof clearTimeout=="function"?clearTimeout:void 0,ZS=typeof Promise=="function"?Promise:void 0,pI=typeof queueMicrotask=="function"?queueMicrotask:typeof ZS<"u"?function(t){return ZS.resolve(null).then(t).catch(fI)}:XS;function fI(t){setTimeout(function(){throw t})}function Rr(t){return t==="head"}function QS(t,r){var o=r,s=0;do{var p=o.nextSibling;if(t.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(s===0){t.removeChild(p),Ka(r);return}s--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")s++;else if(o==="html")Vi(t.ownerDocument.documentElement);else if(o==="head"){o=t.ownerDocument.head,Vi(o);for(var m=o.firstChild;m;){var v=m.nextSibling,R=m.nodeName;m[ci]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&m.rel.toLowerCase()==="stylesheet"||o.removeChild(m),m=v}}else o==="body"&&Vi(t.ownerDocument.body);o=p}while(o);Ka(r)}function JS(t,r){var o=t;t=0;do{var s=o.nextSibling;if(o.nodeType===1?r?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(r?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),s&&s.nodeType===8)if(o=s.data,o==="/$"){if(t===0)break;t--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||t++;o=s}while(o)}function ic(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":ic(o),cs(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function gI(t,r,o,s){for(;t.nodeType===1;){var p=o;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[ci])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=hn(t.nextSibling),t===null)break}return null}function mI(t,r,o){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=hn(t.nextSibling),t===null))return null;return t}function ev(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=hn(t.nextSibling),t===null))return null;return t}function oc(t){return t.data==="$?"||t.data==="$~"}function lc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function hI(t,r){var o=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||o.readyState!=="loading")r();else{var s=function(){r(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function hn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var sc=null;function tv(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"||o==="/&"){if(r===0)return hn(t.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}t=t.nextSibling}return null}function nv(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(r===0)return t;r--}else o!=="/$"&&o!=="/&"||r++}t=t.previousSibling}return null}function rv(t,r,o){switch(r=ml(o),t){case"html":if(t=r.documentElement,!t)throw Error(i(452));return t;case"head":if(t=r.head,!t)throw Error(i(453));return t;case"body":if(t=r.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function Vi(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);cs(t)}var bn=new Map,av=new Set;function hl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var nr=ee.d;ee.d={f:bI,r:yI,D:EI,C:SI,L:vI,m:xI,X:AI,S:TI,M:_I};function bI(){var t=nr.f(),r=ll();return t||r}function yI(t){var r=ga(t);r!==null&&r.tag===5&&r.type==="form"?vE(r):nr.r(t)}var Va=typeof document>"u"?null:document;function iv(t,r,o){var s=Va;if(s&&typeof r=="string"&&r){var p=un(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),av.has(p)||(av.add(p),t={rel:t,crossOrigin:o,href:r},s.querySelector(p)===null&&(r=s.createElement("link"),Tt(r,"link",t),gt(r),s.head.appendChild(r)))}}function EI(t){nr.D(t),iv("dns-prefetch",t,null)}function SI(t,r){nr.C(t,r),iv("preconnect",t,r)}function vI(t,r,o){nr.L(t,r,o);var s=Va;if(s&&t&&r){var p='link[rel="preload"][as="'+un(r)+'"]';r==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+un(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+un(o.imageSizes)+'"]')):p+='[href="'+un(t)+'"]';var m=p;switch(r){case"style":m=Ya(t);break;case"script":m=Wa(t)}bn.has(m)||(t=h({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:t,as:r},o),bn.set(m,t),s.querySelector(p)!==null||r==="style"&&s.querySelector(Yi(m))||r==="script"&&s.querySelector(Wi(m))||(r=s.createElement("link"),Tt(r,"link",t),gt(r),s.head.appendChild(r)))}}function xI(t,r){nr.m(t,r);var o=Va;if(o&&t){var s=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+un(s)+'"][href="'+un(t)+'"]',m=p;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Wa(t)}if(!bn.has(m)&&(t=h({rel:"modulepreload",href:t},r),bn.set(m,t),o.querySelector(p)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Wi(m)))return}s=o.createElement("link"),Tt(s,"link",t),gt(s),o.head.appendChild(s)}}}function TI(t,r,o){nr.S(t,r,o);var s=Va;if(s&&t){var p=ma(s).hoistableStyles,m=Ya(t);r=r||"default";var v=p.get(m);if(!v){var R={loading:0,preload:null};if(v=s.querySelector(Yi(m)))R.loading=5;else{t=h({rel:"stylesheet",href:t,"data-precedence":r},o),(o=bn.get(m))&&uc(t,o);var L=v=s.createElement("link");gt(L),Tt(L,"link",t),L._p=new Promise(function(P,X){L.onload=P,L.onerror=X}),L.addEventListener("load",function(){R.loading|=1}),L.addEventListener("error",function(){R.loading|=2}),R.loading|=4,bl(v,r,s)}v={type:"stylesheet",instance:v,count:1,state:R},p.set(m,v)}}}function AI(t,r){nr.X(t,r);var o=Va;if(o&&t){var s=ma(o).hoistableScripts,p=Wa(t),m=s.get(p);m||(m=o.querySelector(Wi(p)),m||(t=h({src:t,async:!0},r),(r=bn.get(p))&&cc(t,r),m=o.createElement("script"),gt(m),Tt(m,"link",t),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(p,m))}}function _I(t,r){nr.M(t,r);var o=Va;if(o&&t){var s=ma(o).hoistableScripts,p=Wa(t),m=s.get(p);m||(m=o.querySelector(Wi(p)),m||(t=h({src:t,async:!0,type:"module"},r),(r=bn.get(p))&&cc(t,r),m=o.createElement("script"),gt(m),Tt(m,"link",t),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(p,m))}}function ov(t,r,o,s){var p=(p=ce.current)?hl(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=Ya(o.href),o=ma(p).hoistableStyles,s=o.get(r),s||(s={type:"style",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=Ya(o.href);var m=ma(p).hoistableStyles,v=m.get(t);if(v||(p=p.ownerDocument||p,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,v),(m=p.querySelector(Yi(t)))&&!m._p&&(v.instance=m,v.state.loading=5),bn.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},bn.set(t,o),m||RI(p,t,o,v.state))),r&&s===null)throw Error(i(528,""));return v}if(r&&s!==null)throw Error(i(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Wa(o),o=ma(p).hoistableScripts,s=o.get(r),s||(s={type:"script",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Ya(t){return'href="'+un(t)+'"'}function Yi(t){return'link[rel="stylesheet"]['+t+"]"}function lv(t){return h({},t,{"data-precedence":t.precedence,precedence:null})}function RI(t,r,o,s){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=t.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),Tt(r,"link",o),gt(r),t.head.appendChild(r))}function Wa(t){return'[src="'+un(t)+'"]'}function Wi(t){return"script[async]"+t}function sv(t,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var s=t.querySelector('style[data-href~="'+un(o.href)+'"]');if(s)return r.instance=s,gt(s),s;var p=h({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),gt(s),Tt(s,"style",p),bl(s,o.precedence,t),r.instance=s;case"stylesheet":p=Ya(o.href);var m=t.querySelector(Yi(p));if(m)return r.state.loading|=4,r.instance=m,gt(m),m;s=lv(o),(p=bn.get(p))&&uc(s,p),m=(t.ownerDocument||t).createElement("link"),gt(m);var v=m;return v._p=new Promise(function(R,L){v.onload=R,v.onerror=L}),Tt(m,"link",s),r.state.loading|=4,bl(m,o.precedence,t),r.instance=m;case"script":return m=Wa(o.src),(p=t.querySelector(Wi(m)))?(r.instance=p,gt(p),p):(s=o,(p=bn.get(m))&&(s=h({},o),cc(s,p)),t=t.ownerDocument||t,p=t.createElement("script"),gt(p),Tt(p,"link",s),t.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,bl(s,o.precedence,t));return r.instance}function bl(t,r,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=s.length?s[s.length-1]:null,m=p,v=0;v<s.length;v++){var R=s[v];if(R.dataset.precedence===r)m=R;else if(m!==p)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(t,r.firstChild))}function uc(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function cc(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var yl=null;function uv(t,r,o){if(yl===null){var s=new Map,p=yl=new Map;p.set(o,s)}else p=yl,s=p.get(o),s||(s=new Map,p.set(o,s));if(s.has(t))return s;for(s.set(t,null),o=o.getElementsByTagName(t),p=0;p<o.length;p++){var m=o[p];if(!(m[ci]||m[Et]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(r)||"";v=t+v;var R=s.get(v);R?R.push(m):s.set(v,[m])}}return s}function cv(t,r,o){t=t.ownerDocument||t,t.head.insertBefore(o,r==="title"?t.querySelector("head > title"):null)}function NI(t,r,o){if(o===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function dv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function wI(t,r,o,s){if(o.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Ya(s.href),m=r.querySelector(Yi(p));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=El.bind(t),r.then(t,t)),o.state.loading|=4,o.instance=m,gt(m);return}m=r.ownerDocument||r,s=lv(s),(p=bn.get(p))&&uc(s,p),m=m.createElement("link"),gt(m);var v=m;v._p=new Promise(function(R,L){v.onload=R,v.onerror=L}),Tt(m,"link",s),o.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(t.count++,o=El.bind(t),r.addEventListener("load",o),r.addEventListener("error",o))}}var dc=0;function kI(t,r){return t.stylesheets&&t.count===0&&vl(t,t.stylesheets),0<t.count||0<t.imgCount?function(o){var s=setTimeout(function(){if(t.stylesheets&&vl(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+r);0<t.imgBytes&&dc===0&&(dc=62500*uI());var p=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&vl(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>dc?50:800)+r);return t.unsuspend=o,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(p)}}:null}function El(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Sl=null;function vl(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Sl=new Map,r.forEach(CI,t),Sl=null,El.call(t))}function CI(t,r){if(!(r.state.loading&4)){var o=Sl.get(t);if(o)var s=o.get(null);else{o=new Map,Sl.set(t,o);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<p.length;m++){var v=p[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(o.set(v.dataset.precedence,v),s=v)}s&&o.set(null,s)}p=r.instance,v=p.getAttribute("data-precedence"),m=o.get(v)||s,m===s&&o.set(null,p),o.set(v,p),this.count++,s=El.bind(this),p.addEventListener("load",s),p.addEventListener("error",s),m?m.parentNode.insertBefore(p,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var Ki={$$typeof:N,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function II(t,r,o,s,p,m,v,R,L){this.tag=1,this.containerInfo=t,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=os(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=os(0),this.hiddenUpdates=os(null),this.identifierPrefix=s,this.onUncaughtError=p,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function pv(t,r,o,s,p,m,v,R,L,P,X,J){return t=new II(t,r,o,v,L,P,X,J,R),r=1,m===!0&&(r|=24),m=Kt(3,null,null,r),t.current=m,m.stateNode=t,r=Hs(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:s,isDehydrated:o,cache:r},Ws(m),t}function fv(t){return t?(t=_a,t):_a}function gv(t,r,o,s,p,m){p=fv(p),s.context===null?s.context=p:s.pendingContext=p,s=mr(r),s.payload={element:o},m=m===void 0?null:m,m!==null&&(s.callback=m),o=hr(t,s,r),o!==null&&(Gt(o,t,r),Ni(o,t,r))}function mv(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function pc(t,r){mv(t,r),(t=t.alternate)&&mv(t,r)}function hv(t){if(t.tag===13||t.tag===31){var r=Hr(t,67108864);r!==null&&Gt(r,t,67108864),pc(t,67108864)}}function bv(t){if(t.tag===13||t.tag===31){var r=en();r=ls(r);var o=Hr(t,r);o!==null&&Gt(o,t,r),pc(t,r)}}var xl=!0;function OI(t,r,o,s){var p=G.T;G.T=null;var m=ee.p;try{ee.p=2,fc(t,r,o,s)}finally{ee.p=m,G.T=p}}function DI(t,r,o,s){var p=G.T;G.T=null;var m=ee.p;try{ee.p=8,fc(t,r,o,s)}finally{ee.p=m,G.T=p}}function fc(t,r,o,s){if(xl){var p=gc(s);if(p===null)Ju(t,r,s,Tl,o),Ev(t,s);else if(MI(p,t,r,o,s))s.stopPropagation();else if(Ev(t,s),r&4&&-1<LI.indexOf(t)){for(;p!==null;){var m=ga(p);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=kn(m.pendingLanes);if(v!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;v;){var L=1<<31-Be(v);R.entanglements[1]|=L,v&=~L}Dn(m),(Fe&6)===0&&(il=Qe()+500,Gi(0))}}break;case 31:case 13:R=Hr(m,2),R!==null&&Gt(R,m,2),ll(),pc(m,2)}if(m=gc(s),m===null&&Ju(t,r,s,Tl,o),m===p)break;p=m}p!==null&&s.stopPropagation()}else Ju(t,r,s,null,o)}}function gc(t){return t=hs(t),mc(t)}var Tl=null;function mc(t){if(Tl=null,t=fa(t),t!==null){var r=u(t);if(r===null)t=null;else{var o=r.tag;if(o===13){if(t=c(r),t!==null)return t;t=null}else if(o===31){if(t=d(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return Tl=t,null}function yv(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ht()){case K:return 2;case ie:return 8;case de:case Ee:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var hc=!1,Nr=null,wr=null,kr=null,Xi=new Map,Zi=new Map,Cr=[],LI="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 Ev(t,r){switch(t){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":kr=null;break;case"pointerover":case"pointerout":Xi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zi.delete(r.pointerId)}}function Qi(t,r,o,s,p,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:o,eventSystemFlags:s,nativeEvent:m,targetContainers:[p]},r!==null&&(r=ga(r),r!==null&&hv(r)),t):(t.eventSystemFlags|=s,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function MI(t,r,o,s,p){switch(r){case"focusin":return Nr=Qi(Nr,t,r,o,s,p),!0;case"dragenter":return wr=Qi(wr,t,r,o,s,p),!0;case"mouseover":return kr=Qi(kr,t,r,o,s,p),!0;case"pointerover":var m=p.pointerId;return Xi.set(m,Qi(Xi.get(m)||null,t,r,o,s,p)),!0;case"gotpointercapture":return m=p.pointerId,Zi.set(m,Qi(Zi.get(m)||null,t,r,o,s,p)),!0}return!1}function Sv(t){var r=fa(t.target);if(r!==null){var o=u(r);if(o!==null){if(r=o.tag,r===13){if(r=c(o),r!==null){t.blockedOn=r,Lb(t.priority,function(){bv(o)});return}}else if(r===31){if(r=d(o),r!==null){t.blockedOn=r,Lb(t.priority,function(){bv(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Al(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=gc(t.nativeEvent);if(o===null){o=t.nativeEvent;var s=new o.constructor(o.type,o);ms=s,o.target.dispatchEvent(s),ms=null}else return r=ga(o),r!==null&&hv(r),t.blockedOn=o,!1;r.shift()}return!0}function vv(t,r,o){Al(t)&&o.delete(r)}function UI(){hc=!1,Nr!==null&&Al(Nr)&&(Nr=null),wr!==null&&Al(wr)&&(wr=null),kr!==null&&Al(kr)&&(kr=null),Xi.forEach(vv),Zi.forEach(vv)}function _l(t,r){t.blockedOn===r&&(t.blockedOn=null,hc||(hc=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,UI)))}var Rl=null;function xv(t){Rl!==t&&(Rl=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rl===t&&(Rl=null);for(var r=0;r<t.length;r+=3){var o=t[r],s=t[r+1],p=t[r+2];if(typeof s!="function"){if(mc(s||o)===null)continue;break}var m=ga(o);m!==null&&(t.splice(r,3),r-=3,gu(m,{pending:!0,data:p,method:o.method,action:s},s,p))}}))}function Ka(t){function r(L){return _l(L,t)}Nr!==null&&_l(Nr,t),wr!==null&&_l(wr,t),kr!==null&&_l(kr,t),Xi.forEach(r),Zi.forEach(r);for(var o=0;o<Cr.length;o++){var s=Cr[o];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Cr.length&&(o=Cr[0],o.blockedOn===null);)Sv(o),o.blockedOn===null&&Cr.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(s=0;s<o.length;s+=3){var p=o[s],m=o[s+1],v=p[Ft]||null;if(typeof m=="function")v||xv(o);else if(v){var R=null;if(m&&m.hasAttribute("formAction")){if(p=m,v=m[Ft]||null)R=v.formAction;else if(mc(p)!==null)continue}else R=v.action;typeof R=="function"?o[s+1]=R:(o.splice(s,3),s-=3),xv(o)}}}function Tv(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return p=v})},focusReset:"manual",scroll:"manual"})}function r(){p!==null&&(p(),p=null),s||setTimeout(o,20)}function o(){if(!s&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,p=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),p!==null&&(p(),p=null)}}}function bc(t){this._internalRoot=t}Nl.prototype.render=bc.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));var o=r.current,s=en();gv(o,s,t,r,null,null)},Nl.prototype.unmount=bc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;gv(t.current,2,null,t,null,null),ll(),r[pa]=null}};function Nl(t){this._internalRoot=t}Nl.prototype.unstable_scheduleHydration=function(t){if(t){var r=Db();t={blockedOn:null,target:t,priority:r};for(var o=0;o<Cr.length&&r!==0&&r<Cr[o].priority;o++);Cr.splice(o,0,t),o===0&&Sv(t)}};var Av=n.version;if(Av!=="19.2.0")throw Error(i(527,Av,"19.2.0"));ee.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=f(r),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var FI={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{nt=wl.inject(FI),He=wl}catch{}}return eo.createRoot=function(t,r){if(!l(t))throw Error(i(299));var o=!1,s="",p=IE,m=OE,v=DE;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError)),r=pv(t,1,!1,null,null,o,s,null,p,m,v,Tv),t[pa]=r.current,Qu(t),new bc(r)},eo.hydrateRoot=function(t,r,o){if(!l(t))throw Error(i(299));var s=!1,p="",m=IE,v=OE,R=DE,L=null;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(R=o.onRecoverableError),o.formState!==void 0&&(L=o.formState)),r=pv(t,1,!0,r,o??null,s,p,L,m,v,R,Tv),r.context=fv(null),o=r.current,s=en(),s=ls(s),p=mr(s),p.callback=null,hr(o,p,s),o=s,r.current.lanes=o,ui(r,o),Dn(r),t[pa]=r.current,Qu(t),new Nl(r)},eo.version="19.2.0",eo}var Lv;function YI(){if(Lv)return Sc.exports;Lv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Sc.exports=VI(),Sc.exports}var WI=YI(),ri=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},KI={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},XI=class{#e=KI;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,n){return this.#e.setTimeout(e,n)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,n){return this.#e.setInterval(e,n)}clearInterval(e){this.#e.clearInterval(e)}},aa=new XI;function ZI(e){setTimeout(e,0)}var ia=typeof window>"u"||"Deno"in globalThis;function It(){}function QI(e,n){return typeof e=="function"?e(n):e}function Rh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Dw(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Lr(e,n){return typeof e=="function"?e(n):e}function yn(e,n){return typeof e=="function"?e(n):e}function Mv(e,n){const{type:a="all",exact:i,fetchStatus:l,predicate:u,queryKey:c,stale:d}=e;if(c){if(i){if(n.queryHash!==Kh(c,n.options))return!1}else if(!so(n.queryKey,c))return!1}if(a!=="all"){const g=n.isActive();if(a==="active"&&!g||a==="inactive"&&g)return!1}return!(typeof d=="boolean"&&n.isStale()!==d||l&&l!==n.state.fetchStatus||u&&!u(n))}function Uv(e,n){const{exact:a,status:i,predicate:l,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(a){if(oa(n.options.mutationKey)!==oa(u))return!1}else if(!so(n.options.mutationKey,u))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function Kh(e,n){return(n?.queryKeyHashFn||oa)(e)}function oa(e){return JSON.stringify(e,(n,a)=>Nh(a)?Object.keys(a).sort().reduce((i,l)=>(i[l]=a[l],i),{}):a)}function so(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(a=>so(e[a],n[a])):!1}var JI=Object.prototype.hasOwnProperty;function Lw(e,n){if(e===n)return e;const a=Fv(e)&&Fv(n);if(!a&&!(Nh(e)&&Nh(n)))return n;const l=(a?e:Object.keys(e)).length,u=a?n:Object.keys(n),c=u.length,d=a?new Array(c):{};let g=0;for(let f=0;f<c;f++){const b=a?f:u[f],h=e[b],E=n[b];if(h===E){d[b]=h,(a?f<l:JI.call(e,b))&&g++;continue}if(h===null||E===null||typeof h!="object"||typeof E!="object"){d[b]=E;continue}const S=Lw(h,E);d[b]=S,S===h&&g++}return l===c&&g===l?e:d}function zl(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const a in e)if(e[a]!==n[a])return!1;return!0}function Fv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nh(e){if(!Bv(e))return!1;const n=e.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!Bv(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Bv(e){return Object.prototype.toString.call(e)==="[object Object]"}function eO(e){return new Promise(n=>{aa.setTimeout(n,e)})}function wh(e,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,n):a.structuralSharing!==!1?Lw(e,n):n}function tO(e,n,a=0){const i=[...e,n];return a&&i.length>a?i.slice(1):i}function nO(e,n,a=0){const i=[n,...e];return a&&i.length>a?i.slice(0,-1):i}var Xh=Symbol();function Mw(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Xh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Uw(e,n){return typeof e=="function"?e(...n):!!e}var rO=class extends ri{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!ia&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Zh=new rO;function kh(){let e,n;const a=new Promise((l,u)=>{e=l,n=u});a.status="pending",a.catch(()=>{});function i(l){Object.assign(a,l),delete a.resolve,delete a.reject}return a.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},a.reject=l=>{i({status:"rejected",reason:l}),n(l)},a}var aO=ZI;function iO(){let e=[],n=0,a=d=>{d()},i=d=>{d()},l=aO;const u=d=>{n?e.push(d):l(()=>{a(d)})},c=()=>{const d=e;e=[],d.length&&l(()=>{i(()=>{d.forEach(g=>{a(g)})})})};return{batch:d=>{let g;n++;try{g=d()}finally{n--,n||c()}return g},batchCalls:d=>(...g)=>{u(()=>{d(...g)})},schedule:u,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{l=d}}}var pt=iO(),oO=class extends ri{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!ia&&window.addEventListener){const n=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(a=>{a(e)}))}isOnline(){return this.#e}},ql=new oO;function lO(e){return Math.min(1e3*2**e,3e4)}function Fw(e){return(e??"online")==="online"?ql.isOnline():!0}var Ch=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Bw(e){let n=!1,a=0,i;const l=kh(),u=()=>l.status!=="pending",c=T=>{if(!u()){const C=new Ch(T);E(C),e.onCancel?.(C)}},d=()=>{n=!0},g=()=>{n=!1},f=()=>Zh.isFocused()&&(e.networkMode==="always"||ql.isOnline())&&e.canRun(),b=()=>Fw(e.networkMode)&&e.canRun(),h=T=>{u()||(i?.(),l.resolve(T))},E=T=>{u()||(i?.(),l.reject(T))},S=()=>new Promise(T=>{i=C=>{(u()||f())&&T(C)},e.onPause?.()}).then(()=>{i=void 0,u()||e.onContinue?.()}),_=()=>{if(u())return;let T;const C=a===0?e.initialPromise:void 0;try{T=C??e.fn()}catch(x){T=Promise.reject(x)}Promise.resolve(T).then(h).catch(x=>{if(u())return;const A=e.retry??(ia?0:3),N=e.retryDelay??lO,D=typeof N=="function"?N(a,x):N,U=A===!0||typeof A=="number"&&a<A||typeof A=="function"&&A(a,x);if(n||!U){E(x);return}a++,e.onFail?.(a,x),eO(D).then(()=>f()?void 0:S()).then(()=>{n?E(x):_()})})};return{promise:l,status:()=>l.status,cancel:c,continue:()=>(i?.(),l),cancelRetry:d,continueRetry:g,canStart:b,start:()=>(b()?_():S().then(_),l)}}var jw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rh(this.gcTime)&&(this.#e=aa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ia?1/0:300*1e3))}clearGcTimeout(){this.#e&&(aa.clearTimeout(this.#e),this.#e=void 0)}},sO=class extends jw{#e;#t;#n;#a;#r;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=jv(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=jv(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),this.#e=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const a=wh(this.state.data,e,this.options);return this.#i({data:a,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),a}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#r?.promise;return this.#r?.cancel(e),n?n.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>yn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Lr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Dw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(g=>g.options.queryFn);d&&this.setOptions(d.options)}const a=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#l=!0,a.signal)})},l=()=>{const d=Mw(this.options,n),f=(()=>{const b={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(b),b})();return this.#l=!1,this.options.persister?this.options.persister(d,f,this):d(f)},c=(()=>{const d={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:l};return i(d),d})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#i({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=Bw({initialPromise:n?.initialPromise,fn:c.fetchFn,onCancel:d=>{d instanceof Ch&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),a.abort()},onFail:(d,g)=>{this.#i({type:"failed",failureCount:d,error:g})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Ch){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#i(e){const n=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...zw(a.data,this.options),fetchMeta:e.meta??null};case"success":const i={...a,data:e.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const l=e.error;return{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=n(this.state),pt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function zw(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Fw(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jv(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,a=n!==void 0,i=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var uO=class extends ri{constructor(e,n){super(),this.options=n,this.#e=e,this.#i=null,this.#l=kh(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#a=void 0;#r;#o;#l;#i;#m;#p;#f;#u;#c;#s;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),zv(this.#t,this.options)?this.#d():this.updateResult(),this.#E())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ih(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ih(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#v(),this.#t.removeObserver(this)}setOptions(e){const n=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof yn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#t.setOptions(this.options),n._defaulted&&!zl(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&qv(this.#t,a,this.options,n)&&this.#d(),this.updateResult(),i&&(this.#t!==a||yn(this.options.enabled,this.#t)!==yn(n.enabled,this.#t)||Lr(this.options.staleTime,this.#t)!==Lr(n.staleTime,this.#t))&&this.#h();const l=this.#b();i&&(this.#t!==a||yn(this.options.enabled,this.#t)!==yn(n.enabled,this.#t)||l!==this.#s)&&this.#y(l)}getOptimisticResult(e){const n=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(n,e);return dO(this,a)&&(this.#a=a,this.#o=this.options,this.#r=this.#t.state),a}getCurrentResult(){return this.#a}trackResult(e,n){return new Proxy(e,{get:(a,i)=>(this.trackProp(i),n?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(a,i))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=this.#e.defaultQueryOptions(e),a=this.#e.getQueryCache().build(this.#e,n);return a.fetch().then(()=>this.createResult(a,n))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(e){this.#x();let n=this.#t.fetch(this.options,e);return e?.throwOnError||(n=n.catch(It)),n}#h(){this.#S();const e=Lr(this.options.staleTime,this.#t);if(ia||this.#a.isStale||!Rh(e))return;const a=Dw(this.#a.dataUpdatedAt,e)+1;this.#u=aa.setTimeout(()=>{this.#a.isStale||this.updateResult()},a)}#b(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#v(),this.#s=e,!(ia||yn(this.options.enabled,this.#t)===!1||!Rh(this.#s)||this.#s===0)&&(this.#c=aa.setInterval(()=>{(this.options.refetchIntervalInBackground||Zh.isFocused())&&this.#d()},this.#s))}#E(){this.#h(),this.#y(this.#b())}#S(){this.#u&&(aa.clearTimeout(this.#u),this.#u=void 0)}#v(){this.#c&&(aa.clearInterval(this.#c),this.#c=void 0)}createResult(e,n){const a=this.#t,i=this.options,l=this.#a,u=this.#r,c=this.#o,g=e!==a?e.state:this.#n,{state:f}=e;let b={...f},h=!1,E;if(n._optimisticResults){const H=this.hasListeners(),z=!H&&zv(e,n),F=H&&qv(e,a,n,i);(z||F)&&(b={...b,...zw(f.data,e.options)}),n._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:S,errorUpdatedAt:_,status:T}=b;E=b.data;let C=!1;if(n.placeholderData!==void 0&&E===void 0&&T==="pending"){let H;l?.isPlaceholderData&&n.placeholderData===c?.placeholderData?(H=l.data,C=!0):H=typeof n.placeholderData=="function"?n.placeholderData(this.#f?.state.data,this.#f):n.placeholderData,H!==void 0&&(T="success",E=wh(l?.data,H,n),h=!0)}if(n.select&&E!==void 0&&!C)if(l&&E===u?.data&&n.select===this.#m)E=this.#p;else try{this.#m=n.select,E=n.select(E),E=wh(l?.data,E,n),this.#p=E,this.#i=null}catch(H){this.#i=H}this.#i&&(S=this.#i,E=this.#p,_=Date.now(),T="error");const x=b.fetchStatus==="fetching",A=T==="pending",N=T==="error",D=A&&x,U=E!==void 0,M={status:T,fetchStatus:b.fetchStatus,isPending:A,isSuccess:T==="success",isError:N,isInitialLoading:D,isLoading:D,data:E,dataUpdatedAt:b.dataUpdatedAt,error:S,errorUpdatedAt:_,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:x,isRefetching:x&&!A,isLoadingError:N&&!U,isPaused:b.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:N&&U,isStale:Qh(e,n),refetch:this.refetch,promise:this.#l,isEnabled:yn(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const H=W=>{M.status==="error"?W.reject(M.error):M.data!==void 0&&W.resolve(M.data)},z=()=>{const W=this.#l=M.promise=kh();H(W)},F=this.#l;switch(F.status){case"pending":e.queryHash===a.queryHash&&H(F);break;case"fulfilled":(M.status==="error"||M.data!==F.value)&&z();break;case"rejected":(M.status!=="error"||M.error!==F.reason)&&z();break}}return M}updateResult(){const e=this.#a,n=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#f=this.#t),zl(n,e))return;this.#a=n;const a=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#g.size)return!0;const u=new Set(l??this.#g);return this.options.throwOnError&&u.add("error"),Object.keys(this.#a).some(c=>{const d=c;return this.#a[d]!==e[d]&&u.has(d)})};this.#T({listeners:a()})}#x(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const n=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#E()}#T(e){pt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function cO(e,n){return yn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function zv(e,n){return cO(e,n)||e.state.data!==void 0&&Ih(e,n,n.refetchOnMount)}function Ih(e,n,a){if(yn(n.enabled,e)!==!1&&Lr(n.staleTime,e)!=="static"){const i=typeof a=="function"?a(e):a;return i==="always"||i!==!1&&Qh(e,n)}return!1}function qv(e,n,a,i){return(e!==n||yn(i.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&Qh(e,a)}function Qh(e,n){return yn(n.enabled,e)!==!1&&e.isStaleByTime(Lr(n.staleTime,e))}function dO(e,n){return!zl(e.getCurrentResult(),n)}function Pv(e){return{onFetch:(n,a)=>{const i=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,u=n.state.data?.pages||[],c=n.state.data?.pageParams||[];let d={pages:[],pageParams:[]},g=0;const f=async()=>{let b=!1;const h=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(n.signal.aborted?b=!0:n.signal.addEventListener("abort",()=>{b=!0}),n.signal)})},E=Mw(n.options,n.fetchOptions),S=async(_,T,C)=>{if(b)return Promise.reject();if(T==null&&_.pages.length)return Promise.resolve(_);const A=(()=>{const w={client:n.client,queryKey:n.queryKey,pageParam:T,direction:C?"backward":"forward",meta:n.options.meta};return h(w),w})(),N=await E(A),{maxPages:D}=n.options,U=C?nO:tO;return{pages:U(_.pages,N,D),pageParams:U(_.pageParams,T,D)}};if(l&&u.length){const _=l==="backward",T=_?pO:Gv,C={pages:u,pageParams:c},x=T(i,C);d=await S(C,x,_)}else{const _=e??u.length;do{const T=g===0?c[0]??i.initialPageParam:Gv(i,d);if(g>0&&T==null)break;d=await S(d,T),g++}while(g<_)}return d};n.options.persister?n.fetchFn=()=>n.options.persister?.(f,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a):n.fetchFn=f}}}function Gv(e,{pages:n,pageParams:a}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,a[i],a):void 0}function pO(e,{pages:n,pageParams:a}){return n.length>0?e.getPreviousPageParam?.(n[0],n,a[0],a):void 0}var fO=class extends jw{#e;#t;#n;#a;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||qw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(n=>n!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#r({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=Bw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(new Error("No mutationFn found")),onFail:(u,c)=>{this.#r({type:"failed",failureCount:u,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",l=!this.#a.canStart();try{if(i)n();else{this.#r({type:"pending",variables:e,isPaused:l}),await this.#n.config.onMutate?.(e,this,a);const c=await this.options.onMutate?.(e,a);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:l})}const u=await this.#a.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,a),await this.options.onSuccess?.(u,e,this.state.context,a),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(u,null,e,this.state.context,a),this.#r({type:"success",data:u}),u}catch(u){try{throw await this.#n.config.onError?.(u,e,this.state.context,this,a),await this.options.onError?.(u,e,this.state.context,a),await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(void 0,u,e,this.state.context,a),u}finally{this.#r({type:"error",error:u})}}finally{this.#n.runNext(this)}}#r(e){const n=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),pt.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function qw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gO=class extends ri{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,a){const i=new fO({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:a});return this.add(i),i}add(e){this.#e.add(e);const n=kl(e);if(typeof n=="string"){const a=this.#t.get(n);a?a.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=kl(e);if(typeof n=="string"){const a=this.#t.get(n);if(a)if(a.length>1){const i=a.indexOf(e);i!==-1&&a.splice(i,1)}else a[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=kl(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=kl(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){pt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(a=>Uv(n,a))}findAll(e={}){return this.getAll().filter(n=>Uv(e,n))}notify(e){pt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return pt.batch(()=>Promise.all(e.map(n=>n.continue().catch(It))))}};function kl(e){return e.options.scope?.id}var mO=class extends ri{#e;#t=void 0;#n;#a;constructor(n,a){super(),this.#e=n,this.setOptions(a),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const a=this.options;this.options=this.#e.defaultMutationOptions(n),zl(this.options,a)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&oa(a.mutationKey)!==oa(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#r(),this.#o(n)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(n,a){return this.#a=a,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(n)}#r(){const n=this.#n?.state??qw();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#o(n){pt.batch(()=>{if(this.#a&&this.hasListeners()){const a=this.#t.variables,i=this.#t.context,l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};n?.type==="success"?(this.#a.onSuccess?.(n.data,a,i,l),this.#a.onSettled?.(n.data,null,a,i,l)):n?.type==="error"&&(this.#a.onError?.(n.error,a,i,l),this.#a.onSettled?.(void 0,n.error,a,i,l))}this.listeners.forEach(a=>{a(this.#t)})})}},hO=class extends ri{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,a){const i=n.queryKey,l=n.queryHash??Kh(i,n);let u=this.get(l);return u||(u=new sO({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(n),state:a,defaultOptions:e.getQueryDefaults(i)}),this.add(u)),u}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){pt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(a=>Mv(n,a))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(a=>Mv(e,a)):n}notify(e){pt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},bO=class{#e;#t;#n;#a;#r;#o;#l;#i;constructor(e={}){this.#e=e.queryCache||new hO,this.#t=e.mutationCache||new gO,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=Zh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ql.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),a=this.#e.build(this,n),i=a.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Lr(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:a})=>{const i=a.data;return[n,i]})}setQueryData(e,n,a){const i=this.defaultQueryOptions({queryKey:e}),u=this.#e.get(i.queryHash)?.state.data,c=QI(n,u);if(c!==void 0)return this.#e.build(this,i).setData(c,{...a,manual:!0})}setQueriesData(e,n,a){return pt.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,a)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;pt.batch(()=>{n.findAll(e).forEach(a=>{n.remove(a)})})}resetQueries(e,n){const a=this.#e;return pt.batch(()=>(a.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const a={revert:!0,...n},i=pt.batch(()=>this.#e.findAll(e).map(l=>l.cancel(a)));return Promise.all(i).then(It).catch(It)}invalidateQueries(e,n={}){return pt.batch(()=>(this.#e.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},i=pt.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let u=l.fetch(void 0,a);return a.throwOnError||(u=u.catch(It)),l.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(It)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const a=this.#e.build(this,n);return a.isStaleByTime(Lr(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(It).catch(It)}fetchInfiniteQuery(e){return e.behavior=Pv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(It).catch(It)}ensureInfiniteQueryData(e){return e.behavior=Pv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ql.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#a.set(oa(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#a.values()],a={};return n.forEach(i=>{so(e,i.queryKey)&&Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(e,n){this.#r.set(oa(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],a={};return n.forEach(i=>{so(e,i.mutationKey)&&Object.assign(a,i.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Kh(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Xh&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Pw=te.createContext(void 0),ir=e=>{const n=te.useContext(Pw);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},yO=({client:e,children:n})=>(te.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Pw.Provider,{value:e,children:n})),Gw=te.createContext(!1),EO=()=>te.useContext(Gw);Gw.Provider;function SO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vO=te.createContext(SO()),xO=()=>te.useContext(vO),TO=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},AO=e=>{te.useEffect(()=>{e.clearReset()},[e])},_O=({result:e,errorResetBoundary:n,throwOnError:a,query:i,suspense:l})=>e.isError&&!n.isReset()&&!e.isFetching&&i&&(l&&e.data===void 0||Uw(a,[e.error,i])),RO=e=>{if(e.suspense){const a=l=>l==="static"?l:Math.max(l??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...l)=>a(i(...l)):a(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},NO=(e,n)=>e.isLoading&&e.isFetching&&!n,wO=(e,n)=>e?.suspense&&n.isPending,Hv=(e,n,a)=>n.fetchOptimistic(e).catch(()=>{a.clearReset()});function kO(e,n,a){const i=EO(),l=xO(),u=ir(),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=i?"isRestoring":"optimistic",RO(c),TO(c,l),AO(l);const d=!u.getQueryCache().get(c.queryHash),[g]=te.useState(()=>new n(u,c)),f=g.getOptimisticResult(c),b=!i&&e.subscribed!==!1;if(te.useSyncExternalStore(te.useCallback(h=>{const E=b?g.subscribe(pt.batchCalls(h)):It;return g.updateResult(),E},[g,b]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),te.useEffect(()=>{g.setOptions(c)},[c,g]),wO(c,f))throw Hv(c,g,l);if(_O({result:f,errorResetBoundary:l,throwOnError:c.throwOnError,query:u.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw f.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!ia&&NO(f,i)&&(d?Hv(c,g,l):u.getQueryCache().get(c.queryHash)?.promise)?.catch(It).finally(()=>{g.updateResult()}),c.notifyOnChangeProps?f:g.trackResult(f)}function ai(e,n){return kO(e,uO)}function ii(e,n){const a=ir(),[i]=te.useState(()=>new mO(a,e));te.useEffect(()=>{i.setOptions(e)},[i,e]);const l=te.useSyncExternalStore(te.useCallback(c=>i.subscribe(pt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=te.useCallback((c,d)=>{i.mutate(c,d).catch(It)},[i]);if(l.error&&Uw(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}/**
|
|
48
|
+
`+s.stack}}var Fn=Object.prototype.hasOwnProperty,Mt=e.unstable_scheduleCallback,Bn=e.unstable_cancelCallback,Nn=e.unstable_shouldYield,Br=e.unstable_requestPaint,Qe=e.unstable_now,ht=e.unstable_getCurrentPriorityLevel,K=e.unstable_ImmediatePriority,ie=e.unstable_UserBlockingPriority,de=e.unstable_NormalPriority,Ee=e.unstable_LowPriority,Oe=e.unstable_IdlePriority,bt=e.log,yt=e.unstable_setDisableYieldValue,nt=null,He=null;function Xe(t){if(typeof bt=="function"&&yt(t),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(nt,t)}catch{}}var Be=Math.clz32?Math.clz32:ln,Ut=Math.log,At=Math.LN2;function ln(t){return t>>>=0,t===0?32:31-(Ut(t)/At|0)|0}var Je=256,wn=262144,da=4194304;function kn(t){var r=t&42;if(r!==0)return r;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function jr(t,r,o){var s=t.pendingLanes;if(s===0)return 0;var p=0,m=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var R=s&134217727;return R!==0?(s=R&~m,s!==0?p=kn(s):(v&=R,v!==0?p=kn(v):o||(o=R&~t,o!==0&&(p=kn(o))))):(R=s&~m,R!==0?p=kn(R):v!==0?p=kn(v):o||(o=s&~t,o!==0&&(p=kn(o)))),p===0?0:r!==0&&r!==p&&(r&m)===0&&(m=p&-p,o=r&-r,m>=o||m===32&&(o&4194048)!==0)?r:p}function lr(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function si(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 kb(){var t=da;return da<<=1,(da&62914560)===0&&(da=4194304),t}function os(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function ui(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function NC(t,r,o,s,p,m){var v=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var R=t.entanglements,L=t.expirationTimes,P=t.hiddenUpdates;for(o=v&~o;0<o;){var X=31-Be(o),J=1<<X;R[X]=0,L[X]=-1;var $=P[X];if($!==null)for(P[X]=null,X=0;X<$.length;X++){var Y=$[X];Y!==null&&(Y.lane&=-536870913)}o&=~J}s!==0&&Cb(t,s,0),m!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=m&~(v&~r))}function Cb(t,r,o){t.pendingLanes|=r,t.suspendedLanes&=~r;var s=31-Be(r);t.entangledLanes|=r,t.entanglements[s]=t.entanglements[s]|1073741824|o&261930}function Ib(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var s=31-Be(o),p=1<<s;p&r|t[s]&r&&(t[s]|=r),o&=~p}}function Ob(t,r){var o=r&-r;return o=(o&42)!==0?1:ls(o),(o&(t.suspendedLanes|r))!==0?0:o}function ls(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ss(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Db(){var t=ee.p;return t!==0?t:(t=window.event,t===void 0?32:yv(t.type))}function Lb(t,r){var o=ee.p;try{return ee.p=t,r()}finally{ee.p=o}}var sr=Math.random().toString(36).slice(2),Et="__reactFiber$"+sr,Ft="__reactProps$"+sr,pa="__reactContainer$"+sr,us="__reactEvents$"+sr,wC="__reactListeners$"+sr,kC="__reactHandles$"+sr,Mb="__reactResources$"+sr,ci="__reactMarker$"+sr;function cs(t){delete t[Et],delete t[Ft],delete t[us],delete t[wC],delete t[kC]}function fa(t){var r=t[Et];if(r)return r;for(var o=t.parentNode;o;){if(r=o[pa]||o[Et]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=nv(t);t!==null;){if(o=t[Et])return o;t=nv(t)}return r}t=o,o=t.parentNode}return null}function ga(t){if(t=t[Et]||t[pa]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function di(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(i(33))}function ma(t){var r=t[Mb];return r||(r=t[Mb]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function gt(t){t[ci]=!0}var Ub=new Set,Fb={};function zr(t,r){ha(t,r),ha(t+"Capture",r)}function ha(t,r){for(Fb[t]=r,t=0;t<r.length;t++)Ub.add(r[t])}var CC=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]*$"),Bb={},jb={};function IC(t){return Fn.call(jb,t)?!0:Fn.call(Bb,t)?!1:CC.test(t)?jb[t]=!0:(Bb[t]=!0,!1)}function bo(t,r,o){if(IC(r))if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+o)}}function yo(t,r,o){if(o===null)t.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+o)}}function jn(t,r,o,s){if(s===null)t.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(r,o,""+s)}}function sn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function zb(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function OC(t,r,o){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,m=s.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(v){o=""+v,m.call(this,v)}}),Object.defineProperty(t,r,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(v){o=""+v},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ds(t){if(!t._valueTracker){var r=zb(t)?"checked":"value";t._valueTracker=OC(t,r,""+t[r])}}function qb(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),s="";return t&&(s=zb(t)?t.checked?"true":"false":t.value),t=s,t!==o?(r.setValue(t),!0):!1}function Eo(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var DC=/[\n"\\]/g;function un(t){return t.replace(DC,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function ps(t,r,o,s,p,m,v,R){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),r!=null?v==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+sn(r)):t.value!==""+sn(r)&&(t.value=""+sn(r)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),r!=null?fs(t,v,sn(r)):o!=null?fs(t,v,sn(o)):s!=null&&t.removeAttribute("value"),p==null&&m!=null&&(t.defaultChecked=!!m),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?t.name=""+sn(R):t.removeAttribute("name")}function Pb(t,r,o,s,p,m,v,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),r!=null||o!=null){if(!(m!=="submit"&&m!=="reset"||r!=null)){ds(t);return}o=o!=null?""+sn(o):"",r=r!=null?""+sn(r):o,R||r===t.value||(t.value=r),t.defaultValue=r}s=s??p,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=R?t.checked:!!s,t.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),ds(t)}function fs(t,r,o){r==="number"&&Eo(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function ba(t,r,o,s){if(t=t.options,r){r={};for(var p=0;p<o.length;p++)r["$"+o[p]]=!0;for(o=0;o<t.length;o++)p=r.hasOwnProperty("$"+t[o].value),t[o].selected!==p&&(t[o].selected=p),p&&s&&(t[o].defaultSelected=!0)}else{for(o=""+sn(o),r=null,p=0;p<t.length;p++){if(t[p].value===o){t[p].selected=!0,s&&(t[p].defaultSelected=!0);return}r!==null||t[p].disabled||(r=t[p])}r!==null&&(r.selected=!0)}}function Gb(t,r,o){if(r!=null&&(r=""+sn(r),r!==t.value&&(t.value=r),o==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=o!=null?""+sn(o):""}function Hb(t,r,o,s){if(r==null){if(s!=null){if(o!=null)throw Error(i(92));if(se(s)){if(1<s.length)throw Error(i(93));s=s[0]}o=s}o==null&&(o=""),r=o}o=sn(r),t.defaultValue=o,s=t.textContent,s===o&&s!==""&&s!==null&&(t.value=s),ds(t)}function ya(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var LC=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 $b(t,r,o){var s=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?s?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":s?t.setProperty(r,o):typeof o!="number"||o===0||LC.has(r)?r==="float"?t.cssFloat=o:t[r]=(""+o).trim():t[r]=o+"px"}function Vb(t,r,o){if(r!=null&&typeof r!="object")throw Error(i(62));if(t=t.style,o!=null){for(var s in o)!o.hasOwnProperty(s)||r!=null&&r.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var p in r)s=r[p],r.hasOwnProperty(p)&&o[p]!==s&&$b(t,p,s)}else for(var m in r)r.hasOwnProperty(m)&&$b(t,m,r[m])}function gs(t){if(t.indexOf("-")===-1)return!1;switch(t){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 MC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),UC=/^[\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 So(t){return UC.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function zn(){}var ms=null;function hs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ea=null,Sa=null;function Yb(t){var r=ga(t);if(r&&(t=r.stateNode)){var o=t[Ft]||null;e:switch(t=r.stateNode,r.type){case"input":if(ps(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+un(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var s=o[r];if(s!==t&&s.form===t.form){var p=s[Ft]||null;if(!p)throw Error(i(90));ps(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<o.length;r++)s=o[r],s.form===t.form&&qb(s)}break e;case"textarea":Gb(t,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&ba(t,!!o.multiple,r,!1)}}}var bs=!1;function Wb(t,r,o){if(bs)return t(r,o);bs=!0;try{var s=t(r);return s}finally{if(bs=!1,(Ea!==null||Sa!==null)&&(ll(),Ea&&(r=Ea,t=Sa,Sa=Ea=null,Yb(r),t)))for(r=0;r<t.length;r++)Yb(t[r])}}function pi(t,r){var o=t.stateNode;if(o===null)return null;var s=o[Ft]||null;if(s===null)return null;o=s[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ys=!1;if(qn)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){ys=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{ys=!1}var ur=null,Es=null,vo=null;function Kb(){if(vo)return vo;var t,r=Es,o=r.length,s,p="value"in ur?ur.value:ur.textContent,m=p.length;for(t=0;t<o&&r[t]===p[t];t++);var v=o-t;for(s=1;s<=v&&r[o-s]===p[m-s];s++);return vo=p.slice(t,1<s?1-s:void 0)}function xo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function To(){return!0}function Xb(){return!1}function Bt(t){function r(o,s,p,m,v){this._reactName=o,this._targetInst=p,this.type=s,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(o=t[R],this[R]=o?o(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?To:Xb,this.isPropagationStopped=Xb,this}return h(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=To)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),r}var qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ao=Bt(qr),gi=h({},qr,{view:0,detail:0}),FC=Bt(gi),Ss,vs,mi,_o=h({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ts,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==mi&&(mi&&t.type==="mousemove"?(Ss=t.screenX-mi.screenX,vs=t.screenY-mi.screenY):vs=Ss=0,mi=t),Ss)},movementY:function(t){return"movementY"in t?t.movementY:vs}}),Zb=Bt(_o),BC=h({},_o,{dataTransfer:0}),jC=Bt(BC),zC=h({},gi,{relatedTarget:0}),xs=Bt(zC),qC=h({},qr,{animationName:0,elapsedTime:0,pseudoElement:0}),PC=Bt(qC),GC=h({},qr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),HC=Bt(GC),$C=h({},qr,{data:0}),Qb=Bt($C),VC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YC={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"},WC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KC(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=WC[t])?!!r[t]:!1}function Ts(){return KC}var XC=h({},gi,{key:function(t){if(t.key){var r=VC[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=xo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?YC[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ts,charCode:function(t){return t.type==="keypress"?xo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?xo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ZC=Bt(XC),QC=h({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jb=Bt(QC),JC=h({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ts}),e0=Bt(JC),t0=h({},qr,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0=Bt(t0),r0=h({},_o,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),a0=Bt(r0),i0=h({},qr,{newState:0,oldState:0}),o0=Bt(i0),l0=[9,13,27,32],As=qn&&"CompositionEvent"in window,hi=null;qn&&"documentMode"in document&&(hi=document.documentMode);var s0=qn&&"TextEvent"in window&&!hi,ey=qn&&(!As||hi&&8<hi&&11>=hi),ty=" ",ny=!1;function ry(t,r){switch(t){case"keyup":return l0.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ay(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var va=!1;function u0(t,r){switch(t){case"compositionend":return ay(r);case"keypress":return r.which!==32?null:(ny=!0,ty);case"textInput":return t=r.data,t===ty&&ny?null:t;default:return null}}function c0(t,r){if(va)return t==="compositionend"||!As&&ry(t,r)?(t=Kb(),vo=Es=ur=null,va=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return ey&&r.locale!=="ko"?null:r.data;default:return null}}var d0={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 iy(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!d0[t.type]:r==="textarea"}function oy(t,r,o,s){Ea?Sa?Sa.push(s):Sa=[s]:Ea=s,r=gl(r,"onChange"),0<r.length&&(o=new Ao("onChange","change",null,o,s),t.push({event:o,listeners:r}))}var bi=null,yi=null;function p0(t){PS(t,0)}function Ro(t){var r=di(t);if(qb(r))return t}function ly(t,r){if(t==="change")return r}var sy=!1;if(qn){var _s;if(qn){var Rs="oninput"in document;if(!Rs){var uy=document.createElement("div");uy.setAttribute("oninput","return;"),Rs=typeof uy.oninput=="function"}_s=Rs}else _s=!1;sy=_s&&(!document.documentMode||9<document.documentMode)}function cy(){bi&&(bi.detachEvent("onpropertychange",dy),yi=bi=null)}function dy(t){if(t.propertyName==="value"&&Ro(yi)){var r=[];oy(r,yi,t,hs(t)),Wb(p0,r)}}function f0(t,r,o){t==="focusin"?(cy(),bi=r,yi=o,bi.attachEvent("onpropertychange",dy)):t==="focusout"&&cy()}function g0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ro(yi)}function m0(t,r){if(t==="click")return Ro(r)}function h0(t,r){if(t==="input"||t==="change")return Ro(r)}function b0(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Wt=typeof Object.is=="function"?Object.is:b0;function Ei(t,r){if(Wt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),s=Object.keys(r);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var p=o[s];if(!Fn.call(r,p)||!Wt(t[p],r[p]))return!1}return!0}function py(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fy(t,r){var o=py(t);t=0;for(var s;o;){if(o.nodeType===3){if(s=t+o.textContent.length,t<=r&&s>=r)return{node:o,offset:r-t};t=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=py(o)}}function gy(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?gy(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function my(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Eo(t.document);r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=Eo(t.document)}return r}function Ns(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var y0=qn&&"documentMode"in document&&11>=document.documentMode,xa=null,ws=null,Si=null,ks=!1;function hy(t,r,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ks||xa==null||xa!==Eo(s)||(s=xa,"selectionStart"in s&&Ns(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Si&&Ei(Si,s)||(Si=s,s=gl(ws,"onSelect"),0<s.length&&(r=new Ao("onSelect","select",null,r,o),t.push({event:r,listeners:s}),r.target=xa)))}function Pr(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var Ta={animationend:Pr("Animation","AnimationEnd"),animationiteration:Pr("Animation","AnimationIteration"),animationstart:Pr("Animation","AnimationStart"),transitionrun:Pr("Transition","TransitionRun"),transitionstart:Pr("Transition","TransitionStart"),transitioncancel:Pr("Transition","TransitionCancel"),transitionend:Pr("Transition","TransitionEnd")},Cs={},by={};qn&&(by=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function Gr(t){if(Cs[t])return Cs[t];if(!Ta[t])return t;var r=Ta[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in by)return Cs[t]=r[o];return t}var yy=Gr("animationend"),Ey=Gr("animationiteration"),Sy=Gr("animationstart"),E0=Gr("transitionrun"),S0=Gr("transitionstart"),v0=Gr("transitioncancel"),vy=Gr("transitionend"),xy=new Map,Is="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Is.push("scrollEnd");function xn(t,r){xy.set(t,r),zr(r,[t])}var No=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},cn=[],Aa=0,Os=0;function wo(){for(var t=Aa,r=Os=Aa=0;r<t;){var o=cn[r];cn[r++]=null;var s=cn[r];cn[r++]=null;var p=cn[r];cn[r++]=null;var m=cn[r];if(cn[r++]=null,s!==null&&p!==null){var v=s.pending;v===null?p.next=p:(p.next=v.next,v.next=p),s.pending=p}m!==0&&Ty(o,p,m)}}function ko(t,r,o,s){cn[Aa++]=t,cn[Aa++]=r,cn[Aa++]=o,cn[Aa++]=s,Os|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Ds(t,r,o,s){return ko(t,r,o,s),Co(t)}function Hr(t,r){return ko(t,null,null,r),Co(t)}function Ty(t,r,o){t.lanes|=o;var s=t.alternate;s!==null&&(s.lanes|=o);for(var p=!1,m=t.return;m!==null;)m.childLanes|=o,s=m.alternate,s!==null&&(s.childLanes|=o),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(p=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,p&&r!==null&&(p=31-Be(o),t=m.hiddenUpdates,s=t[p],s===null?t[p]=[r]:s.push(r),r.lane=o|536870912),m):null}function Co(t){if(50<Pi)throw Pi=0,Pu=null,Error(i(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var _a={};function x0(t,r,o,s){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(t,r,o,s){return new x0(t,r,o,s)}function Ls(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Pn(t,r){var o=t.alternate;return o===null?(o=Kt(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function Ay(t,r){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,r=o.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Io(t,r,o,s,p,m){var v=0;if(s=t,typeof t=="function")Ls(t)&&(v=1);else if(typeof t=="string")v=NI(t,o,re.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case z:return t=Kt(31,o,r,p),t.elementType=z,t.lanes=m,t;case T:return $r(o.children,p,m,r);case C:v=8,p|=24;break;case x:return t=Kt(12,o,r,p|2),t.elementType=x,t.lanes=m,t;case U:return t=Kt(13,o,r,p),t.elementType=U,t.lanes=m,t;case w:return t=Kt(19,o,r,p),t.elementType=w,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case N:v=10;break e;case A:v=9;break e;case D:v=11;break e;case M:v=14;break e;case H:v=16,s=null;break e}v=29,o=Error(i(130,t===null?"null":typeof t,"")),s=null}return r=Kt(v,o,r,p),r.elementType=t,r.type=s,r.lanes=m,r}function $r(t,r,o,s){return t=Kt(7,t,s,r),t.lanes=o,t}function Ms(t,r,o){return t=Kt(6,t,null,r),t.lanes=o,t}function _y(t){var r=Kt(18,null,null,0);return r.stateNode=t,r}function Us(t,r,o){return r=Kt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var Ry=new WeakMap;function dn(t,r){if(typeof t=="object"&&t!==null){var o=Ry.get(t);return o!==void 0?o:(r={value:t,source:r,stack:on(r)},Ry.set(t,r),r)}return{value:t,source:r,stack:on(r)}}var Ra=[],Na=0,Oo=null,vi=0,pn=[],fn=0,cr=null,Cn=1,In="";function Gn(t,r){Ra[Na++]=vi,Ra[Na++]=Oo,Oo=t,vi=r}function Ny(t,r,o){pn[fn++]=Cn,pn[fn++]=In,pn[fn++]=cr,cr=t;var s=Cn;t=In;var p=32-Be(s)-1;s&=~(1<<p),o+=1;var m=32-Be(r)+p;if(30<m){var v=p-p%5;m=(s&(1<<v)-1).toString(32),s>>=v,p-=v,Cn=1<<32-Be(r)+p|o<<p|s,In=m+t}else Cn=1<<m|o<<p|s,In=t}function Fs(t){t.return!==null&&(Gn(t,1),Ny(t,1,0))}function Bs(t){for(;t===Oo;)Oo=Ra[--Na],Ra[Na]=null,vi=Ra[--Na],Ra[Na]=null;for(;t===cr;)cr=pn[--fn],pn[fn]=null,In=pn[--fn],pn[fn]=null,Cn=pn[--fn],pn[fn]=null}function wy(t,r){pn[fn++]=Cn,pn[fn++]=In,pn[fn++]=cr,Cn=r.id,In=r.overflow,cr=t}var St=null,We=null,De=!1,dr=null,gn=!1,js=Error(i(519));function pr(t){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xi(dn(r,t)),js}function ky(t){var r=t.stateNode,o=t.type,s=t.memoizedProps;switch(r[Et]=t,r[Ft]=s,o){case"dialog":Re("cancel",r),Re("close",r);break;case"iframe":case"object":case"embed":Re("load",r);break;case"video":case"audio":for(o=0;o<Hi.length;o++)Re(Hi[o],r);break;case"source":Re("error",r);break;case"img":case"image":case"link":Re("error",r),Re("load",r);break;case"details":Re("toggle",r);break;case"input":Re("invalid",r),Pb(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Re("invalid",r);break;case"textarea":Re("invalid",r),Hb(r,s.value,s.defaultValue,s.children)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||s.suppressHydrationWarning===!0||VS(r.textContent,o)?(s.popover!=null&&(Re("beforetoggle",r),Re("toggle",r)),s.onScroll!=null&&Re("scroll",r),s.onScrollEnd!=null&&Re("scrollend",r),s.onClick!=null&&(r.onclick=zn),r=!0):r=!1,r||pr(t,!0)}function Cy(t){for(St=t.return;St;)switch(St.tag){case 5:case 31:case 13:gn=!1;return;case 27:case 3:gn=!0;return;default:St=St.return}}function wa(t){if(t!==St)return!1;if(!De)return Cy(t),De=!0,!1;var r=t.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||rc(t.type,t.memoizedProps)),o=!o),o&&We&&pr(t),Cy(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));We=tv(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));We=tv(t)}else r===27?(r=We,Rr(t.type)?(t=sc,sc=null,We=t):We=r):We=St?hn(t.stateNode.nextSibling):null;return!0}function Vr(){We=St=null,De=!1}function zs(){var t=dr;return t!==null&&(Pt===null?Pt=t:Pt.push.apply(Pt,t),dr=null),t}function xi(t){dr===null?dr=[t]:dr.push(t)}var qs=O(null),Yr=null,Hn=null;function fr(t,r,o){k(qs,r._currentValue),r._currentValue=o}function $n(t){t._currentValue=qs.current,V(qs)}function Ps(t,r,o){for(;t!==null;){var s=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),t===o)break;t=t.return}}function Gs(t,r,o,s){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var m=p.dependencies;if(m!==null){var v=p.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=p;for(var L=0;L<r.length;L++)if(R.context===r[L]){m.lanes|=o,R=m.alternate,R!==null&&(R.lanes|=o),Ps(m.return,o,t),s||(v=null);break e}m=R.next}}else if(p.tag===18){if(v=p.return,v===null)throw Error(i(341));v.lanes|=o,m=v.alternate,m!==null&&(m.lanes|=o),Ps(v,o,t),v=null}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===t){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}}function ka(t,r,o,s){t=null;for(var p=r,m=!1;p!==null;){if(!m){if((p.flags&524288)!==0)m=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var v=p.alternate;if(v===null)throw Error(i(387));if(v=v.memoizedProps,v!==null){var R=p.type;Wt(p.pendingProps.value,v.value)||(t!==null?t.push(R):t=[R])}}else if(p===he.current){if(v=p.alternate,v===null)throw Error(i(387));v.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(Ki):t=[Ki])}p=p.return}t!==null&&Gs(r,t,o,s),r.flags|=262144}function Do(t){for(t=t.firstContext;t!==null;){if(!Wt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wr(t){Yr=t,Hn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function vt(t){return Iy(Yr,t)}function Lo(t,r){return Yr===null&&Wr(t),Iy(t,r)}function Iy(t,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},Hn===null){if(t===null)throw Error(i(308));Hn=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Hn=Hn.next=r;return o}var T0=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(o,s){t.push(s)}};this.abort=function(){r.aborted=!0,t.forEach(function(o){return o()})}},A0=e.unstable_scheduleCallback,_0=e.unstable_NormalPriority,ot={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hs(){return{controller:new T0,data:new Map,refCount:0}}function Ti(t){t.refCount--,t.refCount===0&&A0(_0,function(){t.controller.abort()})}var Ai=null,$s=0,Ca=0,Ia=null;function R0(t,r){if(Ai===null){var o=Ai=[];$s=0,Ca=Wu(),Ia={status:"pending",value:void 0,then:function(s){o.push(s)}}}return $s++,r.then(Oy,Oy),r}function Oy(){if(--$s===0&&Ai!==null){Ia!==null&&(Ia.status="fulfilled");var t=Ai;Ai=null,Ca=0,Ia=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function N0(t,r){var o=[],s={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return t.then(function(){s.status="fulfilled",s.value=r;for(var p=0;p<o.length;p++)(0,o[p])(r)},function(p){for(s.status="rejected",s.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),s}var Dy=G.S;G.S=function(t,r){hS=Qe(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&R0(t,r),Dy!==null&&Dy(t,r)};var Kr=O(null);function Vs(){var t=Kr.current;return t!==null?t:$e.pooledCache}function Mo(t,r){r===null?k(Kr,Kr.current):k(Kr,r.pool)}function Ly(){var t=Vs();return t===null?null:{parent:ot._currentValue,pool:t}}var Oa=Error(i(460)),Ys=Error(i(474)),Uo=Error(i(542)),Fo={then:function(){}};function My(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Uy(t,r,o){switch(o=t[o],o===void 0?t.push(r):o!==r&&(r.then(zn,zn),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,By(t),t;default:if(typeof r.status=="string")r.then(zn,zn);else{if(t=$e,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=r,t.status="pending",t.then(function(s){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=s}},function(s){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=s}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,By(t),t}throw Zr=r,Oa}}function Xr(t){try{var r=t._init;return r(t._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Zr=o,Oa):o}}var Zr=null;function Fy(){if(Zr===null)throw Error(i(459));var t=Zr;return Zr=null,t}function By(t){if(t===Oa||t===Uo)throw Error(i(483))}var Da=null,_i=0;function Bo(t){var r=_i;return _i+=1,Da===null&&(Da=[]),Uy(Da,t,r)}function Ri(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function jo(t,r){throw r.$$typeof===E?Error(i(525)):(t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function jy(t){function r(j,B){if(t){var q=j.deletions;q===null?(j.deletions=[B],j.flags|=16):q.push(B)}}function o(j,B){if(!t)return null;for(;B!==null;)r(j,B),B=B.sibling;return null}function s(j){for(var B=new Map;j!==null;)j.key!==null?B.set(j.key,j):B.set(j.index,j),j=j.sibling;return B}function p(j,B){return j=Pn(j,B),j.index=0,j.sibling=null,j}function m(j,B,q){return j.index=q,t?(q=j.alternate,q!==null?(q=q.index,q<B?(j.flags|=67108866,B):q):(j.flags|=67108866,B)):(j.flags|=1048576,B)}function v(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function R(j,B,q,Z){return B===null||B.tag!==6?(B=Ms(q,j.mode,Z),B.return=j,B):(B=p(B,q),B.return=j,B)}function L(j,B,q,Z){var me=q.type;return me===T?X(j,B,q.props.children,Z,q.key):B!==null&&(B.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===H&&Xr(me)===B.type)?(B=p(B,q.props),Ri(B,q),B.return=j,B):(B=Io(q.type,q.key,q.props,null,j.mode,Z),Ri(B,q),B.return=j,B)}function P(j,B,q,Z){return B===null||B.tag!==4||B.stateNode.containerInfo!==q.containerInfo||B.stateNode.implementation!==q.implementation?(B=Us(q,j.mode,Z),B.return=j,B):(B=p(B,q.children||[]),B.return=j,B)}function X(j,B,q,Z,me){return B===null||B.tag!==7?(B=$r(q,j.mode,Z,me),B.return=j,B):(B=p(B,q),B.return=j,B)}function J(j,B,q){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=Ms(""+B,j.mode,q),B.return=j,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return q=Io(B.type,B.key,B.props,null,j.mode,q),Ri(q,B),q.return=j,q;case _:return B=Us(B,j.mode,q),B.return=j,B;case H:return B=Xr(B),J(j,B,q)}if(se(B)||Q(B))return B=$r(B,j.mode,q,null),B.return=j,B;if(typeof B.then=="function")return J(j,Bo(B),q);if(B.$$typeof===N)return J(j,Lo(j,B),q);jo(j,B)}return null}function $(j,B,q,Z){var me=B!==null?B.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return me!==null?null:R(j,B,""+q,Z);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===me?L(j,B,q,Z):null;case _:return q.key===me?P(j,B,q,Z):null;case H:return q=Xr(q),$(j,B,q,Z)}if(se(q)||Q(q))return me!==null?null:X(j,B,q,Z,null);if(typeof q.then=="function")return $(j,B,Bo(q),Z);if(q.$$typeof===N)return $(j,B,Lo(j,q),Z);jo(j,q)}return null}function Y(j,B,q,Z,me){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return j=j.get(q)||null,R(B,j,""+Z,me);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return j=j.get(Z.key===null?q:Z.key)||null,L(B,j,Z,me);case _:return j=j.get(Z.key===null?q:Z.key)||null,P(B,j,Z,me);case H:return Z=Xr(Z),Y(j,B,q,Z,me)}if(se(Z)||Q(Z))return j=j.get(q)||null,X(B,j,Z,me,null);if(typeof Z.then=="function")return Y(j,B,q,Bo(Z),me);if(Z.$$typeof===N)return Y(j,B,q,Lo(B,Z),me);jo(B,Z)}return null}function pe(j,B,q,Z){for(var me=null,Me=null,ge=B,xe=B=0,Ce=null;ge!==null&&xe<q.length;xe++){ge.index>xe?(Ce=ge,ge=null):Ce=ge.sibling;var Ue=$(j,ge,q[xe],Z);if(Ue===null){ge===null&&(ge=Ce);break}t&&ge&&Ue.alternate===null&&r(j,ge),B=m(Ue,B,xe),Me===null?me=Ue:Me.sibling=Ue,Me=Ue,ge=Ce}if(xe===q.length)return o(j,ge),De&&Gn(j,xe),me;if(ge===null){for(;xe<q.length;xe++)ge=J(j,q[xe],Z),ge!==null&&(B=m(ge,B,xe),Me===null?me=ge:Me.sibling=ge,Me=ge);return De&&Gn(j,xe),me}for(ge=s(ge);xe<q.length;xe++)Ce=Y(ge,j,xe,q[xe],Z),Ce!==null&&(t&&Ce.alternate!==null&&ge.delete(Ce.key===null?xe:Ce.key),B=m(Ce,B,xe),Me===null?me=Ce:Me.sibling=Ce,Me=Ce);return t&&ge.forEach(function(Ir){return r(j,Ir)}),De&&Gn(j,xe),me}function ye(j,B,q,Z){if(q==null)throw Error(i(151));for(var me=null,Me=null,ge=B,xe=B=0,Ce=null,Ue=q.next();ge!==null&&!Ue.done;xe++,Ue=q.next()){ge.index>xe?(Ce=ge,ge=null):Ce=ge.sibling;var Ir=$(j,ge,Ue.value,Z);if(Ir===null){ge===null&&(ge=Ce);break}t&&ge&&Ir.alternate===null&&r(j,ge),B=m(Ir,B,xe),Me===null?me=Ir:Me.sibling=Ir,Me=Ir,ge=Ce}if(Ue.done)return o(j,ge),De&&Gn(j,xe),me;if(ge===null){for(;!Ue.done;xe++,Ue=q.next())Ue=J(j,Ue.value,Z),Ue!==null&&(B=m(Ue,B,xe),Me===null?me=Ue:Me.sibling=Ue,Me=Ue);return De&&Gn(j,xe),me}for(ge=s(ge);!Ue.done;xe++,Ue=q.next())Ue=Y(ge,j,xe,Ue.value,Z),Ue!==null&&(t&&Ue.alternate!==null&&ge.delete(Ue.key===null?xe:Ue.key),B=m(Ue,B,xe),Me===null?me=Ue:Me.sibling=Ue,Me=Ue);return t&&ge.forEach(function(BI){return r(j,BI)}),De&&Gn(j,xe),me}function Ge(j,B,q,Z){if(typeof q=="object"&&q!==null&&q.type===T&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case S:e:{for(var me=q.key;B!==null;){if(B.key===me){if(me=q.type,me===T){if(B.tag===7){o(j,B.sibling),Z=p(B,q.props.children),Z.return=j,j=Z;break e}}else if(B.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===H&&Xr(me)===B.type){o(j,B.sibling),Z=p(B,q.props),Ri(Z,q),Z.return=j,j=Z;break e}o(j,B);break}else r(j,B);B=B.sibling}q.type===T?(Z=$r(q.props.children,j.mode,Z,q.key),Z.return=j,j=Z):(Z=Io(q.type,q.key,q.props,null,j.mode,Z),Ri(Z,q),Z.return=j,j=Z)}return v(j);case _:e:{for(me=q.key;B!==null;){if(B.key===me)if(B.tag===4&&B.stateNode.containerInfo===q.containerInfo&&B.stateNode.implementation===q.implementation){o(j,B.sibling),Z=p(B,q.children||[]),Z.return=j,j=Z;break e}else{o(j,B);break}else r(j,B);B=B.sibling}Z=Us(q,j.mode,Z),Z.return=j,j=Z}return v(j);case H:return q=Xr(q),Ge(j,B,q,Z)}if(se(q))return pe(j,B,q,Z);if(Q(q)){if(me=Q(q),typeof me!="function")throw Error(i(150));return q=me.call(q),ye(j,B,q,Z)}if(typeof q.then=="function")return Ge(j,B,Bo(q),Z);if(q.$$typeof===N)return Ge(j,B,Lo(j,q),Z);jo(j,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,B!==null&&B.tag===6?(o(j,B.sibling),Z=p(B,q),Z.return=j,j=Z):(o(j,B),Z=Ms(q,j.mode,Z),Z.return=j,j=Z),v(j)):o(j,B)}return function(j,B,q,Z){try{_i=0;var me=Ge(j,B,q,Z);return Da=null,me}catch(ge){if(ge===Oa||ge===Uo)throw ge;var Me=Kt(29,ge,null,j.mode);return Me.lanes=Z,Me.return=j,Me}finally{}}}var Qr=jy(!0),zy=jy(!1),gr=!1;function Ws(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ks(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function mr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function hr(t,r,o){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Fe&2)!==0){var p=s.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),s.pending=r,r=Co(t),Ty(t,null,o),r}return ko(t,s,r,o),Co(t)}function Ni(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var s=r.lanes;s&=t.pendingLanes,o|=s,r.lanes=o,Ib(t,o)}}function Xs(t,r){var o=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var p=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var v={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};m===null?p=m=v:m=m.next=v,o=o.next}while(o!==null);m===null?p=m=r:m=m.next=r}else p=m=r;o={baseState:s.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}var Zs=!1;function wi(){if(Zs){var t=Ia;if(t!==null)throw t}}function ki(t,r,o,s){Zs=!1;var p=t.updateQueue;gr=!1;var m=p.firstBaseUpdate,v=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var L=R,P=L.next;L.next=null,v===null?m=P:v.next=P,v=L;var X=t.alternate;X!==null&&(X=X.updateQueue,R=X.lastBaseUpdate,R!==v&&(R===null?X.firstBaseUpdate=P:R.next=P,X.lastBaseUpdate=L))}if(m!==null){var J=p.baseState;v=0,X=P=L=null,R=m;do{var $=R.lane&-536870913,Y=$!==R.lane;if(Y?(ke&$)===$:(s&$)===$){$!==0&&$===Ca&&(Zs=!0),X!==null&&(X=X.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var pe=t,ye=R;$=r;var Ge=o;switch(ye.tag){case 1:if(pe=ye.payload,typeof pe=="function"){J=pe.call(Ge,J,$);break e}J=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ye.payload,$=typeof pe=="function"?pe.call(Ge,J,$):pe,$==null)break e;J=h({},J,$);break e;case 2:gr=!0}}$=R.callback,$!==null&&(t.flags|=64,Y&&(t.flags|=8192),Y=p.callbacks,Y===null?p.callbacks=[$]:Y.push($))}else Y={lane:$,tag:R.tag,payload:R.payload,callback:R.callback,next:null},X===null?(P=X=Y,L=J):X=X.next=Y,v|=$;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,p.lastBaseUpdate=Y,p.shared.pending=null}}while(!0);X===null&&(L=J),p.baseState=L,p.firstBaseUpdate=P,p.lastBaseUpdate=X,m===null&&(p.shared.lanes=0),vr|=v,t.lanes=v,t.memoizedState=J}}function qy(t,r){if(typeof t!="function")throw Error(i(191,t));t.call(r)}function Py(t,r){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)qy(o[t],r)}var La=O(null),zo=O(0);function Gy(t,r){t=er,k(zo,t),k(La,r),er=t|r.baseLanes}function Qs(){k(zo,er),k(La,La.current)}function Js(){er=zo.current,V(La),V(zo)}var Xt=O(null),mn=null;function br(t){var r=t.alternate;k(rt,rt.current&1),k(Xt,t),mn===null&&(r===null||La.current!==null||r.memoizedState!==null)&&(mn=t)}function eu(t){k(rt,rt.current),k(Xt,t),mn===null&&(mn=t)}function Hy(t){t.tag===22?(k(rt,rt.current),k(Xt,t),mn===null&&(mn=t)):yr()}function yr(){k(rt,rt.current),k(Xt,Xt.current)}function Zt(t){V(Xt),mn===t&&(mn=null),V(rt)}var rt=O(0);function qo(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||oc(o)||lc(o)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Vn=0,ve=null,qe=null,lt=null,Po=!1,Ma=!1,Jr=!1,Go=0,Ci=0,Ua=null,w0=0;function et(){throw Error(i(321))}function tu(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!Wt(t[o],r[o]))return!1;return!0}function nu(t,r,o,s,p,m){return Vn=m,ve=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,G.H=t===null||t.memoizedState===null?NE:bu,Jr=!1,m=o(s,p),Jr=!1,Ma&&(m=Vy(r,o,s,p)),$y(t),m}function $y(t){G.H=Di;var r=qe!==null&&qe.next!==null;if(Vn=0,lt=qe=ve=null,Po=!1,Ci=0,Ua=null,r)throw Error(i(300));t===null||st||(t=t.dependencies,t!==null&&Do(t)&&(st=!0))}function Vy(t,r,o,s){ve=t;var p=0;do{if(Ma&&(Ua=null),Ci=0,Ma=!1,25<=p)throw Error(i(301));if(p+=1,lt=qe=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}G.H=wE,m=r(o,s)}while(Ma);return m}function k0(){var t=G.H,r=t.useState()[0];return r=typeof r.then=="function"?Ii(r):r,t=t.useState()[0],(qe!==null?qe.memoizedState:null)!==t&&(ve.flags|=1024),r}function ru(){var t=Go!==0;return Go=0,t}function au(t,r,o){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~o}function iu(t){if(Po){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Po=!1}Vn=0,lt=qe=ve=null,Ma=!1,Ci=Go=0,Ua=null}function It(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?ve.memoizedState=lt=t:lt=lt.next=t,lt}function at(){if(qe===null){var t=ve.alternate;t=t!==null?t.memoizedState:null}else t=qe.next;var r=lt===null?ve.memoizedState:lt.next;if(r!==null)lt=r,qe=t;else{if(t===null)throw ve.alternate===null?Error(i(467)):Error(i(310));qe=t,t={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},lt===null?ve.memoizedState=lt=t:lt=lt.next=t}return lt}function Ho(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(t){var r=Ci;return Ci+=1,Ua===null&&(Ua=[]),t=Uy(Ua,t,r),r=ve,(lt===null?r.memoizedState:lt.next)===null&&(r=r.alternate,G.H=r===null||r.memoizedState===null?NE:bu),t}function $o(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ii(t);if(t.$$typeof===N)return vt(t)}throw Error(i(438,String(t)))}function ou(t){var r=null,o=ve.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var s=ve.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=Ho(),ve.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(t),s=0;s<t;s++)o[s]=F;return r.index++,o}function Yn(t,r){return typeof r=="function"?r(t):r}function Vo(t){var r=at();return lu(r,qe,t)}function lu(t,r,o){var s=t.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=o;var p=t.baseQueue,m=s.pending;if(m!==null){if(p!==null){var v=p.next;p.next=m.next,m.next=v}r.baseQueue=p=m,s.pending=null}if(m=t.baseState,p===null)t.memoizedState=m;else{r=p.next;var R=v=null,L=null,P=r,X=!1;do{var J=P.lane&-536870913;if(J!==P.lane?(ke&J)===J:(Vn&J)===J){var $=P.revertLane;if($===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),J===Ca&&(X=!0);else if((Vn&$)===$){P=P.next,$===Ca&&(X=!0);continue}else J={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},L===null?(R=L=J,v=m):L=L.next=J,ve.lanes|=$,vr|=$;J=P.action,Jr&&o(m,J),m=P.hasEagerState?P.eagerState:o(m,J)}else $={lane:J,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},L===null?(R=L=$,v=m):L=L.next=$,ve.lanes|=J,vr|=J;P=P.next}while(P!==null&&P!==r);if(L===null?v=m:L.next=R,!Wt(m,t.memoizedState)&&(st=!0,X&&(o=Ia,o!==null)))throw o;t.memoizedState=m,t.baseState=v,t.baseQueue=L,s.lastRenderedState=m}return p===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function su(t){var r=at(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var s=o.dispatch,p=o.pending,m=r.memoizedState;if(p!==null){o.pending=null;var v=p=p.next;do m=t(m,v.action),v=v.next;while(v!==p);Wt(m,r.memoizedState)||(st=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),o.lastRenderedState=m}return[m,s]}function Yy(t,r,o){var s=ve,p=at(),m=De;if(m){if(o===void 0)throw Error(i(407));o=o()}else o=r();var v=!Wt((qe||p).memoizedState,o);if(v&&(p.memoizedState=o,st=!0),p=p.queue,du(Xy.bind(null,s,p,t),[t]),p.getSnapshot!==r||v||lt!==null&<.memoizedState.tag&1){if(s.flags|=2048,Fa(9,{destroy:void 0},Ky.bind(null,s,p,o,r),null),$e===null)throw Error(i(349));m||(Vn&127)!==0||Wy(s,r,o)}return o}function Wy(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=ve.updateQueue,r===null?(r=Ho(),ve.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function Ky(t,r,o,s){r.value=o,r.getSnapshot=s,Zy(r)&&Qy(t)}function Xy(t,r,o){return o(function(){Zy(r)&&Qy(t)})}function Zy(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!Wt(t,o)}catch{return!0}}function Qy(t){var r=Hr(t,2);r!==null&&Gt(r,t,2)}function uu(t){var r=It();if(typeof t=="function"){var o=t;if(t=o(),Jr){Xe(!0);try{o()}finally{Xe(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:t},r}function Jy(t,r,o,s){return t.baseState=o,lu(t,qe,typeof s=="function"?s:Yn)}function C0(t,r,o,s,p){if(Ko(t))throw Error(i(485));if(t=r.action,t!==null){var m={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};G.T!==null?o(!0):m.isTransition=!1,s(m),o=r.pending,o===null?(m.next=r.pending=m,eE(r,m)):(m.next=o.next,r.pending=o.next=m)}}function eE(t,r){var o=r.action,s=r.payload,p=t.state;if(r.isTransition){var m=G.T,v={};G.T=v;try{var R=o(p,s),L=G.S;L!==null&&L(v,R),tE(t,r,R)}catch(P){cu(t,r,P)}finally{m!==null&&v.types!==null&&(m.types=v.types),G.T=m}}else try{m=o(p,s),tE(t,r,m)}catch(P){cu(t,r,P)}}function tE(t,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(s){nE(t,r,s)},function(s){return cu(t,r,s)}):nE(t,r,o)}function nE(t,r,o){r.status="fulfilled",r.value=o,rE(r),t.state=o,r=t.pending,r!==null&&(o=r.next,o===r?t.pending=null:(o=o.next,r.next=o,eE(t,o)))}function cu(t,r,o){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=o,rE(r),r=r.next;while(r!==s)}t.action=null}function rE(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function aE(t,r){return r}function iE(t,r){if(De){var o=$e.formState;if(o!==null){e:{var s=ve;if(De){if(We){t:{for(var p=We,m=gn;p.nodeType!==8;){if(!m){p=null;break t}if(p=hn(p.nextSibling),p===null){p=null;break t}}m=p.data,p=m==="F!"||m==="F"?p:null}if(p){We=hn(p.nextSibling),s=p.data==="F!";break e}}pr(s)}s=!1}s&&(r=o[0])}}return o=It(),o.memoizedState=o.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aE,lastRenderedState:r},o.queue=s,o=AE.bind(null,ve,s),s.dispatch=o,s=uu(!1),m=hu.bind(null,ve,!1,s.queue),s=It(),p={state:r,dispatch:null,action:t,pending:null},s.queue=p,o=C0.bind(null,ve,p,m,o),p.dispatch=o,s.memoizedState=t,[r,o,!1]}function oE(t){var r=at();return lE(r,qe,t)}function lE(t,r,o){if(r=lu(t,r,aE)[0],t=Vo(Yn)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Ii(r)}catch(v){throw v===Oa?Uo:v}else s=r;r=at();var p=r.queue,m=p.dispatch;return o!==r.memoizedState&&(ve.flags|=2048,Fa(9,{destroy:void 0},I0.bind(null,p,o),null)),[s,m,t]}function I0(t,r){t.action=r}function sE(t){var r=at(),o=qe;if(o!==null)return lE(r,o,t);at(),r=r.memoizedState,o=at();var s=o.queue.dispatch;return o.memoizedState=t,[r,s,!1]}function Fa(t,r,o,s){return t={tag:t,create:o,deps:s,inst:r,next:null},r=ve.updateQueue,r===null&&(r=Ho(),ve.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=t.next=t:(s=o.next,o.next=t,t.next=s,r.lastEffect=t),t}function uE(){return at().memoizedState}function Yo(t,r,o,s){var p=It();ve.flags|=t,p.memoizedState=Fa(1|r,{destroy:void 0},o,s===void 0?null:s)}function Wo(t,r,o,s){var p=at();s=s===void 0?null:s;var m=p.memoizedState.inst;qe!==null&&s!==null&&tu(s,qe.memoizedState.deps)?p.memoizedState=Fa(r,m,o,s):(ve.flags|=t,p.memoizedState=Fa(1|r,m,o,s))}function cE(t,r){Yo(8390656,8,t,r)}function du(t,r){Wo(2048,8,t,r)}function O0(t){ve.flags|=4;var r=ve.updateQueue;if(r===null)r=Ho(),ve.updateQueue=r,r.events=[t];else{var o=r.events;o===null?r.events=[t]:o.push(t)}}function dE(t){var r=at().memoizedState;return O0({ref:r,nextImpl:t}),function(){if((Fe&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function pE(t,r){return Wo(4,2,t,r)}function fE(t,r){return Wo(4,4,t,r)}function gE(t,r){if(typeof r=="function"){t=t();var o=r(t);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function mE(t,r,o){o=o!=null?o.concat([t]):null,Wo(4,4,gE.bind(null,r,t),o)}function pu(){}function hE(t,r){var o=at();r=r===void 0?null:r;var s=o.memoizedState;return r!==null&&tu(r,s[1])?s[0]:(o.memoizedState=[t,r],t)}function bE(t,r){var o=at();r=r===void 0?null:r;var s=o.memoizedState;if(r!==null&&tu(r,s[1]))return s[0];if(s=t(),Jr){Xe(!0);try{t()}finally{Xe(!1)}}return o.memoizedState=[s,r],s}function fu(t,r,o){return o===void 0||(Vn&1073741824)!==0&&(ke&261930)===0?t.memoizedState=r:(t.memoizedState=o,t=yS(),ve.lanes|=t,vr|=t,o)}function yE(t,r,o,s){return Wt(o,r)?o:La.current!==null?(t=fu(t,o,s),Wt(t,r)||(st=!0),t):(Vn&42)===0||(Vn&1073741824)!==0&&(ke&261930)===0?(st=!0,t.memoizedState=o):(t=yS(),ve.lanes|=t,vr|=t,r)}function EE(t,r,o,s,p){var m=ee.p;ee.p=m!==0&&8>m?m:8;var v=G.T,R={};G.T=R,hu(t,!1,r,o);try{var L=p(),P=G.S;if(P!==null&&P(R,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var X=N0(L,s);Oi(t,r,X,en(t))}else Oi(t,r,s,en(t))}catch(J){Oi(t,r,{then:function(){},status:"rejected",reason:J},en())}finally{ee.p=m,v!==null&&R.types!==null&&(v.types=R.types),G.T=v}}function D0(){}function gu(t,r,o,s){if(t.tag!==5)throw Error(i(476));var p=SE(t).queue;EE(t,p,r,ae,o===null?D0:function(){return vE(t),o(s)})}function SE(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:ae},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:o},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function vE(t){var r=SE(t);r.next===null&&(r=t.alternate.memoizedState),Oi(t,r.next.queue,{},en())}function mu(){return vt(Ki)}function xE(){return at().memoizedState}function TE(){return at().memoizedState}function L0(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var o=en();t=mr(o);var s=hr(r,t,o);s!==null&&(Gt(s,r,o),Ni(s,r,o)),r={cache:Hs()},t.payload=r;return}r=r.return}}function M0(t,r,o){var s=en();o={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ko(t)?_E(r,o):(o=Ds(t,r,o,s),o!==null&&(Gt(o,t,s),RE(o,r,s)))}function AE(t,r,o){var s=en();Oi(t,r,o,s)}function Oi(t,r,o,s){var p={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ko(t))_E(r,p);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var v=r.lastRenderedState,R=m(v,o);if(p.hasEagerState=!0,p.eagerState=R,Wt(R,v))return ko(t,r,p,0),$e===null&&wo(),!1}catch{}finally{}if(o=Ds(t,r,p,s),o!==null)return Gt(o,t,s),RE(o,r,s),!0}return!1}function hu(t,r,o,s){if(s={lane:2,revertLane:Wu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ko(t)){if(r)throw Error(i(479))}else r=Ds(t,o,s,2),r!==null&&Gt(r,t,2)}function Ko(t){var r=t.alternate;return t===ve||r!==null&&r===ve}function _E(t,r){Ma=Po=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function RE(t,r,o){if((o&4194048)!==0){var s=r.lanes;s&=t.pendingLanes,o|=s,r.lanes=o,Ib(t,o)}}var Di={readContext:vt,use:$o,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};Di.useEffectEvent=et;var NE={readContext:vt,use:$o,useCallback:function(t,r){return It().memoizedState=[t,r===void 0?null:r],t},useContext:vt,useEffect:cE,useImperativeHandle:function(t,r,o){o=o!=null?o.concat([t]):null,Yo(4194308,4,gE.bind(null,r,t),o)},useLayoutEffect:function(t,r){return Yo(4194308,4,t,r)},useInsertionEffect:function(t,r){Yo(4,2,t,r)},useMemo:function(t,r){var o=It();r=r===void 0?null:r;var s=t();if(Jr){Xe(!0);try{t()}finally{Xe(!1)}}return o.memoizedState=[s,r],s},useReducer:function(t,r,o){var s=It();if(o!==void 0){var p=o(r);if(Jr){Xe(!0);try{o(r)}finally{Xe(!1)}}}else p=r;return s.memoizedState=s.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},s.queue=t,t=t.dispatch=M0.bind(null,ve,t),[s.memoizedState,t]},useRef:function(t){var r=It();return t={current:t},r.memoizedState=t},useState:function(t){t=uu(t);var r=t.queue,o=AE.bind(null,ve,r);return r.dispatch=o,[t.memoizedState,o]},useDebugValue:pu,useDeferredValue:function(t,r){var o=It();return fu(o,t,r)},useTransition:function(){var t=uu(!1);return t=EE.bind(null,ve,t.queue,!0,!1),It().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,o){var s=ve,p=It();if(De){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),$e===null)throw Error(i(349));(ke&127)!==0||Wy(s,r,o)}p.memoizedState=o;var m={value:o,getSnapshot:r};return p.queue=m,cE(Xy.bind(null,s,m,t),[t]),s.flags|=2048,Fa(9,{destroy:void 0},Ky.bind(null,s,m,o,r),null),o},useId:function(){var t=It(),r=$e.identifierPrefix;if(De){var o=In,s=Cn;o=(s&~(1<<32-Be(s)-1)).toString(32)+o,r="_"+r+"R_"+o,o=Go++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=w0++,r="_"+r+"r_"+o.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:mu,useFormState:iE,useActionState:iE,useOptimistic:function(t){var r=It();r.memoizedState=r.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=hu.bind(null,ve,!0,o),o.dispatch=r,[t,r]},useMemoCache:ou,useCacheRefresh:function(){return It().memoizedState=L0.bind(null,ve)},useEffectEvent:function(t){var r=It(),o={impl:t};return r.memoizedState=o,function(){if((Fe&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},bu={readContext:vt,use:$o,useCallback:hE,useContext:vt,useEffect:du,useImperativeHandle:mE,useInsertionEffect:pE,useLayoutEffect:fE,useMemo:bE,useReducer:Vo,useRef:uE,useState:function(){return Vo(Yn)},useDebugValue:pu,useDeferredValue:function(t,r){var o=at();return yE(o,qe.memoizedState,t,r)},useTransition:function(){var t=Vo(Yn)[0],r=at().memoizedState;return[typeof t=="boolean"?t:Ii(t),r]},useSyncExternalStore:Yy,useId:xE,useHostTransitionStatus:mu,useFormState:oE,useActionState:oE,useOptimistic:function(t,r){var o=at();return Jy(o,qe,t,r)},useMemoCache:ou,useCacheRefresh:TE};bu.useEffectEvent=dE;var wE={readContext:vt,use:$o,useCallback:hE,useContext:vt,useEffect:du,useImperativeHandle:mE,useInsertionEffect:pE,useLayoutEffect:fE,useMemo:bE,useReducer:su,useRef:uE,useState:function(){return su(Yn)},useDebugValue:pu,useDeferredValue:function(t,r){var o=at();return qe===null?fu(o,t,r):yE(o,qe.memoizedState,t,r)},useTransition:function(){var t=su(Yn)[0],r=at().memoizedState;return[typeof t=="boolean"?t:Ii(t),r]},useSyncExternalStore:Yy,useId:xE,useHostTransitionStatus:mu,useFormState:sE,useActionState:sE,useOptimistic:function(t,r){var o=at();return qe!==null?Jy(o,qe,t,r):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:ou,useCacheRefresh:TE};wE.useEffectEvent=dE;function yu(t,r,o,s){r=t.memoizedState,o=o(s,r),o=o==null?r:h({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Eu={enqueueSetState:function(t,r,o){t=t._reactInternals;var s=en(),p=mr(s);p.payload=r,o!=null&&(p.callback=o),r=hr(t,p,s),r!==null&&(Gt(r,t,s),Ni(r,t,s))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var s=en(),p=mr(s);p.tag=1,p.payload=r,o!=null&&(p.callback=o),r=hr(t,p,s),r!==null&&(Gt(r,t,s),Ni(r,t,s))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=en(),s=mr(o);s.tag=2,r!=null&&(s.callback=r),r=hr(t,s,o),r!==null&&(Gt(r,t,o),Ni(r,t,o))}};function kE(t,r,o,s,p,m,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,m,v):r.prototype&&r.prototype.isPureReactComponent?!Ei(o,s)||!Ei(p,m):!0}function CE(t,r,o,s){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,s),r.state!==t&&Eu.enqueueReplaceState(r,r.state,null)}function ea(t,r){var o=r;if("ref"in r){o={};for(var s in r)s!=="ref"&&(o[s]=r[s])}if(t=t.defaultProps){o===r&&(o=h({},o));for(var p in t)o[p]===void 0&&(o[p]=t[p])}return o}function IE(t){No(t)}function OE(t){console.error(t)}function DE(t){No(t)}function Xo(t,r){try{var o=t.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function LE(t,r,o){try{var s=t.onCaughtError;s(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Su(t,r,o){return o=mr(o),o.tag=3,o.payload={element:null},o.callback=function(){Xo(t,r)},o}function ME(t){return t=mr(t),t.tag=3,t}function UE(t,r,o,s){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var m=s.value;t.payload=function(){return p(m)},t.callback=function(){LE(r,o,s)}}var v=o.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){LE(r,o,s),typeof p!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var R=s.stack;this.componentDidCatch(s.value,{componentStack:R!==null?R:""})})}function U0(t,r,o,s,p){if(o.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=o.alternate,r!==null&&ka(r,o,p,!0),o=Xt.current,o!==null){switch(o.tag){case 31:case 13:return mn===null?sl():o.alternate===null&&tt===0&&(tt=3),o.flags&=-257,o.flags|=65536,o.lanes=p,s===Fo?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([s]):r.add(s),$u(t,s,p)),!1;case 22:return o.flags|=65536,s===Fo?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([s]):o.add(s)),$u(t,s,p)),!1}throw Error(i(435,o.tag))}return $u(t,s,p),sl(),!1}if(De)return r=Xt.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,s!==js&&(t=Error(i(422),{cause:s}),xi(dn(t,o)))):(s!==js&&(r=Error(i(423),{cause:s}),xi(dn(r,o))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,s=dn(s,o),p=Su(t.stateNode,s,p),Xs(t,p),tt!==4&&(tt=2)),!1;var m=Error(i(520),{cause:s});if(m=dn(m,o),qi===null?qi=[m]:qi.push(m),tt!==4&&(tt=2),r===null)return!0;s=dn(s,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,t=p&-p,o.lanes|=t,t=Su(o.stateNode,s,t),Xs(o,t),!1;case 1:if(r=o.type,m=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(xr===null||!xr.has(m))))return o.flags|=65536,p&=-p,o.lanes|=p,p=ME(p),UE(p,t,o,s),Xs(o,p),!1}o=o.return}while(o!==null);return!1}var vu=Error(i(461)),st=!1;function xt(t,r,o,s){r.child=t===null?zy(r,null,o,s):Qr(r,t.child,o,s)}function FE(t,r,o,s,p){o=o.render;var m=r.ref;if("ref"in s){var v={};for(var R in s)R!=="ref"&&(v[R]=s[R])}else v=s;return Wr(r),s=nu(t,r,o,v,m,p),R=ru(),t!==null&&!st?(au(t,r,p),Wn(t,r,p)):(De&&R&&Fs(r),r.flags|=1,xt(t,r,s,p),r.child)}function BE(t,r,o,s,p){if(t===null){var m=o.type;return typeof m=="function"&&!Ls(m)&&m.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=m,jE(t,r,m,s,p)):(t=Io(o.type,null,s,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,!ku(t,p)){var v=m.memoizedProps;if(o=o.compare,o=o!==null?o:Ei,o(v,s)&&t.ref===r.ref)return Wn(t,r,p)}return r.flags|=1,t=Pn(m,s),t.ref=r.ref,t.return=r,r.child=t}function jE(t,r,o,s,p){if(t!==null){var m=t.memoizedProps;if(Ei(m,s)&&t.ref===r.ref)if(st=!1,r.pendingProps=s=m,ku(t,p))(t.flags&131072)!==0&&(st=!0);else return r.lanes=t.lanes,Wn(t,r,p)}return xu(t,r,o,s,p)}function zE(t,r,o,s){var p=s.children,m=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((r.flags&128)!==0){if(m=m!==null?m.baseLanes|o:o,t!==null){for(s=r.child=t.child,p=0;s!==null;)p=p|s.lanes|s.childLanes,s=s.sibling;s=p&~m}else s=0,r.child=null;return qE(t,r,m,o,s)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Mo(r,m!==null?m.cachePool:null),m!==null?Gy(r,m):Qs(),Hy(r);else return s=r.lanes=536870912,qE(t,r,m!==null?m.baseLanes|o:o,o,s)}else m!==null?(Mo(r,m.cachePool),Gy(r,m),yr(),r.memoizedState=null):(t!==null&&Mo(r,null),Qs(),yr());return xt(t,r,p,o),r.child}function Li(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function qE(t,r,o,s,p){var m=Vs();return m=m===null?null:{parent:ot._currentValue,pool:m},r.memoizedState={baseLanes:o,cachePool:m},t!==null&&Mo(r,null),Qs(),Hy(r),t!==null&&ka(t,r,s,!0),r.childLanes=p,null}function Zo(t,r){return r=Jo({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function PE(t,r,o){return Qr(r,t.child,null,o),t=Zo(r,r.pendingProps),t.flags|=2,Zt(r),r.memoizedState=null,t}function F0(t,r,o){var s=r.pendingProps,p=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(De){if(s.mode==="hidden")return t=Zo(r,s),r.lanes=536870912,Li(null,t);if(eu(r),(t=We)?(t=ev(t,gn),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:cr!==null?{id:Cn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},o=_y(t),o.return=r,r.child=o,St=r,We=null)):t=null,t===null)throw pr(r);return r.lanes=536870912,null}return Zo(r,s)}var m=t.memoizedState;if(m!==null){var v=m.dehydrated;if(eu(r),p)if(r.flags&256)r.flags&=-257,r=PE(t,r,o);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(i(558));else if(st||ka(t,r,o,!1),p=(o&t.childLanes)!==0,st||p){if(s=$e,s!==null&&(v=Ob(s,o),v!==0&&v!==m.retryLane))throw m.retryLane=v,Hr(t,v),Gt(s,t,v),vu;sl(),r=PE(t,r,o)}else t=m.treeContext,We=hn(v.nextSibling),St=r,De=!0,dr=null,gn=!1,t!==null&&wy(r,t),r=Zo(r,s),r.flags|=4096;return r}return t=Pn(t.child,{mode:s.mode,children:s.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Qo(t,r){var o=r.ref;if(o===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(r.flags|=4194816)}}function xu(t,r,o,s,p){return Wr(r),o=nu(t,r,o,s,void 0,p),s=ru(),t!==null&&!st?(au(t,r,p),Wn(t,r,p)):(De&&s&&Fs(r),r.flags|=1,xt(t,r,o,p),r.child)}function GE(t,r,o,s,p,m){return Wr(r),r.updateQueue=null,o=Vy(r,s,o,p),$y(t),s=ru(),t!==null&&!st?(au(t,r,m),Wn(t,r,m)):(De&&s&&Fs(r),r.flags|=1,xt(t,r,o,m),r.child)}function HE(t,r,o,s,p){if(Wr(r),r.stateNode===null){var m=_a,v=o.contextType;typeof v=="object"&&v!==null&&(m=vt(v)),m=new o(s,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Eu,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=s,m.state=r.memoizedState,m.refs={},Ws(r),v=o.contextType,m.context=typeof v=="object"&&v!==null?vt(v):_a,m.state=r.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(yu(r,o,v,s),m.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&Eu.enqueueReplaceState(m,m.state,null),ki(r,s,m,p),wi(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(t===null){m=r.stateNode;var R=r.memoizedProps,L=ea(o,R);m.props=L;var P=m.context,X=o.contextType;v=_a,typeof X=="object"&&X!==null&&(v=vt(X));var J=o.getDerivedStateFromProps;X=typeof J=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=r.pendingProps!==R,X||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||P!==v)&&CE(r,m,s,v),gr=!1;var $=r.memoizedState;m.state=$,ki(r,s,m,p),wi(),P=r.memoizedState,R||$!==P||gr?(typeof J=="function"&&(yu(r,o,J,s),P=r.memoizedState),(L=gr||kE(r,o,L,s,$,P,v))?(X||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=P),m.props=s,m.state=P,m.context=v,s=L):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{m=r.stateNode,Ks(t,r),v=r.memoizedProps,X=ea(o,v),m.props=X,J=r.pendingProps,$=m.context,P=o.contextType,L=_a,typeof P=="object"&&P!==null&&(L=vt(P)),R=o.getDerivedStateFromProps,(P=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==J||$!==L)&&CE(r,m,s,L),gr=!1,$=r.memoizedState,m.state=$,ki(r,s,m,p),wi();var Y=r.memoizedState;v!==J||$!==Y||gr||t!==null&&t.dependencies!==null&&Do(t.dependencies)?(typeof R=="function"&&(yu(r,o,R,s),Y=r.memoizedState),(X=gr||kE(r,o,X,s,$,Y,L)||t!==null&&t.dependencies!==null&&Do(t.dependencies))?(P||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,Y,L),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,Y,L)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=Y),m.props=s,m.state=Y,m.context=L,s=X):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(r.flags|=1024),s=!1)}return m=s,Qo(t,r),s=(r.flags&128)!==0,m||s?(m=r.stateNode,o=s&&typeof o.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,t!==null&&s?(r.child=Qr(r,t.child,null,p),r.child=Qr(r,null,o,p)):xt(t,r,o,p),r.memoizedState=m.state,t=r.child):t=Wn(t,r,p),t}function $E(t,r,o,s){return Vr(),r.flags|=256,xt(t,r,o,s),r.child}var Tu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Au(t){return{baseLanes:t,cachePool:Ly()}}function _u(t,r,o){return t=t!==null?t.childLanes&~o:0,r&&(t|=Jt),t}function VE(t,r,o){var s=r.pendingProps,p=!1,m=(r.flags&128)!==0,v;if((v=m)||(v=t!==null&&t.memoizedState===null?!1:(rt.current&2)!==0),v&&(p=!0,r.flags&=-129),v=(r.flags&32)!==0,r.flags&=-33,t===null){if(De){if(p?br(r):yr(),(t=We)?(t=ev(t,gn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:cr!==null?{id:Cn,overflow:In}:null,retryLane:536870912,hydrationErrors:null},o=_y(t),o.return=r,r.child=o,St=r,We=null)):t=null,t===null)throw pr(r);return lc(t)?r.lanes=32:r.lanes=536870912,null}var R=s.children;return s=s.fallback,p?(yr(),p=r.mode,R=Jo({mode:"hidden",children:R},p),s=$r(s,p,o,null),R.return=r,s.return=r,R.sibling=s,r.child=R,s=r.child,s.memoizedState=Au(o),s.childLanes=_u(t,v,o),r.memoizedState=Tu,Li(null,s)):(br(r),Ru(r,R))}var L=t.memoizedState;if(L!==null&&(R=L.dehydrated,R!==null)){if(m)r.flags&256?(br(r),r.flags&=-257,r=Nu(t,r,o)):r.memoizedState!==null?(yr(),r.child=t.child,r.flags|=128,r=null):(yr(),R=s.fallback,p=r.mode,s=Jo({mode:"visible",children:s.children},p),R=$r(R,p,o,null),R.flags|=2,s.return=r,R.return=r,s.sibling=R,r.child=s,Qr(r,t.child,null,o),s=r.child,s.memoizedState=Au(o),s.childLanes=_u(t,v,o),r.memoizedState=Tu,r=Li(null,s));else if(br(r),lc(R)){if(v=R.nextSibling&&R.nextSibling.dataset,v)var P=v.dgst;v=P,s=Error(i(419)),s.stack="",s.digest=v,xi({value:s,source:null,stack:null}),r=Nu(t,r,o)}else if(st||ka(t,r,o,!1),v=(o&t.childLanes)!==0,st||v){if(v=$e,v!==null&&(s=Ob(v,o),s!==0&&s!==L.retryLane))throw L.retryLane=s,Hr(t,s),Gt(v,t,s),vu;oc(R)||sl(),r=Nu(t,r,o)}else oc(R)?(r.flags|=192,r.child=t.child,r=null):(t=L.treeContext,We=hn(R.nextSibling),St=r,De=!0,dr=null,gn=!1,t!==null&&wy(r,t),r=Ru(r,s.children),r.flags|=4096);return r}return p?(yr(),R=s.fallback,p=r.mode,L=t.child,P=L.sibling,s=Pn(L,{mode:"hidden",children:s.children}),s.subtreeFlags=L.subtreeFlags&65011712,P!==null?R=Pn(P,R):(R=$r(R,p,o,null),R.flags|=2),R.return=r,s.return=r,s.sibling=R,r.child=s,Li(null,s),s=r.child,R=t.child.memoizedState,R===null?R=Au(o):(p=R.cachePool,p!==null?(L=ot._currentValue,p=p.parent!==L?{parent:L,pool:L}:p):p=Ly(),R={baseLanes:R.baseLanes|o,cachePool:p}),s.memoizedState=R,s.childLanes=_u(t,v,o),r.memoizedState=Tu,Li(t.child,s)):(br(r),o=t.child,t=o.sibling,o=Pn(o,{mode:"visible",children:s.children}),o.return=r,o.sibling=null,t!==null&&(v=r.deletions,v===null?(r.deletions=[t],r.flags|=16):v.push(t)),r.child=o,r.memoizedState=null,o)}function Ru(t,r){return r=Jo({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Jo(t,r){return t=Kt(22,t,null,r),t.lanes=0,t}function Nu(t,r,o){return Qr(r,t.child,null,o),t=Ru(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function YE(t,r,o){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r),Ps(t.return,r,o)}function wu(t,r,o,s,p,m){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:p,treeForkCount:m}:(v.isBackwards=r,v.rendering=null,v.renderingStartTime=0,v.last=s,v.tail=o,v.tailMode=p,v.treeForkCount=m)}function WE(t,r,o){var s=r.pendingProps,p=s.revealOrder,m=s.tail;s=s.children;var v=rt.current,R=(v&2)!==0;if(R?(v=v&1|2,r.flags|=128):v&=1,k(rt,v),xt(t,r,s,o),s=De?vi:0,!R&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&YE(t,o,r);else if(t.tag===19)YE(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(p){case"forwards":for(o=r.child,p=null;o!==null;)t=o.alternate,t!==null&&qo(t)===null&&(p=o),o=o.sibling;o=p,o===null?(p=r.child,r.child=null):(p=o.sibling,o.sibling=null),wu(r,!1,p,o,m,s);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&qo(t)===null){r.child=p;break}t=p.sibling,p.sibling=o,o=p,p=t}wu(r,!0,o,null,m,s);break;case"together":wu(r,!1,null,null,void 0,s);break;default:r.memoizedState=null}return r.child}function Wn(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),vr|=r.lanes,(o&r.childLanes)===0)if(t!==null){if(ka(t,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=Pn(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=Pn(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function ku(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Do(t)))}function B0(t,r,o){switch(r.tag){case 3:Ie(r,r.stateNode.containerInfo),fr(r,ot,t.memoizedState.cache),Vr();break;case 27:case 5:it(r);break;case 4:Ie(r,r.stateNode.containerInfo);break;case 10:fr(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,eu(r),null;break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(br(r),r.flags|=128,null):(o&r.child.childLanes)!==0?VE(t,r,o):(br(r),t=Wn(t,r,o),t!==null?t.sibling:null);br(r);break;case 19:var p=(t.flags&128)!==0;if(s=(o&r.childLanes)!==0,s||(ka(t,r,o,!1),s=(o&r.childLanes)!==0),p){if(s)return WE(t,r,o);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),k(rt,rt.current),s)break;return null;case 22:return r.lanes=0,zE(t,r,o,r.pendingProps);case 24:fr(r,ot,t.memoizedState.cache)}return Wn(t,r,o)}function KE(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps)st=!0;else{if(!ku(t,o)&&(r.flags&128)===0)return st=!1,B0(t,r,o);st=(t.flags&131072)!==0}else st=!1,De&&(r.flags&1048576)!==0&&Ny(r,vi,r.index);switch(r.lanes=0,r.tag){case 16:e:{var s=r.pendingProps;if(t=Xr(r.elementType),r.type=t,typeof t=="function")Ls(t)?(s=ea(t,s),r.tag=1,r=HE(null,r,t,s,o)):(r.tag=0,r=xu(null,r,t,s,o));else{if(t!=null){var p=t.$$typeof;if(p===D){r.tag=11,r=FE(null,r,t,s,o);break e}else if(p===M){r.tag=14,r=BE(null,r,t,s,o);break e}}throw r=oe(t)||t,Error(i(306,r,""))}}return r;case 0:return xu(t,r,r.type,r.pendingProps,o);case 1:return s=r.type,p=ea(s,r.pendingProps),HE(t,r,s,p,o);case 3:e:{if(Ie(r,r.stateNode.containerInfo),t===null)throw Error(i(387));s=r.pendingProps;var m=r.memoizedState;p=m.element,Ks(t,r),ki(r,s,null,o);var v=r.memoizedState;if(s=v.cache,fr(r,ot,s),s!==m.cache&&Gs(r,[ot],o,!0),wi(),s=v.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:v.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=$E(t,r,s,o);break e}else if(s!==p){p=dn(Error(i(424)),r),xi(p),r=$E(t,r,s,o);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(We=hn(t.firstChild),St=r,De=!0,dr=null,gn=!0,o=zy(r,null,s,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Vr(),s===p){r=Wn(t,r,o);break e}xt(t,r,s,o)}r=r.child}return r;case 26:return Qo(t,r),t===null?(o=ov(r.type,null,r.pendingProps,null))?r.memoizedState=o:De||(o=r.type,t=r.pendingProps,s=ml(ce.current).createElement(o),s[Et]=r,s[Ft]=t,Tt(s,o,t),gt(s),r.stateNode=s):r.memoizedState=ov(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return it(r),t===null&&De&&(s=r.stateNode=rv(r.type,r.pendingProps,ce.current),St=r,gn=!0,p=We,Rr(r.type)?(sc=p,We=hn(s.firstChild)):We=p),xt(t,r,r.pendingProps.children,o),Qo(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&De&&((p=s=We)&&(s=gI(s,r.type,r.pendingProps,gn),s!==null?(r.stateNode=s,St=r,We=hn(s.firstChild),gn=!1,p=!0):p=!1),p||pr(r)),it(r),p=r.type,m=r.pendingProps,v=t!==null?t.memoizedProps:null,s=m.children,rc(p,m)?s=null:v!==null&&rc(p,v)&&(r.flags|=32),r.memoizedState!==null&&(p=nu(t,r,k0,null,null,o),Ki._currentValue=p),Qo(t,r),xt(t,r,s,o),r.child;case 6:return t===null&&De&&((t=o=We)&&(o=mI(o,r.pendingProps,gn),o!==null?(r.stateNode=o,St=r,We=null,t=!0):t=!1),t||pr(r)),null;case 13:return VE(t,r,o);case 4:return Ie(r,r.stateNode.containerInfo),s=r.pendingProps,t===null?r.child=Qr(r,null,s,o):xt(t,r,s,o),r.child;case 11:return FE(t,r,r.type,r.pendingProps,o);case 7:return xt(t,r,r.pendingProps,o),r.child;case 8:return xt(t,r,r.pendingProps.children,o),r.child;case 12:return xt(t,r,r.pendingProps.children,o),r.child;case 10:return s=r.pendingProps,fr(r,r.type,s.value),xt(t,r,s.children,o),r.child;case 9:return p=r.type._context,s=r.pendingProps.children,Wr(r),p=vt(p),s=s(p),r.flags|=1,xt(t,r,s,o),r.child;case 14:return BE(t,r,r.type,r.pendingProps,o);case 15:return jE(t,r,r.type,r.pendingProps,o);case 19:return WE(t,r,o);case 31:return F0(t,r,o);case 22:return zE(t,r,o,r.pendingProps);case 24:return Wr(r),s=vt(ot),t===null?(p=Vs(),p===null&&(p=$e,m=Hs(),p.pooledCache=m,m.refCount++,m!==null&&(p.pooledCacheLanes|=o),p=m),r.memoizedState={parent:s,cache:p},Ws(r),fr(r,ot,p)):((t.lanes&o)!==0&&(Ks(t,r),ki(r,null,null,o),wi()),p=t.memoizedState,m=r.memoizedState,p.parent!==s?(p={parent:s,cache:s},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),fr(r,ot,s)):(s=m.cache,fr(r,ot,s),s!==p.cache&&Gs(r,[ot],o,!0))),xt(t,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function Kn(t){t.flags|=4}function Cu(t,r,o,s,p){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(p&335544128)===p)if(t.stateNode.complete)t.flags|=8192;else if(xS())t.flags|=8192;else throw Zr=Fo,Ys}else t.flags&=-16777217}function XE(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!dv(r))if(xS())t.flags|=8192;else throw Zr=Fo,Ys}function el(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?kb():536870912,t.lanes|=r,qa|=r)}function Mi(t,r){if(!De)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Ke(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,s=0;if(r)for(var p=t.child;p!==null;)o|=p.lanes|p.childLanes,s|=p.subtreeFlags&65011712,s|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)o|=p.lanes|p.childLanes,s|=p.subtreeFlags,s|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=s,t.childLanes=o,r}function j0(t,r,o){var s=r.pendingProps;switch(Bs(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(r),null;case 1:return Ke(r),null;case 3:return o=r.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),$n(ot),we(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(wa(r)?Kn(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,zs())),Ke(r),null;case 26:var p=r.type,m=r.memoizedState;return t===null?(Kn(r),m!==null?(Ke(r),XE(r,m)):(Ke(r),Cu(r,p,null,s,o))):m?m!==t.memoizedState?(Kn(r),Ke(r),XE(r,m)):(Ke(r),r.flags&=-16777217):(t=t.memoizedProps,t!==s&&Kn(r),Ke(r),Cu(r,p,t,s,o)),null;case 27:if(ft(r),o=ce.current,p=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Kn(r);else{if(!s){if(r.stateNode===null)throw Error(i(166));return Ke(r),null}t=re.current,wa(r)?ky(r):(t=rv(p,s,o),r.stateNode=t,Kn(r))}return Ke(r),null;case 5:if(ft(r),p=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&Kn(r);else{if(!s){if(r.stateNode===null)throw Error(i(166));return Ke(r),null}if(m=re.current,wa(r))ky(r);else{var v=ml(ce.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?m.multiple=!0:s.size&&(m.size=s.size);break;default:m=typeof s.is=="string"?v.createElement(p,{is:s.is}):v.createElement(p)}}m[Et]=r,m[Ft]=s;e:for(v=r.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===r)break e;for(;v.sibling===null;){if(v.return===null||v.return===r)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}r.stateNode=m;e:switch(Tt(m,p,s),p){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Kn(r)}}return Ke(r),Cu(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,o),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==s&&Kn(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(i(166));if(t=ce.current,wa(r)){if(t=r.stateNode,o=r.memoizedProps,s=null,p=St,p!==null)switch(p.tag){case 27:case 5:s=p.memoizedProps}t[Et]=r,t=!!(t.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||VS(t.nodeValue,o)),t||pr(r,!0)}else t=ml(t).createTextNode(s),t[Et]=r,r.stateNode=t}return Ke(r),null;case 31:if(o=r.memoizedState,t===null||t.memoizedState!==null){if(s=wa(r),o!==null){if(t===null){if(!s)throw Error(i(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[Et]=r}else Vr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ke(r),t=!1}else o=zs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),t=!0;if(!t)return r.flags&256?(Zt(r),r):(Zt(r),null);if((r.flags&128)!==0)throw Error(i(558))}return Ke(r),null;case 13:if(s=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=wa(r),s!==null&&s.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[Et]=r}else Vr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ke(r),p=!1}else p=zs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(Zt(r),r):(Zt(r),null)}return Zt(r),(r.flags&128)!==0?(r.lanes=o,r):(o=s!==null,t=t!==null&&t.memoizedState!==null,o&&(s=r.child,p=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(p=s.alternate.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==p&&(s.flags|=2048)),o!==t&&o&&(r.child.flags|=8192),el(r,r.updateQueue),Ke(r),null);case 4:return we(),t===null&&Qu(r.stateNode.containerInfo),Ke(r),null;case 10:return $n(r.type),Ke(r),null;case 19:if(V(rt),s=r.memoizedState,s===null)return Ke(r),null;if(p=(r.flags&128)!==0,m=s.rendering,m===null)if(p)Mi(s,!1);else{if(tt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(m=qo(t),m!==null){for(r.flags|=128,Mi(s,!1),t=m.updateQueue,r.updateQueue=t,el(r,t),r.subtreeFlags=0,t=o,o=r.child;o!==null;)Ay(o,t),o=o.sibling;return k(rt,rt.current&1|2),De&&Gn(r,s.treeForkCount),r.child}t=t.sibling}s.tail!==null&&Qe()>il&&(r.flags|=128,p=!0,Mi(s,!1),r.lanes=4194304)}else{if(!p)if(t=qo(m),t!==null){if(r.flags|=128,p=!0,t=t.updateQueue,r.updateQueue=t,el(r,t),Mi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!m.alternate&&!De)return Ke(r),null}else 2*Qe()-s.renderingStartTime>il&&o!==536870912&&(r.flags|=128,p=!0,Mi(s,!1),r.lanes=4194304);s.isBackwards?(m.sibling=r.child,r.child=m):(t=s.last,t!==null?t.sibling=m:r.child=m,s.last=m)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,o=rt.current,k(rt,p?o&1|2:o&1),De&&Gn(r,s.treeForkCount),t):(Ke(r),null);case 22:case 23:return Zt(r),Js(),s=r.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(o&536870912)!==0&&(r.flags&128)===0&&(Ke(r),r.subtreeFlags&6&&(r.flags|=8192)):Ke(r),o=r.updateQueue,o!==null&&el(r,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==o&&(r.flags|=2048),t!==null&&V(Kr),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),$n(ot),Ke(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function z0(t,r){switch(Bs(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return $n(ot),we(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return ft(r),null;case 31:if(r.memoizedState!==null){if(Zt(r),r.alternate===null)throw Error(i(340));Vr()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(Zt(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Vr()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return V(rt),null;case 4:return we(),null;case 10:return $n(r.type),null;case 22:case 23:return Zt(r),Js(),t!==null&&V(Kr),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return $n(ot),null;case 25:return null;default:return null}}function ZE(t,r){switch(Bs(r),r.tag){case 3:$n(ot),we();break;case 26:case 27:case 5:ft(r);break;case 4:we();break;case 31:r.memoizedState!==null&&Zt(r);break;case 13:Zt(r);break;case 19:V(rt);break;case 10:$n(r.type);break;case 22:case 23:Zt(r),Js(),t!==null&&V(Kr);break;case 24:$n(ot)}}function Ui(t,r){try{var o=r.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var p=s.next;o=p;do{if((o.tag&t)===t){s=void 0;var m=o.create,v=o.inst;s=m(),v.destroy=s}o=o.next}while(o!==p)}}catch(R){ze(r,r.return,R)}}function Er(t,r,o){try{var s=r.updateQueue,p=s!==null?s.lastEffect:null;if(p!==null){var m=p.next;s=m;do{if((s.tag&t)===t){var v=s.inst,R=v.destroy;if(R!==void 0){v.destroy=void 0,p=r;var L=o,P=R;try{P()}catch(X){ze(p,L,X)}}}s=s.next}while(s!==m)}}catch(X){ze(r,r.return,X)}}function QE(t){var r=t.updateQueue;if(r!==null){var o=t.stateNode;try{Py(r,o)}catch(s){ze(t,t.return,s)}}}function JE(t,r,o){o.props=ea(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(s){ze(t,r,s)}}function Fi(t,r){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof o=="function"?t.refCleanup=o(s):o.current=s}}catch(p){ze(t,r,p)}}function On(t,r){var o=t.ref,s=t.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(p){ze(t,r,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){ze(t,r,p)}else o.current=null}function eS(t){var r=t.type,o=t.memoizedProps,s=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(p){ze(t,t.return,p)}}function Iu(t,r,o){try{var s=t.stateNode;sI(s,t.type,o,r),s[Ft]=r}catch(p){ze(t,t.return,p)}}function tS(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Rr(t.type)||t.tag===4}function Ou(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||tS(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Rr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Du(t,r,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(t),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=zn));else if(s!==4&&(s===27&&Rr(t.type)&&(o=t.stateNode,r=null),t=t.child,t!==null))for(Du(t,r,o),t=t.sibling;t!==null;)Du(t,r,o),t=t.sibling}function tl(t,r,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(s!==4&&(s===27&&Rr(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(tl(t,r,o),t=t.sibling;t!==null;)tl(t,r,o),t=t.sibling}function nS(t){var r=t.stateNode,o=t.memoizedProps;try{for(var s=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Tt(r,s,o),r[Et]=t,r[Ft]=o}catch(m){ze(t,t.return,m)}}var Xn=!1,ut=!1,Lu=!1,rS=typeof WeakSet=="function"?WeakSet:Set,mt=null;function q0(t,r){if(t=t.containerInfo,tc=xl,t=my(t),Ns(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var p=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break e}var v=0,R=-1,L=-1,P=0,X=0,J=t,$=null;t:for(;;){for(var Y;J!==o||p!==0&&J.nodeType!==3||(R=v+p),J!==m||s!==0&&J.nodeType!==3||(L=v+s),J.nodeType===3&&(v+=J.nodeValue.length),(Y=J.firstChild)!==null;)$=J,J=Y;for(;;){if(J===t)break t;if($===o&&++P===p&&(R=v),$===m&&++X===s&&(L=v),(Y=J.nextSibling)!==null)break;J=$,$=J.parentNode}J=Y}o=R===-1||L===-1?null:{start:R,end:L}}else o=null}o=o||{start:0,end:0}}else o=null;for(nc={focusedElem:t,selectionRange:o},xl=!1,mt=r;mt!==null;)if(r=mt,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,mt=t;else for(;mt!==null;){switch(r=mt,m=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(o=0;o<t.length;o++)p=t[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,o=r,p=m.memoizedProps,m=m.memoizedState,s=o.stateNode;try{var pe=ea(o.type,p);t=s.getSnapshotBeforeUpdate(pe,m),s.__reactInternalSnapshotBeforeUpdate=t}catch(ye){ze(o,o.return,ye)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,o=t.nodeType,o===9)ic(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ic(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=r.sibling,t!==null){t.return=r.return,mt=t;break}mt=r.return}}function aS(t,r,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:Qn(t,o),s&4&&Ui(5,o);break;case 1:if(Qn(t,o),s&4)if(t=o.stateNode,r===null)try{t.componentDidMount()}catch(v){ze(o,o.return,v)}else{var p=ea(o.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(v){ze(o,o.return,v)}}s&64&&QE(o),s&512&&Fi(o,o.return);break;case 3:if(Qn(t,o),s&64&&(t=o.updateQueue,t!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{Py(t,r)}catch(v){ze(o,o.return,v)}}break;case 27:r===null&&s&4&&nS(o);case 26:case 5:Qn(t,o),r===null&&s&4&&eS(o),s&512&&Fi(o,o.return);break;case 12:Qn(t,o);break;case 31:Qn(t,o),s&4&&lS(t,o);break;case 13:Qn(t,o),s&4&&sS(t,o),s&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=X0.bind(null,o),hI(t,o))));break;case 22:if(s=o.memoizedState!==null||Xn,!s){r=r!==null&&r.memoizedState!==null||ut,p=Xn;var m=ut;Xn=s,(ut=r)&&!m?Jn(t,o,(o.subtreeFlags&8772)!==0):Qn(t,o),Xn=p,ut=m}break;case 30:break;default:Qn(t,o)}}function iS(t){var r=t.alternate;r!==null&&(t.alternate=null,iS(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&cs(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ze=null,jt=!1;function Zn(t,r,o){for(o=o.child;o!==null;)oS(t,r,o),o=o.sibling}function oS(t,r,o){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(nt,o)}catch{}switch(o.tag){case 26:ut||On(o,r),Zn(t,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:ut||On(o,r);var s=Ze,p=jt;Rr(o.type)&&(Ze=o.stateNode,jt=!1),Zn(t,r,o),Vi(o.stateNode),Ze=s,jt=p;break;case 5:ut||On(o,r);case 6:if(s=Ze,p=jt,Ze=null,Zn(t,r,o),Ze=s,jt=p,Ze!==null)if(jt)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(o.stateNode)}catch(m){ze(o,r,m)}else try{Ze.removeChild(o.stateNode)}catch(m){ze(o,r,m)}break;case 18:Ze!==null&&(jt?(t=Ze,QS(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),Ka(t)):QS(Ze,o.stateNode));break;case 4:s=Ze,p=jt,Ze=o.stateNode.containerInfo,jt=!0,Zn(t,r,o),Ze=s,jt=p;break;case 0:case 11:case 14:case 15:Er(2,o,r),ut||Er(4,o,r),Zn(t,r,o);break;case 1:ut||(On(o,r),s=o.stateNode,typeof s.componentWillUnmount=="function"&&JE(o,r,s)),Zn(t,r,o);break;case 21:Zn(t,r,o);break;case 22:ut=(s=ut)||o.memoizedState!==null,Zn(t,r,o),ut=s;break;default:Zn(t,r,o)}}function lS(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ka(t)}catch(o){ze(r,r.return,o)}}}function sS(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ka(t)}catch(o){ze(r,r.return,o)}}function P0(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new rS),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new rS),r;default:throw Error(i(435,t.tag))}}function nl(t,r){var o=P0(t);r.forEach(function(s){if(!o.has(s)){o.add(s);var p=Z0.bind(null,t,s);s.then(p,p)}})}function zt(t,r){var o=r.deletions;if(o!==null)for(var s=0;s<o.length;s++){var p=o[s],m=t,v=r,R=v;e:for(;R!==null;){switch(R.tag){case 27:if(Rr(R.type)){Ze=R.stateNode,jt=!1;break e}break;case 5:Ze=R.stateNode,jt=!1;break e;case 3:case 4:Ze=R.stateNode.containerInfo,jt=!0;break e}R=R.return}if(Ze===null)throw Error(i(160));oS(m,v,p),Ze=null,jt=!1,m=p.alternate,m!==null&&(m.return=null),p.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)uS(r,t),r=r.sibling}var Tn=null;function uS(t,r){var o=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:zt(r,t),qt(t),s&4&&(Er(3,t,t.return),Ui(3,t),Er(5,t,t.return));break;case 1:zt(r,t),qt(t),s&512&&(ut||o===null||On(o,o.return)),s&64&&Xn&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?s:o.concat(s))));break;case 26:var p=Tn;if(zt(r,t),qt(t),s&512&&(ut||o===null||On(o,o.return)),s&4){var m=o!==null?o.memoizedState:null;if(s=t.memoizedState,o===null)if(s===null)if(t.stateNode===null){e:{s=t.type,o=t.memoizedProps,p=p.ownerDocument||p;t:switch(s){case"title":m=p.getElementsByTagName("title")[0],(!m||m[ci]||m[Et]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=p.createElement(s),p.head.insertBefore(m,p.querySelector("head > title"))),Tt(m,s,o),m[Et]=t,gt(m),s=m;break e;case"link":var v=uv("link","href",p).get(s+(o.href||""));if(v){for(var R=0;R<v.length;R++)if(m=v[R],m.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&m.getAttribute("rel")===(o.rel==null?null:o.rel)&&m.getAttribute("title")===(o.title==null?null:o.title)&&m.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){v.splice(R,1);break t}}m=p.createElement(s),Tt(m,s,o),p.head.appendChild(m);break;case"meta":if(v=uv("meta","content",p).get(s+(o.content||""))){for(R=0;R<v.length;R++)if(m=v[R],m.getAttribute("content")===(o.content==null?null:""+o.content)&&m.getAttribute("name")===(o.name==null?null:o.name)&&m.getAttribute("property")===(o.property==null?null:o.property)&&m.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&m.getAttribute("charset")===(o.charSet==null?null:o.charSet)){v.splice(R,1);break t}}m=p.createElement(s),Tt(m,s,o),p.head.appendChild(m);break;default:throw Error(i(468,s))}m[Et]=t,gt(m),s=m}t.stateNode=s}else cv(p,t.type,t.stateNode);else t.stateNode=sv(p,s,t.memoizedProps);else m!==s?(m===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):m.count--,s===null?cv(p,t.type,t.stateNode):sv(p,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Iu(t,t.memoizedProps,o.memoizedProps)}break;case 27:zt(r,t),qt(t),s&512&&(ut||o===null||On(o,o.return)),o!==null&&s&4&&Iu(t,t.memoizedProps,o.memoizedProps);break;case 5:if(zt(r,t),qt(t),s&512&&(ut||o===null||On(o,o.return)),t.flags&32){p=t.stateNode;try{ya(p,"")}catch(pe){ze(t,t.return,pe)}}s&4&&t.stateNode!=null&&(p=t.memoizedProps,Iu(t,p,o!==null?o.memoizedProps:p)),s&1024&&(Lu=!0);break;case 6:if(zt(r,t),qt(t),s&4){if(t.stateNode===null)throw Error(i(162));s=t.memoizedProps,o=t.stateNode;try{o.nodeValue=s}catch(pe){ze(t,t.return,pe)}}break;case 3:if(yl=null,p=Tn,Tn=hl(r.containerInfo),zt(r,t),Tn=p,qt(t),s&4&&o!==null&&o.memoizedState.isDehydrated)try{Ka(r.containerInfo)}catch(pe){ze(t,t.return,pe)}Lu&&(Lu=!1,cS(t));break;case 4:s=Tn,Tn=hl(t.stateNode.containerInfo),zt(r,t),qt(t),Tn=s;break;case 12:zt(r,t),qt(t);break;case 31:zt(r,t),qt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,nl(t,s)));break;case 13:zt(r,t),qt(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(al=Qe()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,nl(t,s)));break;case 22:p=t.memoizedState!==null;var L=o!==null&&o.memoizedState!==null,P=Xn,X=ut;if(Xn=P||p,ut=X||L,zt(r,t),ut=X,Xn=P,qt(t),s&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(o===null||L||Xn||ut||ta(t)),o=null,r=t;;){if(r.tag===5||r.tag===26){if(o===null){L=o=r;try{if(m=L.stateNode,p)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{R=L.stateNode;var J=L.memoizedProps.style,$=J!=null&&J.hasOwnProperty("display")?J.display:null;R.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(pe){ze(L,L.return,pe)}}}else if(r.tag===6){if(o===null){L=r;try{L.stateNode.nodeValue=p?"":L.memoizedProps}catch(pe){ze(L,L.return,pe)}}}else if(r.tag===18){if(o===null){L=r;try{var Y=L.stateNode;p?JS(Y,!0):JS(L.stateNode,!1)}catch(pe){ze(L,L.return,pe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=t.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,nl(t,o))));break;case 19:zt(r,t),qt(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,nl(t,s)));break;case 30:break;case 21:break;default:zt(r,t),qt(t)}}function qt(t){var r=t.flags;if(r&2){try{for(var o,s=t.return;s!==null;){if(tS(s)){o=s;break}s=s.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var p=o.stateNode,m=Ou(t);tl(t,m,p);break;case 5:var v=o.stateNode;o.flags&32&&(ya(v,""),o.flags&=-33);var R=Ou(t);tl(t,R,v);break;case 3:case 4:var L=o.stateNode.containerInfo,P=Ou(t);Du(t,P,L);break;default:throw Error(i(161))}}catch(X){ze(t,t.return,X)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function cS(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;cS(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Qn(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)aS(t,r.alternate,r),r=r.sibling}function ta(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Er(4,r,r.return),ta(r);break;case 1:On(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&JE(r,r.return,o),ta(r);break;case 27:Vi(r.stateNode);case 26:case 5:On(r,r.return),ta(r);break;case 22:r.memoizedState===null&&ta(r);break;case 30:ta(r);break;default:ta(r)}t=t.sibling}}function Jn(t,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var s=r.alternate,p=t,m=r,v=m.flags;switch(m.tag){case 0:case 11:case 15:Jn(p,m,o),Ui(4,m);break;case 1:if(Jn(p,m,o),s=m,p=s.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(P){ze(s,s.return,P)}if(s=m,p=s.updateQueue,p!==null){var R=s.stateNode;try{var L=p.shared.hiddenCallbacks;if(L!==null)for(p.shared.hiddenCallbacks=null,p=0;p<L.length;p++)qy(L[p],R)}catch(P){ze(s,s.return,P)}}o&&v&64&&QE(m),Fi(m,m.return);break;case 27:nS(m);case 26:case 5:Jn(p,m,o),o&&s===null&&v&4&&eS(m),Fi(m,m.return);break;case 12:Jn(p,m,o);break;case 31:Jn(p,m,o),o&&v&4&&lS(p,m);break;case 13:Jn(p,m,o),o&&v&4&&sS(p,m);break;case 22:m.memoizedState===null&&Jn(p,m,o),Fi(m,m.return);break;case 30:break;default:Jn(p,m,o)}r=r.sibling}}function Mu(t,r){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&Ti(o))}function Uu(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Ti(t))}function An(t,r,o,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)dS(t,r,o,s),r=r.sibling}function dS(t,r,o,s){var p=r.flags;switch(r.tag){case 0:case 11:case 15:An(t,r,o,s),p&2048&&Ui(9,r);break;case 1:An(t,r,o,s);break;case 3:An(t,r,o,s),p&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Ti(t)));break;case 12:if(p&2048){An(t,r,o,s),t=r.stateNode;try{var m=r.memoizedProps,v=m.id,R=m.onPostCommit;typeof R=="function"&&R(v,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(L){ze(r,r.return,L)}}else An(t,r,o,s);break;case 31:An(t,r,o,s);break;case 13:An(t,r,o,s);break;case 23:break;case 22:m=r.stateNode,v=r.alternate,r.memoizedState!==null?m._visibility&2?An(t,r,o,s):Bi(t,r):m._visibility&2?An(t,r,o,s):(m._visibility|=2,Ba(t,r,o,s,(r.subtreeFlags&10256)!==0||!1)),p&2048&&Mu(v,r);break;case 24:An(t,r,o,s),p&2048&&Uu(r.alternate,r);break;default:An(t,r,o,s)}}function Ba(t,r,o,s,p){for(p=p&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var m=t,v=r,R=o,L=s,P=v.flags;switch(v.tag){case 0:case 11:case 15:Ba(m,v,R,L,p),Ui(8,v);break;case 23:break;case 22:var X=v.stateNode;v.memoizedState!==null?X._visibility&2?Ba(m,v,R,L,p):Bi(m,v):(X._visibility|=2,Ba(m,v,R,L,p)),p&&P&2048&&Mu(v.alternate,v);break;case 24:Ba(m,v,R,L,p),p&&P&2048&&Uu(v.alternate,v);break;default:Ba(m,v,R,L,p)}r=r.sibling}}function Bi(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=t,s=r,p=s.flags;switch(s.tag){case 22:Bi(o,s),p&2048&&Mu(s.alternate,s);break;case 24:Bi(o,s),p&2048&&Uu(s.alternate,s);break;default:Bi(o,s)}r=r.sibling}}var ji=8192;function ja(t,r,o){if(t.subtreeFlags&ji)for(t=t.child;t!==null;)pS(t,r,o),t=t.sibling}function pS(t,r,o){switch(t.tag){case 26:ja(t,r,o),t.flags&ji&&t.memoizedState!==null&&wI(o,Tn,t.memoizedState,t.memoizedProps);break;case 5:ja(t,r,o);break;case 3:case 4:var s=Tn;Tn=hl(t.stateNode.containerInfo),ja(t,r,o),Tn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=ji,ji=16777216,ja(t,r,o),ji=s):ja(t,r,o));break;default:ja(t,r,o)}}function fS(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function zi(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var s=r[o];mt=s,mS(s,t)}fS(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gS(t),t=t.sibling}function gS(t){switch(t.tag){case 0:case 11:case 15:zi(t),t.flags&2048&&Er(9,t,t.return);break;case 3:zi(t);break;case 12:zi(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,rl(t)):zi(t);break;default:zi(t)}}function rl(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var s=r[o];mt=s,mS(s,t)}fS(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Er(8,r,r.return),rl(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,rl(r));break;default:rl(r)}t=t.sibling}}function mS(t,r){for(;mt!==null;){var o=mt;switch(o.tag){case 0:case 11:case 15:Er(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var s=o.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Ti(o.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,mt=s;else e:for(o=t;mt!==null;){s=mt;var p=s.sibling,m=s.return;if(iS(s),s===o){mt=null;break e}if(p!==null){p.return=m,mt=p;break e}mt=m}}}var G0={getCacheForType:function(t){var r=vt(ot),o=r.data.get(t);return o===void 0&&(o=t(),r.data.set(t,o)),o},cacheSignal:function(){return vt(ot).controller.signal}},H0=typeof WeakMap=="function"?WeakMap:Map,Fe=0,$e=null,_e=null,ke=0,je=0,Qt=null,Sr=!1,za=!1,Fu=!1,er=0,tt=0,vr=0,na=0,Bu=0,Jt=0,qa=0,qi=null,Pt=null,ju=!1,al=0,hS=0,il=1/0,ol=null,xr=null,dt=0,Tr=null,Pa=null,tr=0,zu=0,qu=null,bS=null,Pi=0,Pu=null;function en(){return(Fe&2)!==0&&ke!==0?ke&-ke:G.T!==null?Wu():Db()}function yS(){if(Jt===0)if((ke&536870912)===0||De){var t=wn;wn<<=1,(wn&3932160)===0&&(wn=262144),Jt=t}else Jt=536870912;return t=Xt.current,t!==null&&(t.flags|=32),Jt}function Gt(t,r,o){(t===$e&&(je===2||je===9)||t.cancelPendingCommit!==null)&&(Ga(t,0),Ar(t,ke,Jt,!1)),ui(t,o),((Fe&2)===0||t!==$e)&&(t===$e&&((Fe&2)===0&&(na|=o),tt===4&&Ar(t,ke,Jt,!1)),Dn(t))}function ES(t,r,o){if((Fe&6)!==0)throw Error(i(327));var s=!o&&(r&127)===0&&(r&t.expiredLanes)===0||lr(t,r),p=s?Y0(t,r):Hu(t,r,!0),m=s;do{if(p===0){za&&!s&&Ar(t,r,0,!1);break}else{if(o=t.current.alternate,m&&!$0(o)){p=Hu(t,r,!1),m=!1;continue}if(p===2){if(m=r,t.errorRecoveryDisabledLanes&m)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){r=v;e:{var R=t;p=qi;var L=R.current.memoizedState.isDehydrated;if(L&&(Ga(R,v).flags|=256),v=Hu(R,v,!1),v!==2){if(Fu&&!L){R.errorRecoveryDisabledLanes|=m,na|=m,p=4;break e}m=Pt,Pt=p,m!==null&&(Pt===null?Pt=m:Pt.push.apply(Pt,m))}p=v}if(m=!1,p!==2)continue}}if(p===1){Ga(t,0),Ar(t,r,0,!0);break}e:{switch(s=t,m=p,m){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:Ar(s,r,Jt,!Sr);break e;case 2:Pt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(p=al+300-Qe(),10<p)){if(Ar(s,r,Jt,!Sr),jr(s,0,!0)!==0)break e;tr=r,s.timeoutHandle=XS(SS.bind(null,s,o,Pt,ol,ju,r,Jt,na,qa,Sr,m,"Throttled",-0,0),p);break e}SS(s,o,Pt,ol,ju,r,Jt,na,qa,Sr,m,null,-0,0)}}break}while(!0);Dn(t)}function SS(t,r,o,s,p,m,v,R,L,P,X,J,$,Y){if(t.timeoutHandle=-1,J=r.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zn},pS(r,m,J);var pe=(m&62914560)===m?al-Qe():(m&4194048)===m?hS-Qe():0;if(pe=kI(J,pe),pe!==null){tr=m,t.cancelPendingCommit=pe(wS.bind(null,t,r,m,o,s,p,v,R,L,X,J,null,$,Y)),Ar(t,m,v,!P);return}}wS(t,r,m,o,s,p,v,R,L)}function $0(t){for(var r=t;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var s=0;s<o.length;s++){var p=o[s],m=p.getSnapshot;p=p.value;try{if(!Wt(m(),p))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ar(t,r,o,s){r&=~Bu,r&=~na,t.suspendedLanes|=r,t.pingedLanes&=~r,s&&(t.warmLanes|=r),s=t.expirationTimes;for(var p=r;0<p;){var m=31-Be(p),v=1<<m;s[m]=-1,p&=~v}o!==0&&Cb(t,o,r)}function ll(){return(Fe&6)===0?(Gi(0),!1):!0}function Gu(){if(_e!==null){if(je===0)var t=_e.return;else t=_e,Hn=Yr=null,iu(t),Da=null,_i=0,t=_e;for(;t!==null;)ZE(t.alternate,t),t=t.return;_e=null}}function Ga(t,r){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,dI(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),tr=0,Gu(),$e=t,_e=o=Pn(t.current,null),ke=r,je=0,Qt=null,Sr=!1,za=lr(t,r),Fu=!1,qa=Jt=Bu=na=vr=tt=0,Pt=qi=null,ju=!1,(r&8)!==0&&(r|=r&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=r;0<s;){var p=31-Be(s),m=1<<p;r|=t[p],s&=~m}return er=r,wo(),o}function vS(t,r){ve=null,G.H=Di,r===Oa||r===Uo?(r=Fy(),je=3):r===Ys?(r=Fy(),je=4):je=r===vu?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Qt=r,_e===null&&(tt=1,Xo(t,dn(r,t.current)))}function xS(){var t=Xt.current;return t===null?!0:(ke&4194048)===ke?mn===null:(ke&62914560)===ke||(ke&536870912)!==0?t===mn:!1}function TS(){var t=G.H;return G.H=Di,t===null?Di:t}function AS(){var t=G.A;return G.A=G0,t}function sl(){tt=4,Sr||(ke&4194048)!==ke&&Xt.current!==null||(za=!0),(vr&134217727)===0&&(na&134217727)===0||$e===null||Ar($e,ke,Jt,!1)}function Hu(t,r,o){var s=Fe;Fe|=2;var p=TS(),m=AS();($e!==t||ke!==r)&&(ol=null,Ga(t,r)),r=!1;var v=tt;e:do try{if(je!==0&&_e!==null){var R=_e,L=Qt;switch(je){case 8:Gu(),v=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(r=!0);var P=je;if(je=0,Qt=null,Ha(t,R,L,P),o&&za){v=0;break e}break;default:P=je,je=0,Qt=null,Ha(t,R,L,P)}}V0(),v=tt;break}catch(X){vS(t,X)}while(!0);return r&&t.shellSuspendCounter++,Hn=Yr=null,Fe=s,G.H=p,G.A=m,_e===null&&($e=null,ke=0,wo()),v}function V0(){for(;_e!==null;)_S(_e)}function Y0(t,r){var o=Fe;Fe|=2;var s=TS(),p=AS();$e!==t||ke!==r?(ol=null,il=Qe()+500,Ga(t,r)):za=lr(t,r);e:do try{if(je!==0&&_e!==null){r=_e;var m=Qt;t:switch(je){case 1:je=0,Qt=null,Ha(t,r,m,1);break;case 2:case 9:if(My(m)){je=0,Qt=null,RS(r);break}r=function(){je!==2&&je!==9||$e!==t||(je=7),Dn(t)},m.then(r,r);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:My(m)?(je=0,Qt=null,RS(r)):(je=0,Qt=null,Ha(t,r,m,7));break;case 5:var v=null;switch(_e.tag){case 26:v=_e.memoizedState;case 5:case 27:var R=_e;if(v?dv(v):R.stateNode.complete){je=0,Qt=null;var L=R.sibling;if(L!==null)_e=L;else{var P=R.return;P!==null?(_e=P,ul(P)):_e=null}break t}}je=0,Qt=null,Ha(t,r,m,5);break;case 6:je=0,Qt=null,Ha(t,r,m,6);break;case 8:Gu(),tt=6;break e;default:throw Error(i(462))}}W0();break}catch(X){vS(t,X)}while(!0);return Hn=Yr=null,G.H=s,G.A=p,Fe=o,_e!==null?0:($e=null,ke=0,wo(),tt)}function W0(){for(;_e!==null&&!Nn();)_S(_e)}function _S(t){var r=KE(t.alternate,t,er);t.memoizedProps=t.pendingProps,r===null?ul(t):_e=r}function RS(t){var r=t,o=r.alternate;switch(r.tag){case 15:case 0:r=GE(o,r,r.pendingProps,r.type,void 0,ke);break;case 11:r=GE(o,r,r.pendingProps,r.type.render,r.ref,ke);break;case 5:iu(r);default:ZE(o,r),r=_e=Ay(r,er),r=KE(o,r,er)}t.memoizedProps=t.pendingProps,r===null?ul(t):_e=r}function Ha(t,r,o,s){Hn=Yr=null,iu(r),Da=null,_i=0;var p=r.return;try{if(U0(t,p,r,o,ke)){tt=1,Xo(t,dn(o,t.current)),_e=null;return}}catch(m){if(p!==null)throw _e=p,m;tt=1,Xo(t,dn(o,t.current)),_e=null;return}r.flags&32768?(De||s===1?t=!0:za||(ke&536870912)!==0?t=!1:(Sr=t=!0,(s===2||s===9||s===3||s===6)&&(s=Xt.current,s!==null&&s.tag===13&&(s.flags|=16384))),NS(r,t)):ul(r)}function ul(t){var r=t;do{if((r.flags&32768)!==0){NS(r,Sr);return}t=r.return;var o=j0(r.alternate,r,er);if(o!==null){_e=o;return}if(r=r.sibling,r!==null){_e=r;return}_e=r=t}while(r!==null);tt===0&&(tt=5)}function NS(t,r){do{var o=z0(t.alternate,t);if(o!==null){o.flags&=32767,_e=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(t=t.sibling,t!==null)){_e=t;return}_e=t=o}while(t!==null);tt=6,_e=null}function wS(t,r,o,s,p,m,v,R,L){t.cancelPendingCommit=null;do cl();while(dt!==0);if((Fe&6)!==0)throw Error(i(327));if(r!==null){if(r===t.current)throw Error(i(177));if(m=r.lanes|r.childLanes,m|=Os,NC(t,o,m,v,R,L),t===$e&&(_e=$e=null,ke=0),Pa=r,Tr=t,tr=o,zu=m,qu=p,bS=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Q0(de,function(){return DS(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=G.T,G.T=null,p=ee.p,ee.p=2,v=Fe,Fe|=4;try{q0(t,r,o)}finally{Fe=v,ee.p=p,G.T=s}}dt=1,kS(),CS(),IS()}}function kS(){if(dt===1){dt=0;var t=Tr,r=Pa,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var s=ee.p;ee.p=2;var p=Fe;Fe|=4;try{uS(r,t);var m=nc,v=my(t.containerInfo),R=m.focusedElem,L=m.selectionRange;if(v!==R&&R&&R.ownerDocument&&gy(R.ownerDocument.documentElement,R)){if(L!==null&&Ns(R)){var P=L.start,X=L.end;if(X===void 0&&(X=P),"selectionStart"in R)R.selectionStart=P,R.selectionEnd=Math.min(X,R.value.length);else{var J=R.ownerDocument||document,$=J&&J.defaultView||window;if($.getSelection){var Y=$.getSelection(),pe=R.textContent.length,ye=Math.min(L.start,pe),Ge=L.end===void 0?ye:Math.min(L.end,pe);!Y.extend&&ye>Ge&&(v=Ge,Ge=ye,ye=v);var j=fy(R,ye),B=fy(R,Ge);if(j&&B&&(Y.rangeCount!==1||Y.anchorNode!==j.node||Y.anchorOffset!==j.offset||Y.focusNode!==B.node||Y.focusOffset!==B.offset)){var q=J.createRange();q.setStart(j.node,j.offset),Y.removeAllRanges(),ye>Ge?(Y.addRange(q),Y.extend(B.node,B.offset)):(q.setEnd(B.node,B.offset),Y.addRange(q))}}}}for(J=[],Y=R;Y=Y.parentNode;)Y.nodeType===1&&J.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<J.length;R++){var Z=J[R];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}xl=!!tc,nc=tc=null}finally{Fe=p,ee.p=s,G.T=o}}t.current=r,dt=2}}function CS(){if(dt===2){dt=0;var t=Tr,r=Pa,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var s=ee.p;ee.p=2;var p=Fe;Fe|=4;try{aS(t,r.alternate,r)}finally{Fe=p,ee.p=s,G.T=o}}dt=3}}function IS(){if(dt===4||dt===3){dt=0,Br();var t=Tr,r=Pa,o=tr,s=bS;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?dt=5:(dt=0,Pa=Tr=null,OS(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(xr=null),ss(o),r=r.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(nt,r,void 0,(r.current.flags&128)===128)}catch{}if(s!==null){r=G.T,p=ee.p,ee.p=2,G.T=null;try{for(var m=t.onRecoverableError,v=0;v<s.length;v++){var R=s[v];m(R.value,{componentStack:R.stack})}}finally{G.T=r,ee.p=p}}(tr&3)!==0&&cl(),Dn(t),p=t.pendingLanes,(o&261930)!==0&&(p&42)!==0?t===Pu?Pi++:(Pi=0,Pu=t):Pi=0,Gi(0)}}function OS(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Ti(r)))}function cl(){return kS(),CS(),IS(),DS()}function DS(){if(dt!==5)return!1;var t=Tr,r=zu;zu=0;var o=ss(tr),s=G.T,p=ee.p;try{ee.p=32>o?32:o,G.T=null,o=qu,qu=null;var m=Tr,v=tr;if(dt=0,Pa=Tr=null,tr=0,(Fe&6)!==0)throw Error(i(331));var R=Fe;if(Fe|=4,gS(m.current),dS(m,m.current,v,o),Fe=R,Gi(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(nt,m)}catch{}return!0}finally{ee.p=p,G.T=s,OS(t,r)}}function LS(t,r,o){r=dn(o,r),r=Su(t.stateNode,r,2),t=hr(t,r,2),t!==null&&(ui(t,2),Dn(t))}function ze(t,r,o){if(t.tag===3)LS(t,t,o);else for(;r!==null;){if(r.tag===3){LS(r,t,o);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(xr===null||!xr.has(s))){t=dn(o,t),o=ME(2),s=hr(r,o,2),s!==null&&(UE(o,s,r,t),ui(s,2),Dn(s));break}}r=r.return}}function $u(t,r,o){var s=t.pingCache;if(s===null){s=t.pingCache=new H0;var p=new Set;s.set(r,p)}else p=s.get(r),p===void 0&&(p=new Set,s.set(r,p));p.has(o)||(Fu=!0,p.add(o),t=K0.bind(null,t,r,o),r.then(t,t))}function K0(t,r,o){var s=t.pingCache;s!==null&&s.delete(r),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,$e===t&&(ke&o)===o&&(tt===4||tt===3&&(ke&62914560)===ke&&300>Qe()-al?(Fe&2)===0&&Ga(t,0):Bu|=o,qa===ke&&(qa=0)),Dn(t)}function MS(t,r){r===0&&(r=kb()),t=Hr(t,r),t!==null&&(ui(t,r),Dn(t))}function X0(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),MS(t,o)}function Z0(t,r){var o=0;switch(t.tag){case 31:case 13:var s=t.stateNode,p=t.memoizedState;p!==null&&(o=p.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(r),MS(t,o)}function Q0(t,r){return Mt(t,r)}var dl=null,$a=null,Vu=!1,pl=!1,Yu=!1,_r=0;function Dn(t){t!==$a&&t.next===null&&($a===null?dl=$a=t:$a=$a.next=t),pl=!0,Vu||(Vu=!0,eI())}function Gi(t,r){if(!Yu&&pl){Yu=!0;do for(var o=!1,s=dl;s!==null;){if(t!==0){var p=s.pendingLanes;if(p===0)var m=0;else{var v=s.suspendedLanes,R=s.pingedLanes;m=(1<<31-Be(42|t)+1)-1,m&=p&~(v&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(o=!0,jS(s,m))}else m=ke,m=jr(s,s===$e?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||lr(s,m)||(o=!0,jS(s,m));s=s.next}while(o);Yu=!1}}function J0(){US()}function US(){pl=Vu=!1;var t=0;_r!==0&&cI()&&(t=_r);for(var r=Qe(),o=null,s=dl;s!==null;){var p=s.next,m=FS(s,r);m===0?(s.next=null,o===null?dl=p:o.next=p,p===null&&($a=o)):(o=s,(t!==0||(m&3)!==0)&&(pl=!0)),s=p}dt!==0&&dt!==5||Gi(t),_r!==0&&(_r=0)}function FS(t,r){for(var o=t.suspendedLanes,s=t.pingedLanes,p=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var v=31-Be(m),R=1<<v,L=p[v];L===-1?((R&o)===0||(R&s)!==0)&&(p[v]=si(R,r)):L<=r&&(t.expiredLanes|=R),m&=~R}if(r=$e,o=ke,o=jr(t,t===r?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,o===0||t===r&&(je===2||je===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&Bn(s),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||lr(t,o)){if(r=o&-o,r===t.callbackPriority)return r;switch(s!==null&&Bn(s),ss(o)){case 2:case 8:o=ie;break;case 32:o=de;break;case 268435456:o=Oe;break;default:o=de}return s=BS.bind(null,t),o=Mt(o,s),t.callbackPriority=r,t.callbackNode=o,r}return s!==null&&s!==null&&Bn(s),t.callbackPriority=2,t.callbackNode=null,2}function BS(t,r){if(dt!==0&&dt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(cl()&&t.callbackNode!==o)return null;var s=ke;return s=jr(t,t===$e?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(ES(t,s,r),FS(t,Qe()),t.callbackNode!=null&&t.callbackNode===o?BS.bind(null,t):null)}function jS(t,r){if(cl())return null;ES(t,r,!0)}function eI(){pI(function(){(Fe&6)!==0?Mt(K,J0):US()})}function Wu(){if(_r===0){var t=Ca;t===0&&(t=Je,Je<<=1,(Je&261888)===0&&(Je=256)),_r=t}return _r}function zS(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:So(""+t)}function qS(t,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,t.id&&o.setAttribute("form",t.id),r.parentNode.insertBefore(o,r),t=new FormData(t),o.parentNode.removeChild(o),t}function tI(t,r,o,s,p){if(r==="submit"&&o&&o.stateNode===p){var m=zS((p[Ft]||null).action),v=s.submitter;v&&(r=(r=v[Ft]||null)?zS(r.formAction):v.getAttribute("formAction"),r!==null&&(m=r,v=null));var R=new Ao("action","action",null,s,p);t.push({event:R,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(_r!==0){var L=v?qS(p,v):new FormData(p);gu(o,{pending:!0,data:L,method:p.method,action:m},null,L)}}else typeof m=="function"&&(R.preventDefault(),L=v?qS(p,v):new FormData(p),gu(o,{pending:!0,data:L,method:p.method,action:m},m,L))},currentTarget:p}]})}}for(var Ku=0;Ku<Is.length;Ku++){var Xu=Is[Ku],nI=Xu.toLowerCase(),rI=Xu[0].toUpperCase()+Xu.slice(1);xn(nI,"on"+rI)}xn(yy,"onAnimationEnd"),xn(Ey,"onAnimationIteration"),xn(Sy,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(E0,"onTransitionRun"),xn(S0,"onTransitionStart"),xn(v0,"onTransitionCancel"),xn(vy,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),zr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zr("onBeforeInput",["compositionend","keypress","textInput","paste"]),zr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hi="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(" "),aI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hi));function PS(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var s=t[o],p=s.event;s=s.listeners;e:{var m=void 0;if(r)for(var v=s.length-1;0<=v;v--){var R=s[v],L=R.instance,P=R.currentTarget;if(R=R.listener,L!==m&&p.isPropagationStopped())break e;m=R,p.currentTarget=P;try{m(p)}catch(X){No(X)}p.currentTarget=null,m=L}else for(v=0;v<s.length;v++){if(R=s[v],L=R.instance,P=R.currentTarget,R=R.listener,L!==m&&p.isPropagationStopped())break e;m=R,p.currentTarget=P;try{m(p)}catch(X){No(X)}p.currentTarget=null,m=L}}}}function Re(t,r){var o=r[us];o===void 0&&(o=r[us]=new Set);var s=t+"__bubble";o.has(s)||(GS(r,t,2,!1),o.add(s))}function Zu(t,r,o){var s=0;r&&(s|=4),GS(o,t,s,r)}var fl="_reactListening"+Math.random().toString(36).slice(2);function Qu(t){if(!t[fl]){t[fl]=!0,Ub.forEach(function(o){o!=="selectionchange"&&(aI.has(o)||Zu(o,!1,t),Zu(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[fl]||(r[fl]=!0,Zu("selectionchange",!1,r))}}function GS(t,r,o,s){switch(yv(r)){case 2:var p=OI;break;case 8:p=DI;break;default:p=fc}o=p.bind(null,r,o,t),p=void 0,!ys||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),s?p!==void 0?t.addEventListener(r,o,{capture:!0,passive:p}):t.addEventListener(r,o,!0):p!==void 0?t.addEventListener(r,o,{passive:p}):t.addEventListener(r,o,!1)}function Ju(t,r,o,s,p){var m=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var v=s.tag;if(v===3||v===4){var R=s.stateNode.containerInfo;if(R===p)break;if(v===4)for(v=s.return;v!==null;){var L=v.tag;if((L===3||L===4)&&v.stateNode.containerInfo===p)return;v=v.return}for(;R!==null;){if(v=fa(R),v===null)return;if(L=v.tag,L===5||L===6||L===26||L===27){s=m=v;continue e}R=R.parentNode}}s=s.return}Wb(function(){var P=m,X=hs(o),J=[];e:{var $=xy.get(t);if($!==void 0){var Y=Ao,pe=t;switch(t){case"keypress":if(xo(o)===0)break e;case"keydown":case"keyup":Y=ZC;break;case"focusin":pe="focus",Y=xs;break;case"focusout":pe="blur",Y=xs;break;case"beforeblur":case"afterblur":Y=xs;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Zb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=jC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=e0;break;case yy:case Ey:case Sy:Y=PC;break;case vy:Y=n0;break;case"scroll":case"scrollend":Y=FC;break;case"wheel":Y=a0;break;case"copy":case"cut":case"paste":Y=HC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Jb;break;case"toggle":case"beforetoggle":Y=o0}var ye=(r&4)!==0,Ge=!ye&&(t==="scroll"||t==="scrollend"),j=ye?$!==null?$+"Capture":null:$;ye=[];for(var B=P,q;B!==null;){var Z=B;if(q=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||q===null||j===null||(Z=pi(B,j),Z!=null&&ye.push($i(B,Z,q))),Ge)break;B=B.return}0<ye.length&&($=new Y($,pe,null,o,X),J.push({event:$,listeners:ye}))}}if((r&7)===0){e:{if($=t==="mouseover"||t==="pointerover",Y=t==="mouseout"||t==="pointerout",$&&o!==ms&&(pe=o.relatedTarget||o.fromElement)&&(fa(pe)||pe[pa]))break e;if((Y||$)&&($=X.window===X?X:($=X.ownerDocument)?$.defaultView||$.parentWindow:window,Y?(pe=o.relatedTarget||o.toElement,Y=P,pe=pe?fa(pe):null,pe!==null&&(Ge=u(pe),ye=pe.tag,pe!==Ge||ye!==5&&ye!==27&&ye!==6)&&(pe=null)):(Y=null,pe=P),Y!==pe)){if(ye=Zb,Z="onMouseLeave",j="onMouseEnter",B="mouse",(t==="pointerout"||t==="pointerover")&&(ye=Jb,Z="onPointerLeave",j="onPointerEnter",B="pointer"),Ge=Y==null?$:di(Y),q=pe==null?$:di(pe),$=new ye(Z,B+"leave",Y,o,X),$.target=Ge,$.relatedTarget=q,Z=null,fa(X)===P&&(ye=new ye(j,B+"enter",pe,o,X),ye.target=q,ye.relatedTarget=Ge,Z=ye),Ge=Z,Y&&pe)t:{for(ye=iI,j=Y,B=pe,q=0,Z=j;Z;Z=ye(Z))q++;Z=0;for(var me=B;me;me=ye(me))Z++;for(;0<q-Z;)j=ye(j),q--;for(;0<Z-q;)B=ye(B),Z--;for(;q--;){if(j===B||B!==null&&j===B.alternate){ye=j;break t}j=ye(j),B=ye(B)}ye=null}else ye=null;Y!==null&&HS(J,$,Y,ye,!1),pe!==null&&Ge!==null&&HS(J,Ge,pe,ye,!0)}}e:{if($=P?di(P):window,Y=$.nodeName&&$.nodeName.toLowerCase(),Y==="select"||Y==="input"&&$.type==="file")var Me=ly;else if(iy($))if(sy)Me=h0;else{Me=g0;var ge=f0}else Y=$.nodeName,!Y||Y.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?P&&gs(P.elementType)&&(Me=ly):Me=m0;if(Me&&(Me=Me(t,P))){oy(J,Me,o,X);break e}ge&&ge(t,$,P),t==="focusout"&&P&&$.type==="number"&&P.memoizedProps.value!=null&&fs($,"number",$.value)}switch(ge=P?di(P):window,t){case"focusin":(iy(ge)||ge.contentEditable==="true")&&(xa=ge,ws=P,Si=null);break;case"focusout":Si=ws=xa=null;break;case"mousedown":ks=!0;break;case"contextmenu":case"mouseup":case"dragend":ks=!1,hy(J,o,X);break;case"selectionchange":if(y0)break;case"keydown":case"keyup":hy(J,o,X)}var xe;if(As)e:{switch(t){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else va?ry(t,o)&&(Ce="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(Ce="onCompositionStart");Ce&&(ey&&o.locale!=="ko"&&(va||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&va&&(xe=Kb()):(ur=X,Es="value"in ur?ur.value:ur.textContent,va=!0)),ge=gl(P,Ce),0<ge.length&&(Ce=new Qb(Ce,t,null,o,X),J.push({event:Ce,listeners:ge}),xe?Ce.data=xe:(xe=ay(o),xe!==null&&(Ce.data=xe)))),(xe=s0?u0(t,o):c0(t,o))&&(Ce=gl(P,"onBeforeInput"),0<Ce.length&&(ge=new Qb("onBeforeInput","beforeinput",null,o,X),J.push({event:ge,listeners:Ce}),ge.data=xe)),tI(J,t,P,o,X)}PS(J,r)})}function $i(t,r,o){return{instance:t,listener:r,currentTarget:o}}function gl(t,r){for(var o=r+"Capture",s=[];t!==null;){var p=t,m=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||m===null||(p=pi(t,o),p!=null&&s.unshift($i(t,p,m)),p=pi(t,r),p!=null&&s.push($i(t,p,m))),t.tag===3)return s;t=t.return}return[]}function iI(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function HS(t,r,o,s,p){for(var m=r._reactName,v=[];o!==null&&o!==s;){var R=o,L=R.alternate,P=R.stateNode;if(R=R.tag,L!==null&&L===s)break;R!==5&&R!==26&&R!==27||P===null||(L=P,p?(P=pi(o,m),P!=null&&v.unshift($i(o,P,L))):p||(P=pi(o,m),P!=null&&v.push($i(o,P,L)))),o=o.return}v.length!==0&&t.push({event:r,listeners:v})}var oI=/\r\n?/g,lI=/\u0000|\uFFFD/g;function $S(t){return(typeof t=="string"?t:""+t).replace(oI,`
|
|
49
|
+
`).replace(lI,"")}function VS(t,r){return r=$S(r),$S(t)===r}function Pe(t,r,o,s,p,m){switch(o){case"children":typeof s=="string"?r==="body"||r==="textarea"&&s===""||ya(t,s):(typeof s=="number"||typeof s=="bigint")&&r!=="body"&&ya(t,""+s);break;case"className":yo(t,"class",s);break;case"tabIndex":yo(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":yo(t,o,s);break;case"style":Vb(t,s,m);break;case"data":if(r!=="object"){yo(t,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||o!=="href")){t.removeAttribute(o);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}s=So(""+s),t.setAttribute(o,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(o==="formAction"?(r!=="input"&&Pe(t,r,"name",p.name,p,null),Pe(t,r,"formEncType",p.formEncType,p,null),Pe(t,r,"formMethod",p.formMethod,p,null),Pe(t,r,"formTarget",p.formTarget,p,null)):(Pe(t,r,"encType",p.encType,p,null),Pe(t,r,"method",p.method,p,null),Pe(t,r,"target",p.target,p,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}s=So(""+s),t.setAttribute(o,s);break;case"onClick":s!=null&&(t.onclick=zn);break;case"onScroll":s!=null&&Re("scroll",t);break;case"onScrollEnd":s!=null&&Re("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(o=s.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}o=So(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,""+s):t.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":s===!0?t.setAttribute(o,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,s):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(o,s):t.removeAttribute(o);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(o):t.setAttribute(o,s);break;case"popover":Re("beforetoggle",t),Re("toggle",t),bo(t,"popover",s);break;case"xlinkActuate":jn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":jn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":jn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":jn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":jn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":jn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":jn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":jn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":jn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":bo(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=MC.get(o)||o,bo(t,o,s))}}function ec(t,r,o,s,p,m){switch(o){case"style":Vb(t,s,m);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(o=s.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof s=="string"?ya(t,s):(typeof s=="number"||typeof s=="bigint")&&ya(t,""+s);break;case"onScroll":s!=null&&Re("scroll",t);break;case"onScrollEnd":s!=null&&Re("scrollend",t);break;case"onClick":s!=null&&(t.onclick=zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fb.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),r=o.slice(2,p?o.length-7:void 0),m=t[Ft]||null,m=m!=null?m[o]:null,typeof m=="function"&&t.removeEventListener(r,m,p),typeof s=="function")){typeof m!="function"&&m!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(r,s,p);break e}o in t?t[o]=s:s===!0?t.setAttribute(o,""):bo(t,o,s)}}}function Tt(t,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",t),Re("load",t);var s=!1,p=!1,m;for(m in o)if(o.hasOwnProperty(m)){var v=o[m];if(v!=null)switch(m){case"src":s=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Pe(t,r,m,v,o,null)}}p&&Pe(t,r,"srcSet",o.srcSet,o,null),s&&Pe(t,r,"src",o.src,o,null);return;case"input":Re("invalid",t);var R=m=v=p=null,L=null,P=null;for(s in o)if(o.hasOwnProperty(s)){var X=o[s];if(X!=null)switch(s){case"name":p=X;break;case"type":v=X;break;case"checked":L=X;break;case"defaultChecked":P=X;break;case"value":m=X;break;case"defaultValue":R=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,r));break;default:Pe(t,r,s,X,o,null)}}Pb(t,m,R,L,P,v,p,!1);return;case"select":Re("invalid",t),s=v=m=null;for(p in o)if(o.hasOwnProperty(p)&&(R=o[p],R!=null))switch(p){case"value":m=R;break;case"defaultValue":v=R;break;case"multiple":s=R;default:Pe(t,r,p,R,o,null)}r=m,o=v,t.multiple=!!s,r!=null?ba(t,!!s,r,!1):o!=null&&ba(t,!!s,o,!0);return;case"textarea":Re("invalid",t),m=p=s=null;for(v in o)if(o.hasOwnProperty(v)&&(R=o[v],R!=null))switch(v){case"value":s=R;break;case"defaultValue":p=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Pe(t,r,v,R,o,null)}Hb(t,s,p,m);return;case"option":for(L in o)if(o.hasOwnProperty(L)&&(s=o[L],s!=null))switch(L){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Pe(t,r,L,s,o,null)}return;case"dialog":Re("beforetoggle",t),Re("toggle",t),Re("cancel",t),Re("close",t);break;case"iframe":case"object":Re("load",t);break;case"video":case"audio":for(s=0;s<Hi.length;s++)Re(Hi[s],t);break;case"image":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"embed":case"source":case"link":Re("error",t),Re("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in o)if(o.hasOwnProperty(P)&&(s=o[P],s!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Pe(t,r,P,s,o,null)}return;default:if(gs(r)){for(X in o)o.hasOwnProperty(X)&&(s=o[X],s!==void 0&&ec(t,r,X,s,o,void 0));return}}for(R in o)o.hasOwnProperty(R)&&(s=o[R],s!=null&&Pe(t,r,R,s,o,null))}function sI(t,r,o,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,m=null,v=null,R=null,L=null,P=null,X=null;for(Y in o){var J=o[Y];if(o.hasOwnProperty(Y)&&J!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":L=J;default:s.hasOwnProperty(Y)||Pe(t,r,Y,null,s,J)}}for(var $ in s){var Y=s[$];if(J=o[$],s.hasOwnProperty($)&&(Y!=null||J!=null))switch($){case"type":m=Y;break;case"name":p=Y;break;case"checked":P=Y;break;case"defaultChecked":X=Y;break;case"value":v=Y;break;case"defaultValue":R=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,r));break;default:Y!==J&&Pe(t,r,$,Y,s,J)}}ps(t,v,R,L,P,X,m,p);return;case"select":Y=v=R=$=null;for(m in o)if(L=o[m],o.hasOwnProperty(m)&&L!=null)switch(m){case"value":break;case"multiple":Y=L;default:s.hasOwnProperty(m)||Pe(t,r,m,null,s,L)}for(p in s)if(m=s[p],L=o[p],s.hasOwnProperty(p)&&(m!=null||L!=null))switch(p){case"value":$=m;break;case"defaultValue":R=m;break;case"multiple":v=m;default:m!==L&&Pe(t,r,p,m,s,L)}r=R,o=v,s=Y,$!=null?ba(t,!!o,$,!1):!!s!=!!o&&(r!=null?ba(t,!!o,r,!0):ba(t,!!o,o?[]:"",!1));return;case"textarea":Y=$=null;for(R in o)if(p=o[R],o.hasOwnProperty(R)&&p!=null&&!s.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Pe(t,r,R,null,s,p)}for(v in s)if(p=s[v],m=o[v],s.hasOwnProperty(v)&&(p!=null||m!=null))switch(v){case"value":$=p;break;case"defaultValue":Y=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==m&&Pe(t,r,v,p,s,m)}Gb(t,$,Y);return;case"option":for(var pe in o)if($=o[pe],o.hasOwnProperty(pe)&&$!=null&&!s.hasOwnProperty(pe))switch(pe){case"selected":t.selected=!1;break;default:Pe(t,r,pe,null,s,$)}for(L in s)if($=s[L],Y=o[L],s.hasOwnProperty(L)&&$!==Y&&($!=null||Y!=null))switch(L){case"selected":t.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Pe(t,r,L,$,s,Y)}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 ye in o)$=o[ye],o.hasOwnProperty(ye)&&$!=null&&!s.hasOwnProperty(ye)&&Pe(t,r,ye,null,s,$);for(P in s)if($=s[P],Y=o[P],s.hasOwnProperty(P)&&$!==Y&&($!=null||Y!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,r));break;default:Pe(t,r,P,$,s,Y)}return;default:if(gs(r)){for(var Ge in o)$=o[Ge],o.hasOwnProperty(Ge)&&$!==void 0&&!s.hasOwnProperty(Ge)&&ec(t,r,Ge,void 0,s,$);for(X in s)$=s[X],Y=o[X],!s.hasOwnProperty(X)||$===Y||$===void 0&&Y===void 0||ec(t,r,X,$,s,Y);return}}for(var j in o)$=o[j],o.hasOwnProperty(j)&&$!=null&&!s.hasOwnProperty(j)&&Pe(t,r,j,null,s,$);for(J in s)$=s[J],Y=o[J],!s.hasOwnProperty(J)||$===Y||$==null&&Y==null||Pe(t,r,J,$,s,Y)}function YS(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uI(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,o=performance.getEntriesByType("resource"),s=0;s<o.length;s++){var p=o[s],m=p.transferSize,v=p.initiatorType,R=p.duration;if(m&&R&&YS(v)){for(v=0,R=p.responseEnd,s+=1;s<o.length;s++){var L=o[s],P=L.startTime;if(P>R)break;var X=L.transferSize,J=L.initiatorType;X&&YS(J)&&(L=L.responseEnd,v+=X*(L<R?1:(R-P)/(L-P)))}if(--s,r+=8*(m+v)/(p.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var tc=null,nc=null;function ml(t){return t.nodeType===9?t:t.ownerDocument}function WS(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function KS(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function rc(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var ac=null;function cI(){var t=window.event;return t&&t.type==="popstate"?t===ac?!1:(ac=t,!0):(ac=null,!1)}var XS=typeof setTimeout=="function"?setTimeout:void 0,dI=typeof clearTimeout=="function"?clearTimeout:void 0,ZS=typeof Promise=="function"?Promise:void 0,pI=typeof queueMicrotask=="function"?queueMicrotask:typeof ZS<"u"?function(t){return ZS.resolve(null).then(t).catch(fI)}:XS;function fI(t){setTimeout(function(){throw t})}function Rr(t){return t==="head"}function QS(t,r){var o=r,s=0;do{var p=o.nextSibling;if(t.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(s===0){t.removeChild(p),Ka(r);return}s--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")s++;else if(o==="html")Vi(t.ownerDocument.documentElement);else if(o==="head"){o=t.ownerDocument.head,Vi(o);for(var m=o.firstChild;m;){var v=m.nextSibling,R=m.nodeName;m[ci]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&m.rel.toLowerCase()==="stylesheet"||o.removeChild(m),m=v}}else o==="body"&&Vi(t.ownerDocument.body);o=p}while(o);Ka(r)}function JS(t,r){var o=t;t=0;do{var s=o.nextSibling;if(o.nodeType===1?r?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(r?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),s&&s.nodeType===8)if(o=s.data,o==="/$"){if(t===0)break;t--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||t++;o=s}while(o)}function ic(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":ic(o),cs(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function gI(t,r,o,s){for(;t.nodeType===1;){var p=o;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[ci])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var m=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=hn(t.nextSibling),t===null)break}return null}function mI(t,r,o){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=hn(t.nextSibling),t===null))return null;return t}function ev(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=hn(t.nextSibling),t===null))return null;return t}function oc(t){return t.data==="$?"||t.data==="$~"}function lc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function hI(t,r){var o=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||o.readyState!=="loading")r();else{var s=function(){r(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function hn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var sc=null;function tv(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"||o==="/&"){if(r===0)return hn(t.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}t=t.nextSibling}return null}function nv(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(r===0)return t;r--}else o!=="/$"&&o!=="/&"||r++}t=t.previousSibling}return null}function rv(t,r,o){switch(r=ml(o),t){case"html":if(t=r.documentElement,!t)throw Error(i(452));return t;case"head":if(t=r.head,!t)throw Error(i(453));return t;case"body":if(t=r.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function Vi(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);cs(t)}var bn=new Map,av=new Set;function hl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var nr=ee.d;ee.d={f:bI,r:yI,D:EI,C:SI,L:vI,m:xI,X:AI,S:TI,M:_I};function bI(){var t=nr.f(),r=ll();return t||r}function yI(t){var r=ga(t);r!==null&&r.tag===5&&r.type==="form"?vE(r):nr.r(t)}var Va=typeof document>"u"?null:document;function iv(t,r,o){var s=Va;if(s&&typeof r=="string"&&r){var p=un(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),av.has(p)||(av.add(p),t={rel:t,crossOrigin:o,href:r},s.querySelector(p)===null&&(r=s.createElement("link"),Tt(r,"link",t),gt(r),s.head.appendChild(r)))}}function EI(t){nr.D(t),iv("dns-prefetch",t,null)}function SI(t,r){nr.C(t,r),iv("preconnect",t,r)}function vI(t,r,o){nr.L(t,r,o);var s=Va;if(s&&t&&r){var p='link[rel="preload"][as="'+un(r)+'"]';r==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+un(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+un(o.imageSizes)+'"]')):p+='[href="'+un(t)+'"]';var m=p;switch(r){case"style":m=Ya(t);break;case"script":m=Wa(t)}bn.has(m)||(t=h({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:t,as:r},o),bn.set(m,t),s.querySelector(p)!==null||r==="style"&&s.querySelector(Yi(m))||r==="script"&&s.querySelector(Wi(m))||(r=s.createElement("link"),Tt(r,"link",t),gt(r),s.head.appendChild(r)))}}function xI(t,r){nr.m(t,r);var o=Va;if(o&&t){var s=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+un(s)+'"][href="'+un(t)+'"]',m=p;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Wa(t)}if(!bn.has(m)&&(t=h({rel:"modulepreload",href:t},r),bn.set(m,t),o.querySelector(p)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Wi(m)))return}s=o.createElement("link"),Tt(s,"link",t),gt(s),o.head.appendChild(s)}}}function TI(t,r,o){nr.S(t,r,o);var s=Va;if(s&&t){var p=ma(s).hoistableStyles,m=Ya(t);r=r||"default";var v=p.get(m);if(!v){var R={loading:0,preload:null};if(v=s.querySelector(Yi(m)))R.loading=5;else{t=h({rel:"stylesheet",href:t,"data-precedence":r},o),(o=bn.get(m))&&uc(t,o);var L=v=s.createElement("link");gt(L),Tt(L,"link",t),L._p=new Promise(function(P,X){L.onload=P,L.onerror=X}),L.addEventListener("load",function(){R.loading|=1}),L.addEventListener("error",function(){R.loading|=2}),R.loading|=4,bl(v,r,s)}v={type:"stylesheet",instance:v,count:1,state:R},p.set(m,v)}}}function AI(t,r){nr.X(t,r);var o=Va;if(o&&t){var s=ma(o).hoistableScripts,p=Wa(t),m=s.get(p);m||(m=o.querySelector(Wi(p)),m||(t=h({src:t,async:!0},r),(r=bn.get(p))&&cc(t,r),m=o.createElement("script"),gt(m),Tt(m,"link",t),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(p,m))}}function _I(t,r){nr.M(t,r);var o=Va;if(o&&t){var s=ma(o).hoistableScripts,p=Wa(t),m=s.get(p);m||(m=o.querySelector(Wi(p)),m||(t=h({src:t,async:!0,type:"module"},r),(r=bn.get(p))&&cc(t,r),m=o.createElement("script"),gt(m),Tt(m,"link",t),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(p,m))}}function ov(t,r,o,s){var p=(p=ce.current)?hl(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=Ya(o.href),o=ma(p).hoistableStyles,s=o.get(r),s||(s={type:"style",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=Ya(o.href);var m=ma(p).hoistableStyles,v=m.get(t);if(v||(p=p.ownerDocument||p,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,v),(m=p.querySelector(Yi(t)))&&!m._p&&(v.instance=m,v.state.loading=5),bn.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},bn.set(t,o),m||RI(p,t,o,v.state))),r&&s===null)throw Error(i(528,""));return v}if(r&&s!==null)throw Error(i(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Wa(o),o=ma(p).hoistableScripts,s=o.get(r),s||(s={type:"script",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Ya(t){return'href="'+un(t)+'"'}function Yi(t){return'link[rel="stylesheet"]['+t+"]"}function lv(t){return h({},t,{"data-precedence":t.precedence,precedence:null})}function RI(t,r,o,s){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=t.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),Tt(r,"link",o),gt(r),t.head.appendChild(r))}function Wa(t){return'[src="'+un(t)+'"]'}function Wi(t){return"script[async]"+t}function sv(t,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var s=t.querySelector('style[data-href~="'+un(o.href)+'"]');if(s)return r.instance=s,gt(s),s;var p=h({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),gt(s),Tt(s,"style",p),bl(s,o.precedence,t),r.instance=s;case"stylesheet":p=Ya(o.href);var m=t.querySelector(Yi(p));if(m)return r.state.loading|=4,r.instance=m,gt(m),m;s=lv(o),(p=bn.get(p))&&uc(s,p),m=(t.ownerDocument||t).createElement("link"),gt(m);var v=m;return v._p=new Promise(function(R,L){v.onload=R,v.onerror=L}),Tt(m,"link",s),r.state.loading|=4,bl(m,o.precedence,t),r.instance=m;case"script":return m=Wa(o.src),(p=t.querySelector(Wi(m)))?(r.instance=p,gt(p),p):(s=o,(p=bn.get(m))&&(s=h({},o),cc(s,p)),t=t.ownerDocument||t,p=t.createElement("script"),gt(p),Tt(p,"link",s),t.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,bl(s,o.precedence,t));return r.instance}function bl(t,r,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=s.length?s[s.length-1]:null,m=p,v=0;v<s.length;v++){var R=s[v];if(R.dataset.precedence===r)m=R;else if(m!==p)break}m?m.parentNode.insertBefore(t,m.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(t,r.firstChild))}function uc(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function cc(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var yl=null;function uv(t,r,o){if(yl===null){var s=new Map,p=yl=new Map;p.set(o,s)}else p=yl,s=p.get(o),s||(s=new Map,p.set(o,s));if(s.has(t))return s;for(s.set(t,null),o=o.getElementsByTagName(t),p=0;p<o.length;p++){var m=o[p];if(!(m[ci]||m[Et]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(r)||"";v=t+v;var R=s.get(v);R?R.push(m):s.set(v,[m])}}return s}function cv(t,r,o){t=t.ownerDocument||t,t.head.insertBefore(o,r==="title"?t.querySelector("head > title"):null)}function NI(t,r,o){if(o===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function dv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function wI(t,r,o,s){if(o.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Ya(s.href),m=r.querySelector(Yi(p));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=El.bind(t),r.then(t,t)),o.state.loading|=4,o.instance=m,gt(m);return}m=r.ownerDocument||r,s=lv(s),(p=bn.get(p))&&uc(s,p),m=m.createElement("link"),gt(m);var v=m;v._p=new Promise(function(R,L){v.onload=R,v.onerror=L}),Tt(m,"link",s),o.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(t.count++,o=El.bind(t),r.addEventListener("load",o),r.addEventListener("error",o))}}var dc=0;function kI(t,r){return t.stylesheets&&t.count===0&&vl(t,t.stylesheets),0<t.count||0<t.imgCount?function(o){var s=setTimeout(function(){if(t.stylesheets&&vl(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+r);0<t.imgBytes&&dc===0&&(dc=62500*uI());var p=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&vl(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>dc?50:800)+r);return t.unsuspend=o,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(p)}}:null}function El(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Sl=null;function vl(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Sl=new Map,r.forEach(CI,t),Sl=null,El.call(t))}function CI(t,r){if(!(r.state.loading&4)){var o=Sl.get(t);if(o)var s=o.get(null);else{o=new Map,Sl.set(t,o);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<p.length;m++){var v=p[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(o.set(v.dataset.precedence,v),s=v)}s&&o.set(null,s)}p=r.instance,v=p.getAttribute("data-precedence"),m=o.get(v)||s,m===s&&o.set(null,p),o.set(v,p),this.count++,s=El.bind(this),p.addEventListener("load",s),p.addEventListener("error",s),m?m.parentNode.insertBefore(p,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var Ki={$$typeof:N,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function II(t,r,o,s,p,m,v,R,L){this.tag=1,this.containerInfo=t,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=os(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=os(0),this.hiddenUpdates=os(null),this.identifierPrefix=s,this.onUncaughtError=p,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function pv(t,r,o,s,p,m,v,R,L,P,X,J){return t=new II(t,r,o,v,L,P,X,J,R),r=1,m===!0&&(r|=24),m=Kt(3,null,null,r),t.current=m,m.stateNode=t,r=Hs(),r.refCount++,t.pooledCache=r,r.refCount++,m.memoizedState={element:s,isDehydrated:o,cache:r},Ws(m),t}function fv(t){return t?(t=_a,t):_a}function gv(t,r,o,s,p,m){p=fv(p),s.context===null?s.context=p:s.pendingContext=p,s=mr(r),s.payload={element:o},m=m===void 0?null:m,m!==null&&(s.callback=m),o=hr(t,s,r),o!==null&&(Gt(o,t,r),Ni(o,t,r))}function mv(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function pc(t,r){mv(t,r),(t=t.alternate)&&mv(t,r)}function hv(t){if(t.tag===13||t.tag===31){var r=Hr(t,67108864);r!==null&&Gt(r,t,67108864),pc(t,67108864)}}function bv(t){if(t.tag===13||t.tag===31){var r=en();r=ls(r);var o=Hr(t,r);o!==null&&Gt(o,t,r),pc(t,r)}}var xl=!0;function OI(t,r,o,s){var p=G.T;G.T=null;var m=ee.p;try{ee.p=2,fc(t,r,o,s)}finally{ee.p=m,G.T=p}}function DI(t,r,o,s){var p=G.T;G.T=null;var m=ee.p;try{ee.p=8,fc(t,r,o,s)}finally{ee.p=m,G.T=p}}function fc(t,r,o,s){if(xl){var p=gc(s);if(p===null)Ju(t,r,s,Tl,o),Ev(t,s);else if(MI(p,t,r,o,s))s.stopPropagation();else if(Ev(t,s),r&4&&-1<LI.indexOf(t)){for(;p!==null;){var m=ga(p);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=kn(m.pendingLanes);if(v!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;v;){var L=1<<31-Be(v);R.entanglements[1]|=L,v&=~L}Dn(m),(Fe&6)===0&&(il=Qe()+500,Gi(0))}}break;case 31:case 13:R=Hr(m,2),R!==null&&Gt(R,m,2),ll(),pc(m,2)}if(m=gc(s),m===null&&Ju(t,r,s,Tl,o),m===p)break;p=m}p!==null&&s.stopPropagation()}else Ju(t,r,s,null,o)}}function gc(t){return t=hs(t),mc(t)}var Tl=null;function mc(t){if(Tl=null,t=fa(t),t!==null){var r=u(t);if(r===null)t=null;else{var o=r.tag;if(o===13){if(t=c(r),t!==null)return t;t=null}else if(o===31){if(t=d(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return Tl=t,null}function yv(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ht()){case K:return 2;case ie:return 8;case de:case Ee:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var hc=!1,Nr=null,wr=null,kr=null,Xi=new Map,Zi=new Map,Cr=[],LI="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 Ev(t,r){switch(t){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":kr=null;break;case"pointerover":case"pointerout":Xi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zi.delete(r.pointerId)}}function Qi(t,r,o,s,p,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:o,eventSystemFlags:s,nativeEvent:m,targetContainers:[p]},r!==null&&(r=ga(r),r!==null&&hv(r)),t):(t.eventSystemFlags|=s,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function MI(t,r,o,s,p){switch(r){case"focusin":return Nr=Qi(Nr,t,r,o,s,p),!0;case"dragenter":return wr=Qi(wr,t,r,o,s,p),!0;case"mouseover":return kr=Qi(kr,t,r,o,s,p),!0;case"pointerover":var m=p.pointerId;return Xi.set(m,Qi(Xi.get(m)||null,t,r,o,s,p)),!0;case"gotpointercapture":return m=p.pointerId,Zi.set(m,Qi(Zi.get(m)||null,t,r,o,s,p)),!0}return!1}function Sv(t){var r=fa(t.target);if(r!==null){var o=u(r);if(o!==null){if(r=o.tag,r===13){if(r=c(o),r!==null){t.blockedOn=r,Lb(t.priority,function(){bv(o)});return}}else if(r===31){if(r=d(o),r!==null){t.blockedOn=r,Lb(t.priority,function(){bv(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Al(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=gc(t.nativeEvent);if(o===null){o=t.nativeEvent;var s=new o.constructor(o.type,o);ms=s,o.target.dispatchEvent(s),ms=null}else return r=ga(o),r!==null&&hv(r),t.blockedOn=o,!1;r.shift()}return!0}function vv(t,r,o){Al(t)&&o.delete(r)}function UI(){hc=!1,Nr!==null&&Al(Nr)&&(Nr=null),wr!==null&&Al(wr)&&(wr=null),kr!==null&&Al(kr)&&(kr=null),Xi.forEach(vv),Zi.forEach(vv)}function _l(t,r){t.blockedOn===r&&(t.blockedOn=null,hc||(hc=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,UI)))}var Rl=null;function xv(t){Rl!==t&&(Rl=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rl===t&&(Rl=null);for(var r=0;r<t.length;r+=3){var o=t[r],s=t[r+1],p=t[r+2];if(typeof s!="function"){if(mc(s||o)===null)continue;break}var m=ga(o);m!==null&&(t.splice(r,3),r-=3,gu(m,{pending:!0,data:p,method:o.method,action:s},s,p))}}))}function Ka(t){function r(L){return _l(L,t)}Nr!==null&&_l(Nr,t),wr!==null&&_l(wr,t),kr!==null&&_l(kr,t),Xi.forEach(r),Zi.forEach(r);for(var o=0;o<Cr.length;o++){var s=Cr[o];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Cr.length&&(o=Cr[0],o.blockedOn===null);)Sv(o),o.blockedOn===null&&Cr.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(s=0;s<o.length;s+=3){var p=o[s],m=o[s+1],v=p[Ft]||null;if(typeof m=="function")v||xv(o);else if(v){var R=null;if(m&&m.hasAttribute("formAction")){if(p=m,v=m[Ft]||null)R=v.formAction;else if(mc(p)!==null)continue}else R=v.action;typeof R=="function"?o[s+1]=R:(o.splice(s,3),s-=3),xv(o)}}}function Tv(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return p=v})},focusReset:"manual",scroll:"manual"})}function r(){p!==null&&(p(),p=null),s||setTimeout(o,20)}function o(){if(!s&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,p=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),p!==null&&(p(),p=null)}}}function bc(t){this._internalRoot=t}Nl.prototype.render=bc.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));var o=r.current,s=en();gv(o,s,t,r,null,null)},Nl.prototype.unmount=bc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;gv(t.current,2,null,t,null,null),ll(),r[pa]=null}};function Nl(t){this._internalRoot=t}Nl.prototype.unstable_scheduleHydration=function(t){if(t){var r=Db();t={blockedOn:null,target:t,priority:r};for(var o=0;o<Cr.length&&r!==0&&r<Cr[o].priority;o++);Cr.splice(o,0,t),o===0&&Sv(t)}};var Av=n.version;if(Av!=="19.2.0")throw Error(i(527,Av,"19.2.0"));ee.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=f(r),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var FI={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{nt=wl.inject(FI),He=wl}catch{}}return eo.createRoot=function(t,r){if(!l(t))throw Error(i(299));var o=!1,s="",p=IE,m=OE,v=DE;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError)),r=pv(t,1,!1,null,null,o,s,null,p,m,v,Tv),t[pa]=r.current,Qu(t),new bc(r)},eo.hydrateRoot=function(t,r,o){if(!l(t))throw Error(i(299));var s=!1,p="",m=IE,v=OE,R=DE,L=null;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(R=o.onRecoverableError),o.formState!==void 0&&(L=o.formState)),r=pv(t,1,!0,r,o??null,s,p,L,m,v,R,Tv),r.context=fv(null),o=r.current,s=en(),s=ls(s),p=mr(s),p.callback=null,hr(o,p,s),o=s,r.current.lanes=o,ui(r,o),Dn(r),t[pa]=r.current,Qu(t),new Nl(r)},eo.version="19.2.0",eo}var Lv;function YI(){if(Lv)return Sc.exports;Lv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Sc.exports=VI(),Sc.exports}var WI=YI(),ri=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},KI={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},XI=class{#e=KI;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,n){return this.#e.setTimeout(e,n)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,n){return this.#e.setInterval(e,n)}clearInterval(e){this.#e.clearInterval(e)}},aa=new XI;function ZI(e){setTimeout(e,0)}var ia=typeof window>"u"||"Deno"in globalThis;function Ot(){}function QI(e,n){return typeof e=="function"?e(n):e}function Rh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Dw(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Lr(e,n){return typeof e=="function"?e(n):e}function yn(e,n){return typeof e=="function"?e(n):e}function Mv(e,n){const{type:a="all",exact:i,fetchStatus:l,predicate:u,queryKey:c,stale:d}=e;if(c){if(i){if(n.queryHash!==Kh(c,n.options))return!1}else if(!so(n.queryKey,c))return!1}if(a!=="all"){const g=n.isActive();if(a==="active"&&!g||a==="inactive"&&g)return!1}return!(typeof d=="boolean"&&n.isStale()!==d||l&&l!==n.state.fetchStatus||u&&!u(n))}function Uv(e,n){const{exact:a,status:i,predicate:l,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(a){if(oa(n.options.mutationKey)!==oa(u))return!1}else if(!so(n.options.mutationKey,u))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function Kh(e,n){return(n?.queryKeyHashFn||oa)(e)}function oa(e){return JSON.stringify(e,(n,a)=>Nh(a)?Object.keys(a).sort().reduce((i,l)=>(i[l]=a[l],i),{}):a)}function so(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(a=>so(e[a],n[a])):!1}var JI=Object.prototype.hasOwnProperty;function Lw(e,n){if(e===n)return e;const a=Fv(e)&&Fv(n);if(!a&&!(Nh(e)&&Nh(n)))return n;const l=(a?e:Object.keys(e)).length,u=a?n:Object.keys(n),c=u.length,d=a?new Array(c):{};let g=0;for(let f=0;f<c;f++){const b=a?f:u[f],h=e[b],E=n[b];if(h===E){d[b]=h,(a?f<l:JI.call(e,b))&&g++;continue}if(h===null||E===null||typeof h!="object"||typeof E!="object"){d[b]=E;continue}const S=Lw(h,E);d[b]=S,S===h&&g++}return l===c&&g===l?e:d}function zl(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const a in e)if(e[a]!==n[a])return!1;return!0}function Fv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nh(e){if(!Bv(e))return!1;const n=e.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!Bv(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Bv(e){return Object.prototype.toString.call(e)==="[object Object]"}function eO(e){return new Promise(n=>{aa.setTimeout(n,e)})}function wh(e,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,n):a.structuralSharing!==!1?Lw(e,n):n}function tO(e,n,a=0){const i=[...e,n];return a&&i.length>a?i.slice(1):i}function nO(e,n,a=0){const i=[n,...e];return a&&i.length>a?i.slice(0,-1):i}var Xh=Symbol();function Mw(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Xh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Uw(e,n){return typeof e=="function"?e(...n):!!e}var rO=class extends ri{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!ia&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Zh=new rO;function kh(){let e,n;const a=new Promise((l,u)=>{e=l,n=u});a.status="pending",a.catch(()=>{});function i(l){Object.assign(a,l),delete a.resolve,delete a.reject}return a.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},a.reject=l=>{i({status:"rejected",reason:l}),n(l)},a}var aO=ZI;function iO(){let e=[],n=0,a=d=>{d()},i=d=>{d()},l=aO;const u=d=>{n?e.push(d):l(()=>{a(d)})},c=()=>{const d=e;e=[],d.length&&l(()=>{i(()=>{d.forEach(g=>{a(g)})})})};return{batch:d=>{let g;n++;try{g=d()}finally{n--,n||c()}return g},batchCalls:d=>(...g)=>{u(()=>{d(...g)})},schedule:u,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{l=d}}}var pt=iO(),oO=class extends ri{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!ia&&window.addEventListener){const n=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(a=>{a(e)}))}isOnline(){return this.#e}},ql=new oO;function lO(e){return Math.min(1e3*2**e,3e4)}function Fw(e){return(e??"online")==="online"?ql.isOnline():!0}var Ch=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Bw(e){let n=!1,a=0,i;const l=kh(),u=()=>l.status!=="pending",c=T=>{if(!u()){const C=new Ch(T);E(C),e.onCancel?.(C)}},d=()=>{n=!0},g=()=>{n=!1},f=()=>Zh.isFocused()&&(e.networkMode==="always"||ql.isOnline())&&e.canRun(),b=()=>Fw(e.networkMode)&&e.canRun(),h=T=>{u()||(i?.(),l.resolve(T))},E=T=>{u()||(i?.(),l.reject(T))},S=()=>new Promise(T=>{i=C=>{(u()||f())&&T(C)},e.onPause?.()}).then(()=>{i=void 0,u()||e.onContinue?.()}),_=()=>{if(u())return;let T;const C=a===0?e.initialPromise:void 0;try{T=C??e.fn()}catch(x){T=Promise.reject(x)}Promise.resolve(T).then(h).catch(x=>{if(u())return;const A=e.retry??(ia?0:3),N=e.retryDelay??lO,D=typeof N=="function"?N(a,x):N,U=A===!0||typeof A=="number"&&a<A||typeof A=="function"&&A(a,x);if(n||!U){E(x);return}a++,e.onFail?.(a,x),eO(D).then(()=>f()?void 0:S()).then(()=>{n?E(x):_()})})};return{promise:l,status:()=>l.status,cancel:c,continue:()=>(i?.(),l),cancelRetry:d,continueRetry:g,canStart:b,start:()=>(b()?_():S().then(_),l)}}var jw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rh(this.gcTime)&&(this.#e=aa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ia?1/0:300*1e3))}clearGcTimeout(){this.#e&&(aa.clearTimeout(this.#e),this.#e=void 0)}},sO=class extends jw{#e;#t;#n;#a;#r;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=jv(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=jv(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),this.#e=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const a=wh(this.state.data,e,this.options);return this.#i({data:a,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),a}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#r?.promise;return this.#r?.cancel(e),n?n.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>yn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Lr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Dw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(g=>g.options.queryFn);d&&this.setOptions(d.options)}const a=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#l=!0,a.signal)})},l=()=>{const d=Mw(this.options,n),f=(()=>{const b={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(b),b})();return this.#l=!1,this.options.persister?this.options.persister(d,f,this):d(f)},c=(()=>{const d={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:l};return i(d),d})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#i({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=Bw({initialPromise:n?.initialPromise,fn:c.fetchFn,onCancel:d=>{d instanceof Ch&&d.revert&&this.setState({...this.#t,fetchStatus:"idle"}),a.abort()},onFail:(d,g)=>{this.#i({type:"failed",failureCount:d,error:g})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Ch){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#i(e){const n=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...zw(a.data,this.options),fetchMeta:e.meta??null};case"success":const i={...a,data:e.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const l=e.error;return{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=n(this.state),pt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function zw(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Fw(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jv(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,a=n!==void 0,i=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var uO=class extends ri{constructor(e,n){super(),this.options=n,this.#e=e,this.#i=null,this.#l=kh(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#a=void 0;#r;#o;#l;#i;#m;#p;#f;#u;#c;#s;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),zv(this.#t,this.options)?this.#d():this.updateResult(),this.#E())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ih(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ih(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#v(),this.#t.removeObserver(this)}setOptions(e){const n=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof yn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#t.setOptions(this.options),n._defaulted&&!zl(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&qv(this.#t,a,this.options,n)&&this.#d(),this.updateResult(),i&&(this.#t!==a||yn(this.options.enabled,this.#t)!==yn(n.enabled,this.#t)||Lr(this.options.staleTime,this.#t)!==Lr(n.staleTime,this.#t))&&this.#h();const l=this.#b();i&&(this.#t!==a||yn(this.options.enabled,this.#t)!==yn(n.enabled,this.#t)||l!==this.#s)&&this.#y(l)}getOptimisticResult(e){const n=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(n,e);return dO(this,a)&&(this.#a=a,this.#o=this.options,this.#r=this.#t.state),a}getCurrentResult(){return this.#a}trackResult(e,n){return new Proxy(e,{get:(a,i)=>(this.trackProp(i),n?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(a,i))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=this.#e.defaultQueryOptions(e),a=this.#e.getQueryCache().build(this.#e,n);return a.fetch().then(()=>this.createResult(a,n))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(e){this.#x();let n=this.#t.fetch(this.options,e);return e?.throwOnError||(n=n.catch(Ot)),n}#h(){this.#S();const e=Lr(this.options.staleTime,this.#t);if(ia||this.#a.isStale||!Rh(e))return;const a=Dw(this.#a.dataUpdatedAt,e)+1;this.#u=aa.setTimeout(()=>{this.#a.isStale||this.updateResult()},a)}#b(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#v(),this.#s=e,!(ia||yn(this.options.enabled,this.#t)===!1||!Rh(this.#s)||this.#s===0)&&(this.#c=aa.setInterval(()=>{(this.options.refetchIntervalInBackground||Zh.isFocused())&&this.#d()},this.#s))}#E(){this.#h(),this.#y(this.#b())}#S(){this.#u&&(aa.clearTimeout(this.#u),this.#u=void 0)}#v(){this.#c&&(aa.clearInterval(this.#c),this.#c=void 0)}createResult(e,n){const a=this.#t,i=this.options,l=this.#a,u=this.#r,c=this.#o,g=e!==a?e.state:this.#n,{state:f}=e;let b={...f},h=!1,E;if(n._optimisticResults){const H=this.hasListeners(),z=!H&&zv(e,n),F=H&&qv(e,a,n,i);(z||F)&&(b={...b,...zw(f.data,e.options)}),n._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:S,errorUpdatedAt:_,status:T}=b;E=b.data;let C=!1;if(n.placeholderData!==void 0&&E===void 0&&T==="pending"){let H;l?.isPlaceholderData&&n.placeholderData===c?.placeholderData?(H=l.data,C=!0):H=typeof n.placeholderData=="function"?n.placeholderData(this.#f?.state.data,this.#f):n.placeholderData,H!==void 0&&(T="success",E=wh(l?.data,H,n),h=!0)}if(n.select&&E!==void 0&&!C)if(l&&E===u?.data&&n.select===this.#m)E=this.#p;else try{this.#m=n.select,E=n.select(E),E=wh(l?.data,E,n),this.#p=E,this.#i=null}catch(H){this.#i=H}this.#i&&(S=this.#i,E=this.#p,_=Date.now(),T="error");const x=b.fetchStatus==="fetching",A=T==="pending",N=T==="error",D=A&&x,U=E!==void 0,M={status:T,fetchStatus:b.fetchStatus,isPending:A,isSuccess:T==="success",isError:N,isInitialLoading:D,isLoading:D,data:E,dataUpdatedAt:b.dataUpdatedAt,error:S,errorUpdatedAt:_,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:x,isRefetching:x&&!A,isLoadingError:N&&!U,isPaused:b.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:N&&U,isStale:Qh(e,n),refetch:this.refetch,promise:this.#l,isEnabled:yn(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const H=W=>{M.status==="error"?W.reject(M.error):M.data!==void 0&&W.resolve(M.data)},z=()=>{const W=this.#l=M.promise=kh();H(W)},F=this.#l;switch(F.status){case"pending":e.queryHash===a.queryHash&&H(F);break;case"fulfilled":(M.status==="error"||M.data!==F.value)&&z();break;case"rejected":(M.status!=="error"||M.error!==F.reason)&&z();break}}return M}updateResult(){const e=this.#a,n=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#f=this.#t),zl(n,e))return;this.#a=n;const a=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#g.size)return!0;const u=new Set(l??this.#g);return this.options.throwOnError&&u.add("error"),Object.keys(this.#a).some(c=>{const d=c;return this.#a[d]!==e[d]&&u.has(d)})};this.#T({listeners:a()})}#x(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const n=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#E()}#T(e){pt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function cO(e,n){return yn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function zv(e,n){return cO(e,n)||e.state.data!==void 0&&Ih(e,n,n.refetchOnMount)}function Ih(e,n,a){if(yn(n.enabled,e)!==!1&&Lr(n.staleTime,e)!=="static"){const i=typeof a=="function"?a(e):a;return i==="always"||i!==!1&&Qh(e,n)}return!1}function qv(e,n,a,i){return(e!==n||yn(i.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&Qh(e,a)}function Qh(e,n){return yn(n.enabled,e)!==!1&&e.isStaleByTime(Lr(n.staleTime,e))}function dO(e,n){return!zl(e.getCurrentResult(),n)}function Pv(e){return{onFetch:(n,a)=>{const i=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,u=n.state.data?.pages||[],c=n.state.data?.pageParams||[];let d={pages:[],pageParams:[]},g=0;const f=async()=>{let b=!1;const h=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(n.signal.aborted?b=!0:n.signal.addEventListener("abort",()=>{b=!0}),n.signal)})},E=Mw(n.options,n.fetchOptions),S=async(_,T,C)=>{if(b)return Promise.reject();if(T==null&&_.pages.length)return Promise.resolve(_);const A=(()=>{const w={client:n.client,queryKey:n.queryKey,pageParam:T,direction:C?"backward":"forward",meta:n.options.meta};return h(w),w})(),N=await E(A),{maxPages:D}=n.options,U=C?nO:tO;return{pages:U(_.pages,N,D),pageParams:U(_.pageParams,T,D)}};if(l&&u.length){const _=l==="backward",T=_?pO:Gv,C={pages:u,pageParams:c},x=T(i,C);d=await S(C,x,_)}else{const _=e??u.length;do{const T=g===0?c[0]??i.initialPageParam:Gv(i,d);if(g>0&&T==null)break;d=await S(d,T),g++}while(g<_)}return d};n.options.persister?n.fetchFn=()=>n.options.persister?.(f,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a):n.fetchFn=f}}}function Gv(e,{pages:n,pageParams:a}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,a[i],a):void 0}function pO(e,{pages:n,pageParams:a}){return n.length>0?e.getPreviousPageParam?.(n[0],n,a[0],a):void 0}var fO=class extends jw{#e;#t;#n;#a;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||qw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(n=>n!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#r({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=Bw({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(new Error("No mutationFn found")),onFail:(u,c)=>{this.#r({type:"failed",failureCount:u,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",l=!this.#a.canStart();try{if(i)n();else{this.#r({type:"pending",variables:e,isPaused:l}),await this.#n.config.onMutate?.(e,this,a);const c=await this.options.onMutate?.(e,a);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:l})}const u=await this.#a.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,a),await this.options.onSuccess?.(u,e,this.state.context,a),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(u,null,e,this.state.context,a),this.#r({type:"success",data:u}),u}catch(u){try{throw await this.#n.config.onError?.(u,e,this.state.context,this,a),await this.options.onError?.(u,e,this.state.context,a),await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(void 0,u,e,this.state.context,a),u}finally{this.#r({type:"error",error:u})}}finally{this.#n.runNext(this)}}#r(e){const n=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),pt.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function qw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gO=class extends ri{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,a){const i=new fO({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:a});return this.add(i),i}add(e){this.#e.add(e);const n=kl(e);if(typeof n=="string"){const a=this.#t.get(n);a?a.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=kl(e);if(typeof n=="string"){const a=this.#t.get(n);if(a)if(a.length>1){const i=a.indexOf(e);i!==-1&&a.splice(i,1)}else a[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=kl(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=kl(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){pt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(a=>Uv(n,a))}findAll(e={}){return this.getAll().filter(n=>Uv(e,n))}notify(e){pt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return pt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Ot))))}};function kl(e){return e.options.scope?.id}var mO=class extends ri{#e;#t=void 0;#n;#a;constructor(n,a){super(),this.#e=n,this.setOptions(a),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const a=this.options;this.options=this.#e.defaultMutationOptions(n),zl(this.options,a)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&oa(a.mutationKey)!==oa(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#r(),this.#o(n)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(n,a){return this.#a=a,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(n)}#r(){const n=this.#n?.state??qw();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#o(n){pt.batch(()=>{if(this.#a&&this.hasListeners()){const a=this.#t.variables,i=this.#t.context,l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};n?.type==="success"?(this.#a.onSuccess?.(n.data,a,i,l),this.#a.onSettled?.(n.data,null,a,i,l)):n?.type==="error"&&(this.#a.onError?.(n.error,a,i,l),this.#a.onSettled?.(void 0,n.error,a,i,l))}this.listeners.forEach(a=>{a(this.#t)})})}},hO=class extends ri{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,a){const i=n.queryKey,l=n.queryHash??Kh(i,n);let u=this.get(l);return u||(u=new sO({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(n),state:a,defaultOptions:e.getQueryDefaults(i)}),this.add(u)),u}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){pt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(a=>Mv(n,a))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(a=>Mv(e,a)):n}notify(e){pt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},bO=class{#e;#t;#n;#a;#r;#o;#l;#i;constructor(e={}){this.#e=e.queryCache||new hO,this.#t=e.mutationCache||new gO,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=Zh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ql.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),a=this.#e.build(this,n),i=a.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Lr(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:a})=>{const i=a.data;return[n,i]})}setQueryData(e,n,a){const i=this.defaultQueryOptions({queryKey:e}),u=this.#e.get(i.queryHash)?.state.data,c=QI(n,u);if(c!==void 0)return this.#e.build(this,i).setData(c,{...a,manual:!0})}setQueriesData(e,n,a){return pt.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,a)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;pt.batch(()=>{n.findAll(e).forEach(a=>{n.remove(a)})})}resetQueries(e,n){const a=this.#e;return pt.batch(()=>(a.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const a={revert:!0,...n},i=pt.batch(()=>this.#e.findAll(e).map(l=>l.cancel(a)));return Promise.all(i).then(Ot).catch(Ot)}invalidateQueries(e,n={}){return pt.batch(()=>(this.#e.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},i=pt.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let u=l.fetch(void 0,a);return a.throwOnError||(u=u.catch(Ot)),l.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(Ot)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const a=this.#e.build(this,n);return a.isStaleByTime(Lr(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ot).catch(Ot)}fetchInfiniteQuery(e){return e.behavior=Pv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ot).catch(Ot)}ensureInfiniteQueryData(e){return e.behavior=Pv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ql.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#a.set(oa(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#a.values()],a={};return n.forEach(i=>{so(e,i.queryKey)&&Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(e,n){this.#r.set(oa(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],a={};return n.forEach(i=>{so(e,i.mutationKey)&&Object.assign(a,i.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Kh(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Xh&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Pw=te.createContext(void 0),ir=e=>{const n=te.useContext(Pw);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},yO=({client:e,children:n})=>(te.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Pw.Provider,{value:e,children:n})),Gw=te.createContext(!1),EO=()=>te.useContext(Gw);Gw.Provider;function SO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var vO=te.createContext(SO()),xO=()=>te.useContext(vO),TO=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},AO=e=>{te.useEffect(()=>{e.clearReset()},[e])},_O=({result:e,errorResetBoundary:n,throwOnError:a,query:i,suspense:l})=>e.isError&&!n.isReset()&&!e.isFetching&&i&&(l&&e.data===void 0||Uw(a,[e.error,i])),RO=e=>{if(e.suspense){const a=l=>l==="static"?l:Math.max(l??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...l)=>a(i(...l)):a(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},NO=(e,n)=>e.isLoading&&e.isFetching&&!n,wO=(e,n)=>e?.suspense&&n.isPending,Hv=(e,n,a)=>n.fetchOptimistic(e).catch(()=>{a.clearReset()});function kO(e,n,a){const i=EO(),l=xO(),u=ir(),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=i?"isRestoring":"optimistic",RO(c),TO(c,l),AO(l);const d=!u.getQueryCache().get(c.queryHash),[g]=te.useState(()=>new n(u,c)),f=g.getOptimisticResult(c),b=!i&&e.subscribed!==!1;if(te.useSyncExternalStore(te.useCallback(h=>{const E=b?g.subscribe(pt.batchCalls(h)):Ot;return g.updateResult(),E},[g,b]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),te.useEffect(()=>{g.setOptions(c)},[c,g]),wO(c,f))throw Hv(c,g,l);if(_O({result:f,errorResetBoundary:l,throwOnError:c.throwOnError,query:u.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw f.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!ia&&NO(f,i)&&(d?Hv(c,g,l):u.getQueryCache().get(c.queryHash)?.promise)?.catch(Ot).finally(()=>{g.updateResult()}),c.notifyOnChangeProps?f:g.trackResult(f)}function ai(e,n){return kO(e,uO)}function ii(e,n){const a=ir(),[i]=te.useState(()=>new mO(a,e));te.useEffect(()=>{i.setOptions(e)},[i,e]);const l=te.useSyncExternalStore(te.useCallback(c=>i.subscribe(pt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=te.useCallback((c,d)=>{i.mutate(c,d).catch(Ot)},[i]);if(l.error&&Uw(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}/**
|
|
50
50
|
* @license lucide-react v0.544.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
@@ -96,7 +96,7 @@ Error generating stack: `+s.message+`
|
|
|
96
96
|
*
|
|
97
97
|
* This source code is licensed under the ISC license.
|
|
98
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const GO=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],
|
|
99
|
+
*/const GO=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wt=Ae("chevron-right",GO);/**
|
|
100
100
|
* @license lucide-react v0.544.0 - ISC
|
|
101
101
|
*
|
|
102
102
|
* This source code is licensed under the ISC license.
|
|
@@ -261,12 +261,12 @@ Error generating stack: `+s.message+`
|
|
|
261
261
|
*
|
|
262
262
|
* This source code is licensed under the ISC license.
|
|
263
263
|
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
-
*/const P1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jh=Ae("x",P1),Dt=te.forwardRef(({className:e="",variant:n="primary",size:a="md",...i},l)=>{const u="inline-flex items-center justify-center rounded font-medium transition-colors focus-visible:outline-none disabled:opacity-50 disabled:cursor-not-allowed",c={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/80 border border-border",ghost:"text-muted-foreground hover:text-foreground hover:bg-muted/50"},d={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base",icon:"w-10 h-10 p-0"};return y.jsx("button",{ref:l,className:`${u} ${c[n]} ${d[a]} ${e}`,...i})});Dt.displayName="Button";const G1=te.memo(function({theme:n,onToggleTheme:a}){return y.jsxs("header",{className:"h-14 border-b border-border bg-background px-4 flex items-center justify-between",children:[y.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"AGI"}),y.jsx("div",{className:"flex items-center gap-2",children:y.jsx(Dt,{variant:"ghost",size:"icon",onClick:a,title:`Switch to ${n==="dark"?"light":"dark"} mode`,"aria-label":`Switch to ${n==="dark"?"light":"dark"} mode`,children:n==="dark"?y.jsx(B1,{className:"w-4 h-4"}):y.jsx(R1,{className:"w-4 h-4"})})})]})}),Xv=e=>{let n;const a=new Set,i=(f,b)=>{const h=typeof f=="function"?f(n):f;if(!Object.is(h,n)){const E=n;n=b??(typeof h!="object"||h===null)?h:Object.assign({},n,h),a.forEach(S=>S(n,E))}},l=()=>n,d={setState:i,getState:l,getInitialState:()=>g,subscribe:f=>(a.add(f),()=>a.delete(f))},g=n=e(i,l,d);return d},H1=(e=>e?Xv(e):Xv),$1=e=>e;function V1(e,n=$1){const a=Sn.useSyncExternalStore(e.subscribe,Sn.useCallback(()=>n(e.getState()),[e,n]),Sn.useCallback(()=>n(e.getInitialState()),[e,n]));return Sn.useDebugValue(a),a}const Zv=e=>{const n=H1(e),a=i=>V1(n,i);return Object.assign(a,n),a},Xw=(e=>e?Zv(e):Zv),nn=Xw(e=>({isExpanded:!1,selectedFile:null,selectedFileStaged:!1,isDiffOpen:!1,isCommitModalOpen:!1,wasSessionListCollapsed:!1,toggleSidebar:()=>e(n=>({isExpanded:!n.isExpanded})),expandSidebar:()=>e({isExpanded:!0}),collapseSidebar:()=>e({isExpanded:!1,isDiffOpen:!1,selectedFile:null}),openDiff:(n,a)=>e({selectedFile:n,selectedFileStaged:a,isDiffOpen:!0,isExpanded:!0}),closeDiff:()=>e({isDiffOpen:!1,selectedFile:null}),switchFile:(n,a)=>e({selectedFile:n,selectedFileStaged:a}),openCommitModal:()=>e({isCommitModalOpen:!0}),closeCommitModal:()=>e({isCommitModalOpen:!1}),setSessionListCollapsed:n=>e({wasSessionListCollapsed:n})}));function Y1(e,n){let a;try{a=e()}catch{return}return{getItem:l=>{var u;const c=g=>g===null?null:JSON.parse(g,void 0),d=(u=a.getItem(l))!=null?u:null;return d instanceof Promise?d.then(c):c(d)},setItem:(l,u)=>a.setItem(l,JSON.stringify(u,void 0)),removeItem:l=>a.removeItem(l)}}const Oh=e=>n=>{try{const a=e(n);return a instanceof Promise?a:{then(i){return Oh(i)(a)},catch(i){return this}}}catch(a){return{then(i){return this},catch(i){return Oh(i)(a)}}}},W1=(e,n)=>(a,i,l)=>{let u={storage:Y1(()=>localStorage),partialize:T=>T,version:0,merge:(T,C)=>({...C,...T}),...n},c=!1;const d=new Set,g=new Set;let f=u.storage;if(!f)return e((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),a(...T)},i,l);const b=()=>{const T=u.partialize({...i()});return f.setItem(u.name,{state:T,version:u.version})},h=l.setState;l.setState=(T,C)=>(h(T,C),b());const E=e((...T)=>(a(...T),b()),i,l);l.getInitialState=()=>E;let S;const _=()=>{var T,C;if(!f)return;c=!1,d.forEach(A=>{var N;return A((N=i())!=null?N:E)});const x=((C=u.onRehydrateStorage)==null?void 0:C.call(u,(T=i())!=null?T:E))||void 0;return Oh(f.getItem.bind(f))(u.name).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==u.version){if(u.migrate){const N=u.migrate(A.state,A.version);return N instanceof Promise?N.then(D=>[!0,D]):[!0,N]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,A.state];return[!1,void 0]}).then(A=>{var N;const[D,U]=A;if(S=u.merge(U,(N=i())!=null?N:E),a(S,!0),D)return b()}).then(()=>{x?.(S,void 0),S=i(),c=!0,g.forEach(A=>A(S))}).catch(A=>{x?.(void 0,A)})};return l.persist={setOptions:T=>{u={...u,...T},T.storage&&(f=T.storage)},clearStorage:()=>{f?.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>_(),hasHydrated:()=>c,onHydrate:T=>(d.add(T),()=>{d.delete(T)}),onFinishHydration:T=>(g.add(T),()=>{g.delete(T)})},u.skipHydration||_(),S||E},K1=W1,Ja=Xw()(K1(e=>({isCollapsed:!1,wasCollapsedBeforeDiff:null,toggleCollapse:()=>e(n=>({isCollapsed:!n.isCollapsed})),setCollapsed:n=>e({isCollapsed:n}),setWasCollapsedBeforeDiff:n=>e({wasCollapsedBeforeDiff:n})}),{name:"sidebar-storage",partialize:e=>({isCollapsed:e.isCollapsed})})),X1=te.memo(function({children:n,onNewSession:a}){const i=nn(c=>c.isDiffOpen),l=Ja(c=>c.isCollapsed),u=Ja(c=>c.toggleCollapse);return l?y.jsxs("aside",{className:"w-12 border-r border-border bg-background flex flex-col transition-all duration-300 ease-in-out",children:[y.jsx("div",{className:"h-14 border-b border-border flex items-center justify-center",children:y.jsx(Dt,{variant:"ghost",size:"icon",onClick:a,title:"New session",className:"rounded-full",children:y.jsx(Wv,{className:"w-4 h-4"})})}),y.jsx("button",{type:"button",className:"flex-1 cursor-pointer hover:bg-muted/50 transition-colors",onClick:i?void 0:u,title:i?void 0:"Expand sidebar","aria-label":"Expand sidebar"}),y.jsx("div",{className:"border-t border-border p-2 flex items-center justify-center",children:y.jsx(Dt,{variant:"ghost",size:"icon",onClick:u,title:"Expand sidebar",disabled:i,className:"transition-transform duration-200 hover:scale-110",children:y.jsx(Nt,{className:"w-4 h-4"})})})]}):y.jsxs("aside",{className:"w-64 border-r border-border bg-background flex flex-col transition-all duration-300 ease-in-out",children:[y.jsx("div",{className:"h-14 border-b border-border px-4 flex items-center",children:y.jsxs(Dt,{variant:"primary",size:"sm",onClick:a,className:"flex-1",children:[y.jsx(Wv,{className:"w-4 h-4 mr-2"}),"New Session"]})}),y.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-hide",children:n}),y.jsx("div",{className:"border-t border-border p-2 flex items-center justify-end",children:y.jsx(Dt,{variant:"ghost",size:"icon",onClick:u,title:"Collapse sidebar",disabled:i,className:"transition-transform duration-200 hover:scale-110",children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-300",role:"img","aria-label":"Collapse sidebar",children:[y.jsx("title",{children:"Collapse sidebar"}),y.jsx("path",{d:"M15 18l-6-6 6-6"})]})})})]})});function Z1(){const e=window;return e.AGI_SERVER_URL?e.AGI_SERVER_URL:e.__AGI_API_URL__?e.__AGI_API_URL__:"http://localhost:9100"}const Zw=Z1();class Q1{get baseUrl(){const n=window;return n.AGI_SERVER_URL?n.AGI_SERVER_URL:Zw}async request(n,a){const i=`${this.baseUrl}${n}`,l=await fetch(i,{...a,headers:{"Content-Type":"application/json",...a?.headers}});if(!l.ok){const u=await l.json().catch(()=>({error:"Unknown error"}));throw new Error(u.error||`HTTP ${l.status}`)}return l.json()}async getSessions(){return this.request("/v1/sessions")}async createSession(n){return this.request("/v1/sessions",{method:"POST",body:JSON.stringify(n)})}async abortSession(n){return this.request(`/v1/sessions/${n}/abort`,{method:"DELETE"})}async getMessages(n){return this.request(`/v1/sessions/${n}/messages`)}async sendMessage(n,a){return this.request(`/v1/sessions/${n}/messages`,{method:"POST",body:JSON.stringify(a)})}getStreamUrl(n){return`${this.baseUrl}/v1/sessions/${n}/stream`}async getConfig(){return this.request("/v1/config")}async getModels(n){return this.request(`/v1/config/providers/${n}/models`)}async getGitStatus(){return(await this.request("/v1/git/status")).data}async getGitDiff(n,a=!1){const i=new URLSearchParams({file:n,staged:String(a)});return(await this.request(`/v1/git/diff?${i}`)).data}async generateCommitMessage(){return(await this.request("/v1/git/generate-commit-message",{method:"POST",body:JSON.stringify({})})).data}async stageFiles(n){return(await this.request("/v1/git/stage",{method:"POST",body:JSON.stringify({files:n})})).data}async unstageFiles(n){return(await this.request("/v1/git/unstage",{method:"POST",body:JSON.stringify({files:n})})).data}async commitChanges(n){return(await this.request("/v1/git/commit",{method:"POST",body:JSON.stringify({message:n})})).data}async getGitBranch(){return(await this.request("/v1/git/branch")).data}}const $t=new Q1;function Qw(){const e=nn(n=>n.isExpanded);return ai({queryKey:["git","status"],queryFn:()=>$t.getGitStatus(),refetchInterval:e?5e3:!1,retry:1,staleTime:3e3})}function J1(e,n=!1){return ai({queryKey:["git","diff",e,n],queryFn:()=>e?$t.getGitDiff(e,n):null,enabled:!!e,retry:1,refetchInterval:!1})}function eD(){return ii({mutationFn:()=>$t.generateCommitMessage()})}function Jw(){const e=ir();return ii({mutationFn:n=>$t.stageFiles(n),onSuccess:()=>{e.invalidateQueries({queryKey:["git","status"]})}})}function tD(){const e=ir();return ii({mutationFn:n=>$t.unstageFiles(n),onSuccess:()=>{e.invalidateQueries({queryKey:["git","status"]})}})}function nD(){const e=ir();return ii({mutationFn:n=>$t.commitChanges(n),onSuccess:()=>{e.invalidateQueries({queryKey:["git","status"]}),e.invalidateQueries({queryKey:["git","branch"]})}})}const rD=te.memo(function(){const n=nn(u=>u.isExpanded),a=nn(u=>u.toggleSidebar),{data:i}=Qw();if(n)return null;const l=(i?.staged?.length??0)+(i?.unstaged?.length??0)+(i?.untracked?.length??0);return y.jsx("div",{className:"w-12 border-l border-border bg-background flex flex-col items-center py-4",children:y.jsxs("button",{type:"button",onClick:a,className:"relative p-2 rounded hover:bg-muted transition-colors",title:"Open Git sidebar",children:[y.jsx(Pl,{className:"w-5 h-5 text-muted-foreground"}),l>0&&y.jsx("span",{className:"absolute -top-1 -right-1 w-5 h-5 bg-primary text-primary-foreground text-xs rounded-full flex items-center justify-center font-semibold",children:l>9?"9+":l})]})})});function Ac({file:e,staged:n,showModifiedIndicator:a=!1}){const{openDiff:i}=nn(),l=Jw(),u=tD(),[c,d]=te.useState(n),g=async T=>{T.stopPropagation();const C=T.target.checked;d(C);try{C?await l.mutateAsync([e.path]):await u.mutateAsync([e.path])}catch(x){d(!C),console.error("Failed to stage/unstage file:",x)}},f=()=>{i(e.path,n)},h=(()=>{switch(e.status){case"added":case"untracked":return{icon:l1,color:"text-green-500",label:"A",labelColor:"text-green-500"};case"deleted":return{icon:d1,color:"text-red-500",label:"D",labelColor:"text-red-500"};case"modified":return{icon:Ul,color:"text-blue-500",label:"M",labelColor:"text-blue-500"};case"renamed":return{icon:Ul,color:"text-purple-500",label:"R",labelColor:"text-purple-500"};default:return{icon:Ul,color:"text-muted-foreground",label:"?",labelColor:"text-muted-foreground"}}})(),E=h.icon,_=(T=>{const C=T.split("/"),x=C[C.length-1];return C.length===1?x:`../${C[C.length-2]}/${x}`})(e.path);return y.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 hover:bg-muted/50 cursor-pointer group transition-colors w-full text-left",onClick:f,children:[y.jsx("input",{type:"checkbox",checked:c,onChange:g,onClick:T=>T.stopPropagation(),className:"w-4 h-4 rounded border-border","aria-label":`${c?"Unstage":"Stage"} ${e.path}`}),y.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[y.jsx(E,{className:`w-4 h-4 flex-shrink-0 ${h.color}`}),y.jsx("div",{className:"flex-1 min-w-0",children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-sm text-foreground truncate font-mono",title:e.path,children:_}),y.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[y.jsx("span",{className:`text-xs font-semibold ${h.labelColor}`,children:h.label}),a&&y.jsx("div",{title:"Also modified in working directory",children:y.jsx(Vw,{className:"w-3.5 h-3.5 text-orange-500"})})]})]})})]}),e.insertions!==void 0||e.deletions!==void 0?y.jsxs("div",{className:"flex items-center gap-2 text-xs flex-shrink-0",children:[e.insertions!==void 0&&e.insertions>0&&y.jsxs("span",{className:"text-green-500",children:["+",e.insertions]}),e.deletions!==void 0&&e.deletions>0&&y.jsxs("span",{className:"text-red-500",children:["-",e.deletions]})]}):null,n&&!a&&y.jsx($w,{className:"w-4 h-4 text-green-500 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"})]})}function aD({status:e}){const{openCommitModal:n}=nn(),a=Jw(),i=e.staged.length>0,l=e.unstaged.length>0||e.untracked.length>0,u=[...e.unstaged,...e.untracked],c=u.length>0,d=new Set(e.unstaged.map(f=>f.path)),g=()=>{const f=u.map(b=>b.path);f.length>0&&a.mutate(f)};return y.jsxs("div",{className:"flex flex-col",children:[i&&y.jsxs("div",{className:"border-b border-border",children:[y.jsxs("div",{className:"px-4 py-2 bg-muted/50 flex items-center justify-between",children:[y.jsxs("span",{className:"text-xs font-semibold text-foreground uppercase",children:["Staged Changes (",e.staged.length,")"]}),e.staged.length>0&&y.jsxs(Dt,{variant:"primary",size:"sm",onClick:n,className:"h-6 text-xs",children:[y.jsx(Gl,{className:"w-3 h-3 mr-1"}),"Commit"]})]}),y.jsx("div",{className:"divide-y divide-border",children:e.staged.map(f=>y.jsx(Ac,{file:f,staged:!0,showModifiedIndicator:d.has(f.path)},f.path))})]}),l&&y.jsxs("div",{children:[y.jsxs("div",{className:"px-4 py-2 bg-muted/50 flex items-center justify-between",children:[y.jsxs("span",{className:"text-xs font-semibold text-foreground uppercase",children:["Changes (",e.unstaged.length+e.untracked.length,")"]}),c&&y.jsxs(Dt,{variant:"ghost",size:"sm",onClick:g,title:"Stage all changes",className:"h-6 text-xs",children:[y.jsx(U1,{className:"w-3 h-3 mr-1"}),"Stage All"]})]}),y.jsxs("div",{className:"divide-y divide-border",children:[e.unstaged.map(f=>y.jsx(Ac,{file:f,staged:!1},f.path)),e.untracked.map(f=>y.jsx(Ac,{file:f,staged:!1},f.path))]})]}),!i&&!l&&y.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:"No changes"})]})}const iD=te.memo(function(){const n=nn(b=>b.isExpanded),a=nn(b=>b.collapseSidebar),{data:i,isLoading:l,refetch:u}=Qw(),c=ir();te.useEffect(()=>{n&&c.invalidateQueries({queryKey:["git","status"]})},[n,c]);const d=()=>{u()};if(!n)return null;const f=[...i?.staged||[],...i?.unstaged||[],...i?.untracked||[]].length;return y.jsxs("div",{className:"w-80 border-l border-border bg-background flex flex-col h-full",children:[y.jsxs("div",{className:"h-14 border-b border-border px-4 flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[y.jsx(Pl,{className:"w-4 h-4 text-muted-foreground"}),y.jsxs("span",{className:"font-medium text-foreground",children:["Git Changes",f>0&&y.jsxs("span",{className:"ml-2 text-xs text-muted-foreground",children:["(",f,")"]})]})]}),y.jsx(Dt,{variant:"ghost",size:"icon",onClick:a,title:"Close sidebar",children:y.jsx(Nt,{className:"w-4 h-4"})})]}),y.jsx("div",{className:"flex-1 overflow-y-auto",children:l?y.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"Loading git status..."}):!i||f===0?y.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"No changes detected"}):y.jsx(aD,{status:i})}),i?.branch&&y.jsxs("div",{className:"border-t border-border px-4 py-2 text-xs text-muted-foreground flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Pl,{className:"w-3 h-3"}),y.jsx("span",{children:i.branch}),i.ahead>0&&y.jsxs("span",{className:"text-green-500",children:["↑",i.ahead]}),i.behind>0&&y.jsxs("span",{className:"text-orange-500",children:["↓",i.behind]})]}),y.jsx(Dt,{variant:"ghost",size:"icon",onClick:d,title:"Refresh git status",className:"h-6 w-6 transition-transform duration-200 hover:scale-110",disabled:l,children:y.jsx(I1,{className:`w-3 h-3 ${l?"animate-spin":""}`})})]})]})});function oD(e,n){if(e==null)return{};var a={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(n.indexOf(i)!==-1)continue;a[i]=e[i]}return a}function lD(e,n){if(e==null)return{};var a,i,l=oD(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(i=0;i<u.length;i++)a=u[i],n.indexOf(a)===-1&&{}.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}function Dh(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,i=Array(n);a<n;a++)i[a]=e[a];return i}function sD(e){if(Array.isArray(e))return Dh(e)}function uD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cD(e,n){if(e){if(typeof e=="string")return Dh(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Dh(e,n):void 0}}function dD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
264
|
+
*/const P1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jh=Ae("x",P1),Rt=te.forwardRef(({className:e="",variant:n="primary",size:a="md",...i},l)=>{const u="inline-flex items-center justify-center rounded font-medium transition-colors focus-visible:outline-none disabled:opacity-50 disabled:cursor-not-allowed",c={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/80 border border-border",ghost:"text-muted-foreground hover:text-foreground hover:bg-muted/50"},d={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base",icon:"w-10 h-10 p-0"};return y.jsx("button",{ref:l,className:`${u} ${c[n]} ${d[a]} ${e}`,...i})});Rt.displayName="Button";const G1=te.memo(function({theme:n,onToggleTheme:a}){return y.jsxs("header",{className:"h-14 border-b border-border bg-background px-4 flex items-center justify-between",children:[y.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"AGI"}),y.jsx("div",{className:"flex items-center gap-2",children:y.jsx(Rt,{variant:"ghost",size:"icon",onClick:a,title:`Switch to ${n==="dark"?"light":"dark"} mode`,"aria-label":`Switch to ${n==="dark"?"light":"dark"} mode`,children:n==="dark"?y.jsx(B1,{className:"w-4 h-4"}):y.jsx(R1,{className:"w-4 h-4"})})})]})}),Xv=e=>{let n;const a=new Set,i=(f,b)=>{const h=typeof f=="function"?f(n):f;if(!Object.is(h,n)){const E=n;n=b??(typeof h!="object"||h===null)?h:Object.assign({},n,h),a.forEach(S=>S(n,E))}},l=()=>n,d={setState:i,getState:l,getInitialState:()=>g,subscribe:f=>(a.add(f),()=>a.delete(f))},g=n=e(i,l,d);return d},H1=(e=>e?Xv(e):Xv),$1=e=>e;function V1(e,n=$1){const a=Sn.useSyncExternalStore(e.subscribe,Sn.useCallback(()=>n(e.getState()),[e,n]),Sn.useCallback(()=>n(e.getInitialState()),[e,n]));return Sn.useDebugValue(a),a}const Zv=e=>{const n=H1(e),a=i=>V1(n,i);return Object.assign(a,n),a},Xw=(e=>e?Zv(e):Zv),nn=Xw(e=>({isExpanded:!1,selectedFile:null,selectedFileStaged:!1,isDiffOpen:!1,isCommitModalOpen:!1,wasSessionListCollapsed:!1,toggleSidebar:()=>e(n=>({isExpanded:!n.isExpanded})),expandSidebar:()=>e({isExpanded:!0}),collapseSidebar:()=>e({isExpanded:!1,isDiffOpen:!1,selectedFile:null}),openDiff:(n,a)=>e({selectedFile:n,selectedFileStaged:a,isDiffOpen:!0,isExpanded:!0}),closeDiff:()=>e({isDiffOpen:!1,selectedFile:null}),switchFile:(n,a)=>e({selectedFile:n,selectedFileStaged:a}),openCommitModal:()=>e({isCommitModalOpen:!0}),closeCommitModal:()=>e({isCommitModalOpen:!1}),setSessionListCollapsed:n=>e({wasSessionListCollapsed:n})}));function Y1(e,n){let a;try{a=e()}catch{return}return{getItem:l=>{var u;const c=g=>g===null?null:JSON.parse(g,void 0),d=(u=a.getItem(l))!=null?u:null;return d instanceof Promise?d.then(c):c(d)},setItem:(l,u)=>a.setItem(l,JSON.stringify(u,void 0)),removeItem:l=>a.removeItem(l)}}const Oh=e=>n=>{try{const a=e(n);return a instanceof Promise?a:{then(i){return Oh(i)(a)},catch(i){return this}}}catch(a){return{then(i){return this},catch(i){return Oh(i)(a)}}}},W1=(e,n)=>(a,i,l)=>{let u={storage:Y1(()=>localStorage),partialize:T=>T,version:0,merge:(T,C)=>({...C,...T}),...n},c=!1;const d=new Set,g=new Set;let f=u.storage;if(!f)return e((...T)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),a(...T)},i,l);const b=()=>{const T=u.partialize({...i()});return f.setItem(u.name,{state:T,version:u.version})},h=l.setState;l.setState=(T,C)=>(h(T,C),b());const E=e((...T)=>(a(...T),b()),i,l);l.getInitialState=()=>E;let S;const _=()=>{var T,C;if(!f)return;c=!1,d.forEach(A=>{var N;return A((N=i())!=null?N:E)});const x=((C=u.onRehydrateStorage)==null?void 0:C.call(u,(T=i())!=null?T:E))||void 0;return Oh(f.getItem.bind(f))(u.name).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==u.version){if(u.migrate){const N=u.migrate(A.state,A.version);return N instanceof Promise?N.then(D=>[!0,D]):[!0,N]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,A.state];return[!1,void 0]}).then(A=>{var N;const[D,U]=A;if(S=u.merge(U,(N=i())!=null?N:E),a(S,!0),D)return b()}).then(()=>{x?.(S,void 0),S=i(),c=!0,g.forEach(A=>A(S))}).catch(A=>{x?.(void 0,A)})};return l.persist={setOptions:T=>{u={...u,...T},T.storage&&(f=T.storage)},clearStorage:()=>{f?.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>_(),hasHydrated:()=>c,onHydrate:T=>(d.add(T),()=>{d.delete(T)}),onFinishHydration:T=>(g.add(T),()=>{g.delete(T)})},u.skipHydration||_(),S||E},K1=W1,Ja=Xw()(K1(e=>({isCollapsed:!1,wasCollapsedBeforeDiff:null,toggleCollapse:()=>e(n=>({isCollapsed:!n.isCollapsed})),setCollapsed:n=>e({isCollapsed:n}),setWasCollapsedBeforeDiff:n=>e({wasCollapsedBeforeDiff:n})}),{name:"sidebar-storage",partialize:e=>({isCollapsed:e.isCollapsed})})),X1=te.memo(function({children:n,onNewSession:a}){const i=nn(c=>c.isDiffOpen),l=Ja(c=>c.isCollapsed),u=Ja(c=>c.toggleCollapse);return l?y.jsxs("aside",{className:"w-12 border-r border-border bg-background flex flex-col transition-all duration-300 ease-in-out",children:[y.jsx("div",{className:"h-14 border-b border-border flex items-center justify-center",children:y.jsx(Rt,{variant:"ghost",size:"icon",onClick:a,title:"New session",className:"rounded-full",children:y.jsx(Wv,{className:"w-4 h-4"})})}),y.jsx("button",{type:"button",className:"flex-1 cursor-pointer hover:bg-muted/50 transition-colors",onClick:i?void 0:u,title:i?void 0:"Expand sidebar","aria-label":"Expand sidebar"}),y.jsx("div",{className:"border-t border-border p-2 flex items-center justify-center",children:y.jsx(Rt,{variant:"ghost",size:"icon",onClick:u,title:"Expand sidebar",disabled:i,className:"transition-transform duration-200 hover:scale-110",children:y.jsx(wt,{className:"w-4 h-4"})})})]}):y.jsxs("aside",{className:"w-64 border-r border-border bg-background flex flex-col transition-all duration-300 ease-in-out",children:[y.jsx("div",{className:"h-14 border-b border-border px-4 flex items-center",children:y.jsxs(Rt,{variant:"primary",size:"sm",onClick:a,className:"flex-1",children:[y.jsx(Wv,{className:"w-4 h-4 mr-2"}),"New Session"]})}),y.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-hide",children:n}),y.jsx("div",{className:"border-t border-border p-2 flex items-center justify-end",children:y.jsx(Rt,{variant:"ghost",size:"icon",onClick:u,title:"Collapse sidebar",disabled:i,className:"transition-transform duration-200 hover:scale-110",children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-300",role:"img","aria-label":"Collapse sidebar",children:[y.jsx("title",{children:"Collapse sidebar"}),y.jsx("path",{d:"M15 18l-6-6 6-6"})]})})})]})});function Z1(){const e=window;return e.AGI_SERVER_URL?e.AGI_SERVER_URL:e.__AGI_API_URL__?e.__AGI_API_URL__:"http://localhost:9100"}const Zw=Z1();class Q1{get baseUrl(){const n=window;return n.AGI_SERVER_URL?n.AGI_SERVER_URL:Zw}async request(n,a){const i=`${this.baseUrl}${n}`,l=await fetch(i,{...a,headers:{"Content-Type":"application/json",...a?.headers}});if(!l.ok){const u=await l.json().catch(()=>({error:"Unknown error"}));throw new Error(u.error||`HTTP ${l.status}`)}return l.json()}async getSessions(){return this.request("/v1/sessions")}async createSession(n){return this.request("/v1/sessions",{method:"POST",body:JSON.stringify(n)})}async abortSession(n){return this.request(`/v1/sessions/${n}/abort`,{method:"DELETE"})}async getMessages(n){return this.request(`/v1/sessions/${n}/messages`)}async sendMessage(n,a){return this.request(`/v1/sessions/${n}/messages`,{method:"POST",body:JSON.stringify(a)})}getStreamUrl(n){return`${this.baseUrl}/v1/sessions/${n}/stream`}async getConfig(){return this.request("/v1/config")}async getModels(n){return this.request(`/v1/config/providers/${n}/models`)}async getGitStatus(){return(await this.request("/v1/git/status")).data}async getGitDiff(n,a=!1){const i=new URLSearchParams({file:n,staged:String(a)});return(await this.request(`/v1/git/diff?${i}`)).data}async generateCommitMessage(){return(await this.request("/v1/git/generate-commit-message",{method:"POST",body:JSON.stringify({})})).data}async stageFiles(n){return(await this.request("/v1/git/stage",{method:"POST",body:JSON.stringify({files:n})})).data}async unstageFiles(n){return(await this.request("/v1/git/unstage",{method:"POST",body:JSON.stringify({files:n})})).data}async commitChanges(n){return(await this.request("/v1/git/commit",{method:"POST",body:JSON.stringify({message:n})})).data}async getGitBranch(){return(await this.request("/v1/git/branch")).data}}const $t=new Q1;function Qw(){const e=nn(n=>n.isExpanded);return ai({queryKey:["git","status"],queryFn:()=>$t.getGitStatus(),refetchInterval:e?5e3:!1,retry:1,staleTime:3e3})}function J1(e,n=!1){return ai({queryKey:["git","diff",e,n],queryFn:()=>e?$t.getGitDiff(e,n):null,enabled:!!e,retry:1,refetchInterval:!1})}function eD(){return ii({mutationFn:()=>$t.generateCommitMessage()})}function Jw(){const e=ir();return ii({mutationFn:n=>$t.stageFiles(n),onSuccess:()=>{e.invalidateQueries({queryKey:["git","status"]})}})}function tD(){const e=ir();return ii({mutationFn:n=>$t.unstageFiles(n),onSuccess:()=>{e.invalidateQueries({queryKey:["git","status"]})}})}function nD(){const e=ir();return ii({mutationFn:n=>$t.commitChanges(n),onSuccess:()=>{e.invalidateQueries({queryKey:["git","status"]}),e.invalidateQueries({queryKey:["git","branch"]})}})}const rD=te.memo(function(){const n=nn(u=>u.isExpanded),a=nn(u=>u.toggleSidebar),{data:i}=Qw();if(n)return null;const l=(i?.staged?.length??0)+(i?.unstaged?.length??0)+(i?.untracked?.length??0);return y.jsx("div",{className:"w-12 border-l border-border bg-background flex flex-col items-center py-4",children:y.jsxs("button",{type:"button",onClick:a,className:"relative p-2 rounded hover:bg-muted transition-colors",title:"Open Git sidebar",children:[y.jsx(Pl,{className:"w-5 h-5 text-muted-foreground"}),l>0&&y.jsx("span",{className:"absolute -top-1 -right-1 w-5 h-5 bg-primary text-primary-foreground text-xs rounded-full flex items-center justify-center font-semibold",children:l>9?"9+":l})]})})});function Ac({file:e,staged:n,showModifiedIndicator:a=!1}){const{openDiff:i}=nn(),l=Jw(),u=tD(),[c,d]=te.useState(n),g=async T=>{T.stopPropagation();const C=T.target.checked;d(C);try{C?await l.mutateAsync([e.path]):await u.mutateAsync([e.path])}catch(x){d(!C),console.error("Failed to stage/unstage file:",x)}},f=()=>{i(e.path,n)},h=(()=>{switch(e.status){case"added":case"untracked":return{icon:l1,color:"text-green-500",label:"A",labelColor:"text-green-500"};case"deleted":return{icon:d1,color:"text-red-500",label:"D",labelColor:"text-red-500"};case"modified":return{icon:Ul,color:"text-blue-500",label:"M",labelColor:"text-blue-500"};case"renamed":return{icon:Ul,color:"text-purple-500",label:"R",labelColor:"text-purple-500"};default:return{icon:Ul,color:"text-muted-foreground",label:"?",labelColor:"text-muted-foreground"}}})(),E=h.icon,_=(T=>{const C=T.split("/"),x=C[C.length-1];return C.length===1?x:`../${C[C.length-2]}/${x}`})(e.path);return y.jsxs("button",{type:"button",className:"flex items-center gap-2 px-3 py-2 hover:bg-muted/50 cursor-pointer group transition-colors w-full text-left",onClick:f,children:[y.jsx("input",{type:"checkbox",checked:c,onChange:g,onClick:T=>T.stopPropagation(),className:"w-4 h-4 rounded border-border","aria-label":`${c?"Unstage":"Stage"} ${e.path}`}),y.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[y.jsx(E,{className:`w-4 h-4 flex-shrink-0 ${h.color}`}),y.jsx("div",{className:"flex-1 min-w-0",children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-sm text-foreground truncate font-mono",title:e.path,children:_}),y.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[y.jsx("span",{className:`text-xs font-semibold ${h.labelColor}`,children:h.label}),a&&y.jsx("div",{title:"Also modified in working directory",children:y.jsx(Vw,{className:"w-3.5 h-3.5 text-orange-500"})})]})]})})]}),e.insertions!==void 0||e.deletions!==void 0?y.jsxs("div",{className:"flex items-center gap-2 text-xs flex-shrink-0",children:[e.insertions!==void 0&&e.insertions>0&&y.jsxs("span",{className:"text-green-500",children:["+",e.insertions]}),e.deletions!==void 0&&e.deletions>0&&y.jsxs("span",{className:"text-red-500",children:["-",e.deletions]})]}):null,n&&!a&&y.jsx($w,{className:"w-4 h-4 text-green-500 opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"})]})}function aD({status:e}){const{openCommitModal:n}=nn(),a=Jw(),i=e.staged.length>0,l=e.unstaged.length>0||e.untracked.length>0,u=[...e.unstaged,...e.untracked],c=u.length>0,d=new Set(e.unstaged.map(f=>f.path)),g=()=>{const f=u.map(b=>b.path);f.length>0&&a.mutate(f)};return y.jsxs("div",{className:"flex flex-col",children:[i&&y.jsxs("div",{className:"border-b border-border",children:[y.jsxs("div",{className:"px-4 py-2 bg-muted/50 flex items-center justify-between",children:[y.jsxs("span",{className:"text-xs font-semibold text-foreground uppercase",children:["Staged Changes (",e.staged.length,")"]}),e.staged.length>0&&y.jsxs(Rt,{variant:"primary",size:"sm",onClick:n,className:"h-6 text-xs",children:[y.jsx(Gl,{className:"w-3 h-3 mr-1"}),"Commit"]})]}),y.jsx("div",{className:"divide-y divide-border",children:e.staged.map(f=>y.jsx(Ac,{file:f,staged:!0,showModifiedIndicator:d.has(f.path)},f.path))})]}),l&&y.jsxs("div",{children:[y.jsxs("div",{className:"px-4 py-2 bg-muted/50 flex items-center justify-between",children:[y.jsxs("span",{className:"text-xs font-semibold text-foreground uppercase",children:["Changes (",e.unstaged.length+e.untracked.length,")"]}),c&&y.jsxs(Rt,{variant:"ghost",size:"sm",onClick:g,title:"Stage all changes",className:"h-6 text-xs",children:[y.jsx(U1,{className:"w-3 h-3 mr-1"}),"Stage All"]})]}),y.jsxs("div",{className:"divide-y divide-border",children:[e.unstaged.map(f=>y.jsx(Ac,{file:f,staged:!1},f.path)),e.untracked.map(f=>y.jsx(Ac,{file:f,staged:!1},f.path))]})]}),!i&&!l&&y.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:"No changes"})]})}const iD=te.memo(function(){const n=nn(h=>h.isExpanded),a=nn(h=>h.collapseSidebar),{data:i,isLoading:l,error:u,refetch:c}=Qw(),d=ir();te.useEffect(()=>{n&&d.invalidateQueries({queryKey:["git","status"]})},[n,d]);const g=()=>{c()};if(!n)return null;const b=[...i?.staged||[],...i?.unstaged||[],...i?.untracked||[]].length;return y.jsxs("div",{className:"w-80 border-l border-border bg-background flex flex-col h-full",children:[y.jsxs("div",{className:"h-14 border-b border-border px-4 flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[y.jsx(Pl,{className:"w-4 h-4 text-muted-foreground"}),y.jsxs("span",{className:"font-medium text-foreground",children:["Git Changes",b>0&&y.jsxs("span",{className:"ml-2 text-xs text-muted-foreground",children:["(",b,")"]})]})]}),y.jsx(Rt,{variant:"ghost",size:"icon",onClick:a,title:"Close sidebar",children:y.jsx(wt,{className:"w-4 h-4"})})]}),y.jsx("div",{className:"flex-1 overflow-y-auto",children:l?y.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"Loading git status..."}):u?y.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("span",{className:"text-orange-500",children:u instanceof Error?u.message:"Failed to load git status"}),y.jsx(Rt,{variant:"secondary",size:"sm",onClick:g,children:"Retry"})]})}):!i||b===0?y.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"No changes detected"}):y.jsx(aD,{status:i})}),i?.branch&&y.jsxs("div",{className:"border-t border-border px-4 py-2 text-xs text-muted-foreground flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Pl,{className:"w-3 h-3"}),y.jsx("span",{children:i.branch}),i.ahead>0&&y.jsxs("span",{className:"text-green-500",children:["↑",i.ahead]}),i.behind>0&&y.jsxs("span",{className:"text-orange-500",children:["↓",i.behind]})]}),y.jsx(Rt,{variant:"ghost",size:"icon",onClick:g,title:"Refresh git status",className:"h-6 w-6 transition-transform duration-200 hover:scale-110",disabled:l,children:y.jsx(I1,{className:`w-3 h-3 ${l?"animate-spin":""}`})})]})]})});function oD(e,n){if(e==null)return{};var a={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(n.indexOf(i)!==-1)continue;a[i]=e[i]}return a}function lD(e,n){if(e==null)return{};var a,i,l=oD(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(i=0;i<u.length;i++)a=u[i],n.indexOf(a)===-1&&{}.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}function Dh(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,i=Array(n);a<n;a++)i[a]=e[a];return i}function sD(e){if(Array.isArray(e))return Dh(e)}function uD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cD(e,n){if(e){if(typeof e=="string")return Dh(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Dh(e,n):void 0}}function dD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
265
265
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lh(e){return sD(e)||uD(e)||cD(e)||dD()}function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uo(e)}function pD(e,n){if(uo(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,n);if(uo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function fD(e){var n=pD(e,"string");return uo(n)=="symbol"?n:n+""}function ek(e,n,a){return(n=fD(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Mh.apply(null,arguments)}function Qv(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,i)}return a}function ei(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Qv(Object(a),!0).forEach(function(i){ek(e,i,a[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Qv(Object(a)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(a,i))})}return e}function gD(e){var n=e.length;if(n===0||n===1)return e;if(n===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(n===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(n>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var _c={};function mD(e){if(e.length===0||e.length===1)return e;var n=e.join(".");return _c[n]||(_c[n]=gD(e)),_c[n]}function hD(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,i=e.filter(function(u){return u!=="token"}),l=mD(i);return l.reduce(function(u,c){return ei(ei({},u),a[c])},n)}function Jv(e){return e.join(" ")}function bD(e,n){var a=0;return function(i){return a+=1,i.map(function(l,u){return tk({node:l,stylesheet:e,useInlineStyles:n,key:"code-segment-".concat(a,"-").concat(u)})})}}function tk(e){var n=e.node,a=e.stylesheet,i=e.style,l=i===void 0?{}:i,u=e.useInlineStyles,c=e.key,d=n.properties,g=n.type,f=n.tagName,b=n.value;if(g==="text")return b;if(f){var h=bD(a,u),E;if(!u)E=ei(ei({},d),{},{className:Jv(d.className)});else{var S=Object.keys(a).reduce(function(x,A){return A.split(".").forEach(function(N){x.includes(N)||x.push(N)}),x},[]),_=d.className&&d.className.includes("token")?["token"]:[],T=d.className&&_.concat(d.className.filter(function(x){return!S.includes(x)}));E=ei(ei({},d),{},{className:Jv(T)||void 0,style:hD(d.className,Object.assign({},d.style,l),a)})}var C=h(n.children);return Sn.createElement(f,Mh({key:c},E),C)}}const yD=(function(e,n){var a=e.listLanguages();return a.indexOf(n)!==-1});var ED=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ex(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,i)}return a}function Dr(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?ex(Object(a),!0).forEach(function(i){ek(e,i,a[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ex(Object(a)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(a,i))})}return e}var SD=/\n/g;function vD(e){return e.match(SD)}function xD(e){var n=e.lines,a=e.startingLineNumber,i=e.style;return n.map(function(l,u){var c=u+a;return Sn.createElement("span",{key:"line-".concat(u),className:"react-syntax-highlighter-line-number",style:typeof i=="function"?i(c):i},"".concat(c,`
|
|
266
266
|
`))})}function TD(e){var n=e.codeString,a=e.codeStyle,i=e.containerStyle,l=i===void 0?{float:"left",paddingRight:"10px"}:i,u=e.numberStyle,c=u===void 0?{}:u,d=e.startingLineNumber;return Sn.createElement("code",{style:Object.assign({},a,l)},xD({lines:n.replace(/\n$/,"").split(`
|
|
267
267
|
`),style:c,startingLineNumber:d}))}function AD(e){return"".concat(e.toString().length,".25em")}function nk(e,n){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:n},children:[{type:"text",value:e}]}}function rk(e,n,a){var i={display:"inline-block",minWidth:AD(a),paddingRight:"1em",textAlign:"right",userSelect:"none"},l=typeof e=="function"?e(n):e,u=Dr(Dr({},i),l);return u}function Fl(e){var n=e.children,a=e.lineNumber,i=e.lineNumberStyle,l=e.largestLineNumber,u=e.showInlineLineNumbers,c=e.lineProps,d=c===void 0?{}:c,g=e.className,f=g===void 0?[]:g,b=e.showLineNumbers,h=e.wrapLongLines,E=e.wrapLines,S=E===void 0?!1:E,_=S?Dr({},typeof d=="function"?d(a):d):{};if(_.className=_.className?[].concat(Lh(_.className.trim().split(/\s+/)),Lh(f)):f,a&&u){var T=rk(i,a,l);n.unshift(nk(a,T))}return h&b&&(_.style=Dr({display:"flex"},_.style)),{type:"element",tagName:"span",properties:_,children:n}}function ak(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i<e.length;i++){var l=e[i];if(l.type==="text")a.push(Fl({children:[l],className:Lh(new Set(n))}));else if(l.children){var u=n.concat(l.properties.className);ak(l.children,u).forEach(function(c){return a.push(c)})}}return a}function _D(e,n,a,i,l,u,c,d,g){var f,b=ak(e.value),h=[],E=-1,S=0;function _(U,w){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Fl({children:U,lineNumber:w,lineNumberStyle:d,largestLineNumber:c,showInlineLineNumbers:l,lineProps:a,className:M,showLineNumbers:i,wrapLongLines:g,wrapLines:n})}function T(U,w){if(i&&w&&l){var M=rk(d,w,c);U.unshift(nk(w,M))}return U}function C(U,w){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return n||M.length>0?_(U,w,M):T(U,w)}for(var x=function(){var w=b[S],M=w.children[0].value,H=vD(M);if(H){var z=M.split(`
|
|
268
268
|
`);z.forEach(function(F,W){var Q=i&&h.length+u,ne={type:"text",value:"".concat(F,`
|
|
269
|
-
`)};if(W===0){var oe=b.slice(E+1,S).concat(Fl({children:[ne],className:w.properties.className})),se=C(oe,Q);h.push(se)}else if(W===z.length-1){var G=b[S+1]&&b[S+1].children&&b[S+1].children[0],ee={type:"text",value:"".concat(F)};if(G){var ae=Fl({children:[ee],className:w.properties.className});b.splice(S+1,0,ae)}else{var fe=[ee],I=C(fe,Q,w.properties.className);h.push(I)}}else{var O=[ne],V=C(O,Q,w.properties.className);h.push(V)}}),E=S}S++};S<b.length;)x();if(E!==b.length-1){var A=b.slice(E+1,b.length);if(A&&A.length){var N=i&&h.length+u,D=C(A,N);h.push(D)}}return n?h:(f=[]).concat.apply(f,h)}function RD(e){var n=e.rows,a=e.stylesheet,i=e.useInlineStyles;return n.map(function(l,u){return tk({node:l,stylesheet:a,useInlineStyles:i,key:"code-segment-".concat(u)})})}function ik(e){return e&&typeof e.highlightAuto<"u"}function ND(e){var n=e.astGenerator,a=e.language,i=e.code,l=e.defaultCodeValue;if(ik(n)){var u=yD(n,a);return a==="text"?{value:l,language:"text"}:u?n.highlight(a,i):n.highlightAuto(i)}try{return a&&a!=="text"?{value:n.highlight(i,a)}:{value:l}}catch{return{value:l}}}function wD(e,n){return function(i){var l,u,c=i.language,d=i.children,g=i.style,f=g===void 0?n:g,b=i.customStyle,h=b===void 0?{}:b,E=i.codeTagProps,S=E===void 0?{className:c?"language-".concat(c):void 0,style:Dr(Dr({},f['code[class*="language-"]']),f['code[class*="language-'.concat(c,'"]')])}:E,_=i.useInlineStyles,T=_===void 0?!0:_,C=i.showLineNumbers,x=C===void 0?!1:C,A=i.showInlineLineNumbers,N=A===void 0?!0:A,D=i.startingLineNumber,U=D===void 0?1:D,w=i.lineNumberContainerStyle,M=i.lineNumberStyle,H=M===void 0?{}:M,z=i.wrapLines,F=i.wrapLongLines,W=F===void 0?!1:F,Q=i.lineProps,ne=Q===void 0?{}:Q,oe=i.renderer,se=i.PreTag,G=se===void 0?"pre":se,ee=i.CodeTag,ae=ee===void 0?"code":ee,fe=i.code,I=fe===void 0?(Array.isArray(d)?d[0]:d)||"":fe,O=i.astGenerator,V=lD(i,ED);O=O||e;var k=x?Sn.createElement(TD,{containerStyle:w,codeStyle:S.style||{},numberStyle:H,startingLineNumber:U,codeString:I}):null,re=f.hljs||f['pre[class*="language-"]']||{backgroundColor:"#fff"},ue=ik(O)?"hljs":"prismjs",ce=T?Object.assign({},V,{style:Object.assign({},re,h)}):Object.assign({},V,{className:V.className?"".concat(ue," ").concat(V.className):ue,style:Object.assign({},h)});if(W?S.style=Dr({whiteSpace:"pre-wrap"},S.style):S.style=Dr({whiteSpace:"pre"},S.style),!O)return Sn.createElement(G,ce,k,Sn.createElement(ae,S,I));(z===void 0&&oe||W)&&(z=!0),oe=oe||RD;var he=[{type:"text",value:I}],Ie=ND({astGenerator:O,language:c,code:I,defaultCodeValue:he});Ie.language===null&&(Ie.value=he);var we=(l=(u=I.match(/\n/g))===null||u===void 0?void 0:u.length)!==null&&l!==void 0?l:0,it=U+we,ft=_D(Ie,z,ne,x,N,U,it,H,W);return Sn.createElement(G,ce,Sn.createElement(ae,S,!N&&k,oe({rows:ft,stylesheet:f,useInlineStyles:T})))}}const kD=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var Rc,tx;function CD(){if(tx)return Rc;tx=1,Rc=n;var e=Object.prototype.hasOwnProperty;function n(){for(var a={},i=0;i<arguments.length;i++){var l=arguments[i];for(var u in l)e.call(l,u)&&(a[u]=l[u])}return a}return Rc}var Nc,nx;function ok(){if(nx)return Nc;nx=1,Nc=n;var e=n.prototype;e.space=null,e.normal={},e.property={};function n(a,i,l){this.property=a,this.normal=i,l&&(this.space=l)}return Nc}var wc,rx;function ID(){if(rx)return wc;rx=1;var e=CD(),n=ok();wc=a;function a(i){for(var l=i.length,u=[],c=[],d=-1,g,f;++d<l;)g=i[d],u.push(g.property),c.push(g.normal),f=g.space;return new n(e.apply(null,u),e.apply(null,c),f)}return wc}var kc,ax;function eb(){if(ax)return kc;ax=1,kc=e;function e(n){return n.toLowerCase()}return kc}var Cc,ix;function lk(){if(ix)return Cc;ix=1,Cc=n;var e=n.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function n(a,i){this.property=a,this.attribute=i}return Cc}var rr={},ox;function tb(){if(ox)return rr;ox=1;var e=0;rr.boolean=n(),rr.booleanish=n(),rr.overloadedBoolean=n(),rr.number=n(),rr.spaceSeparated=n(),rr.commaSeparated=n(),rr.commaOrSpaceSeparated=n();function n(){return Math.pow(2,++e)}return rr}var Ic,lx;function sk(){if(lx)return Ic;lx=1;var e=lk(),n=tb();Ic=l,l.prototype=new e,l.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=a.length;function l(c,d,g,f){var b=-1,h;for(u(this,"space",f),e.call(this,c,d);++b<i;)h=a[b],u(this,h,(g&n[h])===n[h])}function u(c,d,g){g&&(c[d]=g)}return Ic}var Oc,sx;function fo(){if(sx)return Oc;sx=1;var e=eb(),n=ok(),a=sk();Oc=i;function i(l){var u=l.space,c=l.mustUseProperty||[],d=l.attributes||{},g=l.properties,f=l.transform,b={},h={},E,S;for(E in g)S=new a(E,f(d,E),g[E],u),c.indexOf(E)!==-1&&(S.mustUseProperty=!0),b[E]=S,h[e(E)]=E,h[e(S.attribute)]=E;return new n(b,h,u)}return Oc}var Dc,ux;function OD(){if(ux)return Dc;ux=1;var e=fo();Dc=e({space:"xlink",transform:n,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function n(a,i){return"xlink:"+i.slice(5).toLowerCase()}return Dc}var Lc,cx;function DD(){if(cx)return Lc;cx=1;var e=fo();Lc=e({space:"xml",transform:n,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n(a,i){return"xml:"+i.slice(3).toLowerCase()}return Lc}var Mc,dx;function LD(){if(dx)return Mc;dx=1,Mc=e;function e(n,a){return a in n?n[a]:a}return Mc}var Uc,px;function uk(){if(px)return Uc;px=1;var e=LD();Uc=n;function n(a,i){return e(a,i.toLowerCase())}return Uc}var Fc,fx;function MD(){if(fx)return Fc;fx=1;var e=fo(),n=uk();return Fc=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n,properties:{xmlns:null,xmlnsXLink:null}}),Fc}var Bc,gx;function UD(){if(gx)return Bc;gx=1;var e=tb(),n=fo(),a=e.booleanish,i=e.number,l=e.spaceSeparated;Bc=n({transform:u,properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:a,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:l,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:i,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:l,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:a,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}});function u(c,d){return d==="role"?d:"aria-"+d.slice(4).toLowerCase()}return Bc}var jc,mx;function FD(){if(mx)return jc;mx=1;var e=tb(),n=fo(),a=uk(),i=e.boolean,l=e.overloadedBoolean,u=e.booleanish,c=e.number,d=e.spaceSeparated,g=e.commaSeparated;return jc=n({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:g,acceptCharset:d,accessKey:d,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:d,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:d,cols:c,colSpan:null,content:null,contentEditable:u,controls:i,controlsList:d,coords:c|g,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:l,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:d,height:c,hidden:i,high:c,href:null,hrefLang:null,htmlFor:d,httpEquiv:d,id:null,imageSizes:null,imageSrcSet:g,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:d,itemRef:d,itemScope:i,itemType:d,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:i,optimum:c,pattern:null,ping:d,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:d,required:i,reversed:i,rows:c,rowSpan:c,sandbox:d,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:g,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:u,width:c,wrap:null,align:null,aLink:null,archive:d,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null}}),jc}var zc,hx;function BD(){if(hx)return zc;hx=1;var e=ID(),n=OD(),a=DD(),i=MD(),l=UD(),u=FD();return zc=e([a,n,i,l,u]),zc}var qc,bx;function jD(){if(bx)return qc;bx=1;var e=eb(),n=sk(),a=lk(),i="data";qc=d;var l=/^data[-\w.:]+$/i,u=/-[a-z]/g,c=/[A-Z]/g;function d(E,S){var _=e(S),T=S,C=a;return _ in E.normal?E.property[E.normal[_]]:(_.length>4&&_.slice(0,4)===i&&l.test(S)&&(S.charAt(4)==="-"?T=g(S):S=f(S),C=n),new C(T,S))}function g(E){var S=E.slice(5).replace(u,h);return i+S.charAt(0).toUpperCase()+S.slice(1)}function f(E){var S=E.slice(4);return u.test(S)?E:(S=S.replace(c,b),S.charAt(0)!=="-"&&(S="-"+S),i+S)}function b(E){return"-"+E.toLowerCase()}function h(E){return E.charAt(1).toUpperCase()}return qc}var Pc,yx;function zD(){if(yx)return Pc;yx=1,Pc=n;var e=/[#.]/g;function n(a,i){for(var l=a||"",u=i||"div",c={},d=0,g,f,b;d<l.length;)e.lastIndex=d,b=e.exec(l),g=l.slice(d,b?b.index:l.length),g&&(f?f==="#"?c.id=g:c.className?c.className.push(g):c.className=[g]:u=g,d+=g.length),b&&(f=b[0],d++);return{type:"element",tagName:u,properties:c,children:[]}}return Pc}var Cl={},Ex;function qD(){if(Ex)return Cl;Ex=1,Cl.parse=i,Cl.stringify=l;var e="",n=" ",a=/[ \t\n\r\f]+/g;function i(u){var c=String(u||e).trim();return c===e?[]:c.split(a)}function l(u){return u.join(n).trim()}return Cl}var Il={},Sx;function PD(){if(Sx)return Il;Sx=1,Il.parse=i,Il.stringify=l;var e=",",n=" ",a="";function i(u){for(var c=[],d=String(u||a),g=d.indexOf(e),f=0,b=!1,h;!b;)g===-1&&(g=d.length,b=!0),h=d.slice(f,g).trim(),(h||!b)&&c.push(h),f=g+1,g=d.indexOf(e,f);return c}function l(u,c){var d=c||{},g=d.padLeft===!1?a:n,f=d.padRight?n:a;return u[u.length-1]===a&&(u=u.concat(a)),u.join(f+e+g).trim()}return Il}var Gc,vx;function GD(){if(vx)return Gc;vx=1;var e=jD(),n=eb(),a=zD(),i=qD().parse,l=PD().parse;Gc=c;var u={}.hasOwnProperty;function c(_,T,C){var x=C?S(C):null;return A;function A(D,U){var w=a(D,T),M=Array.prototype.slice.call(arguments,2),H=w.tagName.toLowerCase(),z;if(w.tagName=x&&u.call(x,H)?x[H]:H,U&&d(U,w)&&(M.unshift(U),U=null),U)for(z in U)N(w.properties,z,U[z]);return f(w.children,M),w.tagName==="template"&&(w.content={type:"root",children:w.children},w.children=[]),w}function N(D,U,w){var M,H,z;w==null||w!==w||(M=e(_,U),H=M.property,z=w,typeof z=="string"&&(M.spaceSeparated?z=i(z):M.commaSeparated?z=l(z):M.commaOrSpaceSeparated&&(z=i(l(z).join(" ")))),H==="style"&&typeof w!="string"&&(z=E(z)),H==="className"&&D.className&&(z=D.className.concat(z)),D[H]=b(M,H,z))}}function d(_,T){return typeof _=="string"||"length"in _||g(T.tagName,_)}function g(_,T){var C=T.type;return _==="input"||!C||typeof C!="string"?!1:typeof T.children=="object"&&"length"in T.children?!0:(C=C.toLowerCase(),_==="button"?C!=="menu"&&C!=="submit"&&C!=="reset"&&C!=="button":"value"in T)}function f(_,T){var C,x;if(typeof T=="string"||typeof T=="number"){_.push({type:"text",value:String(T)});return}if(typeof T=="object"&&"length"in T){for(C=-1,x=T.length;++C<x;)f(_,T[C]);return}if(typeof T!="object"||!("type"in T))throw new Error("Expected node, nodes, or string, got `"+T+"`");_.push(T)}function b(_,T,C){var x,A,N;if(typeof C!="object"||!("length"in C))return h(_,T,C);for(A=C.length,x=-1,N=[];++x<A;)N[x]=h(_,T,C[x]);return N}function h(_,T,C){var x=C;return _.number||_.positiveNumber?!isNaN(x)&&x!==""&&(x=Number(x)):(_.boolean||_.overloadedBoolean)&&typeof x=="string"&&(x===""||n(C)===n(T))&&(x=!0),x}function E(_){var T=[],C;for(C in _)T.push([C,_[C]].join(": "));return T.join("; ")}function S(_){for(var T=_.length,C=-1,x={},A;++C<T;)A=_[C],x[A.toLowerCase()]=A;return x}return Gc}var Hc,xx;function HD(){if(xx)return Hc;xx=1;var e=BD(),n=GD(),a=n(e,"div");return a.displayName="html",Hc=a,Hc}var $c,Tx;function $D(){return Tx||(Tx=1,$c=HD()),$c}const VD="Æ",YD="&",WD="Á",KD="Â",XD="À",ZD="Å",QD="Ã",JD="Ä",eL="©",tL="Ç",nL="Ð",rL="É",aL="Ê",iL="È",oL="Ë",lL=">",sL="Í",uL="Î",cL="Ì",dL="Ï",pL="<",fL="Ñ",gL="Ó",mL="Ô",hL="Ò",bL="Ø",yL="Õ",EL="Ö",SL='"',vL="®",xL="Þ",TL="Ú",AL="Û",_L="Ù",RL="Ü",NL="Ý",wL="á",kL="â",CL="´",IL="æ",OL="à",DL="&",LL="å",ML="ã",UL="ä",FL="¦",BL="ç",jL="¸",zL="¢",qL="©",PL="¤",GL="°",HL="÷",$L="é",VL="ê",YL="è",WL="ð",KL="ë",XL="½",ZL="¼",QL="¾",JL=">",eM="í",tM="î",nM="¡",rM="ì",aM="¿",iM="ï",oM="«",lM="<",sM="¯",uM="µ",cM="·",dM=" ",pM="¬",fM="ñ",gM="ó",mM="ô",hM="ò",bM="ª",yM="º",EM="ø",SM="õ",vM="ö",xM="¶",TM="±",AM="£",_M='"',RM="»",NM="®",wM="§",kM="",CM="¹",IM="²",OM="³",DM="ß",LM="þ",MM="×",UM="ú",FM="û",BM="ù",jM="¨",zM="ü",qM="ý",PM="¥",GM="ÿ",HM={AElig:VD,AMP:YD,Aacute:WD,Acirc:KD,Agrave:XD,Aring:ZD,Atilde:QD,Auml:JD,COPY:eL,Ccedil:tL,ETH:nL,Eacute:rL,Ecirc:aL,Egrave:iL,Euml:oL,GT:lL,Iacute:sL,Icirc:uL,Igrave:cL,Iuml:dL,LT:pL,Ntilde:fL,Oacute:gL,Ocirc:mL,Ograve:hL,Oslash:bL,Otilde:yL,Ouml:EL,QUOT:SL,REG:vL,THORN:xL,Uacute:TL,Ucirc:AL,Ugrave:_L,Uuml:RL,Yacute:NL,aacute:wL,acirc:kL,acute:CL,aelig:IL,agrave:OL,amp:DL,aring:LL,atilde:ML,auml:UL,brvbar:FL,ccedil:BL,cedil:jL,cent:zL,copy:qL,curren:PL,deg:GL,divide:HL,eacute:$L,ecirc:VL,egrave:YL,eth:WL,euml:KL,frac12:XL,frac14:ZL,frac34:QL,gt:JL,iacute:eM,icirc:tM,iexcl:nM,igrave:rM,iquest:aM,iuml:iM,laquo:oM,lt:lM,macr:sM,micro:uM,middot:cM,nbsp:dM,not:pM,ntilde:fM,oacute:gM,ocirc:mM,ograve:hM,ordf:bM,ordm:yM,oslash:EM,otilde:SM,ouml:vM,para:xM,plusmn:TM,pound:AM,quot:_M,raquo:RM,reg:NM,sect:wM,shy:kM,sup1:CM,sup2:IM,sup3:OM,szlig:DM,thorn:LM,times:MM,uacute:UM,ucirc:FM,ugrave:BM,uml:jM,uuml:zM,yacute:qM,yen:PM,yuml:GM},$M={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Vc,Ax;function ck(){if(Ax)return Vc;Ax=1,Vc=e;function e(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=48&&a<=57}return Vc}var Yc,_x;function VM(){if(_x)return Yc;_x=1,Yc=e;function e(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}return Yc}var Wc,Rx;function YM(){if(Rx)return Wc;Rx=1,Wc=e;function e(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=122||a>=65&&a<=90}return Wc}var Kc,Nx;function WM(){if(Nx)return Kc;Nx=1;var e=YM(),n=ck();Kc=a;function a(i){return e(i)||n(i)}return Kc}var Xc,wx;function KM(){if(wx)return Xc;wx=1;var e,n=59;Xc=a;function a(i){var l="&"+i+";",u;return e=e||document.createElement("i"),e.innerHTML=l,u=e.textContent,u.charCodeAt(u.length-1)===n&&i!=="semi"||u===l?!1:u}return Xc}var Zc,kx;function XM(){if(kx)return Zc;kx=1;var e=HM,n=$M,a=ck(),i=VM(),l=WM(),u=KM();Zc=fe;var c={}.hasOwnProperty,d=String.fromCharCode,g=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},b=9,h=10,E=12,S=32,_=38,T=59,C=60,x=61,A=35,N=88,D=120,U=65533,w="named",M="hexadecimal",H="decimal",z={};z[M]=16,z[H]=10;var F={};F[w]=l,F[H]=a,F[M]=i;var W=1,Q=2,ne=3,oe=4,se=5,G=6,ee=7,ae={};ae[W]="Named character references must be terminated by a semicolon",ae[Q]="Numeric character references must be terminated by a semicolon",ae[ne]="Named character references cannot be empty",ae[oe]="Numeric character references cannot be empty",ae[se]="Named character references must be known",ae[G]="Numeric character references cannot be disallowed",ae[ee]="Numeric character references cannot be outside the permissible Unicode range";function fe(k,re){var ue={},ce,he;re||(re={});for(he in f)ce=re[he],ue[he]=ce??f[he];return(ue.position.indent||ue.position.start)&&(ue.indent=ue.position.indent||[],ue.position=ue.position.start),I(k,ue)}function I(k,re){var ue=re.additional,ce=re.nonTerminated,he=re.text,Ie=re.reference,we=re.warning,it=re.textContext,ft=re.referenceContext,Un=re.warningContext,an=re.position,vn=re.indent||[],Rn=k.length,kt=0,Fr=-1,on=an.column||1,Fn=an.line||1,Mt="",Bn=[],Nn,Br,Qe,ht,K,ie,de,Ee,Oe,bt,yt,nt,He,Xe,Be,Ut,At,ln,Je;for(typeof ue=="string"&&(ue=ue.charCodeAt(0)),Ut=wn(),Ee=we?da:g,kt--,Rn++;++kt<Rn;)if(K===h&&(on=vn[Fr]||1),K=k.charCodeAt(kt),K===_){if(de=k.charCodeAt(kt+1),de===b||de===h||de===E||de===S||de===_||de===C||de!==de||ue&&de===ue){Mt+=d(K),on++;continue}for(He=kt+1,nt=He,Je=He,de===A?(Je=++nt,de=k.charCodeAt(Je),de===N||de===D?(Xe=M,Je=++nt):Xe=H):Xe=w,Nn="",yt="",ht="",Be=F[Xe],Je--;++Je<Rn&&(de=k.charCodeAt(Je),!!Be(de));)ht+=d(de),Xe===w&&c.call(e,ht)&&(Nn=ht,yt=e[ht]);Qe=k.charCodeAt(Je)===T,Qe&&(Je++,Br=Xe===w?u(ht):!1,Br&&(Nn=ht,yt=Br)),ln=1+Je-He,!Qe&&!ce||(ht?Xe===w?(Qe&&!yt?Ee(se,1):(Nn!==ht&&(Je=nt+Nn.length,ln=1+Je-nt,Qe=!1),Qe||(Oe=Nn?W:ne,re.attribute?(de=k.charCodeAt(Je),de===x?(Ee(Oe,ln),yt=null):l(de)?yt=null:Ee(Oe,ln)):Ee(Oe,ln))),ie=yt):(Qe||Ee(Q,ln),ie=parseInt(ht,z[Xe]),O(ie)?(Ee(ee,ln),ie=d(U)):ie in n?(Ee(G,ln),ie=n[ie]):(bt="",V(ie)&&Ee(G,ln),ie>65535&&(ie-=65536,bt+=d(ie>>>10|55296),ie=56320|ie&1023),ie=bt+d(ie))):Xe!==w&&Ee(oe,ln)),ie?(kn(),Ut=wn(),kt=Je-1,on+=Je-He+1,Bn.push(ie),At=wn(),At.offset++,Ie&&Ie.call(ft,ie,{start:Ut,end:At},k.slice(He-1,Je)),Ut=At):(ht=k.slice(He-1,Je),Mt+=ht,on+=ht.length,kt=Je-1)}else K===10&&(Fn++,Fr++,on=0),K===K?(Mt+=d(K),on++):kn();return Bn.join("");function wn(){return{line:Fn,column:on,offset:kt+(an.offset||0)}}function da(jr,lr){var si=wn();si.column+=lr,si.offset+=lr,we.call(Un,ae[jr],si,jr)}function kn(){Mt&&(Bn.push(Mt),he&&he.call(it,Mt,{start:Ut,end:wn()}),Mt="")}}function O(k){return k>=55296&&k<=57343||k>1114111}function V(k){return k>=1&&k<=8||k===11||k>=13&&k<=31||k>=127&&k<=159||k>=64976&&k<=65007||(k&65535)===65535||(k&65535)===65534}return Zc}var Qc={exports:{}},Cx;function ZM(){return Cx||(Cx=1,(function(e){var n=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
269
|
+
`)};if(W===0){var oe=b.slice(E+1,S).concat(Fl({children:[ne],className:w.properties.className})),se=C(oe,Q);h.push(se)}else if(W===z.length-1){var G=b[S+1]&&b[S+1].children&&b[S+1].children[0],ee={type:"text",value:"".concat(F)};if(G){var ae=Fl({children:[ee],className:w.properties.className});b.splice(S+1,0,ae)}else{var fe=[ee],I=C(fe,Q,w.properties.className);h.push(I)}}else{var O=[ne],V=C(O,Q,w.properties.className);h.push(V)}}),E=S}S++};S<b.length;)x();if(E!==b.length-1){var A=b.slice(E+1,b.length);if(A&&A.length){var N=i&&h.length+u,D=C(A,N);h.push(D)}}return n?h:(f=[]).concat.apply(f,h)}function RD(e){var n=e.rows,a=e.stylesheet,i=e.useInlineStyles;return n.map(function(l,u){return tk({node:l,stylesheet:a,useInlineStyles:i,key:"code-segment-".concat(u)})})}function ik(e){return e&&typeof e.highlightAuto<"u"}function ND(e){var n=e.astGenerator,a=e.language,i=e.code,l=e.defaultCodeValue;if(ik(n)){var u=yD(n,a);return a==="text"?{value:l,language:"text"}:u?n.highlight(a,i):n.highlightAuto(i)}try{return a&&a!=="text"?{value:n.highlight(i,a)}:{value:l}}catch{return{value:l}}}function wD(e,n){return function(i){var l,u,c=i.language,d=i.children,g=i.style,f=g===void 0?n:g,b=i.customStyle,h=b===void 0?{}:b,E=i.codeTagProps,S=E===void 0?{className:c?"language-".concat(c):void 0,style:Dr(Dr({},f['code[class*="language-"]']),f['code[class*="language-'.concat(c,'"]')])}:E,_=i.useInlineStyles,T=_===void 0?!0:_,C=i.showLineNumbers,x=C===void 0?!1:C,A=i.showInlineLineNumbers,N=A===void 0?!0:A,D=i.startingLineNumber,U=D===void 0?1:D,w=i.lineNumberContainerStyle,M=i.lineNumberStyle,H=M===void 0?{}:M,z=i.wrapLines,F=i.wrapLongLines,W=F===void 0?!1:F,Q=i.lineProps,ne=Q===void 0?{}:Q,oe=i.renderer,se=i.PreTag,G=se===void 0?"pre":se,ee=i.CodeTag,ae=ee===void 0?"code":ee,fe=i.code,I=fe===void 0?(Array.isArray(d)?d[0]:d)||"":fe,O=i.astGenerator,V=lD(i,ED);O=O||e;var k=x?Sn.createElement(TD,{containerStyle:w,codeStyle:S.style||{},numberStyle:H,startingLineNumber:U,codeString:I}):null,re=f.hljs||f['pre[class*="language-"]']||{backgroundColor:"#fff"},ue=ik(O)?"hljs":"prismjs",ce=T?Object.assign({},V,{style:Object.assign({},re,h)}):Object.assign({},V,{className:V.className?"".concat(ue," ").concat(V.className):ue,style:Object.assign({},h)});if(W?S.style=Dr({whiteSpace:"pre-wrap"},S.style):S.style=Dr({whiteSpace:"pre"},S.style),!O)return Sn.createElement(G,ce,k,Sn.createElement(ae,S,I));(z===void 0&&oe||W)&&(z=!0),oe=oe||RD;var he=[{type:"text",value:I}],Ie=ND({astGenerator:O,language:c,code:I,defaultCodeValue:he});Ie.language===null&&(Ie.value=he);var we=(l=(u=I.match(/\n/g))===null||u===void 0?void 0:u.length)!==null&&l!==void 0?l:0,it=U+we,ft=_D(Ie,z,ne,x,N,U,it,H,W);return Sn.createElement(G,ce,Sn.createElement(ae,S,!N&&k,oe({rows:ft,stylesheet:f,useInlineStyles:T})))}}const kD=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var Rc,tx;function CD(){if(tx)return Rc;tx=1,Rc=n;var e=Object.prototype.hasOwnProperty;function n(){for(var a={},i=0;i<arguments.length;i++){var l=arguments[i];for(var u in l)e.call(l,u)&&(a[u]=l[u])}return a}return Rc}var Nc,nx;function ok(){if(nx)return Nc;nx=1,Nc=n;var e=n.prototype;e.space=null,e.normal={},e.property={};function n(a,i,l){this.property=a,this.normal=i,l&&(this.space=l)}return Nc}var wc,rx;function ID(){if(rx)return wc;rx=1;var e=CD(),n=ok();wc=a;function a(i){for(var l=i.length,u=[],c=[],d=-1,g,f;++d<l;)g=i[d],u.push(g.property),c.push(g.normal),f=g.space;return new n(e.apply(null,u),e.apply(null,c),f)}return wc}var kc,ax;function eb(){if(ax)return kc;ax=1,kc=e;function e(n){return n.toLowerCase()}return kc}var Cc,ix;function lk(){if(ix)return Cc;ix=1,Cc=n;var e=n.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function n(a,i){this.property=a,this.attribute=i}return Cc}var rr={},ox;function tb(){if(ox)return rr;ox=1;var e=0;rr.boolean=n(),rr.booleanish=n(),rr.overloadedBoolean=n(),rr.number=n(),rr.spaceSeparated=n(),rr.commaSeparated=n(),rr.commaOrSpaceSeparated=n();function n(){return Math.pow(2,++e)}return rr}var Ic,lx;function sk(){if(lx)return Ic;lx=1;var e=lk(),n=tb();Ic=l,l.prototype=new e,l.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=a.length;function l(c,d,g,f){var b=-1,h;for(u(this,"space",f),e.call(this,c,d);++b<i;)h=a[b],u(this,h,(g&n[h])===n[h])}function u(c,d,g){g&&(c[d]=g)}return Ic}var Oc,sx;function fo(){if(sx)return Oc;sx=1;var e=eb(),n=ok(),a=sk();Oc=i;function i(l){var u=l.space,c=l.mustUseProperty||[],d=l.attributes||{},g=l.properties,f=l.transform,b={},h={},E,S;for(E in g)S=new a(E,f(d,E),g[E],u),c.indexOf(E)!==-1&&(S.mustUseProperty=!0),b[E]=S,h[e(E)]=E,h[e(S.attribute)]=E;return new n(b,h,u)}return Oc}var Dc,ux;function OD(){if(ux)return Dc;ux=1;var e=fo();Dc=e({space:"xlink",transform:n,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function n(a,i){return"xlink:"+i.slice(5).toLowerCase()}return Dc}var Lc,cx;function DD(){if(cx)return Lc;cx=1;var e=fo();Lc=e({space:"xml",transform:n,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n(a,i){return"xml:"+i.slice(3).toLowerCase()}return Lc}var Mc,dx;function LD(){if(dx)return Mc;dx=1,Mc=e;function e(n,a){return a in n?n[a]:a}return Mc}var Uc,px;function uk(){if(px)return Uc;px=1;var e=LD();Uc=n;function n(a,i){return e(a,i.toLowerCase())}return Uc}var Fc,fx;function MD(){if(fx)return Fc;fx=1;var e=fo(),n=uk();return Fc=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n,properties:{xmlns:null,xmlnsXLink:null}}),Fc}var Bc,gx;function UD(){if(gx)return Bc;gx=1;var e=tb(),n=fo(),a=e.booleanish,i=e.number,l=e.spaceSeparated;Bc=n({transform:u,properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:a,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:l,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:i,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:l,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:a,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}});function u(c,d){return d==="role"?d:"aria-"+d.slice(4).toLowerCase()}return Bc}var jc,mx;function FD(){if(mx)return jc;mx=1;var e=tb(),n=fo(),a=uk(),i=e.boolean,l=e.overloadedBoolean,u=e.booleanish,c=e.number,d=e.spaceSeparated,g=e.commaSeparated;return jc=n({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:g,acceptCharset:d,accessKey:d,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:d,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:d,cols:c,colSpan:null,content:null,contentEditable:u,controls:i,controlsList:d,coords:c|g,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:l,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:d,height:c,hidden:i,high:c,href:null,hrefLang:null,htmlFor:d,httpEquiv:d,id:null,imageSizes:null,imageSrcSet:g,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:d,itemRef:d,itemScope:i,itemType:d,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:i,optimum:c,pattern:null,ping:d,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:d,required:i,reversed:i,rows:c,rowSpan:c,sandbox:d,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:g,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:u,width:c,wrap:null,align:null,aLink:null,archive:d,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null}}),jc}var zc,hx;function BD(){if(hx)return zc;hx=1;var e=ID(),n=OD(),a=DD(),i=MD(),l=UD(),u=FD();return zc=e([a,n,i,l,u]),zc}var qc,bx;function jD(){if(bx)return qc;bx=1;var e=eb(),n=sk(),a=lk(),i="data";qc=d;var l=/^data[-\w.:]+$/i,u=/-[a-z]/g,c=/[A-Z]/g;function d(E,S){var _=e(S),T=S,C=a;return _ in E.normal?E.property[E.normal[_]]:(_.length>4&&_.slice(0,4)===i&&l.test(S)&&(S.charAt(4)==="-"?T=g(S):S=f(S),C=n),new C(T,S))}function g(E){var S=E.slice(5).replace(u,h);return i+S.charAt(0).toUpperCase()+S.slice(1)}function f(E){var S=E.slice(4);return u.test(S)?E:(S=S.replace(c,b),S.charAt(0)!=="-"&&(S="-"+S),i+S)}function b(E){return"-"+E.toLowerCase()}function h(E){return E.charAt(1).toUpperCase()}return qc}var Pc,yx;function zD(){if(yx)return Pc;yx=1,Pc=n;var e=/[#.]/g;function n(a,i){for(var l=a||"",u=i||"div",c={},d=0,g,f,b;d<l.length;)e.lastIndex=d,b=e.exec(l),g=l.slice(d,b?b.index:l.length),g&&(f?f==="#"?c.id=g:c.className?c.className.push(g):c.className=[g]:u=g,d+=g.length),b&&(f=b[0],d++);return{type:"element",tagName:u,properties:c,children:[]}}return Pc}var Cl={},Ex;function qD(){if(Ex)return Cl;Ex=1,Cl.parse=i,Cl.stringify=l;var e="",n=" ",a=/[ \t\n\r\f]+/g;function i(u){var c=String(u||e).trim();return c===e?[]:c.split(a)}function l(u){return u.join(n).trim()}return Cl}var Il={},Sx;function PD(){if(Sx)return Il;Sx=1,Il.parse=i,Il.stringify=l;var e=",",n=" ",a="";function i(u){for(var c=[],d=String(u||a),g=d.indexOf(e),f=0,b=!1,h;!b;)g===-1&&(g=d.length,b=!0),h=d.slice(f,g).trim(),(h||!b)&&c.push(h),f=g+1,g=d.indexOf(e,f);return c}function l(u,c){var d=c||{},g=d.padLeft===!1?a:n,f=d.padRight?n:a;return u[u.length-1]===a&&(u=u.concat(a)),u.join(f+e+g).trim()}return Il}var Gc,vx;function GD(){if(vx)return Gc;vx=1;var e=jD(),n=eb(),a=zD(),i=qD().parse,l=PD().parse;Gc=c;var u={}.hasOwnProperty;function c(_,T,C){var x=C?S(C):null;return A;function A(D,U){var w=a(D,T),M=Array.prototype.slice.call(arguments,2),H=w.tagName.toLowerCase(),z;if(w.tagName=x&&u.call(x,H)?x[H]:H,U&&d(U,w)&&(M.unshift(U),U=null),U)for(z in U)N(w.properties,z,U[z]);return f(w.children,M),w.tagName==="template"&&(w.content={type:"root",children:w.children},w.children=[]),w}function N(D,U,w){var M,H,z;w==null||w!==w||(M=e(_,U),H=M.property,z=w,typeof z=="string"&&(M.spaceSeparated?z=i(z):M.commaSeparated?z=l(z):M.commaOrSpaceSeparated&&(z=i(l(z).join(" ")))),H==="style"&&typeof w!="string"&&(z=E(z)),H==="className"&&D.className&&(z=D.className.concat(z)),D[H]=b(M,H,z))}}function d(_,T){return typeof _=="string"||"length"in _||g(T.tagName,_)}function g(_,T){var C=T.type;return _==="input"||!C||typeof C!="string"?!1:typeof T.children=="object"&&"length"in T.children?!0:(C=C.toLowerCase(),_==="button"?C!=="menu"&&C!=="submit"&&C!=="reset"&&C!=="button":"value"in T)}function f(_,T){var C,x;if(typeof T=="string"||typeof T=="number"){_.push({type:"text",value:String(T)});return}if(typeof T=="object"&&"length"in T){for(C=-1,x=T.length;++C<x;)f(_,T[C]);return}if(typeof T!="object"||!("type"in T))throw new Error("Expected node, nodes, or string, got `"+T+"`");_.push(T)}function b(_,T,C){var x,A,N;if(typeof C!="object"||!("length"in C))return h(_,T,C);for(A=C.length,x=-1,N=[];++x<A;)N[x]=h(_,T,C[x]);return N}function h(_,T,C){var x=C;return _.number||_.positiveNumber?!isNaN(x)&&x!==""&&(x=Number(x)):(_.boolean||_.overloadedBoolean)&&typeof x=="string"&&(x===""||n(C)===n(T))&&(x=!0),x}function E(_){var T=[],C;for(C in _)T.push([C,_[C]].join(": "));return T.join("; ")}function S(_){for(var T=_.length,C=-1,x={},A;++C<T;)A=_[C],x[A.toLowerCase()]=A;return x}return Gc}var Hc,xx;function HD(){if(xx)return Hc;xx=1;var e=BD(),n=GD(),a=n(e,"div");return a.displayName="html",Hc=a,Hc}var $c,Tx;function $D(){return Tx||(Tx=1,$c=HD()),$c}const VD="Æ",YD="&",WD="Á",KD="Â",XD="À",ZD="Å",QD="Ã",JD="Ä",eL="©",tL="Ç",nL="Ð",rL="É",aL="Ê",iL="È",oL="Ë",lL=">",sL="Í",uL="Î",cL="Ì",dL="Ï",pL="<",fL="Ñ",gL="Ó",mL="Ô",hL="Ò",bL="Ø",yL="Õ",EL="Ö",SL='"',vL="®",xL="Þ",TL="Ú",AL="Û",_L="Ù",RL="Ü",NL="Ý",wL="á",kL="â",CL="´",IL="æ",OL="à",DL="&",LL="å",ML="ã",UL="ä",FL="¦",BL="ç",jL="¸",zL="¢",qL="©",PL="¤",GL="°",HL="÷",$L="é",VL="ê",YL="è",WL="ð",KL="ë",XL="½",ZL="¼",QL="¾",JL=">",eM="í",tM="î",nM="¡",rM="ì",aM="¿",iM="ï",oM="«",lM="<",sM="¯",uM="µ",cM="·",dM=" ",pM="¬",fM="ñ",gM="ó",mM="ô",hM="ò",bM="ª",yM="º",EM="ø",SM="õ",vM="ö",xM="¶",TM="±",AM="£",_M='"',RM="»",NM="®",wM="§",kM="",CM="¹",IM="²",OM="³",DM="ß",LM="þ",MM="×",UM="ú",FM="û",BM="ù",jM="¨",zM="ü",qM="ý",PM="¥",GM="ÿ",HM={AElig:VD,AMP:YD,Aacute:WD,Acirc:KD,Agrave:XD,Aring:ZD,Atilde:QD,Auml:JD,COPY:eL,Ccedil:tL,ETH:nL,Eacute:rL,Ecirc:aL,Egrave:iL,Euml:oL,GT:lL,Iacute:sL,Icirc:uL,Igrave:cL,Iuml:dL,LT:pL,Ntilde:fL,Oacute:gL,Ocirc:mL,Ograve:hL,Oslash:bL,Otilde:yL,Ouml:EL,QUOT:SL,REG:vL,THORN:xL,Uacute:TL,Ucirc:AL,Ugrave:_L,Uuml:RL,Yacute:NL,aacute:wL,acirc:kL,acute:CL,aelig:IL,agrave:OL,amp:DL,aring:LL,atilde:ML,auml:UL,brvbar:FL,ccedil:BL,cedil:jL,cent:zL,copy:qL,curren:PL,deg:GL,divide:HL,eacute:$L,ecirc:VL,egrave:YL,eth:WL,euml:KL,frac12:XL,frac14:ZL,frac34:QL,gt:JL,iacute:eM,icirc:tM,iexcl:nM,igrave:rM,iquest:aM,iuml:iM,laquo:oM,lt:lM,macr:sM,micro:uM,middot:cM,nbsp:dM,not:pM,ntilde:fM,oacute:gM,ocirc:mM,ograve:hM,ordf:bM,ordm:yM,oslash:EM,otilde:SM,ouml:vM,para:xM,plusmn:TM,pound:AM,quot:_M,raquo:RM,reg:NM,sect:wM,shy:kM,sup1:CM,sup2:IM,sup3:OM,szlig:DM,thorn:LM,times:MM,uacute:UM,ucirc:FM,ugrave:BM,uml:jM,uuml:zM,yacute:qM,yen:PM,yuml:GM},$M={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Vc,Ax;function ck(){if(Ax)return Vc;Ax=1,Vc=e;function e(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=48&&a<=57}return Vc}var Yc,_x;function VM(){if(_x)return Yc;_x=1,Yc=e;function e(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}return Yc}var Wc,Rx;function YM(){if(Rx)return Wc;Rx=1,Wc=e;function e(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=122||a>=65&&a<=90}return Wc}var Kc,Nx;function WM(){if(Nx)return Kc;Nx=1;var e=YM(),n=ck();Kc=a;function a(i){return e(i)||n(i)}return Kc}var Xc,wx;function KM(){if(wx)return Xc;wx=1;var e,n=59;Xc=a;function a(i){var l="&"+i+";",u;return e=e||document.createElement("i"),e.innerHTML=l,u=e.textContent,u.charCodeAt(u.length-1)===n&&i!=="semi"||u===l?!1:u}return Xc}var Zc,kx;function XM(){if(kx)return Zc;kx=1;var e=HM,n=$M,a=ck(),i=VM(),l=WM(),u=KM();Zc=fe;var c={}.hasOwnProperty,d=String.fromCharCode,g=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},b=9,h=10,E=12,S=32,_=38,T=59,C=60,x=61,A=35,N=88,D=120,U=65533,w="named",M="hexadecimal",H="decimal",z={};z[M]=16,z[H]=10;var F={};F[w]=l,F[H]=a,F[M]=i;var W=1,Q=2,ne=3,oe=4,se=5,G=6,ee=7,ae={};ae[W]="Named character references must be terminated by a semicolon",ae[Q]="Numeric character references must be terminated by a semicolon",ae[ne]="Named character references cannot be empty",ae[oe]="Numeric character references cannot be empty",ae[se]="Named character references must be known",ae[G]="Numeric character references cannot be disallowed",ae[ee]="Numeric character references cannot be outside the permissible Unicode range";function fe(k,re){var ue={},ce,he;re||(re={});for(he in f)ce=re[he],ue[he]=ce??f[he];return(ue.position.indent||ue.position.start)&&(ue.indent=ue.position.indent||[],ue.position=ue.position.start),I(k,ue)}function I(k,re){var ue=re.additional,ce=re.nonTerminated,he=re.text,Ie=re.reference,we=re.warning,it=re.textContext,ft=re.referenceContext,Un=re.warningContext,an=re.position,vn=re.indent||[],Rn=k.length,Ct=0,Fr=-1,on=an.column||1,Fn=an.line||1,Mt="",Bn=[],Nn,Br,Qe,ht,K,ie,de,Ee,Oe,bt,yt,nt,He,Xe,Be,Ut,At,ln,Je;for(typeof ue=="string"&&(ue=ue.charCodeAt(0)),Ut=wn(),Ee=we?da:g,Ct--,Rn++;++Ct<Rn;)if(K===h&&(on=vn[Fr]||1),K=k.charCodeAt(Ct),K===_){if(de=k.charCodeAt(Ct+1),de===b||de===h||de===E||de===S||de===_||de===C||de!==de||ue&&de===ue){Mt+=d(K),on++;continue}for(He=Ct+1,nt=He,Je=He,de===A?(Je=++nt,de=k.charCodeAt(Je),de===N||de===D?(Xe=M,Je=++nt):Xe=H):Xe=w,Nn="",yt="",ht="",Be=F[Xe],Je--;++Je<Rn&&(de=k.charCodeAt(Je),!!Be(de));)ht+=d(de),Xe===w&&c.call(e,ht)&&(Nn=ht,yt=e[ht]);Qe=k.charCodeAt(Je)===T,Qe&&(Je++,Br=Xe===w?u(ht):!1,Br&&(Nn=ht,yt=Br)),ln=1+Je-He,!Qe&&!ce||(ht?Xe===w?(Qe&&!yt?Ee(se,1):(Nn!==ht&&(Je=nt+Nn.length,ln=1+Je-nt,Qe=!1),Qe||(Oe=Nn?W:ne,re.attribute?(de=k.charCodeAt(Je),de===x?(Ee(Oe,ln),yt=null):l(de)?yt=null:Ee(Oe,ln)):Ee(Oe,ln))),ie=yt):(Qe||Ee(Q,ln),ie=parseInt(ht,z[Xe]),O(ie)?(Ee(ee,ln),ie=d(U)):ie in n?(Ee(G,ln),ie=n[ie]):(bt="",V(ie)&&Ee(G,ln),ie>65535&&(ie-=65536,bt+=d(ie>>>10|55296),ie=56320|ie&1023),ie=bt+d(ie))):Xe!==w&&Ee(oe,ln)),ie?(kn(),Ut=wn(),Ct=Je-1,on+=Je-He+1,Bn.push(ie),At=wn(),At.offset++,Ie&&Ie.call(ft,ie,{start:Ut,end:At},k.slice(He-1,Je)),Ut=At):(ht=k.slice(He-1,Je),Mt+=ht,on+=ht.length,Ct=Je-1)}else K===10&&(Fn++,Fr++,on=0),K===K?(Mt+=d(K),on++):kn();return Bn.join("");function wn(){return{line:Fn,column:on,offset:Ct+(an.offset||0)}}function da(jr,lr){var si=wn();si.column+=lr,si.offset+=lr,we.call(Un,ae[jr],si,jr)}function kn(){Mt&&(Bn.push(Mt),he&&he.call(it,Mt,{start:Ut,end:wn()}),Mt="")}}function O(k){return k>=55296&&k<=57343||k>1114111}function V(k){return k>=1&&k<=8||k===11||k>=13&&k<=31||k>=127&&k<=159||k>=64976&&k<=65007||(k&65535)===65535||(k&65535)===65534}return Zc}var Qc={exports:{}},Cx;function ZM(){return Cx||(Cx=1,(function(e){var n=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
270
270
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
271
271
|
*
|
|
272
272
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
@@ -277,16 +277,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
277
277
|
?|
|
|
278
278
|
|(?![\\s\\S])))+`,"m"),alias:c,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(l)[0]}}}}),Object.defineProperty(a.languages.diff,"PREFIXES",{value:i})})(n)}return up}var cp,PT;function Vt(){if(PT)return cp;PT=1,cp=e,e.displayName="markupTemplating",e.aliases=[];function e(n){(function(a){function i(l,u){return"___"+l.toUpperCase()+u+"___"}Object.defineProperties(a.languages["markup-templating"]={},{buildPlaceholders:{value:function(l,u,c,d){if(l.language===u){var g=l.tokenStack=[];l.code=l.code.replace(c,function(f){if(typeof d=="function"&&!d(f))return f;for(var b=g.length,h;l.code.indexOf(h=i(u,b))!==-1;)++b;return g[b]=f,h}),l.grammar=a.languages.markup}}},tokenizePlaceholders:{value:function(l,u){if(l.language!==u||!l.tokenStack)return;l.grammar=a.languages[u];var c=0,d=Object.keys(l.tokenStack);function g(f){for(var b=0;b<f.length&&!(c>=d.length);b++){var h=f[b];if(typeof h=="string"||h.content&&typeof h.content=="string"){var E=d[c],S=l.tokenStack[E],_=typeof h=="string"?h:h.content,T=i(u,E),C=_.indexOf(T);if(C>-1){++c;var x=_.substring(0,C),A=new a.Token(u,a.tokenize(S,l.grammar),"language-"+u,S),N=_.substring(C+T.length),D=[];x&&D.push.apply(D,g([x])),D.push(A),N&&D.push.apply(D,g([N])),typeof h=="string"?f.splice.apply(f,[b,1].concat(D)):h.content=D}}else h.content&&g(h.content)}return f}g(l.tokens)}}})})(n)}return cp}var dp,GT;function rU(){if(GT)return dp;GT=1;var e=Vt();dp=n,n.displayName="django",n.aliases=["jinja2"];function n(a){a.register(e),(function(i){i.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var l=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,u=i.languages["markup-templating"];i.hooks.add("before-tokenize",function(c){u.buildPlaceholders(c,"django",l)}),i.hooks.add("after-tokenize",function(c){u.tokenizePlaceholders(c,"django")}),i.languages.jinja2=i.languages.django,i.hooks.add("before-tokenize",function(c){u.buildPlaceholders(c,"jinja2",l)}),i.hooks.add("after-tokenize",function(c){u.tokenizePlaceholders(c,"jinja2")})})(a)}return dp}var pp,HT;function aU(){if(HT)return pp;HT=1,pp=e,e.displayName="dnsZoneFile",e.aliases=[];function e(n){n.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},n.languages["dns-zone"]=n.languages["dns-zone-file"]}return pp}var fp,$T;function iU(){if($T)return fp;$T=1,fp=e,e.displayName="docker",e.aliases=["dockerfile"];function e(n){(function(a){var i=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,l=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return i}),u=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,c=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return u}),d={pattern:RegExp(u),greedy:!0},g={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function f(b,h){return b=b.replace(/<OPT>/g,function(){return c}).replace(/<SP>/g,function(){return l}),RegExp(b,h)}a.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:f(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[d,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:f(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:g,string:d,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:g},a.languages.dockerfile=a.languages.docker})(n)}return fp}var gp,VT;function oU(){if(VT)return gp;VT=1,gp=e,e.displayName="dot",e.aliases=["gv"];function e(n){(function(a){var i="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",l={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:a.languages.markup}};function u(c,d){return RegExp(c.replace(/<ID>/g,function(){return i}),d)}a.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:u(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:l},"attr-value":{pattern:u(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:l},"attr-name":{pattern:u(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:l},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:u(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:l},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},a.languages.gv=a.languages.dot})(n)}return gp}var mp,YT;function lU(){if(YT)return mp;YT=1,mp=e,e.displayName="ebnf",e.aliases=[];function e(n){n.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return mp}var hp,WT;function sU(){if(WT)return hp;WT=1,hp=e,e.displayName="editorconfig",e.aliases=[];function e(n){n.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return hp}var bp,KT;function uU(){if(KT)return bp;KT=1,bp=e,e.displayName="eiffel",e.aliases=[];function e(n){n.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return bp}var yp,XT;function cU(){if(XT)return yp;XT=1;var e=Vt();yp=n,n.displayName="ejs",n.aliases=["eta"];function n(a){a.register(e),(function(i){i.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:i.languages.javascript}},i.hooks.add("before-tokenize",function(l){var u=/<%(?!%)[\s\S]+?%>/g;i.languages["markup-templating"].buildPlaceholders(l,"ejs",u)}),i.hooks.add("after-tokenize",function(l){i.languages["markup-templating"].tokenizePlaceholders(l,"ejs")}),i.languages.eta=i.languages.ejs})(a)}return yp}var Ep,ZT;function dU(){if(ZT)return Ep;ZT=1,Ep=e,e.displayName="elixir",e.aliases=[];function e(n){n.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},n.languages.elixir.string.forEach(function(a){a.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:n.languages.elixir}}}})}return Ep}var Sp,QT;function pU(){if(QT)return Sp;QT=1,Sp=e,e.displayName="elm",e.aliases=[];function e(n){n.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return Sp}var vp,JT;function fU(){if(JT)return vp;JT=1;var e=Zl(),n=Vt();vp=a,a.displayName="erb",a.aliases=[];function a(i){i.register(e),i.register(n),(function(l){l.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:l.languages.ruby}},l.hooks.add("before-tokenize",function(u){var c=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;l.languages["markup-templating"].buildPlaceholders(u,"erb",c)}),l.hooks.add("after-tokenize",function(u){l.languages["markup-templating"].tokenizePlaceholders(u,"erb")})})(i)}return vp}var xp,eA;function gU(){if(eA)return xp;eA=1,xp=e,e.displayName="erlang",e.aliases=[];function e(n){n.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return xp}var Tp,tA;function fk(){if(tA)return Tp;tA=1,Tp=e,e.displayName="lua",e.aliases=[];function e(n){n.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return Tp}var Ap,nA;function mU(){if(nA)return Ap;nA=1;var e=fk(),n=Vt();Ap=a,a.displayName="etlua",a.aliases=[];function a(i){i.register(e),i.register(n),(function(l){l.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:l.languages.lua}},l.hooks.add("before-tokenize",function(u){var c=/<%[\s\S]+?%>/g;l.languages["markup-templating"].buildPlaceholders(u,"etlua",c)}),l.hooks.add("after-tokenize",function(u){l.languages["markup-templating"].tokenizePlaceholders(u,"etlua")})})(i)}return Ap}var _p,rA;function hU(){if(rA)return _p;rA=1,_p=e,e.displayName="excelFormula",e.aliases=[];function e(n){n.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},n.languages.xlsx=n.languages.xls=n.languages["excel-formula"]}return _p}var Rp,aA;function bU(){if(aA)return Rp;aA=1,Rp=e,e.displayName="factor",e.aliases=[];function e(n){(function(a){var i={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},l={number:/\\[^\s']|%\w/},u={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:i},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:i}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:l.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:l},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:l}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:l}},c=function(b){return(b+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},d=function(b){return new RegExp("(^|\\s)(?:"+b.map(c).join("|")+")(?=\\s|$)")},g={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(g).forEach(function(b){u[b].pattern=d(g[b])});var f=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];u.combinators.pattern=d(f),a.languages.factor=u})(n)}return Rp}var Np,iA;function yU(){if(iA)return Np;iA=1,Np=e,e.displayName="$false",e.aliases=[];function e(n){(function(a){a.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(n)}return Np}var wp,oA;function EU(){if(oA)return wp;oA=1,wp=e,e.displayName="firestoreSecurityRules",e.aliases=[];function e(n){n.languages["firestore-security-rules"]=n.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete n.languages["firestore-security-rules"]["class-name"],n.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return wp}var kp,lA;function SU(){if(lA)return kp;lA=1,kp=e,e.displayName="flow",e.aliases=[];function e(n){(function(a){a.languages.flow=a.languages.extend("javascript",{}),a.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),a.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete a.languages.flow.parameter,a.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(a.languages.flow.keyword)||(a.languages.flow.keyword=[a.languages.flow.keyword]),a.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(n)}return kp}var Cp,sA;function vU(){if(sA)return Cp;sA=1,Cp=e,e.displayName="fortran",e.aliases=[];function e(n){n.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return Cp}var Ip,uA;function xU(){if(uA)return Ip;uA=1,Ip=e,e.displayName="fsharp",e.aliases=[];function e(n){n.languages.fsharp=n.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),n.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),n.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),n.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:n.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return Ip}var Op,cA;function TU(){if(cA)return Op;cA=1;var e=Vt();Op=n,n.displayName="ftl",n.aliases=[];function n(a){a.register(e),(function(i){for(var l=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,u=0;u<2;u++)l=l.replace(/<expr>/g,function(){return l});l=l.replace(/<expr>/g,/[^\s\S]/.source);var c={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return l})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return l})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};c.string[1].inside.interpolation.inside.rest=c,i.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:c}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:c}}}},i.hooks.add("before-tokenize",function(d){var g=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return l}),"gi");i.languages["markup-templating"].buildPlaceholders(d,"ftl",g)}),i.hooks.add("after-tokenize",function(d){i.languages["markup-templating"].tokenizePlaceholders(d,"ftl")})})(a)}return Op}var Dp,dA;function AU(){if(dA)return Dp;dA=1,Dp=e,e.displayName="gap",e.aliases=[];function e(n){n.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},n.languages.gap.shell.inside.gap.inside=n.languages.gap}return Dp}var Lp,pA;function _U(){if(pA)return Lp;pA=1,Lp=e,e.displayName="gcode",e.aliases=[];function e(n){n.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return Lp}var Mp,fA;function RU(){if(fA)return Mp;fA=1,Mp=e,e.displayName="gdscript",e.aliases=[];function e(n){n.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return Mp}var Up,gA;function NU(){if(gA)return Up;gA=1,Up=e,e.displayName="gedcom",e.aliases=[];function e(n){n.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return Up}var Fp,mA;function wU(){if(mA)return Fp;mA=1,Fp=e,e.displayName="gherkin",e.aliases=[];function e(n){(function(a){var i=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;a.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+i+")(?:"+i+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(i),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(n)}return Fp}var Bp,hA;function kU(){if(hA)return Bp;hA=1,Bp=e,e.displayName="git",e.aliases=[];function e(n){n.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Bp}var jp,bA;function CU(){if(bA)return jp;bA=1;var e=ua();jp=n,n.displayName="glsl",n.aliases=[];function n(a){a.register(e),a.languages.glsl=a.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return jp}var zp,yA;function IU(){if(yA)return zp;yA=1,zp=e,e.displayName="gml",e.aliases=[];function e(n){n.languages.gamemakerlanguage=n.languages.gml=n.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return zp}var qp,EA;function OU(){if(EA)return qp;EA=1,qp=e,e.displayName="gn",e.aliases=["gni"];function e(n){n.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},n.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=n.languages.gn,n.languages.gni=n.languages.gn}return qp}var Pp,SA;function DU(){if(SA)return Pp;SA=1,Pp=e,e.displayName="goModule",e.aliases=[];function e(n){n.languages["go-mod"]=n.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return Pp}var Gp,vA;function LU(){if(vA)return Gp;vA=1,Gp=e,e.displayName="go",e.aliases=[];function e(n){n.languages.go=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),n.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete n.languages.go["class-name"]}return Gp}var Hp,xA;function MU(){if(xA)return Hp;xA=1,Hp=e,e.displayName="graphql",e.aliases=[];function e(n){n.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:n.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},n.hooks.add("after-tokenize",function(i){if(i.language!=="graphql")return;var l=i.tokens.filter(function(x){return typeof x!="string"&&x.type!=="comment"&&x.type!=="scalar"}),u=0;function c(x){return l[u+x]}function d(x,A){A=A||0;for(var N=0;N<x.length;N++){var D=c(N+A);if(!D||D.type!==x[N])return!1}return!0}function g(x,A){for(var N=1,D=u;D<l.length;D++){var U=l[D],w=U.content;if(U.type==="punctuation"&&typeof w=="string"){if(x.test(w))N++;else if(A.test(w)&&(N--,N===0))return D}}return-1}function f(x,A){var N=x.alias;N?Array.isArray(N)||(x.alias=N=[N]):x.alias=N=[],N.push(A)}for(;u<l.length;){var b=l[u++];if(b.type==="keyword"&&b.content==="mutation"){var h=[];if(d(["definition-mutation","punctuation"])&&c(1).content==="("){u+=2;var E=g(/^\($/,/^\)$/);if(E===-1)continue;for(;u<E;u++){var S=c(0);S.type==="variable"&&(f(S,"variable-input"),h.push(S.content))}u=E+1}if(d(["punctuation","property-query"])&&c(0).content==="{"&&(u++,f(c(0),"property-mutation"),h.length>0)){var _=g(/^\{$/,/^\}$/);if(_===-1)continue;for(var T=u;T<_;T++){var C=l[T];C.type==="variable"&&h.indexOf(C.content)>=0&&f(C,"variable-input")}}}}})}return Hp}var $p,TA;function UU(){if(TA)return $p;TA=1,$p=e,e.displayName="groovy",e.aliases=[];function e(n){n.languages.groovy=n.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),n.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),n.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),n.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.hooks.add("wrap",function(a){if(a.language==="groovy"&&a.type==="string"){var i=a.content.value[0];if(i!="'"){var l=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;i==="$"&&(l=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),a.content.value=a.content.value.replace(/</g,"<").replace(/&/g,"&"),a.content=n.highlight(a.content.value,{expression:{pattern:l,lookbehind:!0,inside:n.languages.groovy}}),a.classes.push(i==="/"?"regex":"gstring")}}})}return $p}var Vp,AA;function FU(){if(AA)return Vp;AA=1;var e=Zl();Vp=n,n.displayName="haml",n.aliases=[];function n(a){a.register(e),(function(i){i.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:i.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:i.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:i.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:i.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:i.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:i.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:i.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var l="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",u=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],c={},d=0,g=u.length;d<g;d++){var f=u[d];f=typeof f=="string"?{filter:f,language:f}:f,i.languages[f.language]&&(c["filter-"+f.filter]={pattern:RegExp(l.replace("{{filter_name}}",function(){return f.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[f.language,"language-"+f.language],inside:i.languages[f.language]}}})}i.languages.insertBefore("haml","filter",c)})(a)}return Vp}var Yp,_A;function BU(){if(_A)return Yp;_A=1;var e=Vt();Yp=n,n.displayName="handlebars",n.aliases=["hbs"];function n(a){a.register(e),(function(i){i.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},i.hooks.add("before-tokenize",function(l){var u=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;i.languages["markup-templating"].buildPlaceholders(l,"handlebars",u)}),i.hooks.add("after-tokenize",function(l){i.languages["markup-templating"].tokenizePlaceholders(l,"handlebars")}),i.languages.hbs=i.languages.handlebars})(a)}return Yp}var Wp,RA;function ab(){if(RA)return Wp;RA=1,Wp=e,e.displayName="haskell",e.aliases=["hs"];function e(n){n.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},n.languages.hs=n.languages.haskell}return Wp}var Kp,NA;function jU(){if(NA)return Kp;NA=1,Kp=e,e.displayName="haxe",e.aliases=[];function e(n){n.languages.haxe=n.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),n.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.haxe}}},string:/[\s\S]+/}}}),n.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),n.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return Kp}var Xp,wA;function zU(){if(wA)return Xp;wA=1,Xp=e,e.displayName="hcl",e.aliases=[];function e(n){n.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Xp}var Zp,kA;function qU(){if(kA)return Zp;kA=1;var e=ua();Zp=n,n.displayName="hlsl",n.aliases=[];function n(a){a.register(e),a.languages.hlsl=a.languages.extend("c",{"class-name":[a.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Zp}var Qp,CA;function PU(){if(CA)return Qp;CA=1,Qp=e,e.displayName="hoon",e.aliases=[];function e(n){n.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Qp}var Jp,IA;function GU(){if(IA)return Jp;IA=1,Jp=e,e.displayName="hpkp",e.aliases=[];function e(n){n.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Jp}var ef,OA;function HU(){if(OA)return ef;OA=1,ef=e,e.displayName="hsts",e.aliases=[];function e(n){n.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return ef}var tf,DA;function $U(){if(DA)return tf;DA=1,tf=e,e.displayName="http",e.aliases=[];function e(n){(function(a){function i(h){return RegExp("(^(?:"+h+"):[ ]*(?![ ]))[^]+","i")}a.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:a.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:i(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:a.languages.csp},{pattern:i(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:a.languages.hpkp},{pattern:i(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:a.languages.hsts},{pattern:i(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var l=a.languages,u={"application/javascript":l.javascript,"application/json":l.json||l.javascript,"application/xml":l.xml,"text/xml":l.xml,"text/html":l.html,"text/css":l.css,"text/plain":l.plain},c={"application/json":!0,"application/xml":!0};function d(h){var E=h.replace(/^[a-z]+\//,""),S="\\w+/(?:[\\w.-]+\\+)+"+E+"(?![+\\w.-])";return"(?:"+h+"|"+S+")"}var g;for(var f in u)if(u[f]){g=g||{};var b=c[f]?d(f):f;g[f.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+b+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:u[f]}}g&&a.languages.insertBefore("http","header",g)})(n)}return tf}var nf,LA;function VU(){if(LA)return nf;LA=1,nf=e,e.displayName="ichigojam",e.aliases=[];function e(n){n.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return nf}var rf,MA;function YU(){if(MA)return rf;MA=1,rf=e,e.displayName="icon",e.aliases=[];function e(n){n.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return rf}var af,UA;function WU(){if(UA)return af;UA=1,af=e,e.displayName="icuMessageFormat",e.aliases=[];function e(n){(function(a){function i(f,b){return b<=0?/[]/.source:f.replace(/<SELF>/g,function(){return i(f,b-1)})}var l=/'[{}:=,](?:[^']|'')*'(?!')/,u={pattern:/''/,greedy:!0,alias:"operator"},c={pattern:l,greedy:!0,inside:{escape:u}},d=i(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return l.source}),8),g={pattern:RegExp(d),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};a.languages["icu-message-format"]={argument:{pattern:RegExp(d),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":g,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":g,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+i(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:u,string:c},g.inside.message.inside=a.languages["icu-message-format"],a.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=a.languages["icu-message-format"]})(n)}return af}var of,FA;function KU(){if(FA)return of;FA=1;var e=ab();of=n,n.displayName="idris",n.aliases=["idr"];function n(a){a.register(e),a.languages.idris=a.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),a.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.idr=a.languages.idris}return of}var lf,BA;function XU(){if(BA)return lf;BA=1,lf=e,e.displayName="iecst",e.aliases=[];function e(n){n.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return lf}var sf,jA;function ZU(){if(jA)return sf;jA=1,sf=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(n){(function(a){a.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},a.languages.gitignore=a.languages.ignore,a.languages.hgignore=a.languages.ignore,a.languages.npmignore=a.languages.ignore})(n)}return sf}var uf,zA;function QU(){if(zA)return uf;zA=1,uf=e,e.displayName="inform7",e.aliases=[];function e(n){n.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},n.languages.inform7.string.inside.substitution.inside.rest=n.languages.inform7,n.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return uf}var cf,qA;function JU(){if(qA)return cf;qA=1,cf=e,e.displayName="ini",e.aliases=[];function e(n){n.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return cf}var df,PA;function eF(){if(PA)return df;PA=1,df=e,e.displayName="io",e.aliases=[];function e(n){n.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}return df}var pf,GA;function tF(){if(GA)return pf;GA=1,pf=e,e.displayName="j",e.aliases=[];function e(n){n.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return pf}var ff,HA;function ib(){if(HA)return ff;HA=1,ff=e,e.displayName="java",e.aliases=[];function e(n){(function(a){var i=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,l=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,u={pattern:RegExp(l+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};a.languages.java=a.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[u,{pattern:RegExp(l+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:u.inside}],keyword:i,function:[a.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),a.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),a.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":u,keyword:i,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return i.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(n)}return ff}var gf,$A;function Ql(){if($A)return gf;$A=1,gf=e,e.displayName="javadoclike",e.aliases=[];function e(n){(function(a){var i=a.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function l(c,d){var g="doc-comment",f=a.languages[c];if(f){var b=f[g];if(!b){var h={};h[g]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},f=a.languages.insertBefore(c,"comment",h),b=f[g]}if(b instanceof RegExp&&(b=f[g]={pattern:b}),Array.isArray(b))for(var E=0,S=b.length;E<S;E++)b[E]instanceof RegExp&&(b[E]={pattern:b[E]}),d(b[E]);else d(b)}}function u(c,d){typeof c=="string"&&(c=[c]),c.forEach(function(g){l(g,function(f){f.inside||(f.inside={}),f.inside.rest=d})})}Object.defineProperty(i,"addSupport",{value:u}),i.addSupport(["java","javascript","php"],i)})(n)}return gf}var mf,VA;function nF(){if(VA)return mf;VA=1;var e=ib(),n=Ql();mf=a,a.displayName="javadoc",a.aliases=[];function a(i){i.register(e),i.register(n),(function(l){var u=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,c=/#\s*\w+(?:\s*\([^()]*\))?/.source,d=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return c});l.languages.javadoc=l.languages.extend("javadoclike",{}),l.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+d+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:l.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:u,lookbehind:!0,inside:l.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:u,lookbehind:!0,inside:{tag:l.languages.markup.tag,entity:l.languages.markup.entity,code:{pattern:/.+/,inside:l.languages.java,alias:"language-java"}}}}}],tag:l.languages.markup.tag,entity:l.languages.markup.entity}),l.languages.javadoclike.addSupport("java",l.languages.javadoc)})(i)}return mf}var hf,YA;function rF(){if(YA)return hf;YA=1,hf=e,e.displayName="javastacktrace",e.aliases=[];function e(n){n.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return hf}var bf,WA;function aF(){if(WA)return bf;WA=1,bf=e,e.displayName="jexl",e.aliases=[];function e(n){n.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return bf}var yf,KA;function iF(){if(KA)return yf;KA=1,yf=e,e.displayName="jolie",e.aliases=[];function e(n){n.languages.jolie=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),n.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return yf}var Ef,XA;function oF(){if(XA)return Ef;XA=1,Ef=e,e.displayName="jq",e.aliases=[];function e(n){(function(a){var i=/\\\((?:[^()]|\([^()]*\))*\)/.source,l=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return i})),u={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+i),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},c=a.languages.jq={comment:/#.*/,property:{pattern:RegExp(l.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:u},string:{pattern:l,lookbehind:!0,greedy:!0,inside:u},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};u.interpolation.inside.content.inside=c})(n)}return Ef}var Sf,ZA;function lF(){if(ZA)return Sf;ZA=1,Sf=e,e.displayName="jsExtras",e.aliases=[];function e(n){(function(a){a.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+a.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),a.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+a.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),a.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function i(f,b){return RegExp(f.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),b)}a.languages.insertBefore("javascript","keyword",{imports:{pattern:i(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:i(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:i(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var l=["function","function-variable","method","method-variable","property-access"],u=0;u<l.length;u++){var c=l[u],d=a.languages.javascript[c];a.util.type(d)==="RegExp"&&(d=a.languages.javascript[c]={pattern:d});var g=d.inside||{};d.inside=g,g["maybe-class-name"]=/^[A-Z][\s\S]*/}})(n)}return Sf}var vf,QA;function sF(){if(QA)return vf;QA=1,vf=e,e.displayName="jsTemplates",e.aliases=[];function e(n){(function(a){var i=a.languages.javascript["template-string"],l=i.pattern.source,u=i.inside.interpolation,c=u.inside["interpolation-punctuation"],d=u.pattern.source;function g(T,C){if(a.languages[T])return{pattern:RegExp("((?:"+C+")\\s*)"+l),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:T}}}}a.languages.javascript["template-string"]=[g("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),g("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),g("svg",/\bsvg/.source),g("markdown",/\b(?:markdown|md)/.source),g("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),g("sql",/\bsql/.source),i].filter(Boolean);function f(T,C){return"___"+C.toUpperCase()+"_"+T+"___"}function b(T,C,x){var A={code:T,grammar:C,language:x};return a.hooks.run("before-tokenize",A),A.tokens=a.tokenize(A.code,A.grammar),a.hooks.run("after-tokenize",A),A.tokens}function h(T){var C={};C["interpolation-punctuation"]=c;var x=a.tokenize(T,C);if(x.length===3){var A=[1,1];A.push.apply(A,b(x[1],a.languages.javascript,"javascript")),x.splice.apply(x,A)}return new a.Token("interpolation",x,u.alias,T)}function E(T,C,x){var A=a.tokenize(T,{interpolation:{pattern:RegExp(d),lookbehind:!0}}),N=0,D={},U=A.map(function(z){if(typeof z=="string")return z;for(var F=z.content,W;T.indexOf(W=f(N++,x))!==-1;);return D[W]=F,W}).join(""),w=b(U,C,x),M=Object.keys(D);N=0;function H(z){for(var F=0;F<z.length;F++){if(N>=M.length)return;var W=z[F];if(typeof W=="string"||typeof W.content=="string"){var Q=M[N],ne=typeof W=="string"?W:W.content,oe=ne.indexOf(Q);if(oe!==-1){++N;var se=ne.substring(0,oe),G=h(D[Q]),ee=ne.substring(oe+Q.length),ae=[];if(se&&ae.push(se),ae.push(G),ee){var fe=[ee];H(fe),ae.push.apply(ae,fe)}typeof W=="string"?(z.splice.apply(z,[F,1].concat(ae)),F+=ae.length-1):W.content=ae}}else{var I=W.content;Array.isArray(I)?H(I):H([I])}}}return H(w),new a.Token(x,w,"language-"+x,T)}var S={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};a.hooks.add("after-tokenize",function(T){if(!(T.language in S))return;function C(x){for(var A=0,N=x.length;A<N;A++){var D=x[A];if(typeof D!="string"){var U=D.content;if(!Array.isArray(U)){typeof U!="string"&&C([U]);continue}if(D.type==="template-string"){var w=U[1];if(U.length===3&&typeof w!="string"&&w.type==="embedded-code"){var M=_(w),H=w.alias,z=Array.isArray(H)?H[0]:H,F=a.languages[z];if(!F)continue;U[1]=E(M,F,z)}}else C(U)}}}C(T.tokens)});function _(T){return typeof T=="string"?T:Array.isArray(T)?T.map(_).join(""):_(T.content)}})(n)}return vf}var xf,JA;function ob(){if(JA)return xf;JA=1,xf=e,e.displayName="typescript",e.aliases=["ts"];function e(n){(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var i=a.languages.extend("typescript",{});delete i["class-name"],a.languages.typescript["class-name"].inside=i,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:i}}}}),a.languages.ts=a.languages.typescript})(n)}return xf}var Tf,e_;function uF(){if(e_)return Tf;e_=1;var e=Ql(),n=ob();Tf=a,a.displayName="jsdoc",a.aliases=[];function a(i){i.register(e),i.register(n),(function(l){var u=l.languages.javascript,c=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,d="(@(?:arg|argument|param|property)\\s+(?:"+c+"\\s+)?)";l.languages.jsdoc=l.languages.extend("javadoclike",{parameter:{pattern:RegExp(d+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),l.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(d+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:u,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return c})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+c),lookbehind:!0,inside:{string:u.string,number:u.number,boolean:u.boolean,keyword:l.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:u,alias:"language-javascript"}}}}),l.languages.javadoclike.addSupport("javascript",l.languages.jsdoc)})(i)}return Tf}var Af,t_;function lb(){if(t_)return Af;t_=1,Af=e,e.displayName="json",e.aliases=["webmanifest"];function e(n){n.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},n.languages.webmanifest=n.languages.json}return Af}var _f,n_;function cF(){if(n_)return _f;n_=1;var e=lb();_f=n,n.displayName="json5",n.aliases=[];function n(a){a.register(e),(function(i){var l=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;i.languages.json5=i.languages.extend("json",{property:[{pattern:RegExp(l.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:l,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(a)}return _f}var Rf,r_;function dF(){if(r_)return Rf;r_=1;var e=lb();Rf=n,n.displayName="jsonp",n.aliases=[];function n(a){a.register(e),a.languages.jsonp=a.languages.extend("json",{punctuation:/[{}[\]();,.]/}),a.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return Rf}var Nf,a_;function pF(){if(a_)return Nf;a_=1,Nf=e,e.displayName="jsstacktrace",e.aliases=[];function e(n){n.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return Nf}var wf,i_;function gk(){if(i_)return wf;i_=1,wf=e,e.displayName="jsx",e.aliases=[];function e(n){(function(a){var i=a.util.clone(a.languages.javascript),l=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,u=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,c=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function d(b,h){return b=b.replace(/<S>/g,function(){return l}).replace(/<BRACES>/g,function(){return u}).replace(/<SPREAD>/g,function(){return c}),RegExp(b,h)}c=d(c).source,a.languages.jsx=a.languages.extend("markup",i),a.languages.jsx.tag.pattern=d(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=i.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:d(/<SPREAD>/.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:d(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);var g=function(b){return b?typeof b=="string"?b:typeof b.content=="string"?b.content:b.content.map(g).join(""):""},f=function(b){for(var h=[],E=0;E<b.length;E++){var S=b[E],_=!1;if(typeof S!="string"&&(S.type==="tag"&&S.content[0]&&S.content[0].type==="tag"?S.content[0].content[0].content==="</"?h.length>0&&h[h.length-1].tagName===g(S.content[0].content[1])&&h.pop():S.content[S.content.length-1].content==="/>"||h.push({tagName:g(S.content[0].content[1]),openedBraces:0}):h.length>0&&S.type==="punctuation"&&S.content==="{"?h[h.length-1].openedBraces++:h.length>0&&h[h.length-1].openedBraces>0&&S.type==="punctuation"&&S.content==="}"?h[h.length-1].openedBraces--:_=!0),(_||typeof S=="string")&&h.length>0&&h[h.length-1].openedBraces===0){var T=g(S);E<b.length-1&&(typeof b[E+1]=="string"||b[E+1].type==="plain-text")&&(T+=g(b[E+1]),b.splice(E+1,1)),E>0&&(typeof b[E-1]=="string"||b[E-1].type==="plain-text")&&(T=g(b[E-1])+T,b.splice(E-1,1),E--),b[E]=new a.Token("plain-text",T,null,T)}S.content&&typeof S.content!="string"&&f(S.content)}};a.hooks.add("after-tokenize",function(b){b.language!=="jsx"&&b.language!=="tsx"||f(b.tokens)})})(n)}return wf}var kf,o_;function fF(){if(o_)return kf;o_=1,kf=e,e.displayName="julia",e.aliases=[];function e(n){n.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return kf}var Cf,l_;function gF(){if(l_)return Cf;l_=1,Cf=e,e.displayName="keepalived",e.aliases=[];function e(n){n.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return Cf}var If,s_;function mF(){if(s_)return If;s_=1,If=e,e.displayName="keyman",e.aliases=[];function e(n){n.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return If}var Of,u_;function hF(){if(u_)return Of;u_=1,Of=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(n){(function(a){a.languages.kotlin=a.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete a.languages.kotlin["class-name"];var i={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:a.languages.kotlin}};a.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:i},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:i},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete a.languages.kotlin.string,a.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),a.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),a.languages.kt=a.languages.kotlin,a.languages.kts=a.languages.kotlin})(n)}return Of}var Df,c_;function bF(){if(c_)return Df;c_=1,Df=e,e.displayName="kumir",e.aliases=["kum"];function e(n){(function(a){var i=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function l(u,c){return RegExp(u.replace(/<nonId>/g,i),c)}a.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:l(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:l(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:l(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:l(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:l(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:l(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:l(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:l(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},a.languages.kum=a.languages.kumir})(n)}return Df}var Lf,d_;function yF(){if(d_)return Lf;d_=1,Lf=e,e.displayName="kusto",e.aliases=[];function e(n){n.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return Lf}var Mf,p_;function EF(){if(p_)return Mf;p_=1,Mf=e,e.displayName="latex",e.aliases=["tex","context"];function e(n){(function(a){var i=/\\(?:[^a-z()[\]]|[a-z*]+)/i,l={"equation-command":{pattern:i,alias:"regex"}};a.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:l,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:l,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:i,alias:"selector"},punctuation:/[[\]{}&]/},a.languages.tex=a.languages.latex,a.languages.context=a.languages.latex})(n)}return Mf}var Uf,f_;function Jl(){if(f_)return Uf;f_=1;var e=Vt();Uf=n,n.displayName="php",n.aliases=[];function n(a){a.register(e),(function(i){var l=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,u=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],c=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,d=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,g=/[{}\[\](),:;]/;i.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:l,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:c,operator:d,punctuation:g};var f={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:i.languages.php},b=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:f}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:f}}];i.languages.insertBefore("php","variable",{string:b,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:l,string:b,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,number:c,operator:d,punctuation:g}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),i.hooks.add("before-tokenize",function(h){if(/<\?/.test(h.code)){var E=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;i.languages["markup-templating"].buildPlaceholders(h,"php",E)}}),i.hooks.add("after-tokenize",function(h){i.languages["markup-templating"].tokenizePlaceholders(h,"php")})})(a)}return Uf}var Ff,g_;function SF(){if(g_)return Ff;g_=1;var e=Vt(),n=Jl();Ff=a,a.displayName="latte",a.aliases=[];function a(i){i.register(e),i.register(n),(function(l){l.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:l.languages.php}};var u=l.languages.extend("markup",{});l.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:l.languages.php}}}}}},u.tag),l.hooks.add("before-tokenize",function(c){if(c.language==="latte"){var d=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;l.languages["markup-templating"].buildPlaceholders(c,"latte",d),c.grammar=u}}),l.hooks.add("after-tokenize",function(c){l.languages["markup-templating"].tokenizePlaceholders(c,"latte")})})(i)}return Ff}var Bf,m_;function vF(){if(m_)return Bf;m_=1,Bf=e,e.displayName="less",e.aliases=[];function e(n){n.languages.less=n.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),n.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return Bf}var jf,h_;function sb(){if(h_)return jf;h_=1,jf=e,e.displayName="scheme",e.aliases=[];function e(n){(function(a){a.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(i({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function i(l){for(var u in l)l[u]=l[u].replace(/<[\w\s]+>/g,function(c){return"(?:"+l[c].trim()+")"});return l[u]}})(n)}return jf}var zf,b_;function xF(){if(b_)return zf;b_=1;var e=sb();zf=n,n.displayName="lilypond",n.aliases=[];function n(a){a.register(e),(function(i){for(var l=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,u=5,c=0;c<u;c++)l=l.replace(/<expr>/g,function(){return l});l=l.replace(/<expr>/g,/[^\s\S]/.source);var d=i.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return l}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:i.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};d["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=d,i.languages.ly=d})(a)}return zf}var qf,y_;function TF(){if(y_)return qf;y_=1;var e=Vt();qf=n,n.displayName="liquid",n.aliases=[];function n(a){a.register(e),a.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},a.hooks.add("before-tokenize",function(i){var l=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,u=!1;a.languages["markup-templating"].buildPlaceholders(i,"liquid",l,function(c){var d=/^\{%-?\s*(\w+)/.exec(c);if(d){var g=d[1];if(g==="raw"&&!u)return u=!0,!0;if(g==="endraw")return u=!1,!0}return!u})}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"liquid")})}return qf}var Pf,E_;function AF(){if(E_)return Pf;E_=1,Pf=e,e.displayName="lisp",e.aliases=[];function e(n){(function(a){function i(T){return RegExp(/(\()/.source+"(?:"+T+")"+/(?=[\s\)])/.source)}function l(T){return RegExp(/([\s([])/.source+"(?:"+T+")"+/(?=[\s)])/.source)}var u=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,c="&"+u,d="(\\()",g="(?=\\))",f="(?=\\s)",b=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,h={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+u+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+u),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+u),alias:"property"},splice:{pattern:RegExp(",@?"+u),alias:["symbol","variable"]},keyword:[{pattern:RegExp(d+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+f),lookbehind:!0},{pattern:RegExp(d+"(?:append|by|collect|concat|do|finally|for|in|return)"+f),lookbehind:!0}],declare:{pattern:i(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:i(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:l(/nil|t/.source),lookbehind:!0},number:{pattern:l(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(d+"def(?:const|custom|group|var)\\s+"+u),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(u)}},defun:{pattern:RegExp(d+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+u+/\s+\(/.source+b+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+u),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(d+"lambda\\s+\\(\\s*(?:&?"+u+"(?:\\s+&?"+u+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(d+u),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},E={"lisp-marker":RegExp(c),varform:{pattern:RegExp(/\(/.source+u+/\s+(?=\S)/.source+b+/\)/.source),inside:h},argument:{pattern:RegExp(/(^|[\s(])/.source+u),lookbehind:!0,alias:"variable"},rest:h},S="\\S+(?:\\s+\\S+)*",_={pattern:RegExp(d+b+g),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+S),inside:E},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+S),inside:E},keys:{pattern:RegExp("&key\\s+"+S+"(?:\\s+&allow-other-keys)?"),inside:E},argument:{pattern:RegExp(u),alias:"variable"},punctuation:/[()]/}};h.lambda.inside.arguments=_,h.defun.inside.arguments=a.util.clone(_),h.defun.inside.arguments.inside.sublist=_,a.languages.lisp=h,a.languages.elisp=h,a.languages.emacs=h,a.languages["emacs-lisp"]=h})(n)}return Pf}var Gf,S_;function _F(){if(S_)return Gf;S_=1,Gf=e,e.displayName="livescript",e.aliases=[];function e(n){n.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},n.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=n.languages.livescript}return Gf}var Hf,v_;function RF(){if(v_)return Hf;v_=1,Hf=e,e.displayName="llvm",e.aliases=[];function e(n){(function(a){a.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(n)}return Hf}var $f,x_;function NF(){if(x_)return $f;x_=1,$f=e,e.displayName="log",e.aliases=[];function e(n){n.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:n.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return $f}var Vf,T_;function wF(){if(T_)return Vf;T_=1,Vf=e,e.displayName="lolcode",e.aliases=[];function e(n){n.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return Vf}var Yf,A_;function kF(){if(A_)return Yf;A_=1,Yf=e,e.displayName="magma",e.aliases=[];function e(n){n.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return Yf}var Wf,__;function CF(){if(__)return Wf;__=1,Wf=e,e.displayName="makefile",e.aliases=[];function e(n){n.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return Wf}var Kf,R_;function IF(){if(R_)return Kf;R_=1,Kf=e,e.displayName="markdown",e.aliases=["md"];function e(n){(function(a){var i=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function l(E){return E=E.replace(/<inner>/g,function(){return i}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+E+")")}var u=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,c=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return u}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+c+d+"(?:"+c+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+c+d+")(?:"+c+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(u),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+c+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+c+"$"),inside:{"table-header":{pattern:RegExp(u),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:l(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:l(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:l(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:l(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(E){["url","bold","italic","strike","code-snippet"].forEach(function(S){E!==S&&(a.languages.markdown[E].inside.content.inside[S]=a.languages.markdown[S])})}),a.hooks.add("after-tokenize",function(E){if(E.language!=="markdown"&&E.language!=="md")return;function S(_){if(!(!_||typeof _=="string"))for(var T=0,C=_.length;T<C;T++){var x=_[T];if(x.type!=="code"){S(x.content);continue}var A=x.content[1],N=x.content[3];if(A&&N&&A.type==="code-language"&&N.type==="code-block"&&typeof A.content=="string"){var D=A.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");D=(/[a-z][\w-]*/i.exec(D)||[""])[0].toLowerCase();var U="language-"+D;N.alias?typeof N.alias=="string"?N.alias=[N.alias,U]:N.alias.push(U):N.alias=[U]}}}S(E.tokens)}),a.hooks.add("wrap",function(E){if(E.type==="code-block"){for(var S="",_=0,T=E.classes.length;_<T;_++){var C=E.classes[_],x=/language-(.+)/.exec(C);if(x){S=x[1];break}}var A=a.languages[S];if(A)E.content=a.highlight(h(E.content.value),A,S);else if(S&&S!=="none"&&a.plugins.autoloader){var N="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);E.attributes.id=N,a.plugins.autoloader.loadLanguages(S,function(){var D=document.getElementById(N);D&&(D.innerHTML=a.highlight(D.textContent,a.languages[S],S))})}}});var g=RegExp(a.languages.markup.tag.pattern.source,"gi"),f={amp:"&",lt:"<",gt:">",quot:'"'},b=String.fromCodePoint||String.fromCharCode;function h(E){var S=E.replace(g,"");return S=S.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(_,T){if(T=T.toLowerCase(),T[0]==="#"){var C;return T[1]==="x"?C=parseInt(T.slice(2),16):C=Number(T.slice(1)),b(C)}else{var x=f[T];return x||_}}),S}a.languages.md=a.languages.markdown})(n)}return Kf}var Xf,N_;function OF(){if(N_)return Xf;N_=1,Xf=e,e.displayName="matlab",e.aliases=[];function e(n){n.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return Xf}var Zf,w_;function DF(){if(w_)return Zf;w_=1,Zf=e,e.displayName="maxscript",e.aliases=[];function e(n){(function(a){var i=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;a.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+i.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+i.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:i,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(n)}return Zf}var Qf,k_;function LF(){if(k_)return Qf;k_=1,Qf=e,e.displayName="mel",e.aliases=[];function e(n){n.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},n.languages.mel.code.inside.rest=n.languages.mel}return Qf}var Jf,C_;function MF(){if(C_)return Jf;C_=1,Jf=e,e.displayName="mermaid",e.aliases=[];function e(n){n.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return Jf}var eg,I_;function UF(){if(I_)return eg;I_=1,eg=e,e.displayName="mizar",e.aliases=[];function e(n){n.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return eg}var tg,O_;function FF(){if(O_)return tg;O_=1,tg=e,e.displayName="mongodb",e.aliases=[];function e(n){(function(a){var i=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],l=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];i=i.map(function(c){return c.replace("$","\\$")});var u="(?:"+i.join("|")+")\\b";a.languages.mongodb=a.languages.extend("javascript",{}),a.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+u+"(?:\\1)?$")}}}),a.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},a.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+l.join("|")+")\\b"),alias:"keyword"}})})(n)}return tg}var ng,D_;function BF(){if(D_)return ng;D_=1,ng=e,e.displayName="monkey",e.aliases=[];function e(n){n.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return ng}var rg,L_;function jF(){if(L_)return rg;L_=1,rg=e,e.displayName="moonscript",e.aliases=["moon"];function e(n){n.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},n.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=n.languages.moonscript,n.languages.moon=n.languages.moonscript}return rg}var ag,M_;function zF(){if(M_)return ag;M_=1,ag=e,e.displayName="n1ql",e.aliases=[];function e(n){n.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return ag}var ig,U_;function qF(){if(U_)return ig;U_=1,ig=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(n){n.languages.n4js=n.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),n.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),n.languages.n4jsd=n.languages.n4js}return ig}var og,F_;function PF(){if(F_)return og;F_=1,og=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(n){n.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return og}var lg,B_;function GF(){if(B_)return lg;B_=1,lg=e,e.displayName="naniscript",e.aliases=[];function e(n){(function(a){var i=/\{[^\r\n\[\]{}]*\}/,l={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:i,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};a.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:i,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:l}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:i,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:l},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},a.languages.nani=a.languages.naniscript,a.hooks.add("after-tokenize",function(d){var g=d.tokens;g.forEach(function(f){if(typeof f!="string"&&f.type==="generic-text"){var b=c(f);u(b)||(f.type="bad-line",f.content=b)}})});function u(d){for(var g="[]{}",f=[],b=0;b<d.length;b++){var h=d[b],E=g.indexOf(h);if(E!==-1){if(E%2===0)f.push(E+1);else if(f.pop()!==E)return!1}}return f.length===0}function c(d){return typeof d=="string"?d:Array.isArray(d)?d.map(c).join(""):c(d.content)}})(n)}return lg}var sg,j_;function HF(){if(j_)return sg;j_=1,sg=e,e.displayName="nasm",e.aliases=[];function e(n){n.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}return sg}var ug,z_;function $F(){if(z_)return ug;z_=1,ug=e,e.displayName="neon",e.aliases=[];function e(n){n.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return ug}var cg,q_;function VF(){if(q_)return cg;q_=1,cg=e,e.displayName="nevod",e.aliases=[];function e(n){n.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return cg}var dg,P_;function YF(){if(P_)return dg;P_=1,dg=e,e.displayName="nginx",e.aliases=[];function e(n){(function(a){var i=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;a.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:i}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:i}},punctuation:/[{};]/}})(n)}return dg}var pg,G_;function WF(){if(G_)return pg;G_=1,pg=e,e.displayName="nim",e.aliases=[];function e(n){n.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return pg}var fg,H_;function KF(){if(H_)return fg;H_=1,fg=e,e.displayName="nix",e.aliases=[];function e(n){n.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},n.languages.nix.string.inside.interpolation.inside=n.languages.nix}return fg}var gg,$_;function XF(){if($_)return gg;$_=1,gg=e,e.displayName="nsis",e.aliases=[];function e(n){n.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return gg}var mg,V_;function ZF(){if(V_)return mg;V_=1;var e=ua();mg=n,n.displayName="objectivec",n.aliases=["objc"];function n(a){a.register(e),a.languages.objectivec=a.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete a.languages.objectivec["class-name"],a.languages.objc=a.languages.objectivec}return mg}var hg,Y_;function QF(){if(Y_)return hg;Y_=1,hg=e,e.displayName="ocaml",e.aliases=[];function e(n){n.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return hg}var bg,W_;function JF(){if(W_)return bg;W_=1;var e=ua();bg=n,n.displayName="opencl",n.aliases=[];function n(a){a.register(e),(function(i){i.languages.opencl=i.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),i.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var l={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};i.languages.insertBefore("c","keyword",l),i.languages.cpp&&(l["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},i.languages.insertBefore("cpp","keyword",l))})(a)}return bg}var yg,K_;function eB(){if(K_)return yg;K_=1,yg=e,e.displayName="openqasm",e.aliases=["qasm"];function e(n){n.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},n.languages.qasm=n.languages.openqasm}return yg}var Eg,X_;function tB(){if(X_)return Eg;X_=1,Eg=e,e.displayName="oz",e.aliases=[];function e(n){n.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return Eg}var Sg,Z_;function nB(){if(Z_)return Sg;Z_=1,Sg=e,e.displayName="parigp",e.aliases=[];function e(n){n.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var a=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return a=a.map(function(i){return i.split("").join(" *")}).join("|"),RegExp("\\b(?:"+a+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return Sg}var vg,Q_;function rB(){if(Q_)return vg;Q_=1,vg=e,e.displayName="parser",e.aliases=[];function e(n){(function(a){var i=a.languages.parser=a.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});i=a.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:i.keyword,variable:i.variable,function:i.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:i.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:i.punctuation}}}),a.languages.insertBefore("inside","punctuation",{expression:i.expression,keyword:i.keyword,variable:i.variable,function:i.function,escape:i.escape,"parser-punctuation":{pattern:i.punctuation,alias:"punctuation"}},i.tag.inside["attr-value"])})(n)}return vg}var xg,J_;function aB(){if(J_)return xg;J_=1,xg=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(n){n.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},n.languages.pascal.asm.inside=n.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),n.languages.objectpascal=n.languages.pascal}return xg}var Tg,eR;function iB(){if(eR)return Tg;eR=1,Tg=e,e.displayName="pascaligo",e.aliases=[];function e(n){(function(a){var i=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,l=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return i}),u=a.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return l}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return l}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return l})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},c=["comment","keyword","builtin","operator","punctuation"].reduce(function(d,g){return d[g]=u[g],d},{});u["class-name"].forEach(function(d){d.inside=c})})(n)}return Tg}var Ag,tR;function oB(){if(tR)return Ag;tR=1,Ag=e,e.displayName="pcaxis",e.aliases=["px"];function e(n){n.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},n.languages.px=n.languages.pcaxis}return Ag}var _g,nR;function lB(){if(nR)return _g;nR=1,_g=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(n){n.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},n.languages.pcode=n.languages.peoplecode}return _g}var Rg,rR;function sB(){if(rR)return Rg;rR=1,Rg=e,e.displayName="perl",e.aliases=[];function e(n){(function(a){var i=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;a.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,i].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,i].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,i+/\s*/.source+i].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(n)}return Rg}var Ng,aR;function uB(){if(aR)return Ng;aR=1;var e=Jl();Ng=n,n.displayName="phpExtras",n.aliases=[];function n(a){a.register(e),a.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return Ng}var wg,iR;function cB(){if(iR)return wg;iR=1;var e=Jl(),n=Ql();wg=a,a.displayName="phpdoc",a.aliases=[];function a(i){i.register(e),i.register(n),(function(l){var u=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;l.languages.phpdoc=l.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+u+"\\s+)?)\\$\\w+"),lookbehind:!0}}),l.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+u),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),l.languages.javadoclike.addSupport("php",l.languages.phpdoc)})(i)}return wg}var kg,oR;function dB(){if(oR)return kg;oR=1;var e=nb();kg=n,n.displayName="plsql",n.aliases=[];function n(a){a.register(e),a.languages.plsql=a.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),a.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return kg}var Cg,lR;function pB(){if(lR)return Cg;lR=1,Cg=e,e.displayName="powerquery",e.aliases=[];function e(n){n.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},n.languages.pq=n.languages.powerquery,n.languages.mscript=n.languages.powerquery}return Cg}var Ig,sR;function fB(){if(sR)return Ig;sR=1,Ig=e,e.displayName="powershell",e.aliases=[];function e(n){(function(a){var i=a.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};i.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:i},boolean:i.boolean,variable:i.variable}})(n)}return Ig}var Og,uR;function gB(){if(uR)return Og;uR=1,Og=e,e.displayName="processing",e.aliases=[];function e(n){n.languages.processing=n.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),n.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return Og}var Dg,cR;function mB(){if(cR)return Dg;cR=1,Dg=e,e.displayName="prolog",e.aliases=[];function e(n){n.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return Dg}var Lg,dR;function hB(){if(dR)return Lg;dR=1,Lg=e,e.displayName="promql",e.aliases=[];function e(n){(function(a){var i=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],l=["on","ignoring","group_right","group_left","by","without"],u=["offset"],c=i.concat(l,u);a.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+l.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+c.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(n)}return Lg}var Mg,pR;function bB(){if(pR)return Mg;pR=1,Mg=e,e.displayName="properties",e.aliases=[];function e(n){n.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return Mg}var Ug,fR;function yB(){if(fR)return Ug;fR=1,Ug=e,e.displayName="protobuf",e.aliases=[];function e(n){(function(a){var i=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;a.languages.protobuf=a.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),a.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:i}},builtin:i,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(n)}return Ug}var Fg,gR;function EB(){if(gR)return Fg;gR=1,Fg=e,e.displayName="psl",e.aliases=[];function e(n){n.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return Fg}var Bg,mR;function SB(){if(mR)return Bg;mR=1,Bg=e,e.displayName="pug",e.aliases=[];function e(n){(function(a){a.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:a.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:a.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:a.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:a.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:a.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:a.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:a.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:a.languages.javascript}],punctuation:/[.\-!=|]+/};for(var i=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,l=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],u={},c=0,d=l.length;c<d;c++){var g=l[c];g=typeof g=="string"?{filter:g,language:g}:g,a.languages[g.language]&&(u["filter-"+g.filter]={pattern:RegExp(i.replace("<filter_name>",function(){return g.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[g.language,"language-"+g.language],inside:a.languages[g.language]}}})}a.languages.insertBefore("pug","filter",u)})(n)}return Bg}var jg,hR;function vB(){if(hR)return jg;hR=1,jg=e,e.displayName="puppet",e.aliases=[];function e(n){(function(a){a.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var i=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:a.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];a.languages.puppet.heredoc[0].inside.interpolation=i,a.languages.puppet.string.inside["double-quoted"].inside.interpolation=i})(n)}return jg}var zg,bR;function xB(){if(bR)return zg;bR=1,zg=e,e.displayName="pure",e.aliases=[];function e(n){(function(a){a.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var i=["c",{lang:"c++",alias:"cpp"},"fortran"],l=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;i.forEach(function(u){var c=u;if(typeof u!="string"&&(c=u.alias,u=u.lang),a.languages[c]){var d={};d["inline-lang-"+c]={pattern:RegExp(l.replace("<lang>",u.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:a.util.clone(a.languages.pure["inline-lang"].inside)},d["inline-lang-"+c].inside.rest=a.util.clone(a.languages[c]),a.languages.insertBefore("pure","inline-lang",d)}}),a.languages.c&&(a.languages.pure["inline-lang"].inside.rest=a.util.clone(a.languages.c))})(n)}return zg}var qg,yR;function TB(){if(yR)return qg;yR=1,qg=e,e.displayName="purebasic",e.aliases=[];function e(n){n.languages.purebasic=n.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),n.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete n.languages.purebasic["class-name"],delete n.languages.purebasic.boolean,n.languages.pbfasm=n.languages.purebasic}return qg}var Pg,ER;function AB(){if(ER)return Pg;ER=1;var e=ab();Pg=n,n.displayName="purescript",n.aliases=["purs"];function n(a){a.register(e),a.languages.purescript=a.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[a.languages.haskell.operator[0],a.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),a.languages.purs=a.languages.purescript}return Pg}var Gg,SR;function _B(){if(SR)return Gg;SR=1,Gg=e,e.displayName="python",e.aliases=["py"];function e(n){n.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},n.languages.python["string-interpolation"].inside.interpolation.inside.rest=n.languages.python,n.languages.py=n.languages.python}return Gg}var Hg,vR;function RB(){if(vR)return Hg;vR=1,Hg=e,e.displayName="q",e.aliases=[];function e(n){n.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return Hg}var $g,xR;function NB(){if(xR)return $g;xR=1,$g=e,e.displayName="qml",e.aliases=[];function e(n){(function(a){for(var i=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,l=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,u=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return i}).replace(/<comment>/g,function(){return l}),c=0;c<2;c++)u=u.replace(/<expr>/g,function(){return u});u=u.replace(/<expr>/g,"[^\\s\\S]"),a.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return u}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:a.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return u}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:a.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(n)}return $g}var Vg,TR;function wB(){if(TR)return Vg;TR=1,Vg=e,e.displayName="qore",e.aliases=[];function e(n){n.languages.qore=n.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return Vg}var Yg,AR;function kB(){if(AR)return Yg;AR=1,Yg=e,e.displayName="qsharp",e.aliases=["qs"];function e(n){(function(a){function i(_,T){return _.replace(/<<(\d+)>>/g,function(C,x){return"(?:"+T[+x]+")"})}function l(_,T,C){return RegExp(i(_,T),"")}function u(_,T){for(var C=0;C<T;C++)_=_.replace(/<<self>>/g,function(){return"(?:"+_+")"});return _.replace(/<<self>>/g,"[^\\s\\S]")}var c={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function d(_){return"\\b(?:"+_.trim().replace(/ /g,"|")+")\\b"}var g=RegExp(d(c.type+" "+c.other)),f=/\b[A-Za-z_]\w*\b/.source,b=i(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[f]),h={keyword:g,punctuation:/[<>()?,.:[\]]/},E=/"(?:\\.|[^\\"])*"/.source;a.languages.qsharp=a.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:l(/(^|[^$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:l(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[b]),lookbehind:!0,inside:h},{pattern:l(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[b]),lookbehind:!0,inside:h}],keyword:g,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),a.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var S=u(i(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[E]),2);a.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:l(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[S]),greedy:!0,inside:{interpolation:{pattern:l(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[S]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:a.languages.qsharp}}},string:/[\s\S]+/}}})})(n),n.languages.qs=n.languages.qsharp}return Yg}var Wg,_R;function CB(){if(_R)return Wg;_R=1,Wg=e,e.displayName="r",e.aliases=[];function e(n){n.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return Wg}var Kg,RR;function IB(){if(RR)return Kg;RR=1;var e=sb();Kg=n,n.displayName="racket",n.aliases=["rkt"];function n(a){a.register(e),a.languages.racket=a.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),a.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),a.languages.rkt=a.languages.racket}return Kg}var Xg,NR;function OB(){if(NR)return Xg;NR=1,Xg=e,e.displayName="reason",e.aliases=[];function e(n){n.languages.reason=n.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),n.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete n.languages.reason.function}return Xg}var Zg,wR;function DB(){if(wR)return Zg;wR=1,Zg=e,e.displayName="regex",e.aliases=[];function e(n){(function(a){var i={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,u={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},c={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},d="(?:[^\\\\-]|"+l.source+")",g=RegExp(d+"-"+d),f={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};a.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:g,inside:{escape:l,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":i,"char-set":c,escape:l}},"special-escape":i,"char-set":u,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":f}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:l,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":f}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(n)}return Zg}var Qg,kR;function LB(){if(kR)return Qg;kR=1,Qg=e,e.displayName="rego",e.aliases=[];function e(n){n.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Qg}var Jg,CR;function MB(){if(CR)return Jg;CR=1,Jg=e,e.displayName="renpy",e.aliases=["rpy"];function e(n){n.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},n.languages.rpy=n.languages.renpy}return Jg}var em,IR;function UB(){if(IR)return em;IR=1,em=e,e.displayName="rest",e.aliases=[];function e(n){n.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return em}var tm,OR;function FB(){if(OR)return tm;OR=1,tm=e,e.displayName="rip",e.aliases=[];function e(n){n.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return tm}var nm,DR;function BB(){if(DR)return nm;DR=1,nm=e,e.displayName="roboconf",e.aliases=[];function e(n){n.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return nm}var rm,LR;function jB(){if(LR)return rm;LR=1,rm=e,e.displayName="robotframework",e.aliases=[];function e(n){(function(a){var i={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},l={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function u(f,b){var h={};h["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var E in b)h[E]=b[E];return h.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},h.variable=l,h.comment=i,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return f}),"im"),alias:"section",inside:h}}var c={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},d={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:l}},g={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:l}};a.languages.robotframework={settings:u("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:u("Variables"),"test-cases":u("Test Cases",{"test-name":d,documentation:c,property:g}),keywords:u("Keywords",{"keyword-name":d,documentation:c,property:g}),tasks:u("Tasks",{"task-name":d,documentation:c,property:g}),comment:i},a.languages.robot=a.languages.robotframework})(n)}return rm}var am,MR;function zB(){if(MR)return am;MR=1,am=e,e.displayName="rust",e.aliases=[];function e(n){(function(a){for(var i=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,l=0;l<2;l++)i=i.replace(/<self>/g,function(){return i});i=i.replace(/<self>/g,function(){return/[^\s\S]/.source}),a.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+i),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},a.languages.rust["closure-params"].inside.rest=a.languages.rust,a.languages.rust.attribute.inside.string=a.languages.rust.string})(n)}return am}var im,UR;function qB(){if(UR)return im;UR=1,im=e,e.displayName="sas",e.aliases=[];function e(n){(function(a){var i=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,l=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,u={pattern:RegExp(i+"[bx]"),alias:"number"},c={pattern:/&[a-z_]\w*/i},d={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},g={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},f=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],b={pattern:RegExp(i),greedy:!0},h=/[$%@.(){}\[\];,\\]/,E={pattern:/%?\b\w+(?=\()/,alias:"keyword"},S={function:E,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":c,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:l,"numeric-constant":u,punctuation:h,string:b},_={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},T={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},C={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},x={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},A=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,N={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return A}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return A}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:f,function:E,"arg-value":S["arg-value"],operator:S.operator,argument:S.arg,number:l,"numeric-constant":u,punctuation:h,string:b}},D={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};a.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return i}),"im"),alias:"language-sql",inside:a.languages.sql},"global-statements":C,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:l,"numeric-constant":u,punctuation:h,string:b}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:f,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return i}),"im"),lookbehind:!0,alias:"language-groovy",inside:a.languages.groovy},keyword:D,"submit-statement":x,"global-statements":C,number:l,"numeric-constant":u,punctuation:h,string:b}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:f,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return i}),"im"),lookbehind:!0,alias:"language-lua",inside:a.languages.lua},keyword:D,"submit-statement":x,"global-statements":C,number:l,"numeric-constant":u,punctuation:h,string:b}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:f,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:S}},"cas-actions":N,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:S},step:g,keyword:D,function:E,format:_,altformat:T,"global-statements":C,number:l,"numeric-constant":u,punctuation:h,string:b}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return i}),"im"),lookbehind:!0,inside:S},"macro-keyword":d,"macro-variable":c,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":d,"macro-variable":c,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:h}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:f,number:l,"numeric-constant":u}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:S},"cas-actions":N,comment:f,function:E,format:_,altformat:T,"numeric-constant":u,datetime:{pattern:RegExp(i+"(?:dt?|t)"),alias:"number"},string:b,step:g,keyword:D,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:l,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:h}})(n)}return im}var om,FR;function PB(){if(FR)return om;FR=1,om=e,e.displayName="sass",e.aliases=[];function e(n){(function(a){a.languages.sass=a.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),a.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete a.languages.sass.atrule;var i=/\$[-\w]+|#\{\$[-\w]+\}/,l=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];a.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:i,operator:l}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:i,operator:l,important:a.languages.sass.important}}}),delete a.languages.sass.property,delete a.languages.sass.important,a.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(n)}return om}var lm,BR;function GB(){if(BR)return lm;BR=1;var e=ib();lm=n,n.displayName="scala",n.aliases=[];function n(a){a.register(e),a.languages.scala=a.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),a.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:a.languages.scala}}},string:/[\s\S]+/}}}),delete a.languages.scala["class-name"],delete a.languages.scala.function}return lm}var sm,jR;function HB(){if(jR)return sm;jR=1,sm=e,e.displayName="scss",e.aliases=[];function e(n){n.languages.scss=n.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),n.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),n.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),n.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),n.languages.scss.atrule.inside.rest=n.languages.scss}return sm}var um,zR;function $B(){if(zR)return um;zR=1;var e=dk();um=n,n.displayName="shellSession",n.aliases=[];function n(a){a.register(e),(function(i){var l=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");i.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return l}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:i.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},i.languages["sh-session"]=i.languages.shellsession=i.languages["shell-session"]})(a)}return um}var cm,qR;function VB(){if(qR)return cm;qR=1,cm=e,e.displayName="smali",e.aliases=[];function e(n){n.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return cm}var dm,PR;function YB(){if(PR)return dm;PR=1,dm=e,e.displayName="smalltalk",e.aliases=[];function e(n){n.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return dm}var pm,GR;function WB(){if(GR)return pm;GR=1;var e=Vt();pm=n,n.displayName="smarty",n.aliases=[];function n(a){a.register(e),(function(i){i.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:i.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},i.languages.smarty["embedded-php"].inside.smarty.inside=i.languages.smarty,i.languages.smarty.string[0].inside.interpolation.inside.expression.inside=i.languages.smarty;var l=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,u=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return l.source}),"g");i.hooks.add("before-tokenize",function(c){var d="{literal}",g="{/literal}",f=!1;i.languages["markup-templating"].buildPlaceholders(c,"smarty",u,function(b){return b===g&&(f=!1),f?!1:(b===d&&(f=!0),!0)})}),i.hooks.add("after-tokenize",function(c){i.languages["markup-templating"].tokenizePlaceholders(c,"smarty")})})(a)}return pm}var fm,HR;function KB(){if(HR)return fm;HR=1,fm=e,e.displayName="sml",e.aliases=["smlnj"];function e(n){(function(a){var i=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;a.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return i.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:i,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},a.languages.sml["class-name"][0].inside=a.languages.sml,a.languages.smlnj=a.languages.sml})(n)}return fm}var gm,$R;function XB(){if($R)return gm;$R=1,gm=e,e.displayName="solidity",e.aliases=["sol"];function e(n){n.languages.solidity=n.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),n.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),n.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),n.languages.sol=n.languages.solidity}return gm}var mm,VR;function ZB(){if(VR)return mm;VR=1,mm=e,e.displayName="solutionFile",e.aliases=[];function e(n){(function(a){var i={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};a.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:i}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:i}},guid:i,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},a.languages.sln=a.languages["solution-file"]})(n)}return mm}var hm,YR;function QB(){if(YR)return hm;YR=1;var e=Vt();hm=n,n.displayName="soy",n.aliases=[];function n(a){a.register(e),(function(i){var l=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,u=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;i.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:l,greedy:!0},number:u,punctuation:/[\[\].?]/}},string:{pattern:l,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:u,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},i.hooks.add("before-tokenize",function(c){var d=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,g="{literal}",f="{/literal}",b=!1;i.languages["markup-templating"].buildPlaceholders(c,"soy",d,function(h){return h===f&&(b=!1),b?!1:(h===g&&(b=!0),!0)})}),i.hooks.add("after-tokenize",function(c){i.languages["markup-templating"].tokenizePlaceholders(c,"soy")})})(a)}return hm}var bm,WR;function mk(){if(WR)return bm;WR=1,bm=e,e.displayName="turtle",e.aliases=[];function e(n){n.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},n.languages.trig=n.languages.turtle}return bm}var ym,KR;function JB(){if(KR)return ym;KR=1;var e=mk();ym=n,n.displayName="sparql",n.aliases=["rq"];function n(a){a.register(e),a.languages.sparql=a.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),a.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),a.languages.rq=a.languages.sparql}return ym}var Em,XR;function ej(){if(XR)return Em;XR=1,Em=e,e.displayName="splunkSpl",e.aliases=[];function e(n){n.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return Em}var Sm,ZR;function tj(){if(ZR)return Sm;ZR=1,Sm=e,e.displayName="sqf",e.aliases=[];function e(n){n.languages.sqf=n.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),n.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:n.languages.sqf.comment}}}),delete n.languages.sqf["class-name"]}return Sm}var vm,QR;function nj(){if(QR)return vm;QR=1,vm=e,e.displayName="squirrel",e.aliases=[];function e(n){n.languages.squirrel=n.languages.extend("clike",{comment:[n.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),n.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return vm}var xm,JR;function rj(){if(JR)return xm;JR=1,xm=e,e.displayName="stan",e.aliases=[];function e(n){(function(a){var i=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;a.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+i.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,i],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},a.languages.stan.constraint.inside.expression.inside=a.languages.stan})(n)}return xm}var Tm,eN;function aj(){if(eN)return Tm;eN=1,Tm=e,e.displayName="stylus",e.aliases=[];function e(n){(function(a){var i={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},l={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},u={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:l,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:l,punctuation:/[{}()\[\];:,]/};u.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:u}},u.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:u}},a.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:u}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:u}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:u}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:u.interpolation}},rest:u}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:u.interpolation,comment:u.comment,punctuation:/[{},]/}},func:u.func,string:u.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:u.interpolation,punctuation:/[{}()\[\];:.]/}})(n)}return Tm}var Am,tN;function ij(){if(tN)return Am;tN=1,Am=e,e.displayName="swift",e.aliases=[];function e(n){n.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},n.languages.swift["string-literal"].forEach(function(a){a.inside.interpolation.inside=n.languages.swift})}return Am}var _m,nN;function oj(){if(nN)return _m;nN=1,_m=e,e.displayName="systemd",e.aliases=[];function e(n){(function(a){var i={pattern:/^[;#].*/m,greedy:!0},l=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;a.languages.systemd={comment:i,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+l+`|(?=[^"\r
|
|
279
279
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+l+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:i,quoted:{pattern:RegExp(/(^|\s)/.source+l),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(n)}return _m}var Rm,rN;function ub(){if(rN)return Rm;rN=1,Rm=e,e.displayName="t4Templating",e.aliases=[];function e(n){(function(a){function i(u,c,d){return{pattern:RegExp("<#"+u+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+u+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:c,alias:d}}}}function l(u){var c=a.languages[u],d="language-"+u;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:i("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:i("=",c,d),"class-feature":i("\\+",c,d),standard:i("",c,d)}}}}a.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:l})})(n)}return Rm}var Nm,aN;function lj(){if(aN)return Nm;aN=1;var e=ub(),n=Xl();Nm=a,a.displayName="t4Cs",a.aliases=[];function a(i){i.register(e),i.register(n),i.languages.t4=i.languages["t4-cs"]=i.languages["t4-templating"].createT4("csharp")}return Nm}var wm,iN;function hk(){if(iN)return wm;iN=1;var e=pk();wm=n,n.displayName="vbnet",n.aliases=[];function n(a){a.register(e),a.languages.vbnet=a.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return wm}var km,oN;function sj(){if(oN)return km;oN=1;var e=ub(),n=hk();km=a,a.displayName="t4Vb",a.aliases=[];function a(i){i.register(e),i.register(n),i.languages["t4-vb"]=i.languages["t4-templating"].createT4("vbnet")}return km}var Cm,lN;function bk(){if(lN)return Cm;lN=1,Cm=e,e.displayName="yaml",e.aliases=["yml"];function e(n){(function(a){var i=/[*&][^\s[\]{},]+/,l=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,u="(?:"+l.source+"(?:[ ]+"+i.source+")?|"+i.source+"(?:[ ]+"+l.source+")?)",c=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function g(f,b){b=(b||"").replace(/m/g,"")+"m";var h=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<value>>/g,function(){return f});return RegExp(h,b)}a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return u})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<key>>/g,function(){return"(?:"+c+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:g(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:g(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:g(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:g(d),lookbehind:!0,greedy:!0},number:{pattern:g(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:l,important:i,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(n)}return Cm}var Im,sN;function uj(){if(sN)return Im;sN=1;var e=bk();Im=n,n.displayName="tap",n.aliases=[];function n(a){a.register(e),a.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:a.languages.yaml,alias:"language-yaml"}}}return Im}var Om,uN;function cj(){if(uN)return Om;uN=1,Om=e,e.displayName="tcl",e.aliases=[];function e(n){n.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return Om}var Dm,cN;function dj(){if(cN)return Dm;cN=1,Dm=e,e.displayName="textile",e.aliases=[];function e(n){(function(a){var i=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,l=/\)|\((?![^|()\n]+\))/.source;function u(E,S){return RegExp(E.replace(/<MOD>/g,function(){return"(?:"+i+")"}).replace(/<PAR>/g,function(){return"(?:"+l+")"}),S||"")}var c={css:{pattern:/\{[^{}]+\}/,inside:{rest:a.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},d=a.languages.textile=a.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:u(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:u(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:c},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:u(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:u(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:c},punctuation:/^[*#]+/}},table:{pattern:u(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:u(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:c},punctuation:/\||^\./}},inline:{pattern:u(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:u(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:u(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:u(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:u(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:u(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:u(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:u(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:u(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:c},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:u(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:u(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:u(/(^")<MOD>+/.source),lookbehind:!0,inside:c},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:u(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:u(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:u(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:c},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),g=d.phrase.inside,f={inline:g.inline,link:g.link,image:g.image,footnote:g.footnote,acronym:g.acronym,mark:g.mark};d.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var b=g.inline.inside;b.bold.inside=f,b.italic.inside=f,b.inserted.inside=f,b.deleted.inside=f,b.span.inside=f;var h=g.table.inside;h.inline=f.inline,h.link=f.link,h.image=f.image,h.footnote=f.footnote,h.acronym=f.acronym,h.mark=f.mark})(n)}return Dm}var Lm,dN;function pj(){if(dN)return Lm;dN=1,Lm=e,e.displayName="toml",e.aliases=[];function e(n){(function(a){var i=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function l(u){return u.replace(/__/g,function(){return i})}a.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(l(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(l(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(n)}return Lm}var Mm,pN;function fj(){if(pN)return Mm;pN=1,Mm=e,e.displayName="tremor",e.aliases=[];function e(n){(function(a){a.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var i=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;a.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+i+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+i+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(i),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:a.languages.tremor}}},string:/[\s\S]+/}},a.languages.troy=a.languages.tremor,a.languages.trickle=a.languages.tremor})(n)}return Mm}var Um,fN;function gj(){if(fN)return Um;fN=1;var e=gk(),n=ob();Um=a,a.displayName="tsx",a.aliases=[];function a(i){i.register(e),i.register(n),(function(l){var u=l.util.clone(l.languages.typescript);l.languages.tsx=l.languages.extend("jsx",u),delete l.languages.tsx.parameter,delete l.languages.tsx["literal-property"];var c=l.languages.tsx.tag;c.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+c.pattern.source+")",c.pattern.flags),c.lookbehind=!0})(i)}return Um}var Fm,gN;function mj(){if(gN)return Fm;gN=1;var e=Vt();Fm=n,n.displayName="tt2",n.aliases=[];function n(a){a.register(e),(function(i){i.languages.tt2=i.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),i.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),i.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),i.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete i.languages.tt2.string,i.hooks.add("before-tokenize",function(l){var u=/\[%[\s\S]+?%\]/g;i.languages["markup-templating"].buildPlaceholders(l,"tt2",u)}),i.hooks.add("after-tokenize",function(l){i.languages["markup-templating"].tokenizePlaceholders(l,"tt2")})})(a)}return Fm}var Bm,mN;function hj(){if(mN)return Bm;mN=1;var e=Vt();Bm=n,n.displayName="twig",n.aliases=[];function n(a){a.register(e),a.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},a.hooks.add("before-tokenize",function(i){if(i.language==="twig"){var l=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;a.languages["markup-templating"].buildPlaceholders(i,"twig",l)}}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"twig")})}return Bm}var jm,hN;function bj(){if(hN)return jm;hN=1,jm=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(n){(function(a){var i=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;a.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:i}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:i,number:/^\d+$/,punctuation:/[,|:]/}},keyword:i,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},a.languages.tsconfig=a.languages.typoscript})(n)}return jm}var zm,bN;function yj(){if(bN)return zm;bN=1,zm=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(n){n.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},n.languages.uc=n.languages.uscript=n.languages.unrealscript}return zm}var qm,yN;function Ej(){if(yN)return qm;yN=1,qm=e,e.displayName="uorazor",e.aliases=[];function e(n){n.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return qm}var Pm,EN;function Sj(){if(EN)return Pm;EN=1,Pm=e,e.displayName="uri",e.aliases=["url"];function e(n){n.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},n.languages.url=n.languages.uri}return Pm}var Gm,SN;function vj(){if(SN)return Gm;SN=1,Gm=e,e.displayName="v",e.aliases=[];function e(n){(function(a){var i={pattern:/[\s\S]+/,inside:null};a.languages.v=a.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":i}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),i.inside=a.languages.v,a.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),a.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),a.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:a.languages.v.generic.inside}}}})})(n)}return Gm}var Hm,vN;function xj(){if(vN)return Hm;vN=1,Hm=e,e.displayName="vala",e.aliases=[];function e(n){n.languages.vala=n.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),n.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:n.languages.vala}},string:/[\s\S]+/}}}),n.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return Hm}var $m,xN;function Tj(){if(xN)return $m;xN=1,$m=e,e.displayName="velocity",e.aliases=[];function e(n){(function(a){a.languages.velocity=a.languages.extend("markup",{});var i={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};i.variable.inside={string:i.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:i.number,boolean:i.boolean,punctuation:i.punctuation},a.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:i}},variable:i.variable}),a.languages.velocity.tag.inside["attr-value"].inside.rest=a.languages.velocity})(n)}return $m}var Vm,TN;function Aj(){if(TN)return Vm;TN=1,Vm=e,e.displayName="verilog",e.aliases=[];function e(n){n.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return Vm}var Ym,AN;function _j(){if(AN)return Ym;AN=1,Ym=e,e.displayName="vhdl",e.aliases=[];function e(n){n.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return Ym}var Wm,_N;function Rj(){if(_N)return Wm;_N=1,Wm=e,e.displayName="vim",e.aliases=[];function e(n){n.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return Wm}var Km,RN;function Nj(){if(RN)return Km;RN=1,Km=e,e.displayName="visualBasic",e.aliases=[];function e(n){n.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},n.languages.vb=n.languages["visual-basic"],n.languages.vba=n.languages["visual-basic"]}return Km}var Xm,NN;function wj(){if(NN)return Xm;NN=1,Xm=e,e.displayName="warpscript",e.aliases=[];function e(n){n.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return Xm}var Zm,wN;function kj(){if(wN)return Zm;wN=1,Zm=e,e.displayName="wasm",e.aliases=[];function e(n){n.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return Zm}var Qm,kN;function Cj(){if(kN)return Qm;kN=1,Qm=e,e.displayName="webIdl",e.aliases=[];function e(n){(function(a){var i=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,l="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+i+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,u={};a.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+i),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:u},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+l),lookbehind:!0,inside:u},{pattern:RegExp("("+/\bcallback\s+/.source+i+/\s*=\s*/.source+")"+l),lookbehind:!0,inside:u},{pattern:RegExp(/(\btypedef\b\s*)/.source+l),lookbehind:!0,inside:u},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+i),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+i),lookbehind:!0},RegExp(i+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+i),lookbehind:!0},{pattern:RegExp(l+"(?="+/\s*(?:\.{3}\s*)?/.source+i+/\s*[(),;=]/.source+")"),inside:u}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var c in a.languages["web-idl"])c!=="class-name"&&(u[c]=a.languages["web-idl"][c]);a.languages.webidl=a.languages["web-idl"]})(n)}return Qm}var Jm,CN;function Ij(){if(CN)return Jm;CN=1,Jm=e,e.displayName="wiki",e.aliases=[];function e(n){n.languages.wiki=n.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:n.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),n.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:n.languages.markup.tag.inside}}}})}return Jm}var eh,IN;function Oj(){if(IN)return eh;IN=1,eh=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(n){n.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},n.languages.mathematica=n.languages.wolfram,n.languages.wl=n.languages.wolfram,n.languages.nb=n.languages.wolfram}return eh}var th,ON;function Dj(){if(ON)return th;ON=1,th=e,e.displayName="wren",e.aliases=[];function e(n){n.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},n.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:n.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return th}var nh,DN;function Lj(){if(DN)return nh;DN=1,nh=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(n){(function(a){a.languages.xeora=a.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),a.languages.insertBefore("inside","punctuation",{variable:a.languages.xeora["function-inline"].inside.variable},a.languages.xeora["function-block"]),a.languages.xeoracube=a.languages.xeora})(n)}return nh}var rh,LN;function Mj(){if(LN)return rh;LN=1,rh=e,e.displayName="xmlDoc",e.aliases=[];function e(n){(function(a){function i(d,g){a.languages[d]&&a.languages.insertBefore(d,"comment",{"doc-comment":g})}var l=a.languages.markup.tag,u={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:l}},c={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:l}};i("csharp",u),i("fsharp",u),i("vbnet",c)})(n)}return rh}var ah,MN;function Uj(){if(MN)return ah;MN=1,ah=e,e.displayName="xojo",e.aliases=[];function e(n){n.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return ah}var ih,UN;function Fj(){if(UN)return ih;UN=1,ih=e,e.displayName="xquery",e.aliases=[];function e(n){(function(a){a.languages.xquery=a.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),a.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,a.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,a.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,a.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:a.languages.xquery,alias:"language-xquery"};var i=function(u){return typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(i).join("")},l=function(u){for(var c=[],d=0;d<u.length;d++){var g=u[d],f=!1;if(typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?c.length>0&&c[c.length-1].tagName===i(g.content[0].content[1])&&c.pop():g.content[g.content.length-1].content==="/>"||c.push({tagName:i(g.content[0].content[1]),openedBraces:0}):c.length>0&&g.type==="punctuation"&&g.content==="{"&&(!u[d+1]||u[d+1].type!=="punctuation"||u[d+1].content!=="{")&&(!u[d-1]||u[d-1].type!=="plain-text"||u[d-1].content!=="{")?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&g.type==="punctuation"&&g.content==="}"?c[c.length-1].openedBraces--:g.type!=="comment"&&(f=!0)),(f||typeof g=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var b=i(g);d<u.length-1&&(typeof u[d+1]=="string"||u[d+1].type==="plain-text")&&(b+=i(u[d+1]),u.splice(d+1,1)),d>0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(b=i(u[d-1])+b,u.splice(d-1,1),d--),/^\s+$/.test(b)?u[d]=b:u[d]=new a.Token("plain-text",b,null,b)}g.content&&typeof g.content!="string"&&l(g.content)}};a.hooks.add("after-tokenize",function(u){u.language==="xquery"&&l(u.tokens)})})(n)}return ih}var oh,FN;function Bj(){if(FN)return oh;FN=1,oh=e,e.displayName="yang",e.aliases=[];function e(n){n.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return oh}var lh,BN;function jj(){if(BN)return lh;BN=1,lh=e,e.displayName="zig",e.aliases=[];function e(n){(function(a){function i(b){return function(){return b}}var l=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,u="\\b(?!"+l.source+")(?!\\d)\\w+\\b",c=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,d=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,i(c)),g=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,i(u)),f="(?!\\s)(?:!?\\s*(?:"+d+"\\s*)*"+g+")+";a.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,i(f)).replace(/<ALIGN>/g,i(c))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,i(f)).replace(/<ALIGN>/g,i(c))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:l,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},a.languages.zig["class-name"].forEach(function(b){b.inside===null&&(b.inside=a.languages.zig)})})(n)}return lh}var sh,jN;function zj(){if(jN)return sh;jN=1;var e=n2();return sh=e,e.register(a2()),e.register(i2()),e.register(o2()),e.register(l2()),e.register(s2()),e.register(u2()),e.register(c2()),e.register(d2()),e.register(p2()),e.register(f2()),e.register(g2()),e.register(m2()),e.register(h2()),e.register(b2()),e.register(y2()),e.register(E2()),e.register(S2()),e.register(v2()),e.register(x2()),e.register(T2()),e.register(A2()),e.register(_2()),e.register(dk()),e.register(pk()),e.register(R2()),e.register(N2()),e.register(w2()),e.register(k2()),e.register(C2()),e.register(I2()),e.register(O2()),e.register(D2()),e.register(L2()),e.register(M2()),e.register(ua()),e.register(U2()),e.register(F2()),e.register(B2()),e.register(j2()),e.register(z2()),e.register(q2()),e.register(P2()),e.register(G2()),e.register(H2()),e.register(rb()),e.register($2()),e.register(Xl()),e.register(V2()),e.register(Y2()),e.register(W2()),e.register(K2()),e.register(X2()),e.register(Z2()),e.register(Q2()),e.register(J2()),e.register(eU()),e.register(tU()),e.register(nU()),e.register(rU()),e.register(aU()),e.register(iU()),e.register(oU()),e.register(lU()),e.register(sU()),e.register(uU()),e.register(cU()),e.register(dU()),e.register(pU()),e.register(fU()),e.register(gU()),e.register(mU()),e.register(hU()),e.register(bU()),e.register(yU()),e.register(EU()),e.register(SU()),e.register(vU()),e.register(xU()),e.register(TU()),e.register(AU()),e.register(_U()),e.register(RU()),e.register(NU()),e.register(wU()),e.register(kU()),e.register(CU()),e.register(IU()),e.register(OU()),e.register(DU()),e.register(LU()),e.register(MU()),e.register(UU()),e.register(FU()),e.register(BU()),e.register(ab()),e.register(jU()),e.register(zU()),e.register(qU()),e.register(PU()),e.register(GU()),e.register(HU()),e.register($U()),e.register(VU()),e.register(YU()),e.register(WU()),e.register(KU()),e.register(XU()),e.register(ZU()),e.register(QU()),e.register(JU()),e.register(eF()),e.register(tF()),e.register(ib()),e.register(nF()),e.register(Ql()),e.register(rF()),e.register(aF()),e.register(iF()),e.register(oF()),e.register(lF()),e.register(sF()),e.register(uF()),e.register(lb()),e.register(cF()),e.register(dF()),e.register(pF()),e.register(gk()),e.register(fF()),e.register(gF()),e.register(mF()),e.register(hF()),e.register(bF()),e.register(yF()),e.register(EF()),e.register(SF()),e.register(vF()),e.register(xF()),e.register(TF()),e.register(AF()),e.register(_F()),e.register(RF()),e.register(NF()),e.register(wF()),e.register(fk()),e.register(kF()),e.register(CF()),e.register(IF()),e.register(Vt()),e.register(OF()),e.register(DF()),e.register(LF()),e.register(MF()),e.register(UF()),e.register(FF()),e.register(BF()),e.register(jF()),e.register(zF()),e.register(qF()),e.register(PF()),e.register(GF()),e.register(HF()),e.register($F()),e.register(VF()),e.register(YF()),e.register(WF()),e.register(KF()),e.register(XF()),e.register(ZF()),e.register(QF()),e.register(JF()),e.register(eB()),e.register(tB()),e.register(nB()),e.register(rB()),e.register(aB()),e.register(iB()),e.register(oB()),e.register(lB()),e.register(sB()),e.register(uB()),e.register(Jl()),e.register(cB()),e.register(dB()),e.register(pB()),e.register(fB()),e.register(gB()),e.register(mB()),e.register(hB()),e.register(bB()),e.register(yB()),e.register(EB()),e.register(SB()),e.register(vB()),e.register(xB()),e.register(TB()),e.register(AB()),e.register(_B()),e.register(RB()),e.register(NB()),e.register(wB()),e.register(kB()),e.register(CB()),e.register(IB()),e.register(OB()),e.register(DB()),e.register(LB()),e.register(MB()),e.register(UB()),e.register(FB()),e.register(BB()),e.register(jB()),e.register(Zl()),e.register(zB()),e.register(qB()),e.register(PB()),e.register(GB()),e.register(sb()),e.register(HB()),e.register($B()),e.register(VB()),e.register(YB()),e.register(WB()),e.register(KB()),e.register(XB()),e.register(ZB()),e.register(QB()),e.register(JB()),e.register(ej()),e.register(tj()),e.register(nb()),e.register(nj()),e.register(rj()),e.register(aj()),e.register(ij()),e.register(oj()),e.register(lj()),e.register(ub()),e.register(sj()),e.register(uj()),e.register(cj()),e.register(dj()),e.register(pj()),e.register(fj()),e.register(gj()),e.register(mj()),e.register(mk()),e.register(hj()),e.register(ob()),e.register(bj()),e.register(yj()),e.register(Ej()),e.register(Sj()),e.register(vj()),e.register(xj()),e.register(hk()),e.register(Tj()),e.register(Aj()),e.register(_j()),e.register(Rj()),e.register(Nj()),e.register(wj()),e.register(kj()),e.register(Cj()),e.register(Ij()),e.register(Oj()),e.register(Dj()),e.register(Lj()),e.register(Mj()),e.register(Uj()),e.register(Fj()),e.register(bk()),e.register(Bj()),e.register(jj()),sh}var qj=zj();const Pj=Kl(qj);var ar=wD(Pj,r2);ar.supportedLanguages=kD;const Mr={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}};function Gj({diff:e}){const n=e.diff.split(`
|
|
280
|
-
`),a=[];let i=0,l=0;for(const c of n)if(c.startsWith("@@")){const d=c.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);d&&(i=parseInt(d[1],10),l=parseInt(d[2],10)),a.push({oldLineNumber:null,newLineNumber:null,content:c,codeContent:c,type:"hunk"})}else c.startsWith("diff")||c.startsWith("index")||c.startsWith("---")||c.startsWith("+++")?a.push({oldLineNumber:null,newLineNumber:null,content:c,codeContent:c,type:"meta"}):c.startsWith("+")?(a.push({oldLineNumber:null,newLineNumber:l,content:c,codeContent:c.slice(1),type:"add"}),l++):c.startsWith("-")?(a.push({oldLineNumber:i,newLineNumber:null,content:c,codeContent:c.slice(1),type:"delete"}),i++):(a.push({oldLineNumber:i,newLineNumber:l,content:c,codeContent:c,type:"context"}),i++,l++);const u=(c,d)=>{let g="flex hover:bg-muted/20",f="flex-shrink-0 w-20 px-2 py-0.5 text-xs font-mono select-none border-r border-border",b="flex-1 px-4 py-0.5 font-mono text-xs overflow-x-auto";c.type==="hunk"?(g+=" bg-blue-500/10",f+=" text-blue-600 dark:text-blue-400",b+=" text-blue-600 dark:text-blue-400 font-semibold"):c.type==="add"?(g+=" bg-green-500/10",f+=" text-green-700 dark:text-green-400",b+=" text-green-700 dark:text-green-400"):c.type==="delete"?(g+=" bg-red-500/10",f+=" text-red-600 dark:text-red-400",b+=" text-red-600 dark:text-red-400"):c.type==="meta"?(b+=" text-muted-foreground",f+=" text-muted-foreground"):(b+=" text-foreground/80",f+=" text-muted-foreground");const h=c.oldLineNumber!==null?c.oldLineNumber.toString():"",E=c.newLineNumber!==null?c.newLineNumber.toString():"";let S=c.content||" ";return c.type!=="meta"&&c.type!=="hunk"&&e.language!=="plaintext"&&c.codeContent.trim()&&(S=y.jsx(ar,{language:e.language,style:Mr,customStyle:{margin:0,padding:0,background:"transparent",display:"inline",fontSize:"inherit",lineHeight:"inherit"},codeTagProps:{style:{fontFamily:"inherit",background:"transparent"}},PreTag:"span",children:c.codeContent}),c.type==="add"?S=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:"+"}),S]}):c.type==="delete"&&(S=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:"-"}),S]}))),y.jsxs("div",{className:g,children:[y.jsx("div",{className:f,children:y.jsxs("div",{className:"flex justify-between gap-2",children:[y.jsx("span",{className:"text-right w-8",children:h}),y.jsx("span",{className:"text-right w-8",children:E})]})}),y.jsx("div",{className:b,children:S})]},d)};return y.jsxs("div",{className:"flex flex-col h-full bg-background",children:[y.jsxs("div",{className:"px-4 py-2 bg-muted/50 flex items-center justify-between min-h-10",children:[y.jsx("span",{className:"font-mono text-sm text-foreground",title:e.file,children:e.file}),y.jsx("div",{className:"flex items-center gap-3 text-xs",children:e.binary?y.jsx("span",{className:"text-muted-foreground",children:"Binary file"}):y.jsxs(y.Fragment,{children:[e.insertions>0&&y.jsxs("span",{className:"text-green-600 dark:text-green-500",children:["+",e.insertions]}),e.deletions>0&&y.jsxs("span",{className:"text-red-600 dark:text-red-500",children:["-",e.deletions]}),y.jsx("span",{className:"text-muted-foreground",children:e.language})]})})]}),y.jsx("div",{className:"flex-1 overflow-auto",children:e.binary?y.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"Binary file - cannot display diff"}):e.diff.trim()===""?y.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"No changes to display"}):y.jsx("div",{className:"min-w-max",children:a.map(u)})})]})}const Hj=te.memo(function(){const n=nn(E=>E.isDiffOpen),a=nn(E=>E.selectedFile),i=nn(E=>E.selectedFileStaged),l=nn(E=>E.closeDiff),u=Ja(E=>E.wasCollapsedBeforeDiff),c=Ja(E=>E.setWasCollapsedBeforeDiff),d=Ja(E=>E.setCollapsed),{data:g,isLoading:f}=J1(a,i);if(te.useEffect(()=>{const{isCollapsed:E}=Ja.getState();n?(c(E),d(!0)):u!==null&&(d(u),c(null))},[n,c,d,u]),te.useEffect(()=>{const E=S=>{S.key==="Escape"&&n&&l()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[n,l]),!n||!a)return null;const h=(E=>{const S=E.split("/");if(S.length===1||S.length<=3)return E;const _=S[S.length-1];return`.../${S.slice(-3,-1).join("/")}/${_}`})(a);return y.jsxs("div",{className:"absolute inset-0 bg-background z-50 flex flex-col animate-in slide-in-from-left duration-300",children:[y.jsxs("div",{className:"h-14 border-b border-border px-4 flex items-center gap-3",children:[y.jsx(Dt,{variant:"ghost",size:"icon",onClick:l,title:"Close diff viewer (ESC)",children:y.jsx(Jh,{className:"w-4 h-4"})}),y.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[y.jsx("span",{className:"text-sm font-medium text-foreground truncate font-mono",title:a,children:h}),i&&y.jsx("span",{className:"text-xs px-2 py-0.5 rounded bg-primary/10 text-primary",children:"Staged"})]})]}),y.jsx("div",{className:"flex-1 overflow-auto",children:f?y.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading diff..."}):g?y.jsx(Gj,{diff:g}):y.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"No diff available"})})]})}),cb=te.forwardRef(({className:e="",...n},a)=>y.jsx("textarea",{ref:a,className:`w-full px-3 py-2 bg-muted border border-border rounded text-foreground placeholder-muted-foreground outline-none resize-none ${e}`,...n}));cb.displayName="Textarea";function $j(){const{isCommitModalOpen:e,closeCommitModal:n}=nn(),a=nD(),i=eD(),[l,u]=te.useState(""),c=te.useId();if(!e)return null;const d=async()=>{if(l.trim())try{await a.mutateAsync(l),u(""),n()}catch(b){console.error("Failed to commit:",b)}},g=()=>{u(""),n()},f=async()=>{try{const b=await i.mutateAsync();u(b.message)}catch(b){console.error("Failed to generate commit message:",b)}};return y.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:y.jsxs("div",{className:"bg-background border border-border rounded-lg shadow-lg w-full max-w-2xl",children:[y.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Gl,{className:"w-5 h-5 text-foreground"}),y.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Commit Changes"})]}),y.jsx(Dt,{variant:"ghost",size:"icon",onClick:g,children:y.jsx(Jh,{className:"w-4 h-4"})})]}),y.jsxs("div",{className:"p-6 space-y-4",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx("label",{htmlFor:c,className:"text-sm font-medium text-foreground",children:"Commit Message"}),y.jsx(cb,{id:c,value:l,onChange:b=>u(b.target.value),placeholder:"Enter commit message...",rows:6,className:"w-full resize-none",autoFocus:!0,disabled:i.isPending})]}),y.jsx(Dt,{variant:"secondary",size:"sm",onClick:f,className:"w-full",disabled:i.isPending,children:i.isPending?y.jsxs(y.Fragment,{children:[y.jsx(Kw,{className:"w-4 h-4 mr-2 animate-spin"}),"Generating..."]}):y.jsxs(y.Fragment,{children:[y.jsx(Hl,{className:"w-4 h-4 mr-2"}),"Generate commit message with AI"]})}),i.isError&&y.jsx("div",{className:"text-sm text-red-600 dark:text-red-400 bg-red-500/10 border border-red-500/20 rounded px-3 py-2",children:i.error?.message||"Failed to generate commit message"})]}),y.jsxs("div",{className:"flex items-center justify-end gap-2 px-6 py-4 border-t border-border",children:[y.jsx(Dt,{variant:"ghost",onClick:g,children:"Cancel"}),y.jsx(Dt,{variant:"primary",onClick:d,disabled:!l.trim()||a.isPending,children:a.isPending?y.jsx("span",{children:"Committing..."}):y.jsxs(y.Fragment,{children:[y.jsx(Gl,{className:"w-4 h-4 mr-2"}),"Commit"]})})]}),a.isError&&y.jsx("div",{className:"px-6 pb-4",children:y.jsx("div",{className:"text-sm text-red-600 dark:text-red-400 bg-red-500/10 border border-red-500/20 rounded px-3 py-2",children:a.error?.message||"Failed to commit changes"})})]})})}const Vj=te.memo(function({sidebar:n,children:a,onNewSession:i,theme:l,onToggleTheme:u}){return y.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[y.jsx(G1,{onToggleTheme:u,theme:l}),y.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[y.jsx(X1,{onNewSession:i,children:n}),y.jsxs("main",{className:"flex-1 flex flex-col overflow-hidden relative",children:[y.jsx(Hj,{}),a]}),y.jsx(rD,{}),y.jsx(iD,{})]}),y.jsx($j,{})]})});function yk(){return ai({queryKey:["sessions"],queryFn:()=>$t.getSessions(),refetchInterval:5e3})}function Yj(){const e=ir();return ii({mutationFn:n=>$t.createSession(n),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]})}})}const Wj=te.memo(function({session:n,isActive:a,onClick:i}){const l=g=>{const f=new Date(g),h=new Date().getTime()-f.getTime(),E=Math.floor(h/6e4),S=Math.floor(E/60),_=Math.floor(S/24);return E<1?"just now":E<60?`${E}m ago`:S<24?`${S}h ago`:_<7?`${_}d ago`:f.toLocaleDateString()};return y.jsx("button",{type:"button",onClick:i,className:`group w-full rounded-lg px-3 py-3 text-left transition-colors duration-150 ${a?"bg-primary/10":"hover:bg-muted/20"}`,children:y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx(A1,{className:`h-4 w-4 shrink-0 mt-1 text-muted-foreground ${a?"text-primary":""}`}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:"flex items-center gap-2",children:y.jsx("h3",{className:"truncate text-sm font-semibold text-foreground",children:n.title||`Session ${n.id.slice(0,8)}`})}),y.jsxs("div",{className:"mt-1 flex items-center gap-2 text-xs text-muted-foreground/80",children:[n.agent&&y.jsx("span",{className:"uppercase",children:n.agent}),n.agent&&y.jsx("span",{children:"•"}),y.jsx("span",{children:l(n.lastActiveAt||n.createdAt)})]})]})]})})}),Kj=te.memo(function({activeSessionId:n,onSelectSession:a}){const{data:i=[],isLoading:l}=yk(),u=te.useMemo(()=>i.map(c=>({id:c.id,title:c.title,agent:c.agent,createdAt:c.createdAt})),[i]);return l?y.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground/80",children:"Loading sessions..."}):u.length===0?y.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground/80",children:"No sessions yet. Create one to get started."}):y.jsx("div",{className:"flex flex-col gap-1 px-2 py-2 overflow-y-auto scrollbar-hide",children:u.map(c=>{const d=i.find(g=>g.id===c.id);return d?y.jsx(Wj,{session:d,isActive:c.id===n,onClick:()=>a(c.id)},c.id):null})})});function Xj(e){return ai({queryKey:["messages",e],queryFn:()=>{if(!e)throw new Error("Session ID is required");return $t.getMessages(e)},enabled:!!e})}function Zj(e){const n=ir();return ii({mutationFn:a=>$t.sendMessage(e,a),onSuccess:()=>{n.invalidateQueries({queryKey:["messages",e]}),n.invalidateQueries({queryKey:["sessions"]})}})}class Qj{abortController=null;handlers=new Map;running=!1;async connect(n){this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.running=!0;try{const a=await fetch(n,{headers:{Accept:"text/event-stream"},signal:this.abortController.signal});if(!a.ok){console.error("[SSE] Connection failed:",a.status);return}const i=a.body?.getReader();if(!i){console.error("[SSE] No response body");return}const l=new TextDecoder;let u="";for(;this.running;){const{done:c,value:d}=await i.read();if(c)break;u+=l.decode(d,{stream:!0});let g=u.indexOf(`
|
|
280
|
+
`),a=[];let i=0,l=0;for(const c of n)if(c.startsWith("@@")){const d=c.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);d&&(i=parseInt(d[1],10),l=parseInt(d[2],10)),a.push({oldLineNumber:null,newLineNumber:null,content:c,codeContent:c,type:"hunk"})}else c.startsWith("diff")||c.startsWith("index")||c.startsWith("---")||c.startsWith("+++")?a.push({oldLineNumber:null,newLineNumber:null,content:c,codeContent:c,type:"meta"}):c.startsWith("+")?(a.push({oldLineNumber:null,newLineNumber:l,content:c,codeContent:c.slice(1),type:"add"}),l++):c.startsWith("-")?(a.push({oldLineNumber:i,newLineNumber:null,content:c,codeContent:c.slice(1),type:"delete"}),i++):(a.push({oldLineNumber:i,newLineNumber:l,content:c,codeContent:c,type:"context"}),i++,l++);const u=(c,d)=>{let g="flex hover:bg-muted/20",f="flex-shrink-0 w-20 px-2 py-0.5 text-xs font-mono select-none border-r border-border",b="flex-1 px-4 py-0.5 font-mono text-xs overflow-x-auto";c.type==="hunk"?(g+=" bg-blue-500/10",f+=" text-blue-600 dark:text-blue-400",b+=" text-blue-600 dark:text-blue-400 font-semibold"):c.type==="add"?(g+=" bg-green-500/10",f+=" text-green-700 dark:text-green-400",b+=" text-green-700 dark:text-green-400"):c.type==="delete"?(g+=" bg-red-500/10",f+=" text-red-600 dark:text-red-400",b+=" text-red-600 dark:text-red-400"):c.type==="meta"?(b+=" text-muted-foreground",f+=" text-muted-foreground"):(b+=" text-foreground/80",f+=" text-muted-foreground");const h=c.oldLineNumber!==null?c.oldLineNumber.toString():"",E=c.newLineNumber!==null?c.newLineNumber.toString():"";let S=c.content||" ";return c.type!=="meta"&&c.type!=="hunk"&&e.language!=="plaintext"&&c.codeContent.trim()&&(S=y.jsx(ar,{language:e.language,style:Mr,customStyle:{margin:0,padding:0,background:"transparent",display:"inline",fontSize:"inherit",lineHeight:"inherit"},codeTagProps:{style:{fontFamily:"inherit",background:"transparent"}},PreTag:"span",children:c.codeContent}),c.type==="add"?S=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:"+"}),S]}):c.type==="delete"&&(S=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:"-"}),S]}))),y.jsxs("div",{className:g,children:[y.jsx("div",{className:f,children:y.jsxs("div",{className:"flex justify-between gap-2",children:[y.jsx("span",{className:"text-right w-8",children:h}),y.jsx("span",{className:"text-right w-8",children:E})]})}),y.jsx("div",{className:b,children:S})]},d)};return y.jsxs("div",{className:"flex flex-col h-full bg-background",children:[y.jsxs("div",{className:"px-4 py-2 bg-muted/50 flex items-center justify-between min-h-10",children:[y.jsx("span",{className:"font-mono text-sm text-foreground",title:e.file,children:e.file}),y.jsx("div",{className:"flex items-center gap-3 text-xs",children:e.binary?y.jsx("span",{className:"text-muted-foreground",children:"Binary file"}):y.jsxs(y.Fragment,{children:[e.insertions>0&&y.jsxs("span",{className:"text-green-600 dark:text-green-500",children:["+",e.insertions]}),e.deletions>0&&y.jsxs("span",{className:"text-red-600 dark:text-red-500",children:["-",e.deletions]}),y.jsx("span",{className:"text-muted-foreground",children:e.language})]})})]}),y.jsx("div",{className:"flex-1 overflow-auto",children:e.binary?y.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"Binary file - cannot display diff"}):e.diff.trim()===""?y.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:"No changes to display"}):y.jsx("div",{className:"min-w-max",children:a.map(u)})})]})}const Hj=te.memo(function(){const n=nn(E=>E.isDiffOpen),a=nn(E=>E.selectedFile),i=nn(E=>E.selectedFileStaged),l=nn(E=>E.closeDiff),u=Ja(E=>E.wasCollapsedBeforeDiff),c=Ja(E=>E.setWasCollapsedBeforeDiff),d=Ja(E=>E.setCollapsed),{data:g,isLoading:f}=J1(a,i);if(te.useEffect(()=>{const{isCollapsed:E}=Ja.getState();n?(c(E),d(!0)):u!==null&&(d(u),c(null))},[n,c,d,u]),te.useEffect(()=>{const E=S=>{S.key==="Escape"&&n&&l()};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[n,l]),!n||!a)return null;const h=(E=>{const S=E.split("/");if(S.length===1||S.length<=3)return E;const _=S[S.length-1];return`.../${S.slice(-3,-1).join("/")}/${_}`})(a);return y.jsxs("div",{className:"absolute inset-0 bg-background z-50 flex flex-col animate-in slide-in-from-left duration-300",children:[y.jsxs("div",{className:"h-14 border-b border-border px-4 flex items-center gap-3",children:[y.jsx(Rt,{variant:"ghost",size:"icon",onClick:l,title:"Close diff viewer (ESC)",children:y.jsx(Jh,{className:"w-4 h-4"})}),y.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[y.jsx("span",{className:"text-sm font-medium text-foreground truncate font-mono",title:a,children:h}),i&&y.jsx("span",{className:"text-xs px-2 py-0.5 rounded bg-primary/10 text-primary",children:"Staged"})]})]}),y.jsx("div",{className:"flex-1 overflow-auto",children:f?y.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading diff..."}):g?y.jsx(Gj,{diff:g}):y.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"No diff available"})})]})}),cb=te.forwardRef(({className:e="",...n},a)=>y.jsx("textarea",{ref:a,className:`w-full px-3 py-2 bg-muted border border-border rounded text-foreground placeholder-muted-foreground outline-none resize-none ${e}`,...n}));cb.displayName="Textarea";function $j(){const{isCommitModalOpen:e,closeCommitModal:n}=nn(),a=nD(),i=eD(),[l,u]=te.useState(""),c=te.useId();if(!e)return null;const d=async()=>{if(l.trim())try{await a.mutateAsync(l),u(""),n()}catch(b){console.error("Failed to commit:",b)}},g=()=>{u(""),n()},f=async()=>{try{const b=await i.mutateAsync();u(b.message)}catch(b){console.error("Failed to generate commit message:",b)}};return y.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:y.jsxs("div",{className:"bg-background border border-border rounded-lg shadow-lg w-full max-w-2xl",children:[y.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Gl,{className:"w-5 h-5 text-foreground"}),y.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Commit Changes"})]}),y.jsx(Rt,{variant:"ghost",size:"icon",onClick:g,children:y.jsx(Jh,{className:"w-4 h-4"})})]}),y.jsxs("div",{className:"p-6 space-y-4",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx("label",{htmlFor:c,className:"text-sm font-medium text-foreground",children:"Commit Message"}),y.jsx(cb,{id:c,value:l,onChange:b=>u(b.target.value),placeholder:"Enter commit message...",rows:6,className:"w-full resize-none",autoFocus:!0,disabled:i.isPending})]}),y.jsx(Rt,{variant:"secondary",size:"sm",onClick:f,className:"w-full",disabled:i.isPending,children:i.isPending?y.jsxs(y.Fragment,{children:[y.jsx(Kw,{className:"w-4 h-4 mr-2 animate-spin"}),"Generating..."]}):y.jsxs(y.Fragment,{children:[y.jsx(Hl,{className:"w-4 h-4 mr-2"}),"Generate commit message with AI"]})}),i.isError&&y.jsx("div",{className:"text-sm text-red-600 dark:text-red-400 bg-red-500/10 border border-red-500/20 rounded px-3 py-2",children:i.error?.message||"Failed to generate commit message"})]}),y.jsxs("div",{className:"flex items-center justify-end gap-2 px-6 py-4 border-t border-border",children:[y.jsx(Rt,{variant:"ghost",onClick:g,children:"Cancel"}),y.jsx(Rt,{variant:"primary",onClick:d,disabled:!l.trim()||a.isPending,children:a.isPending?y.jsx("span",{children:"Committing..."}):y.jsxs(y.Fragment,{children:[y.jsx(Gl,{className:"w-4 h-4 mr-2"}),"Commit"]})})]}),a.isError&&y.jsx("div",{className:"px-6 pb-4",children:y.jsx("div",{className:"text-sm text-red-600 dark:text-red-400 bg-red-500/10 border border-red-500/20 rounded px-3 py-2",children:a.error?.message||"Failed to commit changes"})})]})})}const Vj=te.memo(function({sidebar:n,children:a,onNewSession:i,theme:l,onToggleTheme:u}){return y.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[y.jsx(G1,{onToggleTheme:u,theme:l}),y.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[y.jsx(X1,{onNewSession:i,children:n}),y.jsxs("main",{className:"flex-1 flex flex-col overflow-hidden relative",children:[y.jsx(Hj,{}),a]}),y.jsx(rD,{}),y.jsx(iD,{})]}),y.jsx($j,{})]})});function yk(){return ai({queryKey:["sessions"],queryFn:()=>$t.getSessions(),refetchInterval:5e3})}function Yj(){const e=ir();return ii({mutationFn:n=>$t.createSession(n),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]})}})}const Wj=te.memo(function({session:n,isActive:a,onClick:i}){const l=g=>{const f=new Date(g),h=new Date().getTime()-f.getTime(),E=Math.floor(h/6e4),S=Math.floor(E/60),_=Math.floor(S/24);return E<1?"just now":E<60?`${E}m ago`:S<24?`${S}h ago`:_<7?`${_}d ago`:f.toLocaleDateString()};return y.jsx("button",{type:"button",onClick:i,className:`group w-full rounded-lg px-3 py-3 text-left transition-colors duration-150 ${a?"bg-primary/10":"hover:bg-muted/20"}`,children:y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx(A1,{className:`h-4 w-4 shrink-0 mt-1 text-muted-foreground ${a?"text-primary":""}`}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:"flex items-center gap-2",children:y.jsx("h3",{className:"truncate text-sm font-semibold text-foreground",children:n.title||`Session ${n.id.slice(0,8)}`})}),y.jsxs("div",{className:"mt-1 flex items-center gap-2 text-xs text-muted-foreground/80",children:[n.agent&&y.jsx("span",{className:"uppercase",children:n.agent}),n.agent&&y.jsx("span",{children:"•"}),y.jsx("span",{children:l(n.lastActiveAt||n.createdAt)})]})]})]})})}),Kj=te.memo(function({activeSessionId:n,onSelectSession:a}){const{data:i=[],isLoading:l}=yk(),u=te.useMemo(()=>i.map(c=>({id:c.id,title:c.title,agent:c.agent,createdAt:c.createdAt})),[i]);return l?y.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground/80",children:"Loading sessions..."}):u.length===0?y.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground/80",children:"No sessions yet. Create one to get started."}):y.jsx("div",{className:"flex flex-col gap-1 px-2 py-2 overflow-y-auto scrollbar-hide",children:u.map(c=>{const d=i.find(g=>g.id===c.id);return d?y.jsx(Wj,{session:d,isActive:c.id===n,onClick:()=>a(c.id)},c.id):null})})});function Xj(e){return ai({queryKey:["messages",e],queryFn:()=>{if(!e)throw new Error("Session ID is required");return $t.getMessages(e)},enabled:!!e})}function Zj(e){const n=ir();return ii({mutationFn:a=>$t.sendMessage(e,a),onSuccess:()=>{n.invalidateQueries({queryKey:["messages",e]}),n.invalidateQueries({queryKey:["sessions"]})}})}class Qj{abortController=null;handlers=new Map;running=!1;async connect(n){this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.running=!0;try{const a=await fetch(n,{headers:{Accept:"text/event-stream"},signal:this.abortController.signal});if(!a.ok){console.error("[SSE] Connection failed:",a.status);return}const i=a.body?.getReader();if(!i){console.error("[SSE] No response body");return}const l=new TextDecoder;let u="";for(;this.running;){const{done:c,value:d}=await i.read();if(c)break;u+=l.decode(d,{stream:!0});let g=u.indexOf(`
|
|
281
281
|
|
|
282
282
|
`);for(;g!==-1;){const f=u.slice(0,g);u=u.slice(g+2);const b=f.split(`
|
|
283
283
|
`);let h="message",E="";for(const S of b)S.startsWith("event: ")?h=S.slice(7).trim():S.startsWith("data: ")?E+=(E?`
|
|
284
284
|
`:"")+S.slice(6):S.startsWith(":");if(E)try{const S=JSON.parse(E);this.emit({type:h,payload:S})}catch(S){console.error(`[SSE] Failed to parse ${h}:`,S)}g=u.indexOf(`
|
|
285
285
|
|
|
286
286
|
`)}}}catch(a){a instanceof Error&&a.name==="AbortError"||console.error("[SSE] Connection error:",a)}}disconnect(){this.running=!1,this.abortController&&(this.abortController.abort(),this.abortController=null)}on(n,a){return this.handlers.has(n)||this.handlers.set(n,new Set),this.handlers.get(n)?.add(a),()=>{this.off(n,a)}}off(n,a){const i=this.handlers.get(n);i&&(i.delete(a),i.size===0&&this.handlers.delete(n))}emit(n){const a=this.handlers.get(n.type);if(a)for(const l of a)l(n);const i=this.handlers.get("*");if(i)for(const l of i)l(n)}}function Jj(e){const n=ir(),a=te.useRef(null),i=te.useRef(null),l=te.useRef(0);te.useEffect(()=>{if(console.log("[useSessionStream] Hook called with sessionId:",e),!e){console.log("[useSessionStream] No sessionId, skipping");return}i.current=null;const u=new Qj;a.current=u;const c=$t.getStreamUrl(e);console.log("[useSessionStream] Connecting to stream:",c),u.connect(c);const d=x=>{if(i.current){const A=x.findIndex(N=>N.id===i.current);if(A!==-1)return A}for(let A=x.length-1;A>=0;A-=1){const N=x[A];if(N.role==="assistant"&&N.status!=="complete")return A}return-1},g=x=>{if(x.contentJson&&typeof x.contentJson=="object"&&!Array.isArray(x.contentJson)&&"text"in x.contentJson)return String(x.contentJson.text??"");if(typeof x.content=="string"){try{const A=JSON.parse(x.content);if(A&&typeof A.text=="string")return A.text}catch{}return x.content}return""},f=x=>{const A=typeof x?.messageId=="string"?x.messageId:null,N=typeof x?.partId=="string"?x.partId:null,D=typeof x?.delta=="string"?x.delta:null;!A||!N||D===null||n.setQueryData(["messages",e],U=>{if(!U)return U;const w=[...U],M=w.findIndex(Q=>Q.id===A);if(M===-1)return U;const H=w[M],z=H.parts?[...H.parts]:[];let F=z.findIndex(Q=>Q.id===N);const W=typeof x?.stepIndex=="number"?x.stepIndex:null;if(F===-1){const Q={id:N,messageId:A,index:z.length,stepIndex:W,type:"text",content:JSON.stringify({text:D}),contentJson:{text:D},agent:H.agent,provider:H.provider,model:H.model,startedAt:Date.now(),completedAt:null,toolName:null,toolCallId:null,toolDurationMs:null};z.push(Q),F=z.length-1}else{const Q=z[F],oe=`${g(Q)}${D}`;z[F]={...Q,content:JSON.stringify({text:oe}),contentJson:{text:oe},stepIndex:W??Q.stepIndex??null,completedAt:null}}return w[M]={...H,parts:z},w})},b=x=>{if(!x)return;const A=typeof x.callId=="string"?x.callId:null,N=typeof x.name=="string"?x.name:null;N&&n.setQueryData(["messages",e],D=>{if(!D)return D;const U=[...D];let w=d(U);if(typeof x.messageId=="string"){const ne=U.findIndex(oe=>oe.id===x.messageId);ne!==-1&&(w=ne)}if(w===-1)return D;const M=U[w],H=M.parts?[...M.parts]:[];let z=-1;A&&(z=H.findIndex(ne=>ne.toolCallId===A&&ne.ephemeral)),z===-1&&(z=H.findIndex(ne=>ne.ephemeral&&ne.toolName===N));const F=x.args,W=typeof x.stepIndex=="number"?x.stepIndex:null,Q={name:N};if(A&&(Q.callId=A),F!==void 0&&(Q.args=F),z===-1){const ne={id:A?`ephemeral-tool-call-${A}`:`ephemeral-tool-call-${N}-${Date.now()}`,messageId:M.id,index:H.length,stepIndex:W,type:"tool_call",content:JSON.stringify(Q),contentJson:Q,agent:M.agent,provider:M.provider,model:M.model,startedAt:Date.now(),completedAt:null,toolName:N,toolCallId:A,toolDurationMs:null,ephemeral:!0};H.push(ne)}else{const ne=H[z],oe={...typeof ne.contentJson=="object"&&!Array.isArray(ne.contentJson)?ne.contentJson:{},name:N};A&&(oe.callId=A),F!==void 0&&(oe.args=F),H[z]={...ne,content:JSON.stringify(oe),contentJson:oe,stepIndex:W??ne.stepIndex??null,toolCallId:A??ne.toolCallId,toolName:N}}return U[w]={...M,parts:H},U})},h=x=>{const A=typeof x?.callId=="string"?x.callId:null;A&&n.setQueryData(["messages",e],N=>{if(!N)return N;let D=!1;const U=N.map(w=>{if(!w.parts?.length)return w;const M=w.parts.filter(H=>!(H.ephemeral&&H.toolCallId===A));return M.length===w.parts.length?w:(D=!0,{...w,parts:M})});return D?U:N})},E=x=>{x&&n.setQueryData(["messages",e],A=>{if(!A)return A;const N=A.findIndex(w=>w.id===x);if(N===-1)return A;const D=A[N];if(!D.parts?.some(w=>w.ephemeral))return A;const U=[...A];return U[N]={...D,parts:D.parts?.filter(w=>!w.ephemeral)??[]},U})},S=x=>{const A=typeof x?.id=="string"?x.id:null;A&&n.setQueryData(["messages",e],N=>{if(!N)return N;const D=[...N],U=D.findIndex(M=>M.id===A);if(U===-1)return N;const w=D[U];return D[U]={...w,status:"complete",completedAt:Date.now()},D})},_=()=>{const x=Date.now();x-l.current<500||(l.current=x,console.log("[useSessionStream] Invalidating messages query (throttled)"),n.invalidateQueries({queryKey:["messages",e]}))},T=new Set(["message.completed","tool.result","finish-step","error"]),C=u.on("*",x=>{console.log("[useSessionStream] Event received:",x);const A=x.payload;switch(x.type){case"message.created":{const N=typeof A?.role=="string"?A.role:null,D=typeof A?.id=="string"?A.id:null;N==="assistant"&&D&&(i.current=D);break}case"message.part.delta":{f(A);break}case"message.completed":{const N=typeof A?.id=="string"?A.id:null;N&&i.current===N&&(i.current=null),S(A),E(N);break}case"tool.delta":{(typeof A?.channel=="string"?A.channel:null)==="input"&&b(A);break}case"tool.call":{b(A);break}case"tool.result":{h(A);break}case"error":{h(A);const N=typeof A?.messageId=="string"?A.messageId:null;N&&E(N);break}}T.has(x.type)&&_()});return()=>{C(),u.disconnect()}},[e,n])}function ez(e,n){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const tz=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nz=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rz={};function zN(e,n){return(rz.jsx?nz:tz).test(e)}const az=/[ \t\n\f\r]/g;function iz(e){return typeof e=="object"?e.type==="text"?qN(e.value):!1:qN(e)}function qN(e){return e.replace(az,"")===""}class go{constructor(n,a,i){this.normal=a,this.property=n,i&&(this.space=i)}}go.prototype.normal={};go.prototype.property={};go.prototype.space=void 0;function Ek(e,n){const a={},i={};for(const l of e)Object.assign(a,l.property),Object.assign(i,l.normal);return new go(a,i,n)}function Uh(e){return e.toLowerCase()}class Yt{constructor(n,a){this.attribute=a,this.property=n}}Yt.prototype.attribute="";Yt.prototype.booleanish=!1;Yt.prototype.boolean=!1;Yt.prototype.commaOrSpaceSeparated=!1;Yt.prototype.commaSeparated=!1;Yt.prototype.defined=!1;Yt.prototype.mustUseProperty=!1;Yt.prototype.number=!1;Yt.prototype.overloadedBoolean=!1;Yt.prototype.property="";Yt.prototype.spaceSeparated=!1;Yt.prototype.space=void 0;let oz=0;const Te=ca(),ct=ca(),Fh=ca(),le=ca(),Ye=ca(),ti=ca(),tn=ca();function ca(){return 2**++oz}const Bh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:ct,commaOrSpaceSeparated:tn,commaSeparated:ti,number:le,overloadedBoolean:Fh,spaceSeparated:Ye},Symbol.toStringTag,{value:"Module"})),uh=Object.keys(Bh);class db extends Yt{constructor(n,a,i,l){let u=-1;if(super(n,a),PN(this,"space",l),typeof i=="number")for(;++u<uh.length;){const c=uh[u];PN(this,uh[u],(i&Bh[c])===Bh[c])}}}db.prototype.defined=!0;function PN(e,n,a){a&&(e[n]=a)}function oi(e){const n={},a={};for(const[i,l]of Object.entries(e.properties)){const u=new db(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(u.mustUseProperty=!0),n[i]=u,a[Uh(i)]=i,a[Uh(u.attribute)]=i}return new go(n,a,e.space)}const Sk=oi({properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:Ye,ariaCurrent:null,ariaDescribedBy:Ye,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:Ye,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:Ye,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ye,ariaLevel:le,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:Ye,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:Ye,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:ct,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function vk(e,n){return n in e?e[n]:n}function xk(e,n){return vk(e,n.toLowerCase())}const lz=oi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ti,acceptCharset:Ye,accessKey:Ye,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:Ye,autoFocus:Te,autoPlay:Te,blocking:Ye,capture:null,charSet:null,checked:Te,cite:null,className:Ye,cols:le,colSpan:null,content:null,contentEditable:ct,controls:Te,controlsList:Ye,coords:le|ti,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:Fh,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:Ye,height:le,hidden:Fh,high:le,href:null,hrefLang:null,htmlFor:Ye,httpEquiv:Ye,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:Ye,itemRef:Ye,itemScope:Te,itemType:Ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,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:Te,optimum:le,pattern:null,ping:Ye,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:Ye,required:Te,reversed:Te,rows:le,rowSpan:le,sandbox:Ye,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:ct,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ye,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:xk}),sz=oi({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",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:tn,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:Ye,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:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,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:ti,g2:ti,glyphName:ti,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:tn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:le,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:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tn,rev:tn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tn,requiredFeatures:tn,requiredFonts:tn,requiredFormats:tn,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:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:tn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tn,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:vk}),Tk=oi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ak=oi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xk}),_k=oi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),uz={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"},cz=/[A-Z]/g,GN=/-[a-z]/g,dz=/^data[-\w.:]+$/i;function pz(e,n){const a=Uh(n);let i=n,l=Yt;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&dz.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(GN,gz);i="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!GN.test(u)){let c=u.replace(cz,fz);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}l=db}return new l(i,n)}function fz(e){return"-"+e.toLowerCase()}function gz(e){return e.charAt(1).toUpperCase()}const mz=Ek([Sk,lz,Tk,Ak,_k],"html"),pb=Ek([Sk,sz,Tk,Ak,_k],"svg");function hz(e){return e.join(" ").trim()}var Xa={},ch,HN;function bz(){if(HN)return ch;HN=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,g=`
|
|
287
|
-
`,f="/",b="*",h="",E="comment",S="declaration";ch=function(T,C){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];C=C||{};var x=1,A=1;function N(ne){var oe=ne.match(n);oe&&(x+=oe.length);var se=ne.lastIndexOf(g);A=~se?ne.length-se:A+ne.length}function D(){var ne={line:x,column:A};return function(oe){return oe.position=new U(ne),H(),oe}}function U(ne){this.start=ne,this.end={line:x,column:A},this.source=C.source}U.prototype.content=T;function w(ne){var oe=new Error(C.source+":"+x+":"+A+": "+ne);if(oe.reason=ne,oe.filename=C.source,oe.line=x,oe.column=A,oe.source=T,!C.silent)throw oe}function M(ne){var oe=ne.exec(T);if(oe){var se=oe[0];return N(se),T=T.slice(se.length),oe}}function H(){M(a)}function z(ne){var oe;for(ne=ne||[];oe=F();)oe!==!1&&ne.push(oe);return ne}function F(){var ne=D();if(!(f!=T.charAt(0)||b!=T.charAt(1))){for(var oe=2;h!=T.charAt(oe)&&(b!=T.charAt(oe)||f!=T.charAt(oe+1));)++oe;if(oe+=2,h===T.charAt(oe-1))return w("End of comment missing");var se=T.slice(2,oe-2);return A+=2,N(se),T=T.slice(oe),A+=2,ne({type:E,comment:se})}}function W(){var ne=D(),oe=M(i);if(oe){if(F(),!M(l))return w("property missing ':'");var se=M(u),G=ne({type:S,property:_(oe[0].replace(e,h)),value:se?_(se[0].replace(e,h)):h});return M(c),G}}function Q(){var ne=[];z(ne);for(var oe;oe=W();)oe!==!1&&(ne.push(oe),z(ne));return ne}return H(),Q()};function _(T){return T?T.replace(d,h):h}return ch}var $N;function yz(){if($N)return Xa;$N=1;var e=Xa&&Xa.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=a;var n=e(bz());function a(i,l){var u=null;if(!i||typeof i!="string")return u;var c=(0,n.default)(i),d=typeof l=="function";return c.forEach(function(g){if(g.type==="declaration"){var f=g.property,b=g.value;d?l(f,b,g):b&&(u=u||{},u[f]=b)}}),u}return Xa}var to={},VN;function Ez(){if(VN)return to;VN=1,Object.defineProperty(to,"__esModule",{value:!0}),to.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,a=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,u=function(f){return!f||a.test(f)||e.test(f)},c=function(f,b){return b.toUpperCase()},d=function(f,b){return"".concat(b,"-")},g=function(f,b){return b===void 0&&(b={}),u(f)?f:(f=f.toLowerCase(),b.reactCompat?f=f.replace(l,d):f=f.replace(i,d),f.replace(n,c))};return to.camelCase=g,to}var no,YN;function Sz(){if(YN)return no;YN=1;var e=no&&no.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(yz()),a=Ez();function i(l,u){var c={};return!l||typeof l!="string"||(0,n.default)(l,function(d,g){d&&g&&(c[(0,a.camelCase)(d,u)]=g)}),c}return i.default=i,no=i,no}var vz=Sz();const xz=Kl(vz),Rk=Nk("end"),fb=Nk("start");function Nk(e){return n;function n(a){const i=a&&a.position&&a.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Tz(e){const n=fb(e),a=Rk(e);if(n&&a)return{start:n,end:a}}function io(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?WN(e.position):"start"in e||"end"in e?WN(e):"line"in e||"column"in e?jh(e):""}function jh(e){return KN(e&&e.line)+":"+KN(e&&e.column)}function WN(e){return jh(e&&e.start)+"-"+jh(e&&e.end)}function KN(e){return e&&typeof e=="number"?e:1}class wt extends Error{constructor(n,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let l="",u={},c=!1;if(a&&("line"in a&&"column"in a?u={place:a}:"start"in a&&"end"in a?u={place:a}:"type"in a?u={ancestors:[a],place:a.position}:u={...a}),typeof n=="string"?l=n:!u.cause&&n&&(c=!0,l=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof i=="string"){const g=i.indexOf(":");g===-1?u.ruleId=i:(u.source=i.slice(0,g),u.ruleId=i.slice(g+1))}if(!u.place&&u.ancestors&&u.ancestors){const g=u.ancestors[u.ancestors.length-1];g&&(u.place=g.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=d?d.line:void 0,this.name=io(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}wt.prototype.file="";wt.prototype.name="";wt.prototype.reason="";wt.prototype.message="";wt.prototype.stack="";wt.prototype.column=void 0;wt.prototype.line=void 0;wt.prototype.ancestors=void 0;wt.prototype.cause=void 0;wt.prototype.fatal=void 0;wt.prototype.place=void 0;wt.prototype.ruleId=void 0;wt.prototype.source=void 0;const gb={}.hasOwnProperty,Az=new Map,_z=/[A-Z]/g,Rz=new Set(["table","tbody","thead","tfoot","tr"]),Nz=new Set(["td","th"]),wk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wz(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Uz(a,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Mz(a,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?pb:mz,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=kk(l,e,void 0);return u&&typeof u!="string"?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}function kk(e,n,a){if(n.type==="element")return kz(e,n,a);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Cz(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Oz(e,n,a);if(n.type==="mdxjsEsm")return Iz(e,n);if(n.type==="root")return Dz(e,n,a);if(n.type==="text")return Lz(e,n)}function kz(e,n,a){const i=e.schema;let l=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=pb,e.schema=l),e.ancestors.push(n);const u=Ik(e,n.tagName,!1),c=Fz(e,n);let d=hb(e,n);return Rz.has(n.tagName)&&(d=d.filter(function(g){return typeof g=="string"?!iz(g):!0})),Ck(e,c,u,n),mb(c,d),e.ancestors.pop(),e.schema=i,e.create(n,u,c,a)}function Cz(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}co(e,n.position)}function Iz(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);co(e,n.position)}function Oz(e,n,a){const i=e.schema;let l=i;n.name==="svg"&&i.space==="html"&&(l=pb,e.schema=l),e.ancestors.push(n);const u=n.name===null?e.Fragment:Ik(e,n.name,!0),c=Bz(e,n),d=hb(e,n);return Ck(e,c,u,n),mb(c,d),e.ancestors.pop(),e.schema=i,e.create(n,u,c,a)}function Dz(e,n,a){const i={};return mb(i,hb(e,n)),e.create(n,e.Fragment,i,a)}function Lz(e,n){return n.value}function Ck(e,n,a,i){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=i)}function mb(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function Mz(e,n,a){return i;function i(l,u,c,d){const f=Array.isArray(c.children)?a:n;return d?f(u,c,d):f(u,c)}}function Uz(e,n){return a;function a(i,l,u,c){const d=Array.isArray(u.children),g=fb(i);return n(l,u,c,d,{columnNumber:g?g.column-1:void 0,fileName:e,lineNumber:g?g.line:void 0},void 0)}}function Fz(e,n){const a={};let i,l;for(l in n.properties)if(l!=="children"&&gb.call(n.properties,l)){const u=jz(e,l,n.properties[l]);if(u){const[c,d]=u;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&Nz.has(n.tagName)?i=d:a[c]=d}}if(i){const u=a.style||(a.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return a}function Bz(e,n){const a={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const u=i.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(a,e.evaluater.evaluateExpression(d.argument))}else co(e,n.position);else{const l=i.name;let u;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,u=e.evaluater.evaluateExpression(d.expression)}else co(e,n.position);else u=i.value===null?!0:i.value;a[l]=u}return a}function hb(e,n){const a=[];let i=-1;const l=e.passKeys?new Map:Az;for(;++i<n.children.length;){const u=n.children[i];let c;if(e.passKeys){const g=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(g){const f=l.get(g)||0;c=g+"-"+f,l.set(g,f+1)}}const d=kk(e,u,c);d!==void 0&&a.push(d)}return a}function jz(e,n,a){const i=pz(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=i.commaSeparated?ez(a):hz(a)),i.property==="style"){let l=typeof a=="object"?a:zz(e,String(a));return e.stylePropertyNameCase==="css"&&(l=qz(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?uz[i.property]||i.property:i.attribute,a]}}function zz(e,n){try{return xz(n,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const i=a,l=new wt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=wk+"#cannot-parse-style-attribute",l}}function Ik(e,n,a){let i;if(!a)i={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let u=-1,c;for(;++u<l.length;){const d=zN(l[u])?{type:"Identifier",name:l[u]}:{type:"Literal",value:l[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}i=c}else i=zN(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const l=i.value;return gb.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);co(e)}function co(e,n){const a=new wt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=wk+"#cannot-handle-mdx-estrees-without-createevaluater",a}function qz(e){const n={};let a;for(a in e)gb.call(e,a)&&(n[Pz(a)]=e[a]);return n}function Pz(e){let n=e.replace(_z,Gz);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Gz(e){return"-"+e.toLowerCase()}const dh={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"]},Hz={};function bb(e,n){const a=Hz,i=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,l=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Ok(e,i,l)}function Ok(e,n,a){if($z(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return XN(e.children,n,a)}return Array.isArray(e)?XN(e,n,a):""}function XN(e,n,a){const i=[];let l=-1;for(;++l<e.length;)i[l]=Ok(e[l],n,a);return i.join("")}function $z(e){return!!(e&&typeof e=="object")}const ZN=document.createElement("i");function yb(e){const n="&"+e+";";ZN.innerHTML=n;const a=ZN.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===n?!1:a}function rn(e,n,a,i){const l=e.length;let u=0,c;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,a=a>0?a:0,i.length<1e4)c=Array.from(i),c.unshift(n,a),e.splice(...c);else for(a&&e.splice(n,a);u<i.length;)c=i.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function En(e,n){return e.length>0?(rn(e,e.length,0,n),e):n}const QN={}.hasOwnProperty;function Dk(e){const n={};let a=-1;for(;++a<e.length;)Vz(n,e[a]);return n}function Vz(e,n){let a;for(a in n){const l=(QN.call(e,a)?e[a]:void 0)||(e[a]={}),u=n[a];let c;if(u)for(c in u){QN.call(l,c)||(l[c]=[]);const d=u[c];Yz(l[c],Array.isArray(d)?d:d?[d]:[])}}}function Yz(e,n){let a=-1;const i=[];for(;++a<n.length;)(n[a].add==="after"?e:i).push(n[a]);rn(e,0,0,i)}function Lk(e,n){const a=Number.parseInt(e,n);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function _n(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ot=Ur(/[A-Za-z]/),Rt=Ur(/[\dA-Za-z]/),Wz=Ur(/[#-'*+\--9=?A-Z^-~]/);function $l(e){return e!==null&&(e<32||e===127)}const zh=Ur(/\d/),Kz=Ur(/[\dA-Fa-f]/),Xz=Ur(/[!-/:-@[-`{-~]/);function be(e){return e!==null&&e<-2}function Ve(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const es=Ur(new RegExp("\\p{P}|\\p{S}","u")),sa=Ur(/\s/);function Ur(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function li(e){const n=[];let a=-1,i=0,l=0;for(;++a<e.length;){const u=e.charCodeAt(a);let c="";if(u===37&&Rt(e.charCodeAt(a+1))&&Rt(e.charCodeAt(a+2)))l=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=e.charCodeAt(a+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),l=1):c="�"}else c=String.fromCharCode(u);c&&(n.push(e.slice(i,a),encodeURIComponent(c)),i=a+l+1,c=""),l&&(a+=l,l=0)}return n.join("")+e.slice(i)}function Le(e,n,a,i){const l=i?i-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(g){return Ne(g)?(e.enter(a),d(g)):n(g)}function d(g){return Ne(g)&&u++<l?(e.consume(g),d):(e.exit(a),n(g))}}const Zz={tokenize:Qz};function Qz(e){const n=e.attempt(this.parser.constructs.contentInitial,i,l);let a;return n;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Le(e,n,"linePrefix")}function l(d){return e.enter("paragraph"),u(d)}function u(d){const g=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=g),a=g,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return be(d)?(e.consume(d),e.exit("chunkText"),u):(e.consume(d),c)}}const Jz={tokenize:eq},JN={tokenize:tq};function eq(e){const n=this,a=[];let i=0,l,u,c;return d;function d(N){if(i<a.length){const D=a[i];return n.containerState=D[1],e.attempt(D[0].continuation,g,f)(N)}return f(N)}function g(N){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&A();const D=n.events.length;let U=D,w;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){w=n.events[U][1].end;break}x(i);let M=D;for(;M<n.events.length;)n.events[M][1].end={...w},M++;return rn(n.events,U+1,0,n.events.slice(D)),n.events.length=M,f(N)}return d(N)}function f(N){if(i===a.length){if(!l)return E(N);if(l.currentConstruct&&l.currentConstruct.concrete)return _(N);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(JN,b,h)(N)}function b(N){return l&&A(),x(i),E(N)}function h(N){return n.parser.lazy[n.now().line]=i!==a.length,c=n.now().offset,_(N)}function E(N){return n.containerState={},e.attempt(JN,S,_)(N)}function S(N){return i++,a.push([n.currentConstruct,n.containerState]),E(N)}function _(N){if(N===null){l&&A(),x(0),e.consume(N);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:u}),T(N)}function T(N){if(N===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(N);return}return be(N)?(e.consume(N),C(e.exit("chunkFlow")),i=0,n.interrupt=void 0,d):(e.consume(N),T)}function C(N,D){const U=n.sliceStream(N);if(D&&U.push(null),N.previous=u,u&&(u.next=N),u=N,l.defineSkip(N.start),l.write(U),n.parser.lazy[N.start.line]){let w=l.events.length;for(;w--;)if(l.events[w][1].start.offset<c&&(!l.events[w][1].end||l.events[w][1].end.offset>c))return;const M=n.events.length;let H=M,z,F;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){if(z){F=n.events[H][1].end;break}z=!0}for(x(i),w=M;w<n.events.length;)n.events[w][1].end={...F},w++;rn(n.events,H+1,0,n.events.slice(M)),n.events.length=w}}function x(N){let D=a.length;for(;D-- >N;){const U=a[D];n.containerState=U[1],U[0].exit.call(n,e)}a.length=N}function A(){l.write([null]),u=void 0,l=void 0,n.containerState._closeFlow=void 0}}function tq(e,n,a){return Le(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ni(e){if(e===null||Ve(e)||sa(e))return 1;if(es(e))return 2}function ts(e,n,a){const i=[];let l=-1;for(;++l<e.length;){const u=e[l].resolveAll;u&&!i.includes(u)&&(n=u(n,a),i.push(u))}return n}const qh={name:"attention",resolveAll:nq,tokenize:rq};function nq(e,n){let a=-1,i,l,u,c,d,g,f,b;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(i=a;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[i][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;g=e[i][1].end.offset-e[i][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const h={...e[i][1].end},E={...e[a][1].start};ew(h,-g),ew(E,g),c={type:g>1?"strongSequence":"emphasisSequence",start:h,end:{...e[i][1].end}},d={type:g>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:E},u={type:g>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[a][1].start}},l={type:g>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[a][1].start={...d.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=En(f,[["enter",e[i][1],n],["exit",e[i][1],n]])),f=En(f,[["enter",l,n],["enter",c,n],["exit",c,n],["enter",u,n]]),f=En(f,ts(n.parser.constructs.insideSpan.null,e.slice(i+1,a),n)),f=En(f,[["exit",u,n],["enter",d,n],["exit",d,n],["exit",l,n]]),e[a][1].end.offset-e[a][1].start.offset?(b=2,f=En(f,[["enter",e[a][1],n],["exit",e[a][1],n]])):b=0,rn(e,i-1,a-i+3,f),a=i+f.length-b-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function rq(e,n){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,l=ni(i);let u;return c;function c(g){return u=g,e.enter("attentionSequence"),d(g)}function d(g){if(g===u)return e.consume(g),d;const f=e.exit("attentionSequence"),b=ni(g),h=!b||b===2&&l||a.includes(g),E=!l||l===2&&b||a.includes(i);return f._open=!!(u===42?h:h&&(l||!E)),f._close=!!(u===42?E:E&&(b||!h)),n(g)}}function ew(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const aq={name:"autolink",tokenize:iq};function iq(e,n,a){let i=0;return l;function l(S){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(S){return Ot(S)?(e.consume(S),c):S===64?a(S):f(S)}function c(S){return S===43||S===45||S===46||Rt(S)?(i=1,d(S)):f(S)}function d(S){return S===58?(e.consume(S),i=0,g):(S===43||S===45||S===46||Rt(S))&&i++<32?(e.consume(S),d):(i=0,f(S))}function g(S){return S===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),n):S===null||S===32||S===60||$l(S)?a(S):(e.consume(S),g)}function f(S){return S===64?(e.consume(S),b):Wz(S)?(e.consume(S),f):a(S)}function b(S){return Rt(S)?h(S):a(S)}function h(S){return S===46?(e.consume(S),i=0,b):S===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),n):E(S)}function E(S){if((S===45||Rt(S))&&i++<63){const _=S===45?E:h;return e.consume(S),_}return a(S)}}const mo={partial:!0,tokenize:oq};function oq(e,n,a){return i;function i(u){return Ne(u)?Le(e,l,"linePrefix")(u):l(u)}function l(u){return u===null||be(u)?n(u):a(u)}}const Mk={continuation:{tokenize:sq},exit:uq,name:"blockQuote",tokenize:lq};function lq(e,n,a){const i=this;return l;function l(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return a(c)}function u(c){return Ne(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function sq(e,n,a){const i=this;return l;function l(c){return Ne(c)?Le(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(Mk,n,a)(c)}}function uq(e){e.exit("blockQuote")}const Uk={name:"characterEscape",tokenize:cq};function cq(e,n,a){return i;function i(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),l}function l(u){return Xz(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(u)}}const Fk={name:"characterReference",tokenize:dq};function dq(e,n,a){const i=this;let l=0,u,c;return d;function d(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),g}function g(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),u=31,c=Rt,b(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=Kz,b):(e.enter("characterReferenceValue"),u=7,c=zh,b(h))}function b(h){if(h===59&&l){const E=e.exit("characterReferenceValue");return c===Rt&&!yb(i.sliceSerialize(E))?a(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(h)&&l++<u?(e.consume(h),b):a(h)}}const tw={partial:!0,tokenize:fq},nw={concrete:!0,name:"codeFenced",tokenize:pq};function pq(e,n,a){const i=this,l={partial:!0,tokenize:U};let u=0,c=0,d;return g;function g(w){return f(w)}function f(w){const M=i.events[i.events.length-1];return u=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,d=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(w)}function b(w){return w===d?(c++,e.consume(w),b):c<3?a(w):(e.exit("codeFencedFenceSequence"),Ne(w)?Le(e,h,"whitespace")(w):h(w))}function h(w){return w===null||be(w)?(e.exit("codeFencedFence"),i.interrupt?n(w):e.check(tw,T,D)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(w))}function E(w){return w===null||be(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(w)):Ne(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Le(e,S,"whitespace")(w)):w===96&&w===d?a(w):(e.consume(w),E)}function S(w){return w===null||be(w)?h(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(w))}function _(w){return w===null||be(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(w)):w===96&&w===d?a(w):(e.consume(w),_)}function T(w){return e.attempt(l,D,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return u>0&&Ne(w)?Le(e,A,"linePrefix",u+1)(w):A(w)}function A(w){return w===null||be(w)?e.check(tw,T,D)(w):(e.enter("codeFlowValue"),N(w))}function N(w){return w===null||be(w)?(e.exit("codeFlowValue"),A(w)):(e.consume(w),N)}function D(w){return e.exit("codeFenced"),n(w)}function U(w,M,H){let z=0;return F;function F(se){return w.enter("lineEnding"),w.consume(se),w.exit("lineEnding"),W}function W(se){return w.enter("codeFencedFence"),Ne(se)?Le(w,Q,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(se):Q(se)}function Q(se){return se===d?(w.enter("codeFencedFenceSequence"),ne(se)):H(se)}function ne(se){return se===d?(z++,w.consume(se),ne):z>=c?(w.exit("codeFencedFenceSequence"),Ne(se)?Le(w,oe,"whitespace")(se):oe(se)):H(se)}function oe(se){return se===null||be(se)?(w.exit("codeFencedFence"),M(se)):H(se)}}}function fq(e,n,a){const i=this;return l;function l(c){return c===null?a(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}const ph={name:"codeIndented",tokenize:mq},gq={partial:!0,tokenize:hq};function mq(e,n,a){const i=this;return l;function l(f){return e.enter("codeIndented"),Le(e,u,"linePrefix",5)(f)}function u(f){const b=i.events[i.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(f):a(f)}function c(f){return f===null?g(f):be(f)?e.attempt(gq,c,g)(f):(e.enter("codeFlowValue"),d(f))}function d(f){return f===null||be(f)?(e.exit("codeFlowValue"),c(f)):(e.consume(f),d)}function g(f){return e.exit("codeIndented"),n(f)}}function hq(e,n,a){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?a(c):be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):Le(e,u,"linePrefix",5)(c)}function u(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(c):be(c)?l(c):a(c)}}const bq={name:"codeText",previous:Eq,resolve:yq,tokenize:Sq};function yq(e){let n=e.length-4,a=3,i,l;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=a;++i<n;)if(e[i][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[n][1].type="codeTextPadding",a+=2,n-=2;break}}for(i=a-1,n++;++i<=n;)l===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(l=i):(i===n||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),n-=i-l-2,i=l+2),l=void 0);return e}function Eq(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Sq(e,n,a){let i=0,l,u;return c;function c(h){return e.enter("codeText"),e.enter("codeTextSequence"),d(h)}function d(h){return h===96?(e.consume(h),i++,d):(e.exit("codeTextSequence"),g(h))}function g(h){return h===null?a(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),g):h===96?(u=e.enter("codeTextSequence"),l=0,b(h)):be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),g):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||be(h)?(e.exit("codeTextData"),g(h)):(e.consume(h),f)}function b(h){return h===96?(e.consume(h),l++,b):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(u.type="codeTextData",f(h))}}class vq{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,a){const i=a??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,a,i){const l=a||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&ro(this.left,i),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),ro(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),ro(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const a=this.left.splice(n,Number.POSITIVE_INFINITY);ro(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);ro(this.left,a.reverse())}}}function ro(e,n){let a=0;if(n.length<1e4)e.push(...n);else for(;a<n.length;)e.push(...n.slice(a,a+1e4)),a+=1e4}function Bk(e){const n={};let a=-1,i,l,u,c,d,g,f;const b=new vq(e);for(;++a<b.length;){for(;a in n;)a=n[a];if(i=b.get(a),a&&i[1].type==="chunkFlow"&&b.get(a-1)[1].type==="listItemPrefix"&&(g=i[1]._tokenizer.events,u=0,u<g.length&&g[u][1].type==="lineEndingBlank"&&(u+=2),u<g.length&&g[u][1].type==="content"))for(;++u<g.length&&g[u][1].type!=="content";)g[u][1].type==="chunkText"&&(g[u][1]._isInFirstContentOfListItem=!0,u++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,xq(b,a)),a=n[a],f=!0);else if(i[1]._container){for(u=a,l=void 0;u--;)if(c=b.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(b.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(i[1].end={...b.get(l)[1].start},d=b.slice(l,a),d.unshift(i),b.splice(l,a-l+1,d))}}return rn(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!f}function xq(e,n){const a=e.get(n)[1],i=e.get(n)[2];let l=n-1;const u=[];let c=a._tokenizer;c||(c=i.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,g=[],f={};let b,h,E=-1,S=a,_=0,T=0;const C=[T];for(;S;){for(;e.get(++l)[1]!==S;);u.push(l),S._tokenizer||(b=i.sliceStream(S),S.next||b.push(null),h&&c.defineSkip(S.start),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),h=S,S=S.next}for(S=a;++E<d.length;)d[E][0]==="exit"&&d[E-1][0]==="enter"&&d[E][1].type===d[E-1][1].type&&d[E][1].start.line!==d[E][1].end.line&&(T=E+1,C.push(T),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(c.events=[],S?(S._tokenizer=void 0,S.previous=void 0):C.pop(),E=C.length;E--;){const x=d.slice(C[E],C[E+1]),A=u.pop();g.push([A,A+x.length-1]),e.splice(A,2,x)}for(g.reverse(),E=-1;++E<g.length;)f[_+g[E][0]]=_+g[E][1],_+=g[E][1]-g[E][0]-1;return f}const Tq={resolve:_q,tokenize:Rq},Aq={partial:!0,tokenize:Nq};function _q(e){return Bk(e),e}function Rq(e,n){let a;return i;function i(d){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?u(d):be(d)?e.check(Aq,c,u)(d):(e.consume(d),l)}function u(d){return e.exit("chunkContent"),e.exit("content"),n(d)}function c(d){return e.consume(d),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,l}}function Nq(e,n,a){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Le(e,u,"linePrefix")}function u(c){if(c===null||be(c))return a(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,a,n)(c)}}function jk(e,n,a,i,l,u,c,d,g){const f=g||Number.POSITIVE_INFINITY;let b=0;return h;function h(x){return x===60?(e.enter(i),e.enter(l),e.enter(u),e.consume(x),e.exit(u),E):x===null||x===32||x===41||$l(x)?a(x):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),T(x))}function E(x){return x===62?(e.enter(u),e.consume(x),e.exit(u),e.exit(l),e.exit(i),n):(e.enter(d),e.enter("chunkString",{contentType:"string"}),S(x))}function S(x){return x===62?(e.exit("chunkString"),e.exit(d),E(x)):x===null||x===60||be(x)?a(x):(e.consume(x),x===92?_:S)}function _(x){return x===60||x===62||x===92?(e.consume(x),S):S(x)}function T(x){return!b&&(x===null||x===41||Ve(x))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),n(x)):b<f&&x===40?(e.consume(x),b++,T):x===41?(e.consume(x),b--,T):x===null||x===32||x===40||$l(x)?a(x):(e.consume(x),x===92?C:T)}function C(x){return x===40||x===41||x===92?(e.consume(x),T):T(x)}}function zk(e,n,a,i,l,u){const c=this;let d=0,g;return f;function f(S){return e.enter(i),e.enter(l),e.consume(S),e.exit(l),e.enter(u),b}function b(S){return d>999||S===null||S===91||S===93&&!g||S===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?a(S):S===93?(e.exit(u),e.enter(l),e.consume(S),e.exit(l),e.exit(i),n):be(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||S===91||S===93||be(S)||d++>999?(e.exit("chunkString"),b(S)):(e.consume(S),g||(g=!Ne(S)),S===92?E:h)}function E(S){return S===91||S===92||S===93?(e.consume(S),d++,h):h(S)}}function qk(e,n,a,i,l,u){let c;return d;function d(E){return E===34||E===39||E===40?(e.enter(i),e.enter(l),e.consume(E),e.exit(l),c=E===40?41:E,g):a(E)}function g(E){return E===c?(e.enter(l),e.consume(E),e.exit(l),e.exit(i),n):(e.enter(u),f(E))}function f(E){return E===c?(e.exit(u),g(c)):E===null?a(E):be(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Le(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===c||E===null||be(E)?(e.exit("chunkString"),f(E)):(e.consume(E),E===92?h:b)}function h(E){return E===c||E===92?(e.consume(E),b):b(E)}}function oo(e,n){let a;return i;function i(l){return be(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a=!0,i):Ne(l)?Le(e,i,a?"linePrefix":"lineSuffix")(l):n(l)}}const wq={name:"definition",tokenize:Cq},kq={partial:!0,tokenize:Iq};function Cq(e,n,a){const i=this;let l;return u;function u(S){return e.enter("definition"),c(S)}function c(S){return zk.call(i,e,d,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return l=_n(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),g):a(S)}function g(S){return Ve(S)?oo(e,f)(S):f(S)}function f(S){return jk(e,b,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function b(S){return e.attempt(kq,h,h)(S)}function h(S){return Ne(S)?Le(e,E,"whitespace")(S):E(S)}function E(S){return S===null||be(S)?(e.exit("definition"),i.parser.defined.push(l),n(S)):a(S)}}function Iq(e,n,a){return i;function i(d){return Ve(d)?oo(e,l)(d):a(d)}function l(d){return qk(e,u,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return Ne(d)?Le(e,c,"whitespace")(d):c(d)}function c(d){return d===null||be(d)?n(d):a(d)}}const Oq={name:"hardBreakEscape",tokenize:Dq};function Dq(e,n,a){return i;function i(u){return e.enter("hardBreakEscape"),e.consume(u),l}function l(u){return be(u)?(e.exit("hardBreakEscape"),n(u)):a(u)}}const Lq={name:"headingAtx",resolve:Mq,tokenize:Uq};function Mq(e,n){let a=e.length-2,i=3,l,u;return e[i][1].type==="whitespace"&&(i+=2),a-2>i&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&e[a-2][1].type==="whitespace")&&(a-=i+1===a?2:4),a>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},u={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},rn(e,i,a-i+1,[["enter",l,n],["enter",u,n],["exit",u,n],["exit",l,n]])),e}function Uq(e,n,a){let i=0;return l;function l(b){return e.enter("atxHeading"),u(b)}function u(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&i++<6?(e.consume(b),c):b===null||Ve(b)?(e.exit("atxHeadingSequence"),d(b)):a(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),g(b)):b===null||be(b)?(e.exit("atxHeading"),n(b)):Ne(b)?Le(e,d,"whitespace")(b):(e.enter("atxHeadingText"),f(b))}function g(b){return b===35?(e.consume(b),g):(e.exit("atxHeadingSequence"),d(b))}function f(b){return b===null||b===35||Ve(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),f)}}const Fq=["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"],rw=["pre","script","style","textarea"],Bq={concrete:!0,name:"htmlFlow",resolveTo:qq,tokenize:Pq},jq={partial:!0,tokenize:Hq},zq={partial:!0,tokenize:Gq};function qq(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Pq(e,n,a){const i=this;let l,u,c,d,g;return f;function f(k){return b(k)}function b(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),h}function h(k){return k===33?(e.consume(k),E):k===47?(e.consume(k),u=!0,T):k===63?(e.consume(k),l=3,i.interrupt?n:I):Ot(k)?(e.consume(k),c=String.fromCharCode(k),C):a(k)}function E(k){return k===45?(e.consume(k),l=2,S):k===91?(e.consume(k),l=5,d=0,_):Ot(k)?(e.consume(k),l=4,i.interrupt?n:I):a(k)}function S(k){return k===45?(e.consume(k),i.interrupt?n:I):a(k)}function _(k){const re="CDATA[";return k===re.charCodeAt(d++)?(e.consume(k),d===re.length?i.interrupt?n:Q:_):a(k)}function T(k){return Ot(k)?(e.consume(k),c=String.fromCharCode(k),C):a(k)}function C(k){if(k===null||k===47||k===62||Ve(k)){const re=k===47,ue=c.toLowerCase();return!re&&!u&&rw.includes(ue)?(l=1,i.interrupt?n(k):Q(k)):Fq.includes(c.toLowerCase())?(l=6,re?(e.consume(k),x):i.interrupt?n(k):Q(k)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(k):u?A(k):N(k))}return k===45||Rt(k)?(e.consume(k),c+=String.fromCharCode(k),C):a(k)}function x(k){return k===62?(e.consume(k),i.interrupt?n:Q):a(k)}function A(k){return Ne(k)?(e.consume(k),A):F(k)}function N(k){return k===47?(e.consume(k),F):k===58||k===95||Ot(k)?(e.consume(k),D):Ne(k)?(e.consume(k),N):F(k)}function D(k){return k===45||k===46||k===58||k===95||Rt(k)?(e.consume(k),D):U(k)}function U(k){return k===61?(e.consume(k),w):Ne(k)?(e.consume(k),U):N(k)}function w(k){return k===null||k===60||k===61||k===62||k===96?a(k):k===34||k===39?(e.consume(k),g=k,M):Ne(k)?(e.consume(k),w):H(k)}function M(k){return k===g?(e.consume(k),g=null,z):k===null||be(k)?a(k):(e.consume(k),M)}function H(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ve(k)?U(k):(e.consume(k),H)}function z(k){return k===47||k===62||Ne(k)?N(k):a(k)}function F(k){return k===62?(e.consume(k),W):a(k)}function W(k){return k===null||be(k)?Q(k):Ne(k)?(e.consume(k),W):a(k)}function Q(k){return k===45&&l===2?(e.consume(k),G):k===60&&l===1?(e.consume(k),ee):k===62&&l===4?(e.consume(k),O):k===63&&l===3?(e.consume(k),I):k===93&&l===5?(e.consume(k),fe):be(k)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(jq,V,ne)(k)):k===null||be(k)?(e.exit("htmlFlowData"),ne(k)):(e.consume(k),Q)}function ne(k){return e.check(zq,oe,V)(k)}function oe(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),se}function se(k){return k===null||be(k)?ne(k):(e.enter("htmlFlowData"),Q(k))}function G(k){return k===45?(e.consume(k),I):Q(k)}function ee(k){return k===47?(e.consume(k),c="",ae):Q(k)}function ae(k){if(k===62){const re=c.toLowerCase();return rw.includes(re)?(e.consume(k),O):Q(k)}return Ot(k)&&c.length<8?(e.consume(k),c+=String.fromCharCode(k),ae):Q(k)}function fe(k){return k===93?(e.consume(k),I):Q(k)}function I(k){return k===62?(e.consume(k),O):k===45&&l===2?(e.consume(k),I):Q(k)}function O(k){return k===null||be(k)?(e.exit("htmlFlowData"),V(k)):(e.consume(k),O)}function V(k){return e.exit("htmlFlow"),n(k)}}function Gq(e,n,a){const i=this;return l;function l(c){return be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):a(c)}function u(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}function Hq(e,n,a){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(mo,n,a)}}const $q={name:"htmlText",tokenize:Vq};function Vq(e,n,a){const i=this;let l,u,c;return d;function d(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),g}function g(I){return I===33?(e.consume(I),f):I===47?(e.consume(I),U):I===63?(e.consume(I),N):Ot(I)?(e.consume(I),H):a(I)}function f(I){return I===45?(e.consume(I),b):I===91?(e.consume(I),u=0,_):Ot(I)?(e.consume(I),A):a(I)}function b(I){return I===45?(e.consume(I),S):a(I)}function h(I){return I===null?a(I):I===45?(e.consume(I),E):be(I)?(c=h,ee(I)):(e.consume(I),h)}function E(I){return I===45?(e.consume(I),S):h(I)}function S(I){return I===62?G(I):I===45?E(I):h(I)}function _(I){const O="CDATA[";return I===O.charCodeAt(u++)?(e.consume(I),u===O.length?T:_):a(I)}function T(I){return I===null?a(I):I===93?(e.consume(I),C):be(I)?(c=T,ee(I)):(e.consume(I),T)}function C(I){return I===93?(e.consume(I),x):T(I)}function x(I){return I===62?G(I):I===93?(e.consume(I),x):T(I)}function A(I){return I===null||I===62?G(I):be(I)?(c=A,ee(I)):(e.consume(I),A)}function N(I){return I===null?a(I):I===63?(e.consume(I),D):be(I)?(c=N,ee(I)):(e.consume(I),N)}function D(I){return I===62?G(I):N(I)}function U(I){return Ot(I)?(e.consume(I),w):a(I)}function w(I){return I===45||Rt(I)?(e.consume(I),w):M(I)}function M(I){return be(I)?(c=M,ee(I)):Ne(I)?(e.consume(I),M):G(I)}function H(I){return I===45||Rt(I)?(e.consume(I),H):I===47||I===62||Ve(I)?z(I):a(I)}function z(I){return I===47?(e.consume(I),G):I===58||I===95||Ot(I)?(e.consume(I),F):be(I)?(c=z,ee(I)):Ne(I)?(e.consume(I),z):G(I)}function F(I){return I===45||I===46||I===58||I===95||Rt(I)?(e.consume(I),F):W(I)}function W(I){return I===61?(e.consume(I),Q):be(I)?(c=W,ee(I)):Ne(I)?(e.consume(I),W):z(I)}function Q(I){return I===null||I===60||I===61||I===62||I===96?a(I):I===34||I===39?(e.consume(I),l=I,ne):be(I)?(c=Q,ee(I)):Ne(I)?(e.consume(I),Q):(e.consume(I),oe)}function ne(I){return I===l?(e.consume(I),l=void 0,se):I===null?a(I):be(I)?(c=ne,ee(I)):(e.consume(I),ne)}function oe(I){return I===null||I===34||I===39||I===60||I===61||I===96?a(I):I===47||I===62||Ve(I)?z(I):(e.consume(I),oe)}function se(I){return I===47||I===62||Ve(I)?z(I):a(I)}function G(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),n):a(I)}function ee(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ae}function ae(I){return Ne(I)?Le(e,fe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):fe(I)}function fe(I){return e.enter("htmlTextData"),c(I)}}const Eb={name:"labelEnd",resolveAll:Xq,resolveTo:Zq,tokenize:Qq},Yq={tokenize:Jq},Wq={tokenize:eP},Kq={tokenize:tP};function Xq(e){let n=-1;const a=[];for(;++n<e.length;){const i=e[n][1];if(a.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",n+=l}}return e.length!==a.length&&rn(e,0,e.length,a),e}function Zq(e,n){let a=e.length,i=0,l,u,c,d;for(;a--;)if(l=e[a][1],u){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[a][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[a][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(u=a,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=a);const g={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[u+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",g,n],["enter",f,n]],d=En(d,e.slice(u+1,u+i+3)),d=En(d,[["enter",b,n]]),d=En(d,ts(n.parser.constructs.insideSpan.null,e.slice(u+i+4,c-3),n)),d=En(d,[["exit",b,n],e[c-2],e[c-1],["exit",f,n]]),d=En(d,e.slice(c+1)),d=En(d,[["exit",g,n]]),rn(e,u,e.length,d),e}function Qq(e,n,a){const i=this;let l=i.events.length,u,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){u=i.events[l][1];break}return d;function d(E){return u?u._inactive?h(E):(c=i.parser.defined.includes(_n(i.sliceSerialize({start:u.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),g):a(E)}function g(E){return E===40?e.attempt(Yq,b,c?b:h)(E):E===91?e.attempt(Wq,b,c?f:h)(E):c?b(E):h(E)}function f(E){return e.attempt(Kq,b,h)(E)}function b(E){return n(E)}function h(E){return u._balanced=!0,a(E)}}function Jq(e,n,a){return i;function i(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),l}function l(h){return Ve(h)?oo(e,u)(h):u(h)}function u(h){return h===41?b(h):jk(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function c(h){return Ve(h)?oo(e,g)(h):b(h)}function d(h){return a(h)}function g(h){return h===34||h===39||h===40?qk(e,f,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):b(h)}function f(h){return Ve(h)?oo(e,b)(h):b(h)}function b(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):a(h)}}function eP(e,n,a){const i=this;return l;function l(d){return zk.call(i,e,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return i.parser.defined.includes(_n(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(d):a(d)}function c(d){return a(d)}}function tP(e,n,a){return i;function i(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),l}function l(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),n):a(u)}}const nP={name:"labelStartImage",resolveAll:Eb.resolveAll,tokenize:rP};function rP(e,n,a){const i=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),u}function u(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):a(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(d):n(d)}}const aP={name:"labelStartLink",resolveAll:Eb.resolveAll,tokenize:iP};function iP(e,n,a){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(c):n(c)}}const fh={name:"lineEnding",tokenize:oP};function oP(e,n){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Le(e,n,"linePrefix")}}const Bl={name:"thematicBreak",tokenize:lP};function lP(e,n,a){let i=0,l;return u;function u(f){return e.enter("thematicBreak"),c(f)}function c(f){return l=f,d(f)}function d(f){return f===l?(e.enter("thematicBreakSequence"),g(f)):i>=3&&(f===null||be(f))?(e.exit("thematicBreak"),n(f)):a(f)}function g(f){return f===l?(e.consume(f),i++,g):(e.exit("thematicBreakSequence"),Ne(f)?Le(e,d,"whitespace")(f):d(f))}}const Ht={continuation:{tokenize:dP},exit:fP,name:"list",tokenize:cP},sP={partial:!0,tokenize:gP},uP={partial:!0,tokenize:pP};function cP(e,n,a){const i=this,l=i.events[i.events.length-1];let u=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return d;function d(S){const _=i.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!i.containerState.marker||S===i.containerState.marker:zh(S)){if(i.containerState.type||(i.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),S===42||S===45?e.check(Bl,a,f)(S):f(S);if(!i.interrupt||S===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),g(S)}return a(S)}function g(S){return zh(S)&&++c<10?(e.consume(S),g):(!i.interrupt||c<2)&&(i.containerState.marker?S===i.containerState.marker:S===41||S===46)?(e.exit("listItemValue"),f(S)):a(S)}function f(S){return e.enter("listItemMarker"),e.consume(S),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||S,e.check(mo,i.interrupt?a:b,e.attempt(sP,E,h))}function b(S){return i.containerState.initialBlankLine=!0,u++,E(S)}function h(S){return Ne(S)?(e.enter("listItemPrefixWhitespace"),e.consume(S),e.exit("listItemPrefixWhitespace"),E):a(S)}function E(S){return i.containerState.size=u+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(S)}}function dP(e,n,a){const i=this;return i.containerState._closeFlow=void 0,e.check(mo,l,u);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Le(e,n,"listItemIndent",i.containerState.size+1)(d)}function u(d){return i.containerState.furtherBlankLines||!Ne(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(uP,n,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Le(e,e.attempt(Ht,n,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function pP(e,n,a){const i=this;return Le(e,l,"listItemIndent",i.containerState.size+1);function l(u){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(u):a(u)}}function fP(e){e.exit(this.containerState.type)}function gP(e,n,a){const i=this;return Le(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(u){const c=i.events[i.events.length-1];return!Ne(u)&&c&&c[1].type==="listItemPrefixWhitespace"?n(u):a(u)}}const aw={name:"setextUnderline",resolveTo:mP,tokenize:hP};function mP(e,n){let a=e.length,i,l,u;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){i=a;break}e[a][1].type==="paragraph"&&(l=a)}else e[a][1].type==="content"&&e.splice(a,1),!u&&e[a][1].type==="definition"&&(u=a);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",u?(e.splice(l,0,["enter",c,n]),e.splice(u+1,0,["exit",e[i][1],n]),e[i][1].end={...e[u][1].end}):e[i][1]=c,e.push(["exit",c,n]),e}function hP(e,n,a){const i=this;let l;return u;function u(f){let b=i.events.length,h;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){h=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||h)?(e.enter("setextHeadingLine"),l=f,c(f)):a(f)}function c(f){return e.enter("setextHeadingLineSequence"),d(f)}function d(f){return f===l?(e.consume(f),d):(e.exit("setextHeadingLineSequence"),Ne(f)?Le(e,g,"lineSuffix")(f):g(f))}function g(f){return f===null||be(f)?(e.exit("setextHeadingLine"),n(f)):a(f)}}const bP={tokenize:yP};function yP(e){const n=this,a=e.attempt(mo,i,e.attempt(this.parser.constructs.flowInitial,l,Le(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Tq,l)),"linePrefix")));return a;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),n.currentConstruct=void 0,a}function l(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n.currentConstruct=void 0,a}}const EP={resolveAll:Gk()},SP=Pk("string"),vP=Pk("text");function Pk(e){return{resolveAll:Gk(e==="text"?xP:void 0),tokenize:n};function n(a){const i=this,l=this.parser.constructs[e],u=a.attempt(l,c,d);return c;function c(b){return f(b)?u(b):d(b)}function d(b){if(b===null){a.consume(b);return}return a.enter("data"),a.consume(b),g}function g(b){return f(b)?(a.exit("data"),u(b)):(a.consume(b),g)}function f(b){if(b===null)return!0;const h=l[b];let E=-1;if(h)for(;++E<h.length;){const S=h[E];if(!S.previous||S.previous.call(i,i.previous))return!0}return!1}}}function Gk(e){return n;function n(a,i){let l=-1,u;for(;++l<=a.length;)u===void 0?a[l]&&a[l][1].type==="data"&&(u=l,l++):(!a[l]||a[l][1].type!=="data")&&(l!==u+2&&(a[u][1].end=a[l-1][1].end,a.splice(u+2,l-u-2),l=u+2),u=void 0);return e?e(a,i):a}}function xP(e,n){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const i=e[a-1][1],l=n.sliceStream(i);let u=l.length,c=-1,d=0,g;for(;u--;){const f=l[u];if(typeof f=="string"){for(c=f.length;f.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(f===-2)g=!0,d++;else if(f!==-1){u++;break}}if(n._contentTypeTextTrailing&&a===e.length&&(d=0),d){const f={type:a===e.length||g||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:i.start._bufferIndex+c,_index:i.start._index+u,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(a,0,["enter",f,n],["exit",f,n]),a+=2)}a++}return e}const TP={42:Ht,43:Ht,45:Ht,48:Ht,49:Ht,50:Ht,51:Ht,52:Ht,53:Ht,54:Ht,55:Ht,56:Ht,57:Ht,62:Mk},AP={91:wq},_P={[-2]:ph,[-1]:ph,32:ph},RP={35:Lq,42:Bl,45:[aw,Bl],60:Bq,61:aw,95:Bl,96:nw,126:nw},NP={38:Fk,92:Uk},wP={[-5]:fh,[-4]:fh,[-3]:fh,33:nP,38:Fk,42:qh,60:[aq,$q],91:aP,92:[Oq,Uk],93:Eb,95:qh,96:bq},kP={null:[qh,EP]},CP={null:[42,95]},IP={null:[]},OP=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:CP,contentInitial:AP,disable:IP,document:TP,flow:RP,flowInitial:_P,insideSpan:kP,string:NP,text:wP},Symbol.toStringTag,{value:"Module"}));function DP(e,n,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const l={},u=[];let c=[],d=[];const g={attempt:M(U),check:M(w),consume:A,enter:N,exit:D,interrupt:M(w,{interrupt:!0})},f={code:null,containerState:{},defineSkip:T,events:[],now:_,parser:e,previous:null,sliceSerialize:E,sliceStream:S,write:h};let b=n.tokenize.call(f,g);return n.resolveAll&&u.push(n),f;function h(W){return c=En(c,W),C(),c[c.length-1]!==null?[]:(H(n,0),f.events=ts(u,f.events,f),f.events)}function E(W,Q){return MP(S(W),Q)}function S(W){return LP(c,W)}function _(){const{_bufferIndex:W,_index:Q,line:ne,column:oe,offset:se}=i;return{_bufferIndex:W,_index:Q,line:ne,column:oe,offset:se}}function T(W){l[W.line]=W.column,F()}function C(){let W;for(;i._index<c.length;){const Q=c[i._index];if(typeof Q=="string")for(W=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===W&&i._bufferIndex<Q.length;)x(Q.charCodeAt(i._bufferIndex));else x(Q)}}function x(W){b=b(W)}function A(W){be(W)?(i.line++,i.column=1,i.offset+=W===-3?2:1,F()):W!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=W}function N(W,Q){const ne=Q||{};return ne.type=W,ne.start=_(),f.events.push(["enter",ne,f]),d.push(ne),ne}function D(W){const Q=d.pop();return Q.end=_(),f.events.push(["exit",Q,f]),Q}function U(W,Q){H(W,Q.from)}function w(W,Q){Q.restore()}function M(W,Q){return ne;function ne(oe,se,G){let ee,ae,fe,I;return Array.isArray(oe)?V(oe):"tokenize"in oe?V([oe]):O(oe);function O(ce){return he;function he(Ie){const we=Ie!==null&&ce[Ie],it=Ie!==null&&ce.null,ft=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(it)?it:it?[it]:[]];return V(ft)(Ie)}}function V(ce){return ee=ce,ae=0,ce.length===0?G:k(ce[ae])}function k(ce){return he;function he(Ie){return I=z(),fe=ce,ce.partial||(f.currentConstruct=ce),ce.name&&f.parser.constructs.disable.null.includes(ce.name)?ue():ce.tokenize.call(Q?Object.assign(Object.create(f),Q):f,g,re,ue)(Ie)}}function re(ce){return W(fe,I),se}function ue(ce){return I.restore(),++ae<ee.length?k(ee[ae]):G}}}function H(W,Q){W.resolveAll&&!u.includes(W)&&u.push(W),W.resolve&&rn(f.events,Q,f.events.length-Q,W.resolve(f.events.slice(Q),f)),W.resolveTo&&(f.events=W.resolveTo(f.events,f))}function z(){const W=_(),Q=f.previous,ne=f.currentConstruct,oe=f.events.length,se=Array.from(d);return{from:oe,restore:G};function G(){i=W,f.previous=Q,f.currentConstruct=ne,f.events.length=oe,d=se,F()}}function F(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function LP(e,n){const a=n.start._index,i=n.start._bufferIndex,l=n.end._index,u=n.end._bufferIndex;let c;if(a===l)c=[e[a].slice(i,u)];else{if(c=e.slice(a,l),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}u>0&&c.push(e[l].slice(0,u))}return c}function MP(e,n){let a=-1;const i=[];let l;for(;++a<e.length;){const u=e[a];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
287
|
+
`,f="/",b="*",h="",E="comment",S="declaration";ch=function(T,C){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];C=C||{};var x=1,A=1;function N(ne){var oe=ne.match(n);oe&&(x+=oe.length);var se=ne.lastIndexOf(g);A=~se?ne.length-se:A+ne.length}function D(){var ne={line:x,column:A};return function(oe){return oe.position=new U(ne),H(),oe}}function U(ne){this.start=ne,this.end={line:x,column:A},this.source=C.source}U.prototype.content=T;function w(ne){var oe=new Error(C.source+":"+x+":"+A+": "+ne);if(oe.reason=ne,oe.filename=C.source,oe.line=x,oe.column=A,oe.source=T,!C.silent)throw oe}function M(ne){var oe=ne.exec(T);if(oe){var se=oe[0];return N(se),T=T.slice(se.length),oe}}function H(){M(a)}function z(ne){var oe;for(ne=ne||[];oe=F();)oe!==!1&&ne.push(oe);return ne}function F(){var ne=D();if(!(f!=T.charAt(0)||b!=T.charAt(1))){for(var oe=2;h!=T.charAt(oe)&&(b!=T.charAt(oe)||f!=T.charAt(oe+1));)++oe;if(oe+=2,h===T.charAt(oe-1))return w("End of comment missing");var se=T.slice(2,oe-2);return A+=2,N(se),T=T.slice(oe),A+=2,ne({type:E,comment:se})}}function W(){var ne=D(),oe=M(i);if(oe){if(F(),!M(l))return w("property missing ':'");var se=M(u),G=ne({type:S,property:_(oe[0].replace(e,h)),value:se?_(se[0].replace(e,h)):h});return M(c),G}}function Q(){var ne=[];z(ne);for(var oe;oe=W();)oe!==!1&&(ne.push(oe),z(ne));return ne}return H(),Q()};function _(T){return T?T.replace(d,h):h}return ch}var $N;function yz(){if($N)return Xa;$N=1;var e=Xa&&Xa.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=a;var n=e(bz());function a(i,l){var u=null;if(!i||typeof i!="string")return u;var c=(0,n.default)(i),d=typeof l=="function";return c.forEach(function(g){if(g.type==="declaration"){var f=g.property,b=g.value;d?l(f,b,g):b&&(u=u||{},u[f]=b)}}),u}return Xa}var to={},VN;function Ez(){if(VN)return to;VN=1,Object.defineProperty(to,"__esModule",{value:!0}),to.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,a=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,u=function(f){return!f||a.test(f)||e.test(f)},c=function(f,b){return b.toUpperCase()},d=function(f,b){return"".concat(b,"-")},g=function(f,b){return b===void 0&&(b={}),u(f)?f:(f=f.toLowerCase(),b.reactCompat?f=f.replace(l,d):f=f.replace(i,d),f.replace(n,c))};return to.camelCase=g,to}var no,YN;function Sz(){if(YN)return no;YN=1;var e=no&&no.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(yz()),a=Ez();function i(l,u){var c={};return!l||typeof l!="string"||(0,n.default)(l,function(d,g){d&&g&&(c[(0,a.camelCase)(d,u)]=g)}),c}return i.default=i,no=i,no}var vz=Sz();const xz=Kl(vz),Rk=Nk("end"),fb=Nk("start");function Nk(e){return n;function n(a){const i=a&&a.position&&a.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Tz(e){const n=fb(e),a=Rk(e);if(n&&a)return{start:n,end:a}}function io(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?WN(e.position):"start"in e||"end"in e?WN(e):"line"in e||"column"in e?jh(e):""}function jh(e){return KN(e&&e.line)+":"+KN(e&&e.column)}function WN(e){return jh(e&&e.start)+"-"+jh(e&&e.end)}function KN(e){return e&&typeof e=="number"?e:1}class kt extends Error{constructor(n,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let l="",u={},c=!1;if(a&&("line"in a&&"column"in a?u={place:a}:"start"in a&&"end"in a?u={place:a}:"type"in a?u={ancestors:[a],place:a.position}:u={...a}),typeof n=="string"?l=n:!u.cause&&n&&(c=!0,l=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof i=="string"){const g=i.indexOf(":");g===-1?u.ruleId=i:(u.source=i.slice(0,g),u.ruleId=i.slice(g+1))}if(!u.place&&u.ancestors&&u.ancestors){const g=u.ancestors[u.ancestors.length-1];g&&(u.place=g.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=d?d.line:void 0,this.name=io(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}kt.prototype.file="";kt.prototype.name="";kt.prototype.reason="";kt.prototype.message="";kt.prototype.stack="";kt.prototype.column=void 0;kt.prototype.line=void 0;kt.prototype.ancestors=void 0;kt.prototype.cause=void 0;kt.prototype.fatal=void 0;kt.prototype.place=void 0;kt.prototype.ruleId=void 0;kt.prototype.source=void 0;const gb={}.hasOwnProperty,Az=new Map,_z=/[A-Z]/g,Rz=new Set(["table","tbody","thead","tfoot","tr"]),Nz=new Set(["td","th"]),wk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wz(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Uz(a,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Mz(a,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?pb:mz,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=kk(l,e,void 0);return u&&typeof u!="string"?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}function kk(e,n,a){if(n.type==="element")return kz(e,n,a);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Cz(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Oz(e,n,a);if(n.type==="mdxjsEsm")return Iz(e,n);if(n.type==="root")return Dz(e,n,a);if(n.type==="text")return Lz(e,n)}function kz(e,n,a){const i=e.schema;let l=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=pb,e.schema=l),e.ancestors.push(n);const u=Ik(e,n.tagName,!1),c=Fz(e,n);let d=hb(e,n);return Rz.has(n.tagName)&&(d=d.filter(function(g){return typeof g=="string"?!iz(g):!0})),Ck(e,c,u,n),mb(c,d),e.ancestors.pop(),e.schema=i,e.create(n,u,c,a)}function Cz(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}co(e,n.position)}function Iz(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);co(e,n.position)}function Oz(e,n,a){const i=e.schema;let l=i;n.name==="svg"&&i.space==="html"&&(l=pb,e.schema=l),e.ancestors.push(n);const u=n.name===null?e.Fragment:Ik(e,n.name,!0),c=Bz(e,n),d=hb(e,n);return Ck(e,c,u,n),mb(c,d),e.ancestors.pop(),e.schema=i,e.create(n,u,c,a)}function Dz(e,n,a){const i={};return mb(i,hb(e,n)),e.create(n,e.Fragment,i,a)}function Lz(e,n){return n.value}function Ck(e,n,a,i){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=i)}function mb(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function Mz(e,n,a){return i;function i(l,u,c,d){const f=Array.isArray(c.children)?a:n;return d?f(u,c,d):f(u,c)}}function Uz(e,n){return a;function a(i,l,u,c){const d=Array.isArray(u.children),g=fb(i);return n(l,u,c,d,{columnNumber:g?g.column-1:void 0,fileName:e,lineNumber:g?g.line:void 0},void 0)}}function Fz(e,n){const a={};let i,l;for(l in n.properties)if(l!=="children"&&gb.call(n.properties,l)){const u=jz(e,l,n.properties[l]);if(u){const[c,d]=u;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&Nz.has(n.tagName)?i=d:a[c]=d}}if(i){const u=a.style||(a.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return a}function Bz(e,n){const a={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const u=i.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(a,e.evaluater.evaluateExpression(d.argument))}else co(e,n.position);else{const l=i.name;let u;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,u=e.evaluater.evaluateExpression(d.expression)}else co(e,n.position);else u=i.value===null?!0:i.value;a[l]=u}return a}function hb(e,n){const a=[];let i=-1;const l=e.passKeys?new Map:Az;for(;++i<n.children.length;){const u=n.children[i];let c;if(e.passKeys){const g=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(g){const f=l.get(g)||0;c=g+"-"+f,l.set(g,f+1)}}const d=kk(e,u,c);d!==void 0&&a.push(d)}return a}function jz(e,n,a){const i=pz(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=i.commaSeparated?ez(a):hz(a)),i.property==="style"){let l=typeof a=="object"?a:zz(e,String(a));return e.stylePropertyNameCase==="css"&&(l=qz(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?uz[i.property]||i.property:i.attribute,a]}}function zz(e,n){try{return xz(n,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const i=a,l=new kt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=wk+"#cannot-parse-style-attribute",l}}function Ik(e,n,a){let i;if(!a)i={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let u=-1,c;for(;++u<l.length;){const d=zN(l[u])?{type:"Identifier",name:l[u]}:{type:"Literal",value:l[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}i=c}else i=zN(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const l=i.value;return gb.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);co(e)}function co(e,n){const a=new kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=wk+"#cannot-handle-mdx-estrees-without-createevaluater",a}function qz(e){const n={};let a;for(a in e)gb.call(e,a)&&(n[Pz(a)]=e[a]);return n}function Pz(e){let n=e.replace(_z,Gz);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Gz(e){return"-"+e.toLowerCase()}const dh={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"]},Hz={};function bb(e,n){const a=Hz,i=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,l=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Ok(e,i,l)}function Ok(e,n,a){if($z(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return XN(e.children,n,a)}return Array.isArray(e)?XN(e,n,a):""}function XN(e,n,a){const i=[];let l=-1;for(;++l<e.length;)i[l]=Ok(e[l],n,a);return i.join("")}function $z(e){return!!(e&&typeof e=="object")}const ZN=document.createElement("i");function yb(e){const n="&"+e+";";ZN.innerHTML=n;const a=ZN.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===n?!1:a}function rn(e,n,a,i){const l=e.length;let u=0,c;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,a=a>0?a:0,i.length<1e4)c=Array.from(i),c.unshift(n,a),e.splice(...c);else for(a&&e.splice(n,a);u<i.length;)c=i.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function En(e,n){return e.length>0?(rn(e,e.length,0,n),e):n}const QN={}.hasOwnProperty;function Dk(e){const n={};let a=-1;for(;++a<e.length;)Vz(n,e[a]);return n}function Vz(e,n){let a;for(a in n){const l=(QN.call(e,a)?e[a]:void 0)||(e[a]={}),u=n[a];let c;if(u)for(c in u){QN.call(l,c)||(l[c]=[]);const d=u[c];Yz(l[c],Array.isArray(d)?d:d?[d]:[])}}}function Yz(e,n){let a=-1;const i=[];for(;++a<n.length;)(n[a].add==="after"?e:i).push(n[a]);rn(e,0,0,i)}function Lk(e,n){const a=Number.parseInt(e,n);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function _n(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dt=Ur(/[A-Za-z]/),Nt=Ur(/[\dA-Za-z]/),Wz=Ur(/[#-'*+\--9=?A-Z^-~]/);function $l(e){return e!==null&&(e<32||e===127)}const zh=Ur(/\d/),Kz=Ur(/[\dA-Fa-f]/),Xz=Ur(/[!-/:-@[-`{-~]/);function be(e){return e!==null&&e<-2}function Ve(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const es=Ur(new RegExp("\\p{P}|\\p{S}","u")),sa=Ur(/\s/);function Ur(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function li(e){const n=[];let a=-1,i=0,l=0;for(;++a<e.length;){const u=e.charCodeAt(a);let c="";if(u===37&&Nt(e.charCodeAt(a+1))&&Nt(e.charCodeAt(a+2)))l=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=e.charCodeAt(a+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),l=1):c="�"}else c=String.fromCharCode(u);c&&(n.push(e.slice(i,a),encodeURIComponent(c)),i=a+l+1,c=""),l&&(a+=l,l=0)}return n.join("")+e.slice(i)}function Le(e,n,a,i){const l=i?i-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(g){return Ne(g)?(e.enter(a),d(g)):n(g)}function d(g){return Ne(g)&&u++<l?(e.consume(g),d):(e.exit(a),n(g))}}const Zz={tokenize:Qz};function Qz(e){const n=e.attempt(this.parser.constructs.contentInitial,i,l);let a;return n;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Le(e,n,"linePrefix")}function l(d){return e.enter("paragraph"),u(d)}function u(d){const g=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=g),a=g,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return be(d)?(e.consume(d),e.exit("chunkText"),u):(e.consume(d),c)}}const Jz={tokenize:eq},JN={tokenize:tq};function eq(e){const n=this,a=[];let i=0,l,u,c;return d;function d(N){if(i<a.length){const D=a[i];return n.containerState=D[1],e.attempt(D[0].continuation,g,f)(N)}return f(N)}function g(N){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&A();const D=n.events.length;let U=D,w;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){w=n.events[U][1].end;break}x(i);let M=D;for(;M<n.events.length;)n.events[M][1].end={...w},M++;return rn(n.events,U+1,0,n.events.slice(D)),n.events.length=M,f(N)}return d(N)}function f(N){if(i===a.length){if(!l)return E(N);if(l.currentConstruct&&l.currentConstruct.concrete)return _(N);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(JN,b,h)(N)}function b(N){return l&&A(),x(i),E(N)}function h(N){return n.parser.lazy[n.now().line]=i!==a.length,c=n.now().offset,_(N)}function E(N){return n.containerState={},e.attempt(JN,S,_)(N)}function S(N){return i++,a.push([n.currentConstruct,n.containerState]),E(N)}function _(N){if(N===null){l&&A(),x(0),e.consume(N);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:u}),T(N)}function T(N){if(N===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(N);return}return be(N)?(e.consume(N),C(e.exit("chunkFlow")),i=0,n.interrupt=void 0,d):(e.consume(N),T)}function C(N,D){const U=n.sliceStream(N);if(D&&U.push(null),N.previous=u,u&&(u.next=N),u=N,l.defineSkip(N.start),l.write(U),n.parser.lazy[N.start.line]){let w=l.events.length;for(;w--;)if(l.events[w][1].start.offset<c&&(!l.events[w][1].end||l.events[w][1].end.offset>c))return;const M=n.events.length;let H=M,z,F;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){if(z){F=n.events[H][1].end;break}z=!0}for(x(i),w=M;w<n.events.length;)n.events[w][1].end={...F},w++;rn(n.events,H+1,0,n.events.slice(M)),n.events.length=w}}function x(N){let D=a.length;for(;D-- >N;){const U=a[D];n.containerState=U[1],U[0].exit.call(n,e)}a.length=N}function A(){l.write([null]),u=void 0,l=void 0,n.containerState._closeFlow=void 0}}function tq(e,n,a){return Le(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ni(e){if(e===null||Ve(e)||sa(e))return 1;if(es(e))return 2}function ts(e,n,a){const i=[];let l=-1;for(;++l<e.length;){const u=e[l].resolveAll;u&&!i.includes(u)&&(n=u(n,a),i.push(u))}return n}const qh={name:"attention",resolveAll:nq,tokenize:rq};function nq(e,n){let a=-1,i,l,u,c,d,g,f,b;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(i=a;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[i][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;g=e[i][1].end.offset-e[i][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const h={...e[i][1].end},E={...e[a][1].start};ew(h,-g),ew(E,g),c={type:g>1?"strongSequence":"emphasisSequence",start:h,end:{...e[i][1].end}},d={type:g>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:E},u={type:g>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[a][1].start}},l={type:g>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[a][1].start={...d.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=En(f,[["enter",e[i][1],n],["exit",e[i][1],n]])),f=En(f,[["enter",l,n],["enter",c,n],["exit",c,n],["enter",u,n]]),f=En(f,ts(n.parser.constructs.insideSpan.null,e.slice(i+1,a),n)),f=En(f,[["exit",u,n],["enter",d,n],["exit",d,n],["exit",l,n]]),e[a][1].end.offset-e[a][1].start.offset?(b=2,f=En(f,[["enter",e[a][1],n],["exit",e[a][1],n]])):b=0,rn(e,i-1,a-i+3,f),a=i+f.length-b-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function rq(e,n){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,l=ni(i);let u;return c;function c(g){return u=g,e.enter("attentionSequence"),d(g)}function d(g){if(g===u)return e.consume(g),d;const f=e.exit("attentionSequence"),b=ni(g),h=!b||b===2&&l||a.includes(g),E=!l||l===2&&b||a.includes(i);return f._open=!!(u===42?h:h&&(l||!E)),f._close=!!(u===42?E:E&&(b||!h)),n(g)}}function ew(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const aq={name:"autolink",tokenize:iq};function iq(e,n,a){let i=0;return l;function l(S){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(S){return Dt(S)?(e.consume(S),c):S===64?a(S):f(S)}function c(S){return S===43||S===45||S===46||Nt(S)?(i=1,d(S)):f(S)}function d(S){return S===58?(e.consume(S),i=0,g):(S===43||S===45||S===46||Nt(S))&&i++<32?(e.consume(S),d):(i=0,f(S))}function g(S){return S===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),n):S===null||S===32||S===60||$l(S)?a(S):(e.consume(S),g)}function f(S){return S===64?(e.consume(S),b):Wz(S)?(e.consume(S),f):a(S)}function b(S){return Nt(S)?h(S):a(S)}function h(S){return S===46?(e.consume(S),i=0,b):S===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),n):E(S)}function E(S){if((S===45||Nt(S))&&i++<63){const _=S===45?E:h;return e.consume(S),_}return a(S)}}const mo={partial:!0,tokenize:oq};function oq(e,n,a){return i;function i(u){return Ne(u)?Le(e,l,"linePrefix")(u):l(u)}function l(u){return u===null||be(u)?n(u):a(u)}}const Mk={continuation:{tokenize:sq},exit:uq,name:"blockQuote",tokenize:lq};function lq(e,n,a){const i=this;return l;function l(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return a(c)}function u(c){return Ne(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function sq(e,n,a){const i=this;return l;function l(c){return Ne(c)?Le(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(Mk,n,a)(c)}}function uq(e){e.exit("blockQuote")}const Uk={name:"characterEscape",tokenize:cq};function cq(e,n,a){return i;function i(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),l}function l(u){return Xz(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(u)}}const Fk={name:"characterReference",tokenize:dq};function dq(e,n,a){const i=this;let l=0,u,c;return d;function d(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),g}function g(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),u=31,c=Nt,b(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=Kz,b):(e.enter("characterReferenceValue"),u=7,c=zh,b(h))}function b(h){if(h===59&&l){const E=e.exit("characterReferenceValue");return c===Nt&&!yb(i.sliceSerialize(E))?a(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(h)&&l++<u?(e.consume(h),b):a(h)}}const tw={partial:!0,tokenize:fq},nw={concrete:!0,name:"codeFenced",tokenize:pq};function pq(e,n,a){const i=this,l={partial:!0,tokenize:U};let u=0,c=0,d;return g;function g(w){return f(w)}function f(w){const M=i.events[i.events.length-1];return u=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,d=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(w)}function b(w){return w===d?(c++,e.consume(w),b):c<3?a(w):(e.exit("codeFencedFenceSequence"),Ne(w)?Le(e,h,"whitespace")(w):h(w))}function h(w){return w===null||be(w)?(e.exit("codeFencedFence"),i.interrupt?n(w):e.check(tw,T,D)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(w))}function E(w){return w===null||be(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(w)):Ne(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Le(e,S,"whitespace")(w)):w===96&&w===d?a(w):(e.consume(w),E)}function S(w){return w===null||be(w)?h(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(w))}function _(w){return w===null||be(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(w)):w===96&&w===d?a(w):(e.consume(w),_)}function T(w){return e.attempt(l,D,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return u>0&&Ne(w)?Le(e,A,"linePrefix",u+1)(w):A(w)}function A(w){return w===null||be(w)?e.check(tw,T,D)(w):(e.enter("codeFlowValue"),N(w))}function N(w){return w===null||be(w)?(e.exit("codeFlowValue"),A(w)):(e.consume(w),N)}function D(w){return e.exit("codeFenced"),n(w)}function U(w,M,H){let z=0;return F;function F(se){return w.enter("lineEnding"),w.consume(se),w.exit("lineEnding"),W}function W(se){return w.enter("codeFencedFence"),Ne(se)?Le(w,Q,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(se):Q(se)}function Q(se){return se===d?(w.enter("codeFencedFenceSequence"),ne(se)):H(se)}function ne(se){return se===d?(z++,w.consume(se),ne):z>=c?(w.exit("codeFencedFenceSequence"),Ne(se)?Le(w,oe,"whitespace")(se):oe(se)):H(se)}function oe(se){return se===null||be(se)?(w.exit("codeFencedFence"),M(se)):H(se)}}}function fq(e,n,a){const i=this;return l;function l(c){return c===null?a(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}const ph={name:"codeIndented",tokenize:mq},gq={partial:!0,tokenize:hq};function mq(e,n,a){const i=this;return l;function l(f){return e.enter("codeIndented"),Le(e,u,"linePrefix",5)(f)}function u(f){const b=i.events[i.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(f):a(f)}function c(f){return f===null?g(f):be(f)?e.attempt(gq,c,g)(f):(e.enter("codeFlowValue"),d(f))}function d(f){return f===null||be(f)?(e.exit("codeFlowValue"),c(f)):(e.consume(f),d)}function g(f){return e.exit("codeIndented"),n(f)}}function hq(e,n,a){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?a(c):be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):Le(e,u,"linePrefix",5)(c)}function u(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(c):be(c)?l(c):a(c)}}const bq={name:"codeText",previous:Eq,resolve:yq,tokenize:Sq};function yq(e){let n=e.length-4,a=3,i,l;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=a;++i<n;)if(e[i][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[n][1].type="codeTextPadding",a+=2,n-=2;break}}for(i=a-1,n++;++i<=n;)l===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(l=i):(i===n||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),n-=i-l-2,i=l+2),l=void 0);return e}function Eq(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Sq(e,n,a){let i=0,l,u;return c;function c(h){return e.enter("codeText"),e.enter("codeTextSequence"),d(h)}function d(h){return h===96?(e.consume(h),i++,d):(e.exit("codeTextSequence"),g(h))}function g(h){return h===null?a(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),g):h===96?(u=e.enter("codeTextSequence"),l=0,b(h)):be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),g):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||be(h)?(e.exit("codeTextData"),g(h)):(e.consume(h),f)}function b(h){return h===96?(e.consume(h),l++,b):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(u.type="codeTextData",f(h))}}class vq{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,a){const i=a??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,a,i){const l=a||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&ro(this.left,i),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),ro(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),ro(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const a=this.left.splice(n,Number.POSITIVE_INFINITY);ro(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);ro(this.left,a.reverse())}}}function ro(e,n){let a=0;if(n.length<1e4)e.push(...n);else for(;a<n.length;)e.push(...n.slice(a,a+1e4)),a+=1e4}function Bk(e){const n={};let a=-1,i,l,u,c,d,g,f;const b=new vq(e);for(;++a<b.length;){for(;a in n;)a=n[a];if(i=b.get(a),a&&i[1].type==="chunkFlow"&&b.get(a-1)[1].type==="listItemPrefix"&&(g=i[1]._tokenizer.events,u=0,u<g.length&&g[u][1].type==="lineEndingBlank"&&(u+=2),u<g.length&&g[u][1].type==="content"))for(;++u<g.length&&g[u][1].type!=="content";)g[u][1].type==="chunkText"&&(g[u][1]._isInFirstContentOfListItem=!0,u++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,xq(b,a)),a=n[a],f=!0);else if(i[1]._container){for(u=a,l=void 0;u--;)if(c=b.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(b.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(i[1].end={...b.get(l)[1].start},d=b.slice(l,a),d.unshift(i),b.splice(l,a-l+1,d))}}return rn(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!f}function xq(e,n){const a=e.get(n)[1],i=e.get(n)[2];let l=n-1;const u=[];let c=a._tokenizer;c||(c=i.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,g=[],f={};let b,h,E=-1,S=a,_=0,T=0;const C=[T];for(;S;){for(;e.get(++l)[1]!==S;);u.push(l),S._tokenizer||(b=i.sliceStream(S),S.next||b.push(null),h&&c.defineSkip(S.start),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),h=S,S=S.next}for(S=a;++E<d.length;)d[E][0]==="exit"&&d[E-1][0]==="enter"&&d[E][1].type===d[E-1][1].type&&d[E][1].start.line!==d[E][1].end.line&&(T=E+1,C.push(T),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(c.events=[],S?(S._tokenizer=void 0,S.previous=void 0):C.pop(),E=C.length;E--;){const x=d.slice(C[E],C[E+1]),A=u.pop();g.push([A,A+x.length-1]),e.splice(A,2,x)}for(g.reverse(),E=-1;++E<g.length;)f[_+g[E][0]]=_+g[E][1],_+=g[E][1]-g[E][0]-1;return f}const Tq={resolve:_q,tokenize:Rq},Aq={partial:!0,tokenize:Nq};function _q(e){return Bk(e),e}function Rq(e,n){let a;return i;function i(d){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?u(d):be(d)?e.check(Aq,c,u)(d):(e.consume(d),l)}function u(d){return e.exit("chunkContent"),e.exit("content"),n(d)}function c(d){return e.consume(d),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,l}}function Nq(e,n,a){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Le(e,u,"linePrefix")}function u(c){if(c===null||be(c))return a(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,a,n)(c)}}function jk(e,n,a,i,l,u,c,d,g){const f=g||Number.POSITIVE_INFINITY;let b=0;return h;function h(x){return x===60?(e.enter(i),e.enter(l),e.enter(u),e.consume(x),e.exit(u),E):x===null||x===32||x===41||$l(x)?a(x):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),T(x))}function E(x){return x===62?(e.enter(u),e.consume(x),e.exit(u),e.exit(l),e.exit(i),n):(e.enter(d),e.enter("chunkString",{contentType:"string"}),S(x))}function S(x){return x===62?(e.exit("chunkString"),e.exit(d),E(x)):x===null||x===60||be(x)?a(x):(e.consume(x),x===92?_:S)}function _(x){return x===60||x===62||x===92?(e.consume(x),S):S(x)}function T(x){return!b&&(x===null||x===41||Ve(x))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),n(x)):b<f&&x===40?(e.consume(x),b++,T):x===41?(e.consume(x),b--,T):x===null||x===32||x===40||$l(x)?a(x):(e.consume(x),x===92?C:T)}function C(x){return x===40||x===41||x===92?(e.consume(x),T):T(x)}}function zk(e,n,a,i,l,u){const c=this;let d=0,g;return f;function f(S){return e.enter(i),e.enter(l),e.consume(S),e.exit(l),e.enter(u),b}function b(S){return d>999||S===null||S===91||S===93&&!g||S===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?a(S):S===93?(e.exit(u),e.enter(l),e.consume(S),e.exit(l),e.exit(i),n):be(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||S===91||S===93||be(S)||d++>999?(e.exit("chunkString"),b(S)):(e.consume(S),g||(g=!Ne(S)),S===92?E:h)}function E(S){return S===91||S===92||S===93?(e.consume(S),d++,h):h(S)}}function qk(e,n,a,i,l,u){let c;return d;function d(E){return E===34||E===39||E===40?(e.enter(i),e.enter(l),e.consume(E),e.exit(l),c=E===40?41:E,g):a(E)}function g(E){return E===c?(e.enter(l),e.consume(E),e.exit(l),e.exit(i),n):(e.enter(u),f(E))}function f(E){return E===c?(e.exit(u),g(c)):E===null?a(E):be(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Le(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===c||E===null||be(E)?(e.exit("chunkString"),f(E)):(e.consume(E),E===92?h:b)}function h(E){return E===c||E===92?(e.consume(E),b):b(E)}}function oo(e,n){let a;return i;function i(l){return be(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a=!0,i):Ne(l)?Le(e,i,a?"linePrefix":"lineSuffix")(l):n(l)}}const wq={name:"definition",tokenize:Cq},kq={partial:!0,tokenize:Iq};function Cq(e,n,a){const i=this;let l;return u;function u(S){return e.enter("definition"),c(S)}function c(S){return zk.call(i,e,d,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return l=_n(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),g):a(S)}function g(S){return Ve(S)?oo(e,f)(S):f(S)}function f(S){return jk(e,b,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function b(S){return e.attempt(kq,h,h)(S)}function h(S){return Ne(S)?Le(e,E,"whitespace")(S):E(S)}function E(S){return S===null||be(S)?(e.exit("definition"),i.parser.defined.push(l),n(S)):a(S)}}function Iq(e,n,a){return i;function i(d){return Ve(d)?oo(e,l)(d):a(d)}function l(d){return qk(e,u,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return Ne(d)?Le(e,c,"whitespace")(d):c(d)}function c(d){return d===null||be(d)?n(d):a(d)}}const Oq={name:"hardBreakEscape",tokenize:Dq};function Dq(e,n,a){return i;function i(u){return e.enter("hardBreakEscape"),e.consume(u),l}function l(u){return be(u)?(e.exit("hardBreakEscape"),n(u)):a(u)}}const Lq={name:"headingAtx",resolve:Mq,tokenize:Uq};function Mq(e,n){let a=e.length-2,i=3,l,u;return e[i][1].type==="whitespace"&&(i+=2),a-2>i&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&e[a-2][1].type==="whitespace")&&(a-=i+1===a?2:4),a>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},u={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},rn(e,i,a-i+1,[["enter",l,n],["enter",u,n],["exit",u,n],["exit",l,n]])),e}function Uq(e,n,a){let i=0;return l;function l(b){return e.enter("atxHeading"),u(b)}function u(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&i++<6?(e.consume(b),c):b===null||Ve(b)?(e.exit("atxHeadingSequence"),d(b)):a(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),g(b)):b===null||be(b)?(e.exit("atxHeading"),n(b)):Ne(b)?Le(e,d,"whitespace")(b):(e.enter("atxHeadingText"),f(b))}function g(b){return b===35?(e.consume(b),g):(e.exit("atxHeadingSequence"),d(b))}function f(b){return b===null||b===35||Ve(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),f)}}const Fq=["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"],rw=["pre","script","style","textarea"],Bq={concrete:!0,name:"htmlFlow",resolveTo:qq,tokenize:Pq},jq={partial:!0,tokenize:Hq},zq={partial:!0,tokenize:Gq};function qq(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Pq(e,n,a){const i=this;let l,u,c,d,g;return f;function f(k){return b(k)}function b(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),h}function h(k){return k===33?(e.consume(k),E):k===47?(e.consume(k),u=!0,T):k===63?(e.consume(k),l=3,i.interrupt?n:I):Dt(k)?(e.consume(k),c=String.fromCharCode(k),C):a(k)}function E(k){return k===45?(e.consume(k),l=2,S):k===91?(e.consume(k),l=5,d=0,_):Dt(k)?(e.consume(k),l=4,i.interrupt?n:I):a(k)}function S(k){return k===45?(e.consume(k),i.interrupt?n:I):a(k)}function _(k){const re="CDATA[";return k===re.charCodeAt(d++)?(e.consume(k),d===re.length?i.interrupt?n:Q:_):a(k)}function T(k){return Dt(k)?(e.consume(k),c=String.fromCharCode(k),C):a(k)}function C(k){if(k===null||k===47||k===62||Ve(k)){const re=k===47,ue=c.toLowerCase();return!re&&!u&&rw.includes(ue)?(l=1,i.interrupt?n(k):Q(k)):Fq.includes(c.toLowerCase())?(l=6,re?(e.consume(k),x):i.interrupt?n(k):Q(k)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(k):u?A(k):N(k))}return k===45||Nt(k)?(e.consume(k),c+=String.fromCharCode(k),C):a(k)}function x(k){return k===62?(e.consume(k),i.interrupt?n:Q):a(k)}function A(k){return Ne(k)?(e.consume(k),A):F(k)}function N(k){return k===47?(e.consume(k),F):k===58||k===95||Dt(k)?(e.consume(k),D):Ne(k)?(e.consume(k),N):F(k)}function D(k){return k===45||k===46||k===58||k===95||Nt(k)?(e.consume(k),D):U(k)}function U(k){return k===61?(e.consume(k),w):Ne(k)?(e.consume(k),U):N(k)}function w(k){return k===null||k===60||k===61||k===62||k===96?a(k):k===34||k===39?(e.consume(k),g=k,M):Ne(k)?(e.consume(k),w):H(k)}function M(k){return k===g?(e.consume(k),g=null,z):k===null||be(k)?a(k):(e.consume(k),M)}function H(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ve(k)?U(k):(e.consume(k),H)}function z(k){return k===47||k===62||Ne(k)?N(k):a(k)}function F(k){return k===62?(e.consume(k),W):a(k)}function W(k){return k===null||be(k)?Q(k):Ne(k)?(e.consume(k),W):a(k)}function Q(k){return k===45&&l===2?(e.consume(k),G):k===60&&l===1?(e.consume(k),ee):k===62&&l===4?(e.consume(k),O):k===63&&l===3?(e.consume(k),I):k===93&&l===5?(e.consume(k),fe):be(k)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(jq,V,ne)(k)):k===null||be(k)?(e.exit("htmlFlowData"),ne(k)):(e.consume(k),Q)}function ne(k){return e.check(zq,oe,V)(k)}function oe(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),se}function se(k){return k===null||be(k)?ne(k):(e.enter("htmlFlowData"),Q(k))}function G(k){return k===45?(e.consume(k),I):Q(k)}function ee(k){return k===47?(e.consume(k),c="",ae):Q(k)}function ae(k){if(k===62){const re=c.toLowerCase();return rw.includes(re)?(e.consume(k),O):Q(k)}return Dt(k)&&c.length<8?(e.consume(k),c+=String.fromCharCode(k),ae):Q(k)}function fe(k){return k===93?(e.consume(k),I):Q(k)}function I(k){return k===62?(e.consume(k),O):k===45&&l===2?(e.consume(k),I):Q(k)}function O(k){return k===null||be(k)?(e.exit("htmlFlowData"),V(k)):(e.consume(k),O)}function V(k){return e.exit("htmlFlow"),n(k)}}function Gq(e,n,a){const i=this;return l;function l(c){return be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):a(c)}function u(c){return i.parser.lazy[i.now().line]?a(c):n(c)}}function Hq(e,n,a){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(mo,n,a)}}const $q={name:"htmlText",tokenize:Vq};function Vq(e,n,a){const i=this;let l,u,c;return d;function d(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),g}function g(I){return I===33?(e.consume(I),f):I===47?(e.consume(I),U):I===63?(e.consume(I),N):Dt(I)?(e.consume(I),H):a(I)}function f(I){return I===45?(e.consume(I),b):I===91?(e.consume(I),u=0,_):Dt(I)?(e.consume(I),A):a(I)}function b(I){return I===45?(e.consume(I),S):a(I)}function h(I){return I===null?a(I):I===45?(e.consume(I),E):be(I)?(c=h,ee(I)):(e.consume(I),h)}function E(I){return I===45?(e.consume(I),S):h(I)}function S(I){return I===62?G(I):I===45?E(I):h(I)}function _(I){const O="CDATA[";return I===O.charCodeAt(u++)?(e.consume(I),u===O.length?T:_):a(I)}function T(I){return I===null?a(I):I===93?(e.consume(I),C):be(I)?(c=T,ee(I)):(e.consume(I),T)}function C(I){return I===93?(e.consume(I),x):T(I)}function x(I){return I===62?G(I):I===93?(e.consume(I),x):T(I)}function A(I){return I===null||I===62?G(I):be(I)?(c=A,ee(I)):(e.consume(I),A)}function N(I){return I===null?a(I):I===63?(e.consume(I),D):be(I)?(c=N,ee(I)):(e.consume(I),N)}function D(I){return I===62?G(I):N(I)}function U(I){return Dt(I)?(e.consume(I),w):a(I)}function w(I){return I===45||Nt(I)?(e.consume(I),w):M(I)}function M(I){return be(I)?(c=M,ee(I)):Ne(I)?(e.consume(I),M):G(I)}function H(I){return I===45||Nt(I)?(e.consume(I),H):I===47||I===62||Ve(I)?z(I):a(I)}function z(I){return I===47?(e.consume(I),G):I===58||I===95||Dt(I)?(e.consume(I),F):be(I)?(c=z,ee(I)):Ne(I)?(e.consume(I),z):G(I)}function F(I){return I===45||I===46||I===58||I===95||Nt(I)?(e.consume(I),F):W(I)}function W(I){return I===61?(e.consume(I),Q):be(I)?(c=W,ee(I)):Ne(I)?(e.consume(I),W):z(I)}function Q(I){return I===null||I===60||I===61||I===62||I===96?a(I):I===34||I===39?(e.consume(I),l=I,ne):be(I)?(c=Q,ee(I)):Ne(I)?(e.consume(I),Q):(e.consume(I),oe)}function ne(I){return I===l?(e.consume(I),l=void 0,se):I===null?a(I):be(I)?(c=ne,ee(I)):(e.consume(I),ne)}function oe(I){return I===null||I===34||I===39||I===60||I===61||I===96?a(I):I===47||I===62||Ve(I)?z(I):(e.consume(I),oe)}function se(I){return I===47||I===62||Ve(I)?z(I):a(I)}function G(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),n):a(I)}function ee(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ae}function ae(I){return Ne(I)?Le(e,fe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):fe(I)}function fe(I){return e.enter("htmlTextData"),c(I)}}const Eb={name:"labelEnd",resolveAll:Xq,resolveTo:Zq,tokenize:Qq},Yq={tokenize:Jq},Wq={tokenize:eP},Kq={tokenize:tP};function Xq(e){let n=-1;const a=[];for(;++n<e.length;){const i=e[n][1];if(a.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",n+=l}}return e.length!==a.length&&rn(e,0,e.length,a),e}function Zq(e,n){let a=e.length,i=0,l,u,c,d;for(;a--;)if(l=e[a][1],u){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[a][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[a][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(u=a,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=a);const g={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[u+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",g,n],["enter",f,n]],d=En(d,e.slice(u+1,u+i+3)),d=En(d,[["enter",b,n]]),d=En(d,ts(n.parser.constructs.insideSpan.null,e.slice(u+i+4,c-3),n)),d=En(d,[["exit",b,n],e[c-2],e[c-1],["exit",f,n]]),d=En(d,e.slice(c+1)),d=En(d,[["exit",g,n]]),rn(e,u,e.length,d),e}function Qq(e,n,a){const i=this;let l=i.events.length,u,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){u=i.events[l][1];break}return d;function d(E){return u?u._inactive?h(E):(c=i.parser.defined.includes(_n(i.sliceSerialize({start:u.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),g):a(E)}function g(E){return E===40?e.attempt(Yq,b,c?b:h)(E):E===91?e.attempt(Wq,b,c?f:h)(E):c?b(E):h(E)}function f(E){return e.attempt(Kq,b,h)(E)}function b(E){return n(E)}function h(E){return u._balanced=!0,a(E)}}function Jq(e,n,a){return i;function i(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),l}function l(h){return Ve(h)?oo(e,u)(h):u(h)}function u(h){return h===41?b(h):jk(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function c(h){return Ve(h)?oo(e,g)(h):b(h)}function d(h){return a(h)}function g(h){return h===34||h===39||h===40?qk(e,f,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):b(h)}function f(h){return Ve(h)?oo(e,b)(h):b(h)}function b(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),n):a(h)}}function eP(e,n,a){const i=this;return l;function l(d){return zk.call(i,e,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return i.parser.defined.includes(_n(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(d):a(d)}function c(d){return a(d)}}function tP(e,n,a){return i;function i(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),l}function l(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),n):a(u)}}const nP={name:"labelStartImage",resolveAll:Eb.resolveAll,tokenize:rP};function rP(e,n,a){const i=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),u}function u(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):a(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(d):n(d)}}const aP={name:"labelStartLink",resolveAll:Eb.resolveAll,tokenize:iP};function iP(e,n,a){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(c):n(c)}}const fh={name:"lineEnding",tokenize:oP};function oP(e,n){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Le(e,n,"linePrefix")}}const Bl={name:"thematicBreak",tokenize:lP};function lP(e,n,a){let i=0,l;return u;function u(f){return e.enter("thematicBreak"),c(f)}function c(f){return l=f,d(f)}function d(f){return f===l?(e.enter("thematicBreakSequence"),g(f)):i>=3&&(f===null||be(f))?(e.exit("thematicBreak"),n(f)):a(f)}function g(f){return f===l?(e.consume(f),i++,g):(e.exit("thematicBreakSequence"),Ne(f)?Le(e,d,"whitespace")(f):d(f))}}const Ht={continuation:{tokenize:dP},exit:fP,name:"list",tokenize:cP},sP={partial:!0,tokenize:gP},uP={partial:!0,tokenize:pP};function cP(e,n,a){const i=this,l=i.events[i.events.length-1];let u=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return d;function d(S){const _=i.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!i.containerState.marker||S===i.containerState.marker:zh(S)){if(i.containerState.type||(i.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),S===42||S===45?e.check(Bl,a,f)(S):f(S);if(!i.interrupt||S===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),g(S)}return a(S)}function g(S){return zh(S)&&++c<10?(e.consume(S),g):(!i.interrupt||c<2)&&(i.containerState.marker?S===i.containerState.marker:S===41||S===46)?(e.exit("listItemValue"),f(S)):a(S)}function f(S){return e.enter("listItemMarker"),e.consume(S),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||S,e.check(mo,i.interrupt?a:b,e.attempt(sP,E,h))}function b(S){return i.containerState.initialBlankLine=!0,u++,E(S)}function h(S){return Ne(S)?(e.enter("listItemPrefixWhitespace"),e.consume(S),e.exit("listItemPrefixWhitespace"),E):a(S)}function E(S){return i.containerState.size=u+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(S)}}function dP(e,n,a){const i=this;return i.containerState._closeFlow=void 0,e.check(mo,l,u);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Le(e,n,"listItemIndent",i.containerState.size+1)(d)}function u(d){return i.containerState.furtherBlankLines||!Ne(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(uP,n,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Le(e,e.attempt(Ht,n,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function pP(e,n,a){const i=this;return Le(e,l,"listItemIndent",i.containerState.size+1);function l(u){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(u):a(u)}}function fP(e){e.exit(this.containerState.type)}function gP(e,n,a){const i=this;return Le(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(u){const c=i.events[i.events.length-1];return!Ne(u)&&c&&c[1].type==="listItemPrefixWhitespace"?n(u):a(u)}}const aw={name:"setextUnderline",resolveTo:mP,tokenize:hP};function mP(e,n){let a=e.length,i,l,u;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){i=a;break}e[a][1].type==="paragraph"&&(l=a)}else e[a][1].type==="content"&&e.splice(a,1),!u&&e[a][1].type==="definition"&&(u=a);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",u?(e.splice(l,0,["enter",c,n]),e.splice(u+1,0,["exit",e[i][1],n]),e[i][1].end={...e[u][1].end}):e[i][1]=c,e.push(["exit",c,n]),e}function hP(e,n,a){const i=this;let l;return u;function u(f){let b=i.events.length,h;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){h=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||h)?(e.enter("setextHeadingLine"),l=f,c(f)):a(f)}function c(f){return e.enter("setextHeadingLineSequence"),d(f)}function d(f){return f===l?(e.consume(f),d):(e.exit("setextHeadingLineSequence"),Ne(f)?Le(e,g,"lineSuffix")(f):g(f))}function g(f){return f===null||be(f)?(e.exit("setextHeadingLine"),n(f)):a(f)}}const bP={tokenize:yP};function yP(e){const n=this,a=e.attempt(mo,i,e.attempt(this.parser.constructs.flowInitial,l,Le(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Tq,l)),"linePrefix")));return a;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),n.currentConstruct=void 0,a}function l(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n.currentConstruct=void 0,a}}const EP={resolveAll:Gk()},SP=Pk("string"),vP=Pk("text");function Pk(e){return{resolveAll:Gk(e==="text"?xP:void 0),tokenize:n};function n(a){const i=this,l=this.parser.constructs[e],u=a.attempt(l,c,d);return c;function c(b){return f(b)?u(b):d(b)}function d(b){if(b===null){a.consume(b);return}return a.enter("data"),a.consume(b),g}function g(b){return f(b)?(a.exit("data"),u(b)):(a.consume(b),g)}function f(b){if(b===null)return!0;const h=l[b];let E=-1;if(h)for(;++E<h.length;){const S=h[E];if(!S.previous||S.previous.call(i,i.previous))return!0}return!1}}}function Gk(e){return n;function n(a,i){let l=-1,u;for(;++l<=a.length;)u===void 0?a[l]&&a[l][1].type==="data"&&(u=l,l++):(!a[l]||a[l][1].type!=="data")&&(l!==u+2&&(a[u][1].end=a[l-1][1].end,a.splice(u+2,l-u-2),l=u+2),u=void 0);return e?e(a,i):a}}function xP(e,n){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const i=e[a-1][1],l=n.sliceStream(i);let u=l.length,c=-1,d=0,g;for(;u--;){const f=l[u];if(typeof f=="string"){for(c=f.length;f.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(f===-2)g=!0,d++;else if(f!==-1){u++;break}}if(n._contentTypeTextTrailing&&a===e.length&&(d=0),d){const f={type:a===e.length||g||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:i.start._bufferIndex+c,_index:i.start._index+u,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(a,0,["enter",f,n],["exit",f,n]),a+=2)}a++}return e}const TP={42:Ht,43:Ht,45:Ht,48:Ht,49:Ht,50:Ht,51:Ht,52:Ht,53:Ht,54:Ht,55:Ht,56:Ht,57:Ht,62:Mk},AP={91:wq},_P={[-2]:ph,[-1]:ph,32:ph},RP={35:Lq,42:Bl,45:[aw,Bl],60:Bq,61:aw,95:Bl,96:nw,126:nw},NP={38:Fk,92:Uk},wP={[-5]:fh,[-4]:fh,[-3]:fh,33:nP,38:Fk,42:qh,60:[aq,$q],91:aP,92:[Oq,Uk],93:Eb,95:qh,96:bq},kP={null:[qh,EP]},CP={null:[42,95]},IP={null:[]},OP=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:CP,contentInitial:AP,disable:IP,document:TP,flow:RP,flowInitial:_P,insideSpan:kP,string:NP,text:wP},Symbol.toStringTag,{value:"Module"}));function DP(e,n,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const l={},u=[];let c=[],d=[];const g={attempt:M(U),check:M(w),consume:A,enter:N,exit:D,interrupt:M(w,{interrupt:!0})},f={code:null,containerState:{},defineSkip:T,events:[],now:_,parser:e,previous:null,sliceSerialize:E,sliceStream:S,write:h};let b=n.tokenize.call(f,g);return n.resolveAll&&u.push(n),f;function h(W){return c=En(c,W),C(),c[c.length-1]!==null?[]:(H(n,0),f.events=ts(u,f.events,f),f.events)}function E(W,Q){return MP(S(W),Q)}function S(W){return LP(c,W)}function _(){const{_bufferIndex:W,_index:Q,line:ne,column:oe,offset:se}=i;return{_bufferIndex:W,_index:Q,line:ne,column:oe,offset:se}}function T(W){l[W.line]=W.column,F()}function C(){let W;for(;i._index<c.length;){const Q=c[i._index];if(typeof Q=="string")for(W=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===W&&i._bufferIndex<Q.length;)x(Q.charCodeAt(i._bufferIndex));else x(Q)}}function x(W){b=b(W)}function A(W){be(W)?(i.line++,i.column=1,i.offset+=W===-3?2:1,F()):W!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=W}function N(W,Q){const ne=Q||{};return ne.type=W,ne.start=_(),f.events.push(["enter",ne,f]),d.push(ne),ne}function D(W){const Q=d.pop();return Q.end=_(),f.events.push(["exit",Q,f]),Q}function U(W,Q){H(W,Q.from)}function w(W,Q){Q.restore()}function M(W,Q){return ne;function ne(oe,se,G){let ee,ae,fe,I;return Array.isArray(oe)?V(oe):"tokenize"in oe?V([oe]):O(oe);function O(ce){return he;function he(Ie){const we=Ie!==null&&ce[Ie],it=Ie!==null&&ce.null,ft=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(it)?it:it?[it]:[]];return V(ft)(Ie)}}function V(ce){return ee=ce,ae=0,ce.length===0?G:k(ce[ae])}function k(ce){return he;function he(Ie){return I=z(),fe=ce,ce.partial||(f.currentConstruct=ce),ce.name&&f.parser.constructs.disable.null.includes(ce.name)?ue():ce.tokenize.call(Q?Object.assign(Object.create(f),Q):f,g,re,ue)(Ie)}}function re(ce){return W(fe,I),se}function ue(ce){return I.restore(),++ae<ee.length?k(ee[ae]):G}}}function H(W,Q){W.resolveAll&&!u.includes(W)&&u.push(W),W.resolve&&rn(f.events,Q,f.events.length-Q,W.resolve(f.events.slice(Q),f)),W.resolveTo&&(f.events=W.resolveTo(f.events,f))}function z(){const W=_(),Q=f.previous,ne=f.currentConstruct,oe=f.events.length,se=Array.from(d);return{from:oe,restore:G};function G(){i=W,f.previous=Q,f.currentConstruct=ne,f.events.length=oe,d=se,F()}}function F(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function LP(e,n){const a=n.start._index,i=n.start._bufferIndex,l=n.end._index,u=n.end._bufferIndex;let c;if(a===l)c=[e[a].slice(i,u)];else{if(c=e.slice(a,l),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}u>0&&c.push(e[l].slice(0,u))}return c}function MP(e,n){let a=-1;const i=[];let l;for(;++a<e.length;){const u=e[a];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
288
288
|
`;break}case-3:{c=`\r
|
|
289
|
-
`;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&l)continue;c=" ";break}default:c=String.fromCharCode(u)}l=u===-2,i.push(c)}return i.join("")}function UP(e){const i={constructs:Dk([OP,...(e||{}).extensions||[]]),content:l(Zz),defined:[],document:l(Jz),flow:l(bP),lazy:{},string:l(SP),text:l(vP)};return i;function l(u){return c;function c(d){return DP(i,u,d)}}}function FP(e){for(;!Bk(e););return e}const iw=/[\0\t\n\r]/g;function BP(){let e=1,n="",a=!0,i;return l;function l(u,c,d){const g=[];let f,b,h,E,S;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),h=0,n="",a&&(u.charCodeAt(0)===65279&&h++,a=void 0);h<u.length;){if(iw.lastIndex=h,f=iw.exec(u),E=f&&f.index!==void 0?f.index:u.length,S=u.charCodeAt(E),!f){n=u.slice(h);break}if(S===10&&h===E&&i)g.push(-3),i=void 0;else switch(i&&(g.push(-5),i=void 0),h<E&&(g.push(u.slice(h,E)),e+=E-h),S){case 0:{g.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,g.push(-2);e++<b;)g.push(-1);break}case 10:{g.push(-4),e=1;break}default:i=!0,e=1}h=E+1}return d&&(i&&g.push(-5),n&&g.push(n),g.push(null)),g}}const jP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zP(e){return e.replace(jP,qP)}function qP(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const l=a.charCodeAt(1),u=l===120||l===88;return Lk(a.slice(u?2:1),u?16:10)}return yb(a)||e}const Hk={}.hasOwnProperty;function PP(e,n,a){return typeof n!="string"&&(a=n,n=void 0),GP(a)(FP(UP(a).document().write(BP()(e,n,!0))))}function GP(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Fn),autolinkProtocol:z,autolinkEmail:z,atxHeading:u(Rn),blockQuote:u(it),characterEscape:z,characterReference:z,codeFenced:u(ft),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(ft,c),codeText:u(Un,c),codeTextData:z,data:z,codeFlowValue:z,definition:u(an),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(vn),hardBreakEscape:u(kt),hardBreakTrailing:u(kt),htmlFlow:u(Fr,c),htmlFlowData:z,htmlText:u(Fr,c),htmlTextData:z,image:u(on),label:c,link:u(Fn),listItem:u(Bn),listItemValue:E,listOrdered:u(Mt,h),listUnordered:u(Mt),paragraph:u(Nn),reference:k,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Rn),strong:u(Br),thematicBreak:u(ht)},exit:{atxHeading:g(),atxHeadingSequence:U,autolink:g(),autolinkEmail:we,autolinkProtocol:Ie,blockQuote:g(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:ce,characterReference:he,codeFenced:g(C),codeFencedFence:T,codeFencedFenceInfo:S,codeFencedFenceMeta:_,codeFlowValue:F,codeIndented:g(x),codeText:g(se),codeTextData:F,data:F,definition:g(),definitionDestinationString:D,definitionLabelString:A,definitionTitleString:N,emphasis:g(),hardBreakEscape:g(Q),hardBreakTrailing:g(Q),htmlFlow:g(ne),htmlFlowData:F,htmlText:g(oe),htmlTextData:F,image:g(ee),label:fe,labelText:ae,lineEnding:W,link:g(G),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:re,resourceDestinationString:I,resourceTitleString:O,resource:V,setextHeading:g(H),setextHeadingLineSequence:M,setextHeadingText:w,strong:g(),thematicBreak:g()}};$k(n,(e||{}).mdastExtensions||[]);const a={};return i;function i(K){let ie={type:"root",children:[]};const de={stack:[ie],tokenStack:[],config:n,enter:d,exit:f,buffer:c,resume:b,data:a},Ee=[];let Oe=-1;for(;++Oe<K.length;)if(K[Oe][1].type==="listOrdered"||K[Oe][1].type==="listUnordered")if(K[Oe][0]==="enter")Ee.push(Oe);else{const bt=Ee.pop();Oe=l(K,bt,Oe)}for(Oe=-1;++Oe<K.length;){const bt=n[K[Oe][0]];Hk.call(bt,K[Oe][1].type)&&bt[K[Oe][1].type].call(Object.assign({sliceSerialize:K[Oe][2].sliceSerialize},de),K[Oe][1])}if(de.tokenStack.length>0){const bt=de.tokenStack[de.tokenStack.length-1];(bt[1]||ow).call(de,void 0,bt[0])}for(ie.position={start:Or(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Or(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<n.transforms.length;)ie=n.transforms[Oe](ie)||ie;return ie}function l(K,ie,de){let Ee=ie-1,Oe=-1,bt=!1,yt,nt,He,Xe;for(;++Ee<=de;){const Be=K[Ee];switch(Be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Be[0]==="enter"?Oe++:Oe--,Xe=void 0;break}case"lineEndingBlank":{Be[0]==="enter"&&(yt&&!Xe&&!Oe&&!He&&(He=Ee),Xe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xe=void 0}if(!Oe&&Be[0]==="enter"&&Be[1].type==="listItemPrefix"||Oe===-1&&Be[0]==="exit"&&(Be[1].type==="listUnordered"||Be[1].type==="listOrdered")){if(yt){let Ut=Ee;for(nt=void 0;Ut--;){const At=K[Ut];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;nt&&(K[nt][1].type="lineEndingBlank",bt=!0),At[1].type="lineEnding",nt=Ut}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}He&&(!nt||He<nt)&&(yt._spread=!0),yt.end=Object.assign({},nt?K[nt][1].start:Be[1].end),K.splice(nt||Ee,0,["exit",yt,Be[2]]),Ee++,de++}if(Be[1].type==="listItemPrefix"){const Ut={type:"listItem",_spread:!1,start:Object.assign({},Be[1].start),end:void 0};yt=Ut,K.splice(Ee,0,["enter",Ut,Be[2]]),Ee++,de++,He=void 0,Xe=!0}}}return K[ie][1]._spread=bt,de}function u(K,ie){return de;function de(Ee){d.call(this,K(Ee),Ee),ie&&ie.call(this,Ee)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(K,ie,de){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ie,de||void 0]),K.position={start:Or(ie.start),end:void 0}}function g(K){return ie;function ie(de){K&&K.call(this,de),f.call(this,de)}}function f(K,ie){const de=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==K.type&&(ie?ie.call(this,K,Ee[0]):(Ee[1]||ow).call(this,K,Ee[0]));else throw new Error("Cannot close `"+K.type+"` ("+io({start:K.start,end:K.end})+"): it’s not open");de.position.end=Or(K.end)}function b(){return bb(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function E(K){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function S(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=K}function _(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=K}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K.replace(/(\r?\n|\r)$/g,"")}function A(K){const ie=this.resume(),de=this.stack[this.stack.length-1];de.label=ie,de.identifier=_n(this.sliceSerialize(K)).toLowerCase()}function N(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.title=K}function D(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.url=K}function U(K){const ie=this.stack[this.stack.length-1];if(!ie.depth){const de=this.sliceSerialize(K).length;ie.depth=de}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function M(K){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function z(K){const de=this.stack[this.stack.length-1].children;let Ee=de[de.length-1];(!Ee||Ee.type!=="text")&&(Ee=Qe(),Ee.position={start:Or(K.start),end:void 0},de.push(Ee)),this.stack.push(Ee)}function F(K){const ie=this.stack.pop();ie.value+=this.sliceSerialize(K),ie.position.end=Or(K.end)}function W(K){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=ie.children[ie.children.length-1];de.position.end=Or(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(ie.type)&&(z.call(this,K),F.call(this,K))}function Q(){this.data.atHardBreak=!0}function ne(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K}function oe(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K}function se(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K}function G(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ie,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ee(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ie,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ae(K){const ie=this.sliceSerialize(K),de=this.stack[this.stack.length-2];de.label=zP(ie),de.identifier=_n(ie).toLowerCase()}function fe(){const K=this.stack[this.stack.length-1],ie=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const Ee=K.children;de.children=Ee}else de.alt=ie}function I(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.url=K}function O(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.title=K}function V(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function re(K){const ie=this.resume(),de=this.stack[this.stack.length-1];de.label=ie,de.identifier=_n(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function ue(K){this.data.characterReferenceType=K.type}function ce(K){const ie=this.sliceSerialize(K),de=this.data.characterReferenceType;let Ee;de?(Ee=Lk(ie,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=yb(ie);const Oe=this.stack[this.stack.length-1];Oe.value+=Ee}function he(K){const ie=this.stack.pop();ie.position.end=Or(K.end)}function Ie(K){F.call(this,K);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(K)}function we(K){F.call(this,K);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(K)}function it(){return{type:"blockquote",children:[]}}function ft(){return{type:"code",lang:null,meta:null,value:""}}function Un(){return{type:"inlineCode",value:""}}function an(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function vn(){return{type:"emphasis",children:[]}}function Rn(){return{type:"heading",depth:0,children:[]}}function kt(){return{type:"break"}}function Fr(){return{type:"html",value:""}}function on(){return{type:"image",title:null,url:"",alt:null}}function Fn(){return{type:"link",title:null,url:"",children:[]}}function Mt(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Bn(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Nn(){return{type:"paragraph",children:[]}}function Br(){return{type:"strong",children:[]}}function Qe(){return{type:"text",value:""}}function ht(){return{type:"thematicBreak"}}}function Or(e){return{line:e.line,column:e.column,offset:e.offset}}function $k(e,n){let a=-1;for(;++a<n.length;){const i=n[a];Array.isArray(i)?$k(e,i):HP(e,i)}}function HP(e,n){let a;for(a in n)if(Hk.call(n,a))switch(a){case"canContainEols":{const i=n[a];i&&e[a].push(...i);break}case"transforms":{const i=n[a];i&&e[a].push(...i);break}case"enter":case"exit":{const i=n[a];i&&Object.assign(e[a],i);break}}}function ow(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+io({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+io({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+io({start:n.start,end:n.end})+") is still open")}function $P(e){const n=this;n.parser=a;function a(i){return PP(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function VP(e,n){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,a),e.applyData(n,a)}function YP(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
|
|
289
|
+
`;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&l)continue;c=" ";break}default:c=String.fromCharCode(u)}l=u===-2,i.push(c)}return i.join("")}function UP(e){const i={constructs:Dk([OP,...(e||{}).extensions||[]]),content:l(Zz),defined:[],document:l(Jz),flow:l(bP),lazy:{},string:l(SP),text:l(vP)};return i;function l(u){return c;function c(d){return DP(i,u,d)}}}function FP(e){for(;!Bk(e););return e}const iw=/[\0\t\n\r]/g;function BP(){let e=1,n="",a=!0,i;return l;function l(u,c,d){const g=[];let f,b,h,E,S;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),h=0,n="",a&&(u.charCodeAt(0)===65279&&h++,a=void 0);h<u.length;){if(iw.lastIndex=h,f=iw.exec(u),E=f&&f.index!==void 0?f.index:u.length,S=u.charCodeAt(E),!f){n=u.slice(h);break}if(S===10&&h===E&&i)g.push(-3),i=void 0;else switch(i&&(g.push(-5),i=void 0),h<E&&(g.push(u.slice(h,E)),e+=E-h),S){case 0:{g.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,g.push(-2);e++<b;)g.push(-1);break}case 10:{g.push(-4),e=1;break}default:i=!0,e=1}h=E+1}return d&&(i&&g.push(-5),n&&g.push(n),g.push(null)),g}}const jP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zP(e){return e.replace(jP,qP)}function qP(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const l=a.charCodeAt(1),u=l===120||l===88;return Lk(a.slice(u?2:1),u?16:10)}return yb(a)||e}const Hk={}.hasOwnProperty;function PP(e,n,a){return typeof n!="string"&&(a=n,n=void 0),GP(a)(FP(UP(a).document().write(BP()(e,n,!0))))}function GP(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Fn),autolinkProtocol:z,autolinkEmail:z,atxHeading:u(Rn),blockQuote:u(it),characterEscape:z,characterReference:z,codeFenced:u(ft),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(ft,c),codeText:u(Un,c),codeTextData:z,data:z,codeFlowValue:z,definition:u(an),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(vn),hardBreakEscape:u(Ct),hardBreakTrailing:u(Ct),htmlFlow:u(Fr,c),htmlFlowData:z,htmlText:u(Fr,c),htmlTextData:z,image:u(on),label:c,link:u(Fn),listItem:u(Bn),listItemValue:E,listOrdered:u(Mt,h),listUnordered:u(Mt),paragraph:u(Nn),reference:k,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Rn),strong:u(Br),thematicBreak:u(ht)},exit:{atxHeading:g(),atxHeadingSequence:U,autolink:g(),autolinkEmail:we,autolinkProtocol:Ie,blockQuote:g(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:ce,characterReference:he,codeFenced:g(C),codeFencedFence:T,codeFencedFenceInfo:S,codeFencedFenceMeta:_,codeFlowValue:F,codeIndented:g(x),codeText:g(se),codeTextData:F,data:F,definition:g(),definitionDestinationString:D,definitionLabelString:A,definitionTitleString:N,emphasis:g(),hardBreakEscape:g(Q),hardBreakTrailing:g(Q),htmlFlow:g(ne),htmlFlowData:F,htmlText:g(oe),htmlTextData:F,image:g(ee),label:fe,labelText:ae,lineEnding:W,link:g(G),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:re,resourceDestinationString:I,resourceTitleString:O,resource:V,setextHeading:g(H),setextHeadingLineSequence:M,setextHeadingText:w,strong:g(),thematicBreak:g()}};$k(n,(e||{}).mdastExtensions||[]);const a={};return i;function i(K){let ie={type:"root",children:[]};const de={stack:[ie],tokenStack:[],config:n,enter:d,exit:f,buffer:c,resume:b,data:a},Ee=[];let Oe=-1;for(;++Oe<K.length;)if(K[Oe][1].type==="listOrdered"||K[Oe][1].type==="listUnordered")if(K[Oe][0]==="enter")Ee.push(Oe);else{const bt=Ee.pop();Oe=l(K,bt,Oe)}for(Oe=-1;++Oe<K.length;){const bt=n[K[Oe][0]];Hk.call(bt,K[Oe][1].type)&&bt[K[Oe][1].type].call(Object.assign({sliceSerialize:K[Oe][2].sliceSerialize},de),K[Oe][1])}if(de.tokenStack.length>0){const bt=de.tokenStack[de.tokenStack.length-1];(bt[1]||ow).call(de,void 0,bt[0])}for(ie.position={start:Or(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Or(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<n.transforms.length;)ie=n.transforms[Oe](ie)||ie;return ie}function l(K,ie,de){let Ee=ie-1,Oe=-1,bt=!1,yt,nt,He,Xe;for(;++Ee<=de;){const Be=K[Ee];switch(Be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Be[0]==="enter"?Oe++:Oe--,Xe=void 0;break}case"lineEndingBlank":{Be[0]==="enter"&&(yt&&!Xe&&!Oe&&!He&&(He=Ee),Xe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xe=void 0}if(!Oe&&Be[0]==="enter"&&Be[1].type==="listItemPrefix"||Oe===-1&&Be[0]==="exit"&&(Be[1].type==="listUnordered"||Be[1].type==="listOrdered")){if(yt){let Ut=Ee;for(nt=void 0;Ut--;){const At=K[Ut];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;nt&&(K[nt][1].type="lineEndingBlank",bt=!0),At[1].type="lineEnding",nt=Ut}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}He&&(!nt||He<nt)&&(yt._spread=!0),yt.end=Object.assign({},nt?K[nt][1].start:Be[1].end),K.splice(nt||Ee,0,["exit",yt,Be[2]]),Ee++,de++}if(Be[1].type==="listItemPrefix"){const Ut={type:"listItem",_spread:!1,start:Object.assign({},Be[1].start),end:void 0};yt=Ut,K.splice(Ee,0,["enter",Ut,Be[2]]),Ee++,de++,He=void 0,Xe=!0}}}return K[ie][1]._spread=bt,de}function u(K,ie){return de;function de(Ee){d.call(this,K(Ee),Ee),ie&&ie.call(this,Ee)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(K,ie,de){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ie,de||void 0]),K.position={start:Or(ie.start),end:void 0}}function g(K){return ie;function ie(de){K&&K.call(this,de),f.call(this,de)}}function f(K,ie){const de=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==K.type&&(ie?ie.call(this,K,Ee[0]):(Ee[1]||ow).call(this,K,Ee[0]));else throw new Error("Cannot close `"+K.type+"` ("+io({start:K.start,end:K.end})+"): it’s not open");de.position.end=Or(K.end)}function b(){return bb(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function E(K){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function S(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=K}function _(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=K}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K.replace(/(\r?\n|\r)$/g,"")}function A(K){const ie=this.resume(),de=this.stack[this.stack.length-1];de.label=ie,de.identifier=_n(this.sliceSerialize(K)).toLowerCase()}function N(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.title=K}function D(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.url=K}function U(K){const ie=this.stack[this.stack.length-1];if(!ie.depth){const de=this.sliceSerialize(K).length;ie.depth=de}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function M(K){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function z(K){const de=this.stack[this.stack.length-1].children;let Ee=de[de.length-1];(!Ee||Ee.type!=="text")&&(Ee=Qe(),Ee.position={start:Or(K.start),end:void 0},de.push(Ee)),this.stack.push(Ee)}function F(K){const ie=this.stack.pop();ie.value+=this.sliceSerialize(K),ie.position.end=Or(K.end)}function W(K){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=ie.children[ie.children.length-1];de.position.end=Or(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(ie.type)&&(z.call(this,K),F.call(this,K))}function Q(){this.data.atHardBreak=!0}function ne(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K}function oe(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K}function se(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.value=K}function G(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ie,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ee(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ie,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ae(K){const ie=this.sliceSerialize(K),de=this.stack[this.stack.length-2];de.label=zP(ie),de.identifier=_n(ie).toLowerCase()}function fe(){const K=this.stack[this.stack.length-1],ie=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const Ee=K.children;de.children=Ee}else de.alt=ie}function I(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.url=K}function O(){const K=this.resume(),ie=this.stack[this.stack.length-1];ie.title=K}function V(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function re(K){const ie=this.resume(),de=this.stack[this.stack.length-1];de.label=ie,de.identifier=_n(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function ue(K){this.data.characterReferenceType=K.type}function ce(K){const ie=this.sliceSerialize(K),de=this.data.characterReferenceType;let Ee;de?(Ee=Lk(ie,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=yb(ie);const Oe=this.stack[this.stack.length-1];Oe.value+=Ee}function he(K){const ie=this.stack.pop();ie.position.end=Or(K.end)}function Ie(K){F.call(this,K);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(K)}function we(K){F.call(this,K);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(K)}function it(){return{type:"blockquote",children:[]}}function ft(){return{type:"code",lang:null,meta:null,value:""}}function Un(){return{type:"inlineCode",value:""}}function an(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function vn(){return{type:"emphasis",children:[]}}function Rn(){return{type:"heading",depth:0,children:[]}}function Ct(){return{type:"break"}}function Fr(){return{type:"html",value:""}}function on(){return{type:"image",title:null,url:"",alt:null}}function Fn(){return{type:"link",title:null,url:"",children:[]}}function Mt(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Bn(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Nn(){return{type:"paragraph",children:[]}}function Br(){return{type:"strong",children:[]}}function Qe(){return{type:"text",value:""}}function ht(){return{type:"thematicBreak"}}}function Or(e){return{line:e.line,column:e.column,offset:e.offset}}function $k(e,n){let a=-1;for(;++a<n.length;){const i=n[a];Array.isArray(i)?$k(e,i):HP(e,i)}}function HP(e,n){let a;for(a in n)if(Hk.call(n,a))switch(a){case"canContainEols":{const i=n[a];i&&e[a].push(...i);break}case"transforms":{const i=n[a];i&&e[a].push(...i);break}case"enter":case"exit":{const i=n[a];i&&Object.assign(e[a],i);break}}}function ow(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+io({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+io({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+io({start:n.start,end:n.end})+") is still open")}function $P(e){const n=this;n.parser=a;function a(i){return PP(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function VP(e,n){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,a),e.applyData(n,a)}function YP(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
|
|
290
290
|
`}]}function WP(e,n){const a=n.value?n.value+`
|
|
291
291
|
`:"",i={};n.lang&&(i.className=["language-"+n.lang]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:a}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function KP(e,n){const a={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function XP(e,n){const a={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function ZP(e,n){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),l=li(i.toLowerCase()),u=e.footnoteOrder.indexOf(i);let c,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=u+1,d+=1,e.footnoteCounts.set(i,d);const g={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+l,id:a+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,g);const f={type:"element",tagName:"sup",properties:{},children:[g]};return e.patch(n,f),e.applyData(n,f)}function QP(e,n){const a={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function JP(e,n){if(e.options.allowDangerousHtml){const a={type:"raw",value:n.value};return e.patch(n,a),e.applyData(n,a)}}function Vk(e,n){const a=n.referenceType;let i="]";if(a==="collapsed"?i+="[]":a==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const l=e.all(n),u=l[0];u&&u.type==="text"?u.value="["+u.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=i:l.push({type:"text",value:i}),l}function eG(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Vk(e,n);const l={src:li(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const u={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,u),e.applyData(n,u)}function tG(e,n){const a={src:li(n.url)};n.alt!==null&&n.alt!==void 0&&(a.alt=n.alt),n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,i),e.applyData(n,i)}function nG(e,n){const a={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,a);const i={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(n,i),e.applyData(n,i)}function rG(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Vk(e,n);const l={href:li(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const u={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,u),e.applyData(n,u)}function aG(e,n){const a={href:li(n.url)};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function iG(e,n,a){const i=e.all(n),l=a?oG(a):Yk(n),u={},c=[];if(typeof n.checked=="boolean"){const b=i[0];let h;b&&b.type==="element"&&b.tagName==="p"?h=b:(h={type:"element",tagName:"p",properties:{},children:[]},i.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const b=i[d];(l||d!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
|
|
292
292
|
`}),b.type==="element"&&b.tagName==="p"&&!l?c.push(...b.children):c.push(b)}const g=i[i.length-1];g&&(l||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
|
|
@@ -296,7 +296,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
296
296
|
`});++i<e.length;)i&&a.push({type:"text",value:`
|
|
297
297
|
`}),a.push(e[i]);return n&&e.length>0&&a.push({type:"text",value:`
|
|
298
298
|
`}),a}function fw(e){let n=0,a=e.charCodeAt(n);for(;a===9||a===32;)n++,a=e.charCodeAt(n);return e.slice(n)}function gw(e,n){const a=LG(e,n),i=a.one(e,void 0),l=AG(a),u=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&u.children.push({type:"text",value:`
|
|
299
|
-
`},l),u}function jG(e,n){return e&&"run"in e?async function(a,i){const l=gw(a,{file:i,...n});await e.run(l,i)}:function(a,i){return gw(a,{file:i,...e||n})}}function mw(e){if(e)throw e}var gh,hw;function zG(){if(hw)return gh;hw=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(f){return typeof Array.isArray=="function"?Array.isArray(f):n.call(f)==="[object Array]"},u=function(f){if(!f||n.call(f)!=="[object Object]")return!1;var b=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!b&&!h)return!1;var E;for(E in f);return typeof E>"u"||e.call(f,E)},c=function(f,b){a&&b.name==="__proto__"?a(f,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):f[b.name]=b.newValue},d=function(f,b){if(b==="__proto__")if(e.call(f,b)){if(i)return i(f,b).value}else return;return f[b]};return gh=function g(){var f,b,h,E,S,_,T=arguments[0],C=1,x=arguments.length,A=!1;for(typeof T=="boolean"&&(A=T,T=arguments[1]||{},C=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});C<x;++C)if(f=arguments[C],f!=null)for(b in f)h=d(T,b),E=d(f,b),T!==E&&(A&&E&&(u(E)||(S=l(E)))?(S?(S=!1,_=h&&l(h)?h:[]):_=h&&u(h)?h:{},c(T,{name:b,newValue:g(A,_,E)})):typeof E<"u"&&c(T,{name:b,newValue:E}));return T},gh}var qG=zG();const mh=Kl(qG);function Hh(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function PG(){const e=[],n={run:a,use:i};return n;function a(...l){let u=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(g,...f){const b=e[++u];let h=-1;if(g){c(g);return}for(;++h<l.length;)(f[h]===null||f[h]===void 0)&&(f[h]=l[h]);l=f,b?GG(b,d)(...f):c(null,...f)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),n}}function GG(e,n){let a;return i;function i(...c){const d=e.length>c.length;let g;d&&c.push(l);try{g=e.apply(this,c)}catch(f){const b=f;if(d&&a)throw b;return l(b)}d||(g&&g.then&&typeof g.then=="function"?g.then(u,l):g instanceof Error?l(g):u(g))}function l(c,...d){a||(a=!0,n(c,...d))}function u(c){l(null,c)}}const Ln={basename:HG,dirname:$G,extname:VG,join:YG,sep:"/"};function HG(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ho(e);let a=0,i=-1,l=e.length,u;if(n===void 0||n.length===0||n.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(u){a=l+1;break}}else i<0&&(u=!0,i=l+1);return i<0?"":e.slice(a,i)}if(n===e)return"";let c=-1,d=n.length-1;for(;l--;)if(e.codePointAt(l)===47){if(u){a=l+1;break}}else c<0&&(u=!0,c=l+1),d>-1&&(e.codePointAt(l)===n.codePointAt(d--)?d<0&&(i=l):(d=-1,i=c));return a===i?i=c:i<0&&(i=e.length),e.slice(a,i)}function $G(e){if(ho(e),e.length===0)return".";let n=-1,a=e.length,i;for(;--a;)if(e.codePointAt(a)===47){if(i){n=a;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function VG(e){ho(e);let n=e.length,a=-1,i=0,l=-1,u=0,c;for(;n--;){const d=e.codePointAt(n);if(d===47){if(c){i=n+1;break}continue}a<0&&(c=!0,a=n+1),d===46?l<0?l=n:u!==1&&(u=1):l>-1&&(u=-1)}return l<0||a<0||u===0||u===1&&l===a-1&&l===i+1?"":e.slice(l,a)}function YG(...e){let n=-1,a;for(;++n<e.length;)ho(e[n]),e[n]&&(a=a===void 0?e[n]:a+"/"+e[n]);return a===void 0?".":WG(a)}function WG(e){ho(e);const n=e.codePointAt(0)===47;let a=KG(e,!n);return a.length===0&&!n&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),n?"/"+a:a}function KG(e,n){let a="",i=0,l=-1,u=0,c=-1,d,g;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||u===1))if(l!==c-1&&u===2){if(a.length<2||i!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(g=a.lastIndexOf("/"),g!==a.length-1){g<0?(a="",i=0):(a=a.slice(0,g),i=a.length-1-a.lastIndexOf("/")),l=c,u=0;continue}}else if(a.length>0){a="",i=0,l=c,u=0;continue}}n&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(l+1,c):a=e.slice(l+1,c),i=c-l-1;l=c,u=0}else d===46&&u>-1?u++:u=-1}return a}function ho(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const XG={cwd:ZG};function ZG(){return"/"}function $h(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function QG(e){if(typeof e=="string")e=new URL(e);else if(!$h(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return JG(e)}function JG(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let a=-1;for(;++a<n.length;)if(n.codePointAt(a)===37&&n.codePointAt(a+1)===50){const i=n.codePointAt(a+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(n)}const hh=["history","path","basename","stem","extname","dirname"];class Jk{constructor(n){let a;n?$h(n)?a={path:n}:typeof n=="string"||e4(n)?a={value:n}:a=n:a={},this.cwd="cwd"in a?"":XG.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<hh.length;){const u=hh[i];u in a&&a[u]!==void 0&&a[u]!==null&&(this[u]=u==="history"?[...a[u]]:a[u])}let l;for(l in a)hh.includes(l)||(this[l]=a[l])}get basename(){return typeof this.path=="string"?Ln.basename(this.path):void 0}set basename(n){yh(n,"basename"),bh(n,"basename"),this.path=Ln.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Ln.dirname(this.path):void 0}set dirname(n){bw(this.basename,"dirname"),this.path=Ln.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Ln.extname(this.path):void 0}set extname(n){if(bh(n,"extname"),bw(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ln.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){$h(n)&&(n=QG(n)),yh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Ln.basename(this.path,this.extname):void 0}set stem(n){yh(n,"stem"),bh(n,"stem"),this.path=Ln.join(this.dirname||"",n+(this.extname||""))}fail(n,a,i){const l=this.message(n,a,i);throw l.fatal=!0,l}info(n,a,i){const l=this.message(n,a,i);return l.fatal=void 0,l}message(n,a,i){const l=new wt(n,a,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function bh(e,n){if(e&&e.includes(Ln.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Ln.sep+"`")}function yh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function bw(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function e4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const t4=(function(e){const i=this.constructor.prototype,l=i[e],u=function(){return l.apply(u,arguments)};return Object.setPrototypeOf(u,i),u}),n4={}.hasOwnProperty;class _b extends t4{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=PG()}copy(){const n=new _b;let a=-1;for(;++a<this.attachers.length;){const i=this.attachers[a];n.use(...i)}return n.data(mh(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(vh("data",this.frozen),this.namespace[n]=a,this):n4.call(this.namespace,n)&&this.namespace[n]||void 0:n?(vh("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=a.call(n,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=Ll(n),i=this.parser||this.Parser;return Eh("parse",i),i(String(a),a)}process(n,a){const i=this;return this.freeze(),Eh("process",this.parser||this.Parser),Sh("process",this.compiler||this.Compiler),a?l(void 0,a):new Promise(l);function l(u,c){const d=Ll(n),g=i.parse(d);i.run(g,d,function(b,h,E){if(b||!h||!E)return f(b);const S=h,_=i.stringify(S,E);i4(_)?E.value=_:E.result=_,f(b,E)});function f(b,h){b||!h?c(b):u?u(h):a(void 0,h)}}}processSync(n){let a=!1,i;return this.freeze(),Eh("processSync",this.parser||this.Parser),Sh("processSync",this.compiler||this.Compiler),this.process(n,l),Ew("processSync","process",a),i;function l(u,c){a=!0,mw(u),i=c}}run(n,a,i){yw(n),this.freeze();const l=this.transformers;return!i&&typeof a=="function"&&(i=a,a=void 0),i?u(void 0,i):new Promise(u);function u(c,d){const g=Ll(a);l.run(n,g,f);function f(b,h,E){const S=h||n;b?d(b):c?c(S):i(void 0,S,E)}}}runSync(n,a){let i=!1,l;return this.run(n,a,u),Ew("runSync","run",i),l;function u(c,d){mw(c),l=d,i=!0}}stringify(n,a){this.freeze();const i=Ll(a),l=this.compiler||this.Compiler;return Sh("stringify",l),yw(n),l(n,i)}use(n,...a){const i=this.attachers,l=this.namespace;if(vh("use",this.frozen),n!=null)if(typeof n=="function")g(n,a);else if(typeof n=="object")Array.isArray(n)?d(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function u(f){if(typeof f=="function")g(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[b,...h]=f;g(b,h)}else c(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function c(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(f.plugins),f.settings&&(l.settings=mh(!0,l.settings,f.settings))}function d(f){let b=-1;if(f!=null)if(Array.isArray(f))for(;++b<f.length;){const h=f[b];u(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function g(f,b){let h=-1,E=-1;for(;++h<i.length;)if(i[h][0]===f){E=h;break}if(E===-1)i.push([f,...b]);else if(b.length>0){let[S,..._]=b;const T=i[E][1];Hh(T)&&Hh(S)&&(S=mh(!0,T,S)),i[E]=[f,S,..._]}}}}const r4=new _b().freeze();function Eh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Sh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function vh(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yw(e){if(!Hh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ew(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ll(e){return a4(e)?e:new Jk(e)}function a4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function i4(e){return typeof e=="string"||o4(e)}function o4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const l4="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Sw=[],vw={allowDangerousHtml:!0},s4=/^(https?|ircs?|mailto|xmpp)$/i,u4=[{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 eC(e){const n=c4(e),a=d4(e);return p4(n.runSync(n.parse(a),a),e)}function c4(e){const n=e.rehypePlugins||Sw,a=e.remarkPlugins||Sw,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vw}:vw;return r4().use($P).use(a).use(jG,i).use(n)}function d4(e){const n=e.children||"",a=new Jk;return typeof n=="string"&&(a.value=n),a}function p4(e,n){const a=n.allowedElements,i=n.allowElement,l=n.components,u=n.disallowedElements,c=n.skipHtml,d=n.unwrapDisallowed,g=n.urlTransform||f4;for(const b of u4)Object.hasOwn(n,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+l4+b.id,void 0);return Ab(e,f),wz(e,{Fragment:y.Fragment,components:l,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function f(b,h,E){if(b.type==="raw"&&E&&typeof h=="number")return c?E.children.splice(h,1):E.children[h]={type:"text",value:b.value},h;if(b.type==="element"){let S;for(S in dh)if(Object.hasOwn(dh,S)&&Object.hasOwn(b.properties,S)){const _=b.properties[S],T=dh[S];(T===null||T.includes(b.tagName))&&(b.properties[S]=g(String(_||""),S,b))}}if(b.type==="element"){let S=a?!a.includes(b.tagName):u?u.includes(b.tagName):!1;if(!S&&i&&typeof h=="number"&&(S=!i(b,h,E)),S&&E&&typeof h=="number")return d&&b.children?E.children.splice(h,1,...b.children):E.children.splice(h,1),h}}}function f4(e){const n=e.indexOf(":"),a=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||a!==-1&&n>a||i!==-1&&n>i||s4.test(e.slice(0,n))?e:""}function xw(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,l=a.indexOf(n);for(;l!==-1;)i++,l=a.indexOf(n,l+n.length);return i}function g4(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function m4(e,n,a){const l=rs((a||{}).ignore||[]),u=h4(n);let c=-1;for(;++c<u.length;)Qk(e,"text",d);function d(f,b){let h=-1,E;for(;++h<b.length;){const S=b[h],_=E?E.children:void 0;if(l(S,_?_.indexOf(S):void 0,E))return;E=S}if(E)return g(f,b)}function g(f,b){const h=b[b.length-1],E=u[c][0],S=u[c][1];let _=0;const C=h.children.indexOf(f);let x=!1,A=[];E.lastIndex=0;let N=E.exec(f.value);for(;N;){const D=N.index,U={index:N.index,input:N.input,stack:[...b,f]};let w=S(...N,U);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?E.lastIndex=D+1:(_!==D&&A.push({type:"text",value:f.value.slice(_,D)}),Array.isArray(w)?A.push(...w):w&&A.push(w),_=D+N[0].length,x=!0),!E.global)break;N=E.exec(f.value)}return x?(_<f.value.length&&A.push({type:"text",value:f.value.slice(_)}),h.children.splice(C,1,...A)):A=[f],C+A.length}}function h4(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<a.length;){const l=a[i];n.push([b4(l[0]),y4(l[1])])}return n}function b4(e){return typeof e=="string"?new RegExp(g4(e),"g"):e}function y4(e){return typeof e=="function"?e:function(){return e}}const xh="phrasing",Th=["autolink","link","image","label"];function E4(){return{transforms:[R4],enter:{literalAutolink:v4,literalAutolinkEmail:Ah,literalAutolinkHttp:Ah,literalAutolinkWww:Ah},exit:{literalAutolink:_4,literalAutolinkEmail:A4,literalAutolinkHttp:x4,literalAutolinkWww:T4}}}function S4(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xh,notInConstruct:Th},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xh,notInConstruct:Th},{character:":",before:"[ps]",after:"\\/",inConstruct:xh,notInConstruct:Th}]}}function v4(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ah(e){this.config.enter.autolinkProtocol.call(this,e)}function x4(e){this.config.exit.autolinkProtocol.call(this,e)}function T4(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function A4(e){this.config.exit.autolinkEmail.call(this,e)}function _4(e){this.exit(e)}function R4(e){m4(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,N4],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),w4]],{ignore:["link","linkReference"]})}function N4(e,n,a,i,l){let u="";if(!tC(l)||(/^w/i.test(n)&&(a=n+a,n="",u="http://"),!k4(a)))return!1;const c=C4(a+i);if(!c[0])return!1;const d={type:"link",title:null,url:u+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function w4(e,n,a,i){return!tC(i,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function k4(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function C4(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],i=a.indexOf(")");const l=xw(e,"(");let u=xw(e,")");for(;i!==-1&&l>u;)e+=a.slice(0,i+1),a=a.slice(i+1),i=a.indexOf(")"),u++;return[e,a]}function tC(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||sa(a)||es(a))&&(!n||a!==47)}nC.peek=j4;function I4(){this.buffer()}function O4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function D4(){this.buffer()}function L4(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function M4(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=_n(this.sliceSerialize(e)).toLowerCase(),a.label=n}function U4(e){this.exit(e)}function F4(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=_n(this.sliceSerialize(e)).toLowerCase(),a.label=n}function B4(e){this.exit(e)}function j4(){return"["}function nC(e,n,a,i){const l=a.createTracker(i);let u=l.move("[^");const c=a.enter("footnoteReference"),d=a.enter("reference");return u+=l.move(a.safe(a.associationId(e),{after:"]",before:u})),d(),c(),u+=l.move("]"),u}function z4(){return{enter:{gfmFootnoteCallString:I4,gfmFootnoteCall:O4,gfmFootnoteDefinitionLabelString:D4,gfmFootnoteDefinition:L4},exit:{gfmFootnoteCallString:M4,gfmFootnoteCall:U4,gfmFootnoteDefinitionLabelString:F4,gfmFootnoteDefinition:B4}}}function q4(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:a,footnoteReference:nC},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(i,l,u,c){const d=u.createTracker(c);let g=d.move("[^");const f=u.enter("footnoteDefinition"),b=u.enter("label");return g+=d.move(u.safe(u.associationId(i),{before:g,after:"]"})),b(),g+=d.move("]:"),i.children&&i.children.length>0&&(d.shift(4),g+=d.move((n?`
|
|
299
|
+
`},l),u}function jG(e,n){return e&&"run"in e?async function(a,i){const l=gw(a,{file:i,...n});await e.run(l,i)}:function(a,i){return gw(a,{file:i,...e||n})}}function mw(e){if(e)throw e}var gh,hw;function zG(){if(hw)return gh;hw=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(f){return typeof Array.isArray=="function"?Array.isArray(f):n.call(f)==="[object Array]"},u=function(f){if(!f||n.call(f)!=="[object Object]")return!1;var b=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!b&&!h)return!1;var E;for(E in f);return typeof E>"u"||e.call(f,E)},c=function(f,b){a&&b.name==="__proto__"?a(f,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):f[b.name]=b.newValue},d=function(f,b){if(b==="__proto__")if(e.call(f,b)){if(i)return i(f,b).value}else return;return f[b]};return gh=function g(){var f,b,h,E,S,_,T=arguments[0],C=1,x=arguments.length,A=!1;for(typeof T=="boolean"&&(A=T,T=arguments[1]||{},C=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});C<x;++C)if(f=arguments[C],f!=null)for(b in f)h=d(T,b),E=d(f,b),T!==E&&(A&&E&&(u(E)||(S=l(E)))?(S?(S=!1,_=h&&l(h)?h:[]):_=h&&u(h)?h:{},c(T,{name:b,newValue:g(A,_,E)})):typeof E<"u"&&c(T,{name:b,newValue:E}));return T},gh}var qG=zG();const mh=Kl(qG);function Hh(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function PG(){const e=[],n={run:a,use:i};return n;function a(...l){let u=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(g,...f){const b=e[++u];let h=-1;if(g){c(g);return}for(;++h<l.length;)(f[h]===null||f[h]===void 0)&&(f[h]=l[h]);l=f,b?GG(b,d)(...f):c(null,...f)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),n}}function GG(e,n){let a;return i;function i(...c){const d=e.length>c.length;let g;d&&c.push(l);try{g=e.apply(this,c)}catch(f){const b=f;if(d&&a)throw b;return l(b)}d||(g&&g.then&&typeof g.then=="function"?g.then(u,l):g instanceof Error?l(g):u(g))}function l(c,...d){a||(a=!0,n(c,...d))}function u(c){l(null,c)}}const Ln={basename:HG,dirname:$G,extname:VG,join:YG,sep:"/"};function HG(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ho(e);let a=0,i=-1,l=e.length,u;if(n===void 0||n.length===0||n.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(u){a=l+1;break}}else i<0&&(u=!0,i=l+1);return i<0?"":e.slice(a,i)}if(n===e)return"";let c=-1,d=n.length-1;for(;l--;)if(e.codePointAt(l)===47){if(u){a=l+1;break}}else c<0&&(u=!0,c=l+1),d>-1&&(e.codePointAt(l)===n.codePointAt(d--)?d<0&&(i=l):(d=-1,i=c));return a===i?i=c:i<0&&(i=e.length),e.slice(a,i)}function $G(e){if(ho(e),e.length===0)return".";let n=-1,a=e.length,i;for(;--a;)if(e.codePointAt(a)===47){if(i){n=a;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function VG(e){ho(e);let n=e.length,a=-1,i=0,l=-1,u=0,c;for(;n--;){const d=e.codePointAt(n);if(d===47){if(c){i=n+1;break}continue}a<0&&(c=!0,a=n+1),d===46?l<0?l=n:u!==1&&(u=1):l>-1&&(u=-1)}return l<0||a<0||u===0||u===1&&l===a-1&&l===i+1?"":e.slice(l,a)}function YG(...e){let n=-1,a;for(;++n<e.length;)ho(e[n]),e[n]&&(a=a===void 0?e[n]:a+"/"+e[n]);return a===void 0?".":WG(a)}function WG(e){ho(e);const n=e.codePointAt(0)===47;let a=KG(e,!n);return a.length===0&&!n&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),n?"/"+a:a}function KG(e,n){let a="",i=0,l=-1,u=0,c=-1,d,g;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||u===1))if(l!==c-1&&u===2){if(a.length<2||i!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(g=a.lastIndexOf("/"),g!==a.length-1){g<0?(a="",i=0):(a=a.slice(0,g),i=a.length-1-a.lastIndexOf("/")),l=c,u=0;continue}}else if(a.length>0){a="",i=0,l=c,u=0;continue}}n&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(l+1,c):a=e.slice(l+1,c),i=c-l-1;l=c,u=0}else d===46&&u>-1?u++:u=-1}return a}function ho(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const XG={cwd:ZG};function ZG(){return"/"}function $h(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function QG(e){if(typeof e=="string")e=new URL(e);else if(!$h(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return JG(e)}function JG(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let a=-1;for(;++a<n.length;)if(n.codePointAt(a)===37&&n.codePointAt(a+1)===50){const i=n.codePointAt(a+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(n)}const hh=["history","path","basename","stem","extname","dirname"];class Jk{constructor(n){let a;n?$h(n)?a={path:n}:typeof n=="string"||e4(n)?a={value:n}:a=n:a={},this.cwd="cwd"in a?"":XG.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<hh.length;){const u=hh[i];u in a&&a[u]!==void 0&&a[u]!==null&&(this[u]=u==="history"?[...a[u]]:a[u])}let l;for(l in a)hh.includes(l)||(this[l]=a[l])}get basename(){return typeof this.path=="string"?Ln.basename(this.path):void 0}set basename(n){yh(n,"basename"),bh(n,"basename"),this.path=Ln.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Ln.dirname(this.path):void 0}set dirname(n){bw(this.basename,"dirname"),this.path=Ln.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Ln.extname(this.path):void 0}set extname(n){if(bh(n,"extname"),bw(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ln.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){$h(n)&&(n=QG(n)),yh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Ln.basename(this.path,this.extname):void 0}set stem(n){yh(n,"stem"),bh(n,"stem"),this.path=Ln.join(this.dirname||"",n+(this.extname||""))}fail(n,a,i){const l=this.message(n,a,i);throw l.fatal=!0,l}info(n,a,i){const l=this.message(n,a,i);return l.fatal=void 0,l}message(n,a,i){const l=new kt(n,a,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function bh(e,n){if(e&&e.includes(Ln.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Ln.sep+"`")}function yh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function bw(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function e4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const t4=(function(e){const i=this.constructor.prototype,l=i[e],u=function(){return l.apply(u,arguments)};return Object.setPrototypeOf(u,i),u}),n4={}.hasOwnProperty;class _b extends t4{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=PG()}copy(){const n=new _b;let a=-1;for(;++a<this.attachers.length;){const i=this.attachers[a];n.use(...i)}return n.data(mh(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(vh("data",this.frozen),this.namespace[n]=a,this):n4.call(this.namespace,n)&&this.namespace[n]||void 0:n?(vh("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=a.call(n,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=Ll(n),i=this.parser||this.Parser;return Eh("parse",i),i(String(a),a)}process(n,a){const i=this;return this.freeze(),Eh("process",this.parser||this.Parser),Sh("process",this.compiler||this.Compiler),a?l(void 0,a):new Promise(l);function l(u,c){const d=Ll(n),g=i.parse(d);i.run(g,d,function(b,h,E){if(b||!h||!E)return f(b);const S=h,_=i.stringify(S,E);i4(_)?E.value=_:E.result=_,f(b,E)});function f(b,h){b||!h?c(b):u?u(h):a(void 0,h)}}}processSync(n){let a=!1,i;return this.freeze(),Eh("processSync",this.parser||this.Parser),Sh("processSync",this.compiler||this.Compiler),this.process(n,l),Ew("processSync","process",a),i;function l(u,c){a=!0,mw(u),i=c}}run(n,a,i){yw(n),this.freeze();const l=this.transformers;return!i&&typeof a=="function"&&(i=a,a=void 0),i?u(void 0,i):new Promise(u);function u(c,d){const g=Ll(a);l.run(n,g,f);function f(b,h,E){const S=h||n;b?d(b):c?c(S):i(void 0,S,E)}}}runSync(n,a){let i=!1,l;return this.run(n,a,u),Ew("runSync","run",i),l;function u(c,d){mw(c),l=d,i=!0}}stringify(n,a){this.freeze();const i=Ll(a),l=this.compiler||this.Compiler;return Sh("stringify",l),yw(n),l(n,i)}use(n,...a){const i=this.attachers,l=this.namespace;if(vh("use",this.frozen),n!=null)if(typeof n=="function")g(n,a);else if(typeof n=="object")Array.isArray(n)?d(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function u(f){if(typeof f=="function")g(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[b,...h]=f;g(b,h)}else c(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function c(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(f.plugins),f.settings&&(l.settings=mh(!0,l.settings,f.settings))}function d(f){let b=-1;if(f!=null)if(Array.isArray(f))for(;++b<f.length;){const h=f[b];u(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function g(f,b){let h=-1,E=-1;for(;++h<i.length;)if(i[h][0]===f){E=h;break}if(E===-1)i.push([f,...b]);else if(b.length>0){let[S,..._]=b;const T=i[E][1];Hh(T)&&Hh(S)&&(S=mh(!0,T,S)),i[E]=[f,S,..._]}}}}const r4=new _b().freeze();function Eh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Sh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function vh(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yw(e){if(!Hh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ew(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ll(e){return a4(e)?e:new Jk(e)}function a4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function i4(e){return typeof e=="string"||o4(e)}function o4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const l4="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Sw=[],vw={allowDangerousHtml:!0},s4=/^(https?|ircs?|mailto|xmpp)$/i,u4=[{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 eC(e){const n=c4(e),a=d4(e);return p4(n.runSync(n.parse(a),a),e)}function c4(e){const n=e.rehypePlugins||Sw,a=e.remarkPlugins||Sw,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vw}:vw;return r4().use($P).use(a).use(jG,i).use(n)}function d4(e){const n=e.children||"",a=new Jk;return typeof n=="string"&&(a.value=n),a}function p4(e,n){const a=n.allowedElements,i=n.allowElement,l=n.components,u=n.disallowedElements,c=n.skipHtml,d=n.unwrapDisallowed,g=n.urlTransform||f4;for(const b of u4)Object.hasOwn(n,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+l4+b.id,void 0);return Ab(e,f),wz(e,{Fragment:y.Fragment,components:l,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function f(b,h,E){if(b.type==="raw"&&E&&typeof h=="number")return c?E.children.splice(h,1):E.children[h]={type:"text",value:b.value},h;if(b.type==="element"){let S;for(S in dh)if(Object.hasOwn(dh,S)&&Object.hasOwn(b.properties,S)){const _=b.properties[S],T=dh[S];(T===null||T.includes(b.tagName))&&(b.properties[S]=g(String(_||""),S,b))}}if(b.type==="element"){let S=a?!a.includes(b.tagName):u?u.includes(b.tagName):!1;if(!S&&i&&typeof h=="number"&&(S=!i(b,h,E)),S&&E&&typeof h=="number")return d&&b.children?E.children.splice(h,1,...b.children):E.children.splice(h,1),h}}}function f4(e){const n=e.indexOf(":"),a=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||a!==-1&&n>a||i!==-1&&n>i||s4.test(e.slice(0,n))?e:""}function xw(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,l=a.indexOf(n);for(;l!==-1;)i++,l=a.indexOf(n,l+n.length);return i}function g4(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function m4(e,n,a){const l=rs((a||{}).ignore||[]),u=h4(n);let c=-1;for(;++c<u.length;)Qk(e,"text",d);function d(f,b){let h=-1,E;for(;++h<b.length;){const S=b[h],_=E?E.children:void 0;if(l(S,_?_.indexOf(S):void 0,E))return;E=S}if(E)return g(f,b)}function g(f,b){const h=b[b.length-1],E=u[c][0],S=u[c][1];let _=0;const C=h.children.indexOf(f);let x=!1,A=[];E.lastIndex=0;let N=E.exec(f.value);for(;N;){const D=N.index,U={index:N.index,input:N.input,stack:[...b,f]};let w=S(...N,U);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?E.lastIndex=D+1:(_!==D&&A.push({type:"text",value:f.value.slice(_,D)}),Array.isArray(w)?A.push(...w):w&&A.push(w),_=D+N[0].length,x=!0),!E.global)break;N=E.exec(f.value)}return x?(_<f.value.length&&A.push({type:"text",value:f.value.slice(_)}),h.children.splice(C,1,...A)):A=[f],C+A.length}}function h4(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<a.length;){const l=a[i];n.push([b4(l[0]),y4(l[1])])}return n}function b4(e){return typeof e=="string"?new RegExp(g4(e),"g"):e}function y4(e){return typeof e=="function"?e:function(){return e}}const xh="phrasing",Th=["autolink","link","image","label"];function E4(){return{transforms:[R4],enter:{literalAutolink:v4,literalAutolinkEmail:Ah,literalAutolinkHttp:Ah,literalAutolinkWww:Ah},exit:{literalAutolink:_4,literalAutolinkEmail:A4,literalAutolinkHttp:x4,literalAutolinkWww:T4}}}function S4(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xh,notInConstruct:Th},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xh,notInConstruct:Th},{character:":",before:"[ps]",after:"\\/",inConstruct:xh,notInConstruct:Th}]}}function v4(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ah(e){this.config.enter.autolinkProtocol.call(this,e)}function x4(e){this.config.exit.autolinkProtocol.call(this,e)}function T4(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function A4(e){this.config.exit.autolinkEmail.call(this,e)}function _4(e){this.exit(e)}function R4(e){m4(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,N4],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),w4]],{ignore:["link","linkReference"]})}function N4(e,n,a,i,l){let u="";if(!tC(l)||(/^w/i.test(n)&&(a=n+a,n="",u="http://"),!k4(a)))return!1;const c=C4(a+i);if(!c[0])return!1;const d={type:"link",title:null,url:u+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function w4(e,n,a,i){return!tC(i,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function k4(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function C4(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],i=a.indexOf(")");const l=xw(e,"(");let u=xw(e,")");for(;i!==-1&&l>u;)e+=a.slice(0,i+1),a=a.slice(i+1),i=a.indexOf(")"),u++;return[e,a]}function tC(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||sa(a)||es(a))&&(!n||a!==47)}nC.peek=j4;function I4(){this.buffer()}function O4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function D4(){this.buffer()}function L4(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function M4(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=_n(this.sliceSerialize(e)).toLowerCase(),a.label=n}function U4(e){this.exit(e)}function F4(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=_n(this.sliceSerialize(e)).toLowerCase(),a.label=n}function B4(e){this.exit(e)}function j4(){return"["}function nC(e,n,a,i){const l=a.createTracker(i);let u=l.move("[^");const c=a.enter("footnoteReference"),d=a.enter("reference");return u+=l.move(a.safe(a.associationId(e),{after:"]",before:u})),d(),c(),u+=l.move("]"),u}function z4(){return{enter:{gfmFootnoteCallString:I4,gfmFootnoteCall:O4,gfmFootnoteDefinitionLabelString:D4,gfmFootnoteDefinition:L4},exit:{gfmFootnoteCallString:M4,gfmFootnoteCall:U4,gfmFootnoteDefinitionLabelString:F4,gfmFootnoteDefinition:B4}}}function q4(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:a,footnoteReference:nC},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(i,l,u,c){const d=u.createTracker(c);let g=d.move("[^");const f=u.enter("footnoteDefinition"),b=u.enter("label");return g+=d.move(u.safe(u.associationId(i),{before:g,after:"]"})),b(),g+=d.move("]:"),i.children&&i.children.length>0&&(d.shift(4),g+=d.move((n?`
|
|
300
300
|
`:" ")+u.indentLines(u.containerFlow(i,d.current()),n?rC:P4))),f(),g}}function P4(e,n,a){return n===0?e:rC(e,n,a)}function rC(e,n,a){return(a?"":" ")+e}const G4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aC.peek=W4;function H4(){return{canContainEols:["delete"],enter:{strikethrough:V4},exit:{strikethrough:Y4}}}function $4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:G4}],handlers:{delete:aC}}}function V4(e){this.enter({type:"delete",children:[]},e)}function Y4(e){this.exit(e)}function aC(e,n,a,i){const l=a.createTracker(i),u=a.enter("strikethrough");let c=l.move("~~");return c+=a.containerPhrasing(e,{...l.current(),before:c,after:"~"}),c+=l.move("~~"),u(),c}function W4(){return"~"}function K4(e){return e.length}function X4(e,n){const a=n||{},i=(a.align||[]).concat(),l=a.stringLength||K4,u=[],c=[],d=[],g=[];let f=0,b=-1;for(;++b<e.length;){const T=[],C=[];let x=-1;for(e[b].length>f&&(f=e[b].length);++x<e[b].length;){const A=Z4(e[b][x]);if(a.alignDelimiters!==!1){const N=l(A);C[x]=N,(g[x]===void 0||N>g[x])&&(g[x]=N)}T.push(A)}c[b]=T,d[b]=C}let h=-1;if(typeof i=="object"&&"length"in i)for(;++h<f;)u[h]=Tw(i[h]);else{const T=Tw(i);for(;++h<f;)u[h]=T}h=-1;const E=[],S=[];for(;++h<f;){const T=u[h];let C="",x="";T===99?(C=":",x=":"):T===108?C=":":T===114&&(x=":");let A=a.alignDelimiters===!1?1:Math.max(1,g[h]-C.length-x.length);const N=C+"-".repeat(A)+x;a.alignDelimiters!==!1&&(A=C.length+A+x.length,A>g[h]&&(g[h]=A),S[h]=A),E[h]=N}c.splice(1,0,E),d.splice(1,0,S),b=-1;const _=[];for(;++b<c.length;){const T=c[b],C=d[b];h=-1;const x=[];for(;++h<f;){const A=T[h]||"";let N="",D="";if(a.alignDelimiters!==!1){const U=g[h]-(C[h]||0),w=u[h];w===114?N=" ".repeat(U):w===99?U%2?(N=" ".repeat(U/2+.5),D=" ".repeat(U/2-.5)):(N=" ".repeat(U/2),D=N):D=" ".repeat(U)}a.delimiterStart!==!1&&!h&&x.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&A==="")&&(a.delimiterStart!==!1||h)&&x.push(" "),a.alignDelimiters!==!1&&x.push(N),x.push(A),a.alignDelimiters!==!1&&x.push(D),a.padding!==!1&&x.push(" "),(a.delimiterEnd!==!1||h!==f-1)&&x.push("|")}_.push(a.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return _.join(`
|
|
301
301
|
`)}function Z4(e){return e==null?"":String(e)}function Tw(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Q4(e,n,a,i){const l=a.enter("blockquote"),u=a.createTracker(i);u.move("> "),u.shift(2);const c=a.indentLines(a.containerFlow(e,u.current()),J4);return l(),c}function J4(e,n,a){return">"+(a?"":" ")+e}function e3(e,n){return Aw(e,n.inConstruct,!0)&&!Aw(e,n.notInConstruct,!1)}function Aw(e,n,a){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return a;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}function _w(e,n,a,i){let l=-1;for(;++l<a.unsafe.length;)if(a.unsafe[l].character===`
|
|
302
302
|
`&&e3(a.stack,a.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
@@ -311,8 +311,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
311
311
|
`))+1))}const c="#".repeat(l),d=a.enter("headingAtx"),g=a.enter("phrasing");u.move(c+" ");let f=a.containerPhrasing(e,{before:"# ",after:`
|
|
312
312
|
`,...u.current()});return/^[\t ]/.test(f)&&(f=po(f.charCodeAt(0))+f.slice(1)),f=f?c+" "+f:c,a.options.closeAtx&&(f+=" "+c),g(),d(),f}oC.peek=d3;function oC(e){return e.value||""}function d3(){return"<"}lC.peek=p3;function lC(e,n,a,i){const l=Rb(a),u=l==='"'?"Quote":"Apostrophe",c=a.enter("image");let d=a.enter("label");const g=a.createTracker(i);let f=g.move("![");return f+=g.move(a.safe(e.alt,{before:f,after:"]",...g.current()})),f+=g.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=a.enter("destinationLiteral"),f+=g.move("<"),f+=g.move(a.safe(e.url,{before:f,after:">",...g.current()})),f+=g.move(">")):(d=a.enter("destinationRaw"),f+=g.move(a.safe(e.url,{before:f,after:e.title?" ":")",...g.current()}))),d(),e.title&&(d=a.enter(`title${u}`),f+=g.move(" "+l),f+=g.move(a.safe(e.title,{before:f,after:l,...g.current()})),f+=g.move(l),d()),f+=g.move(")"),c(),f}function p3(){return"!"}sC.peek=f3;function sC(e,n,a,i){const l=e.referenceType,u=a.enter("imageReference");let c=a.enter("label");const d=a.createTracker(i);let g=d.move("![");const f=a.safe(e.alt,{before:g,after:"]",...d.current()});g+=d.move(f+"]["),c();const b=a.stack;a.stack=[],c=a.enter("reference");const h=a.safe(a.associationId(e),{before:g,after:"]",...d.current()});return c(),a.stack=b,u(),l==="full"||!f||f!==h?g+=d.move(h+"]"):l==="shortcut"?g=g.slice(0,-1):g+=d.move("]"),g}function f3(){return"!"}uC.peek=g3;function uC(e,n,a){let i=e.value||"",l="`",u=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++u<a.unsafe.length;){const c=a.unsafe[u],d=a.compilePattern(c);let g;if(c.atBreak)for(;g=d.exec(i);){let f=g.index;i.charCodeAt(f)===10&&i.charCodeAt(f-1)===13&&f--,i=i.slice(0,f)+" "+i.slice(g.index+1)}}return l+i+l}function g3(){return"`"}function cC(e,n){const a=bb(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}dC.peek=m3;function dC(e,n,a,i){const l=Rb(a),u=l==='"'?"Quote":"Apostrophe",c=a.createTracker(i);let d,g;if(cC(e,a)){const b=a.stack;a.stack=[],d=a.enter("autolink");let h=c.move("<");return h+=c.move(a.containerPhrasing(e,{before:h,after:">",...c.current()})),h+=c.move(">"),d(),a.stack=b,h}d=a.enter("link"),g=a.enter("label");let f=c.move("[");return f+=c.move(a.containerPhrasing(e,{before:f,after:"](",...c.current()})),f+=c.move("]("),g(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(g=a.enter("destinationLiteral"),f+=c.move("<"),f+=c.move(a.safe(e.url,{before:f,after:">",...c.current()})),f+=c.move(">")):(g=a.enter("destinationRaw"),f+=c.move(a.safe(e.url,{before:f,after:e.title?" ":")",...c.current()}))),g(),e.title&&(g=a.enter(`title${u}`),f+=c.move(" "+l),f+=c.move(a.safe(e.title,{before:f,after:l,...c.current()})),f+=c.move(l),g()),f+=c.move(")"),d(),f}function m3(e,n,a){return cC(e,a)?"<":"["}pC.peek=h3;function pC(e,n,a,i){const l=e.referenceType,u=a.enter("linkReference");let c=a.enter("label");const d=a.createTracker(i);let g=d.move("[");const f=a.containerPhrasing(e,{before:g,after:"]",...d.current()});g+=d.move(f+"]["),c();const b=a.stack;a.stack=[],c=a.enter("reference");const h=a.safe(a.associationId(e),{before:g,after:"]",...d.current()});return c(),a.stack=b,u(),l==="full"||!f||f!==h?g+=d.move(h+"]"):l==="shortcut"?g=g.slice(0,-1):g+=d.move("]"),g}function h3(){return"["}function Nb(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function b3(e){const n=Nb(e),a=e.options.bulletOther;if(!a)return n==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+a+"`) to be different");return a}function y3(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function fC(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function E3(e,n,a,i){const l=a.enter("list"),u=a.bulletCurrent;let c=e.ordered?y3(a):Nb(a);const d=e.ordered?c==="."?")":".":b3(a);let g=n&&a.bulletLastUsed?c===a.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&b&&(!b.children||!b.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(g=!0),fC(a)===c&&b){let h=-1;for(;++h<e.children.length;){const E=e.children[h];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){g=!0;break}}}}g&&(c=d),a.bulletCurrent=c;const f=a.containerFlow(e,i);return a.bulletLastUsed=c,a.bulletCurrent=u,l(),f}function S3(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function v3(e,n,a,i){const l=S3(a);let u=a.bulletCurrent||Nb(a);n&&n.type==="list"&&n.ordered&&(u=(typeof n.start=="number"&&n.start>-1?n.start:1)+(a.options.incrementListMarker===!1?0:n.children.indexOf(e))+u);let c=u.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=a.createTracker(i);d.move(u+" ".repeat(c-u.length)),d.shift(c);const g=a.enter("listItem"),f=a.indentLines(a.containerFlow(e,d.current()),b);return g(),f;function b(h,E,S){return E?(S?"":" ".repeat(c))+h:(S?u:u+" ".repeat(c-u.length))+h}}function x3(e,n,a,i){const l=a.enter("paragraph"),u=a.enter("phrasing"),c=a.containerPhrasing(e,i);return u(),l(),c}const T3=rs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function A3(e,n,a,i){return(e.children.some(function(c){return T3(c)})?a.containerPhrasing:a.containerFlow).call(a,e,i)}function _3(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}gC.peek=R3;function gC(e,n,a,i){const l=_3(a),u=a.enter("strong"),c=a.createTracker(i),d=c.move(l+l);let g=c.move(a.containerPhrasing(e,{after:l,before:d,...c.current()}));const f=g.charCodeAt(0),b=Wl(i.before.charCodeAt(i.before.length-1),f,l);b.inside&&(g=po(f)+g.slice(1));const h=g.charCodeAt(g.length-1),E=Wl(i.after.charCodeAt(0),h,l);E.inside&&(g=g.slice(0,-1)+po(h));const S=c.move(l+l);return u(),a.attentionEncodeSurroundingInfo={after:E.outside,before:b.outside},d+g+S}function R3(e,n,a){return a.options.strong||"*"}function N3(e,n,a,i){return a.safe(e.value,i)}function w3(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function k3(e,n,a){const i=(fC(a)+(a.options.ruleSpaces?" ":"")).repeat(w3(a));return a.options.ruleSpaces?i.slice(0,-1):i}const mC={blockquote:Q4,break:_w,code:a3,definition:o3,emphasis:iC,hardBreak:_w,heading:c3,html:oC,image:lC,imageReference:sC,inlineCode:uC,link:dC,linkReference:pC,list:E3,listItem:v3,paragraph:x3,root:A3,strong:gC,text:N3,thematicBreak:k3};function C3(){return{enter:{table:I3,tableData:Rw,tableHeader:Rw,tableRow:D3},exit:{codeText:L3,table:O3,tableData:_h,tableHeader:_h,tableRow:_h}}}function I3(e){const n=e._align;this.enter({type:"table",align:n.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function O3(e){this.exit(e),this.data.inTable=void 0}function D3(e){this.enter({type:"tableRow",children:[]},e)}function _h(e){this.exit(e)}function Rw(e){this.enter({type:"tableCell",children:[]},e)}function L3(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,M3));const a=this.stack[this.stack.length-1];a.type,a.value=n,this.exit(e)}function M3(e,n){return n==="|"?n:e}function U3(e){const n=e||{},a=n.tableCellPadding,i=n.tablePipeAlign,l=n.stringLength,u=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
313
313
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:c,tableCell:g,tableRow:d}};function c(S,_,T,C){return f(b(S,T,C),S.align)}function d(S,_,T,C){const x=h(S,T,C),A=f([x]);return A.slice(0,A.indexOf(`
|
|
314
|
-
`))}function g(S,_,T,C){const x=T.enter("tableCell"),A=T.enter("phrasing"),N=T.containerPhrasing(S,{...C,before:u,after:u});return A(),x(),N}function f(S,_){return X4(S,{align:_,alignDelimiters:i,padding:a,stringLength:l})}function b(S,_,T){const C=S.children;let x=-1;const A=[],N=_.enter("table");for(;++x<C.length;)A[x]=h(C[x],_,T);return N(),A}function h(S,_,T){const C=S.children;let x=-1;const A=[],N=_.enter("tableRow");for(;++x<C.length;)A[x]=g(C[x],S,_,T);return N(),A}function E(S,_,T){let C=mC.inlineCode(S,_,T);return T.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function F3(){return{exit:{taskListCheckValueChecked:Nw,taskListCheckValueUnchecked:Nw,paragraph:j3}}}function B3(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:z3}}}function Nw(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function j3(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const i=a.children[0];if(i&&i.type==="text"){const l=n.children;let u=-1,c;for(;++u<l.length;){const d=l[u];if(d.type==="paragraph"){c=d;break}}c===a&&(i.value=i.value.slice(1),i.value.length===0?a.children.shift():a.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,a.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function z3(e,n,a,i){const l=e.children[0],u=typeof e.checked=="boolean"&&l&&l.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",d=a.createTracker(i);u&&d.move(c);let g=mC.listItem(e,n,a,{...i,...d.current()});return u&&(g=g.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),g;function f(b){return b+c}}function q3(){return[E4(),z4(),H4(),C3(),F3()]}function P3(e){return{extensions:[S4(),q4(e),$4(),U3(e),B3()]}}const G3={tokenize:K3,partial:!0},hC={tokenize:X3,partial:!0},bC={tokenize:Z3,partial:!0},yC={tokenize:Q3,partial:!0},H3={tokenize:J3,partial:!0},EC={name:"wwwAutolink",tokenize:Y3,previous:vC},SC={name:"protocolAutolink",tokenize:W3,previous:xC},or={name:"emailAutolink",tokenize:V3,previous:TC},Mn={};function $3(){return{text:Mn}}let ra=48;for(;ra<123;)Mn[ra]=or,ra++,ra===58?ra=65:ra===91&&(ra=97);Mn[43]=or;Mn[45]=or;Mn[46]=or;Mn[95]=or;Mn[72]=[or,SC];Mn[104]=[or,SC];Mn[87]=[or,EC];Mn[119]=[or,EC];function V3(e,n,a){const i=this;let l,u;return c;function c(h){return!Vh(h)||!TC.call(i,i.previous)||wb(i.events)?a(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(h))}function d(h){return Vh(h)?(e.consume(h),d):h===64?(e.consume(h),g):a(h)}function g(h){return h===46?e.check(H3,b,f)(h):h===45||h===95||Rt(h)?(u=!0,e.consume(h),g):b(h)}function f(h){return e.consume(h),l=!0,g}function b(h){return u&&l&&Ot(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(h)):a(h)}}function Y3(e,n,a){const i=this;return l;function l(c){return c!==87&&c!==119||!vC.call(i,i.previous)||wb(i.events)?a(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(G3,e.attempt(hC,e.attempt(bC,u),a),a)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function W3(e,n,a){const i=this;let l="",u=!1;return c;function c(h){return(h===72||h===104)&&xC.call(i,i.previous)&&!wb(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(h),e.consume(h),d):a(h)}function d(h){if(Ot(h)&&l.length<5)return l+=String.fromCodePoint(h),e.consume(h),d;if(h===58){const E=l.toLowerCase();if(E==="http"||E==="https")return e.consume(h),g}return a(h)}function g(h){return h===47?(e.consume(h),u?f:(u=!0,g)):a(h)}function f(h){return h===null||$l(h)||Ve(h)||sa(h)||es(h)?a(h):e.attempt(hC,e.attempt(bC,b),a)(h)}function b(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(h)}}function K3(e,n,a){let i=0;return l;function l(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),l):c===46&&i===3?(e.consume(c),u):a(c)}function u(c){return c===null?a(c):n(c)}}function X3(e,n,a){let i,l,u;return c;function c(f){return f===46||f===95?e.check(yC,g,d)(f):f===null||Ve(f)||sa(f)||f!==45&&es(f)?g(f):(u=!0,e.consume(f),c)}function d(f){return f===95?i=!0:(l=i,i=void 0),e.consume(f),c}function g(f){return l||i||!u?a(f):n(f)}}function Z3(e,n){let a=0,i=0;return l;function l(c){return c===40?(a++,e.consume(c),l):c===41&&i<a?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(yC,n,u)(c):c===null||Ve(c)||sa(c)?n(c):(e.consume(c),l)}function u(c){return c===41&&i++,e.consume(c),l}}function Q3(e,n,a){return i;function i(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),i):d===38?(e.consume(d),u):d===93?(e.consume(d),l):d===60||d===null||Ve(d)||sa(d)?n(d):a(d)}function l(d){return d===null||d===40||d===91||Ve(d)||sa(d)?n(d):i(d)}function u(d){return Ot(d)?c(d):a(d)}function c(d){return d===59?(e.consume(d),i):Ot(d)?(e.consume(d),c):a(d)}}function J3(e,n,a){return i;function i(u){return e.consume(u),l}function l(u){return Rt(u)?a(u):n(u)}}function vC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ve(e)}function xC(e){return!Ot(e)}function TC(e){return!(e===47||Vh(e))}function Vh(e){return e===43||e===45||e===46||e===95||Rt(e)}function wb(e){let n=e.length,a=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){a=!0;break}if(i._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const eH={tokenize:sH,partial:!0};function tH(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:iH,continuation:{tokenize:oH},exit:lH}},text:{91:{name:"gfmFootnoteCall",tokenize:aH},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nH,resolveTo:rH}}}}function nH(e,n,a){const i=this;let l=i.events.length;const u=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;l--;){const g=i.events[l][1];if(g.type==="labelImage"){c=g;break}if(g.type==="gfmFootnoteCall"||g.type==="labelLink"||g.type==="label"||g.type==="image"||g.type==="link")break}return d;function d(g){if(!c||!c._balanced)return a(g);const f=_n(i.sliceSerialize({start:c.end,end:i.now()}));return f.codePointAt(0)!==94||!u.includes(f.slice(1))?a(g):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),n(g))}}function rH(e,n){let a=e.length;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},d=[e[a+1],e[a+2],["enter",i,n],e[a+3],e[a+4],["enter",l,n],["exit",l,n],["enter",u,n],["enter",c,n],["exit",c,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(a,e.length-a+1,...d),e}function aH(e,n,a){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u=0,c;return d;function d(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),g}function g(h){return h!==94?a(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(h){if(u>999||h===93&&!c||h===null||h===91||Ve(h))return a(h);if(h===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return l.includes(_n(i.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):a(h)}return Ve(h)||(c=!0),u++,e.consume(h),h===92?b:f}function b(h){return h===91||h===92||h===93?(e.consume(h),u++,f):f(h)}}function iH(e,n,a){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u,c=0,d;return g;function g(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):a(_)}function b(_){if(c>999||_===93&&!d||_===null||_===91||Ve(_))return a(_);if(_===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return u=_n(i.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return Ve(_)||(d=!0),c++,e.consume(_),_===92?h:b}function h(_){return _===91||_===92||_===93?(e.consume(_),c++,b):b(_)}function E(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),l.includes(u)||l.push(u),Le(e,S,"gfmFootnoteDefinitionWhitespace")):a(_)}function S(_){return n(_)}}function oH(e,n,a){return e.check(mo,n,e.attempt(eH,n,a))}function lH(e){e.exit("gfmFootnoteDefinition")}function sH(e,n,a){const i=this;return Le(e,l,"gfmFootnoteDefinitionIndent",5);function l(u){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(u):a(u)}}function uH(e){let a=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:u,resolveAll:l};return a==null&&(a=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(c,d){let g=-1;for(;++g<c.length;)if(c[g][0]==="enter"&&c[g][1].type==="strikethroughSequenceTemporary"&&c[g][1]._close){let f=g;for(;f--;)if(c[f][0]==="exit"&&c[f][1].type==="strikethroughSequenceTemporary"&&c[f][1]._open&&c[g][1].end.offset-c[g][1].start.offset===c[f][1].end.offset-c[f][1].start.offset){c[g][1].type="strikethroughSequence",c[f][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[f][1].start),end:Object.assign({},c[g][1].end)},h={type:"strikethroughText",start:Object.assign({},c[f][1].end),end:Object.assign({},c[g][1].start)},E=[["enter",b,d],["enter",c[f][1],d],["exit",c[f][1],d],["enter",h,d]],S=d.parser.constructs.insideSpan.null;S&&rn(E,E.length,0,ts(S,c.slice(f+1,g),d)),rn(E,E.length,0,[["exit",h,d],["enter",c[g][1],d],["exit",c[g][1],d],["exit",b,d]]),rn(c,f-1,g-f+3,E),g=f+E.length-2;break}}for(g=-1;++g<c.length;)c[g][1].type==="strikethroughSequenceTemporary"&&(c[g][1].type="data");return c}function u(c,d,g){const f=this.previous,b=this.events;let h=0;return E;function E(_){return f===126&&b[b.length-1][1].type!=="characterEscape"?g(_):(c.enter("strikethroughSequenceTemporary"),S(_))}function S(_){const T=ni(f);if(_===126)return h>1?g(_):(c.consume(_),h++,S);if(h<2&&!a)return g(_);const C=c.exit("strikethroughSequenceTemporary"),x=ni(_);return C._open=!x||x===2&&!!T,C._close=!T||T===2&&!!x,d(_)}}}class cH{constructor(){this.map=[]}add(n,a,i){dH(this,n,a,i)}consume(n){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let a=this.map.length;const i=[];for(;a>0;)a-=1,i.push(n.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),n.length=this.map[a][0];i.push(n.slice()),n.length=0;let l=i.pop();for(;l;){for(const u of l)n.push(u);l=i.pop()}this.map.length=0}}function dH(e,n,a,i){let l=0;if(!(a===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=a,e.map[l][2].push(...i);return}l+=1}e.map.push([n,a,i])}}function pH(e,n){let a=!1;const i=[];for(;n<e.length;){const l=e[n];if(a){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=i.length-1;i[u]=i[u]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(a=!0);n+=1}return i}function fH(){return{flow:{null:{name:"table",tokenize:gH,resolveAll:mH}}}}function gH(e,n,a){const i=this;let l=0,u=0,c;return d;function d(F){let W=i.events.length-1;for(;W>-1;){const oe=i.events[W][1].type;if(oe==="lineEnding"||oe==="linePrefix")W--;else break}const Q=W>-1?i.events[W][1].type:null,ne=Q==="tableHead"||Q==="tableRow"?w:g;return ne===w&&i.parser.lazy[i.now().line]?a(F):ne(F)}function g(F){return e.enter("tableHead"),e.enter("tableRow"),f(F)}function f(F){return F===124||(c=!0,u+=1),b(F)}function b(F){return F===null?a(F):be(F)?u>1?(u=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),S):a(F):Ne(F)?Le(e,b,"whitespace")(F):(u+=1,c&&(c=!1,l+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),c=!0,b):(e.enter("data"),h(F)))}function h(F){return F===null||F===124||Ve(F)?(e.exit("data"),b(F)):(e.consume(F),F===92?E:h)}function E(F){return F===92||F===124?(e.consume(F),h):h(F)}function S(F){return i.interrupt=!1,i.parser.lazy[i.now().line]?a(F):(e.enter("tableDelimiterRow"),c=!1,Ne(F)?Le(e,_,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):_(F))}function _(F){return F===45||F===58?C(F):F===124?(c=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),T):U(F)}function T(F){return Ne(F)?Le(e,C,"whitespace")(F):C(F)}function C(F){return F===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),x):F===45?(u+=1,x(F)):F===null||be(F)?D(F):U(F)}function x(F){return F===45?(e.enter("tableDelimiterFiller"),A(F)):U(F)}function A(F){return F===45?(e.consume(F),A):F===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(F))}function N(F){return Ne(F)?Le(e,D,"whitespace")(F):D(F)}function D(F){return F===124?_(F):F===null||be(F)?!c||l!==u?U(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(F)):U(F)}function U(F){return a(F)}function w(F){return e.enter("tableRow"),M(F)}function M(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),M):F===null||be(F)?(e.exit("tableRow"),n(F)):Ne(F)?Le(e,M,"whitespace")(F):(e.enter("data"),H(F))}function H(F){return F===null||F===124||Ve(F)?(e.exit("data"),M(F)):(e.consume(F),F===92?z:H)}function z(F){return F===92||F===124?(e.consume(F),H):H(F)}}function mH(e,n){let a=-1,i=!0,l=0,u=[0,0,0,0],c=[0,0,0,0],d=!1,g=0,f,b,h;const E=new cH;for(;++a<e.length;){const S=e[a],_=S[1];S[0]==="enter"?_.type==="tableHead"?(d=!1,g!==0&&(ww(E,n,g,f,b),b=void 0,g=0),f={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},E.add(a,0,[["enter",f,n]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(i=!0,h=void 0,u=[0,0,0,0],c=[0,a+1,0,0],d&&(d=!1,b={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},E.add(a,0,[["enter",b,n]])),l=_.type==="tableDelimiterRow"?2:b?3:1):l&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],h=Ml(E,n,u,l,void 0,h),u=[0,0,0,0]),c[2]=a)):_.type==="tableCellDivider"&&(i?i=!1:(u[1]!==0&&(c[0]=c[1],h=Ml(E,n,u,l,void 0,h)),u=c,c=[u[1],a,0,0])):_.type==="tableHead"?(d=!0,g=a):_.type==="tableRow"||_.type==="tableDelimiterRow"?(g=a,u[1]!==0?(c[0]=c[1],h=Ml(E,n,u,l,a,h)):c[1]!==0&&(h=Ml(E,n,c,l,a,h)),l=0):l&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=a)}for(g!==0&&ww(E,n,g,f,b),E.consume(n.events),a=-1;++a<n.events.length;){const S=n.events[a];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=pH(n.events,a))}return e}function Ml(e,n,a,i,l,u){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";a[0]!==0&&(u.end=Object.assign({},Qa(n.events,a[0])),e.add(a[0],0,[["exit",u,n]]));const g=Qa(n.events,a[1]);if(u={type:c,start:Object.assign({},g),end:Object.assign({},g)},e.add(a[1],0,[["enter",u,n]]),a[2]!==0){const f=Qa(n.events,a[2]),b=Qa(n.events,a[3]),h={type:d,start:Object.assign({},f),end:Object.assign({},b)};if(e.add(a[2],0,[["enter",h,n]]),i!==2){const E=n.events[a[2]],S=n.events[a[3]];if(E[1].end=Object.assign({},S[1].end),E[1].type="chunkText",E[1].contentType="text",a[3]>a[2]+1){const _=a[2]+1,T=a[3]-a[2]-1;e.add(_,T,[])}}e.add(a[3]+1,0,[["exit",h,n]])}return l!==void 0&&(u.end=Object.assign({},Qa(n.events,l)),e.add(l,0,[["exit",u,n]]),u=void 0),u}function ww(e,n,a,i,l){const u=[],c=Qa(n.events,a);l&&(l.end=Object.assign({},c),u.push(["exit",l,n])),i.end=Object.assign({},c),u.push(["exit",i,n]),e.add(a+1,0,u)}function Qa(e,n){const a=e[n],i=a[0]==="enter"?"start":"end";return a[1][i]}const hH={name:"tasklistCheck",tokenize:yH};function bH(){return{text:{91:hH}}}function yH(e,n,a){const i=this;return l;function l(g){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?a(g):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(g),e.exit("taskListCheckMarker"),u)}function u(g){return Ve(g)?(e.enter("taskListCheckValueUnchecked"),e.consume(g),e.exit("taskListCheckValueUnchecked"),c):g===88||g===120?(e.enter("taskListCheckValueChecked"),e.consume(g),e.exit("taskListCheckValueChecked"),c):a(g)}function c(g){return g===93?(e.enter("taskListCheckMarker"),e.consume(g),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):a(g)}function d(g){return be(g)?n(g):Ne(g)?e.check({tokenize:EH},n,a)(g):a(g)}}function EH(e,n,a){return Le(e,i,"whitespace");function i(l){return l===null?a(l):n(l)}}function SH(e){return Dk([$3(),tH(),uH(e),fH(),bH()])}const vH={};function AC(e){const n=this,a=e||vH,i=n.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),u=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(SH(a)),u.push(q3()),c.push(P3(a))}function Lt(e){return e?e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`:""}function xH(e){const n=e.split(".").pop()?.toLowerCase();return{js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",php:"php",sh:"bash",bash:"bash",zsh:"bash",sql:"sql",json:"json",yaml:"yaml",yml:"yaml",xml:"xml",html:"html",css:"css",scss:"scss",md:"markdown",txt:"text"}[n||""]||"text"}function TH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},u=String(l.path||""),c=String(l.content||""),d=c.split(`
|
|
315
|
-
`),g=Lt(n),f=xH(u);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-blue-700 dark:text-blue-300 transition-colors hover:text-blue-600 dark:hover:text-blue-200 w-full min-w-0",children:[y.jsx(
|
|
316
|
-
`),a=[];let i=0,l=0,u=!1,c="";for(const d of n){if(d.startsWith("+++")||d.startsWith("*** Update File:")){const f=d.match(/\+\+\+ b\/(.+)/)||d.match(/\*\*\* Update File: (.+)/);f&&(c=f[1])}const g=d.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(g){i=Number.parseInt(g[1],10),l=Number.parseInt(g[2],10),u=!0,a.push({content:d,codeContent:d,type:"header"});continue}if(d.startsWith("***")||d.startsWith("diff ")||d.startsWith("index ")||d.startsWith("---")||d.startsWith("+++")){a.push({content:d,codeContent:d,type:"meta"});continue}u?d.startsWith("+")?a.push({content:d,codeContent:d.slice(1),type:"add",newLineNum:l++}):d.startsWith("-")?a.push({content:d,codeContent:d.slice(1),type:"remove",oldLineNum:i++}):d.startsWith(" ")||d===""?a.push({content:d,codeContent:d.startsWith(" ")?d.slice(1):d,type:"context",oldLineNum:i++,newLineNum:l++}):a.push({content:d,codeContent:d,type:"context"}):a.push({content:d,codeContent:d,type:"meta"})}return{lines:a,filePath:c}}function is({patch:e}){const{lines:n,filePath:a}=_H(e),i=AH(a);return y.jsx("div",{className:"bg-card/60 border border-border rounded-lg overflow-hidden max-h-96 max-w-full",children:y.jsx("div",{className:"overflow-x-auto overflow-y-auto max-h-96 text-xs font-mono",children:n.map((l,u)=>{const c=`line-${u}-${l.content.slice(0,20)}`;if(l.type==="meta"||l.type==="header")return y.jsx("div",{className:`px-3 py-0.5 whitespace-pre-wrap break-all ${l.type==="header"?"text-muted-foreground/80 bg-muted/20":"text-muted-foreground/80"}`,children:l.content},c);let d="",g="";switch(l.type){case"add":d="text-emerald-700 dark:text-emerald-300",g="bg-emerald-500/10";break;case"remove":d="text-red-600 dark:text-red-300",g="bg-red-500/10";break;default:d="text-foreground/80"}let f=l.content;return l.codeContent.trim()&&i!=="text"&&(f=y.jsx(ar,{language:i,style:Mr,customStyle:{margin:0,padding:0,background:"transparent",display:"inline",fontSize:"inherit",lineHeight:"inherit"},codeTagProps:{style:{fontFamily:"inherit",background:"transparent"}},PreTag:"span",children:l.codeContent}),l.type==="add"?f=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:"+"}),f]}):l.type==="remove"?f=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:"-"}),f]}):l.type==="context"&&(f=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:" "}),f]}))),y.jsxs("div",{className:`flex ${g}`,children:[y.jsx("div",{className:"px-2 py-0.5 text-right text-muted-foreground/40 select-none w-12 flex-shrink-0",children:l.oldLineNum||""}),y.jsx("div",{className:"px-2 py-0.5 text-right text-muted-foreground/40 select-none w-12 flex-shrink-0 border-r border-border/50",children:l.newLineNum||""}),y.jsx("div",{className:`px-3 py-0.5 flex-1 min-w-0 whitespace-pre-wrap break-all ${d}`,children:f})]},c)})})})}function RH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},u=e.artifact,c=String(l.path||""),d=Number(l.bytes||0),g=u?.patch?String(u.patch):"",f=Lt(n);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-emerald-700 dark:text-emerald-300 transition-colors hover:text-emerald-600 dark:hover:text-emerald-200 min-w-0 w-full",children:[y.jsx(
|
|
317
|
-
`);let f=0,b=0,h=0;for(const E of g)E.startsWith("diff --git")?f+=1:E.startsWith("+")&&!E.startsWith("+++")?b+=1:E.startsWith("-")&&!E.startsWith("---")&&(h+=1);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-purple-700 dark:text-purple-300 transition-colors hover:text-purple-600 dark:hover:text-purple-200 w-full",children:[y.jsx(
|
|
318
|
-
`).length,d=Lt(n);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-cyan-700 dark:text-cyan-300 transition-colors hover:text-cyan-600 dark:hover:text-cyan-200",children:[a?y.jsx(la,{className:"h-3 w-3"}):y.jsx(Nt,{className:"h-3 w-3"}),y.jsx("span",{className:"font-medium",children:"tree"}),y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsxs("span",{className:"text-foreground/70",children:[c," ",c===1?"line":"lines"]}),y.jsxs("span",{className:"text-muted-foreground/80",children:["· ",d]})]}),a&&u&&y.jsx("div",{className:"mt-2 ml-5 bg-card/60 border border-border rounded-lg overflow-hidden max-h-96 overflow-y-auto max-w-full",children:y.jsx("div",{className:"overflow-x-auto max-w-full",children:y.jsx(ar,{language:"bash",style:Mr,customStyle:{margin:0,padding:"0.75rem",fontSize:"0.75rem",lineHeight:"1.5",background:"transparent",maxWidth:"100%"},wrapLines:!0,wrapLongLines:!0,children:u})})})]})}function BH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const u=(e.result||{}).matches||[],c=Lt(n);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-amber-700 dark:text-amber-300 transition-colors hover:text-amber-600 dark:hover:text-amber-200",children:[a?y.jsx(la,{className:"h-3 w-3"}):y.jsx(Nt,{className:"h-3 w-3"}),y.jsx("span",{className:"font-medium",children:"search"}),y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsxs("span",{className:"text-foreground/70",children:[u.length," ",u.length===1?"match":"matches"]}),y.jsxs("span",{className:"text-muted-foreground/80",children:["· ",c]})]}),a&&y.jsx("div",{className:"mt-2 ml-5 space-y-1 max-h-96 overflow-y-auto",children:u.map((d,g)=>{const f=d;return y.jsxs("div",{className:"text-xs font-mono bg-card/60 border border-border rounded px-2 py-1",children:[y.jsxs("div",{className:"text-blue-600 dark:text-blue-400 truncate",children:[f.file,":",f.line]}),y.jsx("div",{className:"text-foreground/80 truncate",children:f.text})]},`${f.file}-${f.line}-${g}`)})})]})}function jH({toolDurationMs:e}){const n=Lt(e);return y.jsx("div",{className:"text-xs",children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"font-medium text-emerald-700 dark:text-emerald-300",children:"Done"}),n&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsx("span",{className:"text-muted-foreground/80",children:n})]})]})})}function zH({toolName:e,contentJson:n,toolDurationMs:a,isExpanded:i,onToggle:l}){const u=n.result,c=Lt(a),d=u&&Object.keys(u).length>0;return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:l,className:"flex items-center gap-2 text-foreground transition-colors hover:text-foreground/80 w-full",children:[y.jsx(Nt,{className:`h-3 w-3 flex-shrink-0 transition-transform ${i?"rotate-90":""}`}),y.jsx("span",{className:"font-medium flex-shrink-0",children:e}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),y.jsx("span",{className:"text-muted-foreground/80 flex-shrink-0",children:c})]}),i&&d&&y.jsx("div",{className:"mt-2 ml-5 bg-card/60 border border-border rounded-lg overflow-hidden max-h-96 overflow-y-auto max-w-full",children:y.jsx("div",{className:"overflow-x-auto max-w-full",children:y.jsx(ar,{language:"json",style:Mr,customStyle:{margin:0,padding:"0.75rem",fontSize:"0.75rem",lineHeight:"1.5",background:"transparent",maxWidth:"100%"},wrapLines:!0,wrapLongLines:!0,children:JSON.stringify(u,null,2)})})})]})}function qH({contentJson:e,toolDurationMs:n}){return y.jsx("div",{className:"text-xs",children:y.jsxs("div",{className:"text-muted-foreground",children:[y.jsxs("div",{children:["Tool: ",e.name]}),y.jsxs("div",{children:["Duration: ",n,"ms"]}),y.jsx("pre",{className:"mt-2 text-[10px] bg-card border border-border p-2 rounded overflow-x-auto",children:JSON.stringify(e,null,2)})]})})}function PH({contentJson:e}){const n=e.result||{},a=n.items||[],i=n.note;return y.jsx("div",{className:"text-xs",children:y.jsxs("div",{className:"bg-blue-500/10 border border-blue-500/30 dark:bg-blue-500/5 dark:border-blue-500/20 rounded-lg p-3 space-y-2",children:[i&&y.jsx("div",{className:"text-blue-700 dark:text-blue-300 text-sm font-medium mb-3",children:i}),y.jsx("div",{className:"space-y-1.5",children:a.map((l,u)=>y.jsxs("div",{className:"flex items-start gap-2",children:[l.status==="completed"&&y.jsx(VO,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-300 flex-shrink-0 mt-0.5"}),l.status==="in_progress"&&y.jsx(BO,{className:"h-4 w-4 text-blue-700 dark:text-blue-300 flex-shrink-0 mt-0.5 animate-pulse"}),l.status==="pending"&&y.jsx(XO,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),y.jsx("span",{className:`text-sm ${l.status==="completed"?"text-muted-foreground line-through":l.status==="in_progress"?"text-foreground":"text-muted-foreground/80"}`,children:l.step})]},`${l.step}-${u}`))})]})})}function GH({contentJson:e}){const n=e.result||{},a=String(n.message||"Processing..."),i=n.stage?String(n.stage):void 0,l=n.pct?Number(n.pct):void 0;return y.jsxs("div",{className:"flex items-center gap-2 text-sm text-violet-700 dark:text-violet-300 animate-pulse",children:[i&&y.jsxs("span",{className:"text-muted-foreground/80",children:["[",i,"]"]}),y.jsx("span",{children:a}),l!==void 0&&y.jsxs("span",{className:"text-muted-foreground/80",children:["(",l,"%)"]})]})}function HH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},[u,c]=te.useState(new Set),d=S=>{c(_=>{const T=new Set(_);return T.has(S)?T.delete(S):T.add(S),T})},g="results"in l,f=l.results||[],b=l;if(g){const S=Lt(n);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-purple-700 dark:text-purple-300 transition-colors hover:text-purple-600 dark:hover:text-purple-200",children:[a?y.jsx(la,{className:"h-3 w-3"}):y.jsx(Nt,{className:"h-3 w-3"}),y.jsx("span",{className:"font-medium",children:"web search"}),y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsxs("span",{className:"text-foreground/70",children:[f.length," ",f.length===1?"result":"results"]}),y.jsxs("span",{className:"text-muted-foreground/80",children:["· ",S]})]}),a&&y.jsx("div",{className:"mt-2 ml-5 space-y-2 max-h-96 overflow-y-auto",children:f.map((_,T)=>y.jsxs("div",{className:"bg-card/60 border border-border rounded-lg p-3 space-y-1",children:[y.jsxs("a",{href:_.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-blue-600 dark:text-blue-400 hover:underline font-medium",children:[_.title,y.jsx(a1,{className:"h-3 w-3"})]}),y.jsx("p",{className:"text-muted-foreground text-xs",children:_.snippet}),y.jsx("p",{className:"text-xs text-muted-foreground/70 truncate",children:_.url})]},`${_.url}-${T}`))})]})}const h=Lt(n),E=b.url&&b.url.length>60?`${b.url.slice(0,60)}...`:b.url;return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:()=>d(0),className:"flex items-center gap-2 text-purple-700 dark:text-purple-300 transition-colors hover:text-purple-600 dark:hover:text-purple-200 w-full text-left",children:[u.has(0)?y.jsx(la,{className:"h-3 w-3 flex-shrink-0"}):y.jsx(Nt,{className:"h-3 w-3 flex-shrink-0"}),y.jsx("span",{className:"font-medium flex-shrink-0",children:"web fetch"}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),y.jsx("a",{href:b.url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:underline truncate flex-1 min-w-0",onClick:S=>S.stopPropagation(),children:E}),y.jsxs("span",{className:"text-muted-foreground/80 flex-shrink-0",children:["· ",h]})]}),u.has(0)&&b.content&&y.jsx("div",{className:"mt-2 ml-5 bg-card/60 border border-border rounded-lg p-3 max-h-96 overflow-y-auto",children:y.jsx("div",{className:"text-xs text-foreground/80 whitespace-pre-wrap break-words",children:b.content})})]})}function $H({contentJson:e,debug:n}){const[a,i]=te.useState(!1);let l,u,c,d=!1;e.error&&typeof e.error=="object"?(l=e.error,l.message&&typeof l.message=="string"&&(u=l.message),l.type&&typeof l.type=="string"&&(c=l.type)):e.details&&typeof e.details=="object"?(l=e.details,e.message&&typeof e.message=="string"&&(u=e.message),e.type&&typeof e.type=="string"&&(c=e.type),e.isAborted===!0&&(d=!0)):(e.message&&typeof e.message=="string"&&(u=e.message),e.type&&typeof e.type=="string"&&(c=e.type),e.isAborted===!0&&(d=!0),l=e);let g;if(l?.responseBody&&typeof l.responseBody=="string")try{const E=JSON.parse(l.responseBody);E.error&&typeof E.error=="object"&&(g={type:typeof E.error.type=="string"?E.error.type:void 0,message:typeof E.error.message=="string"?E.error.message:void 0})}catch{}const f=E=>{if(E==null)return y.jsx("span",{className:"text-muted-foreground",children:"null"});if(typeof E=="boolean")return y.jsx("span",{className:"text-amber-600 dark:text-amber-400",children:String(E)});if(typeof E=="number")return y.jsx("span",{className:"text-blue-600 dark:text-blue-400",children:E});if(typeof E=="string"){if(E.startsWith("{")||E.startsWith("["))try{const S=JSON.parse(E);return y.jsx("pre",{className:"mt-1 p-2 bg-muted/50 rounded text-xs overflow-x-auto",children:y.jsx("code",{children:JSON.stringify(S,null,2)})})}catch{}return y.jsx("span",{className:"text-foreground",children:E})}return typeof E=="object"?y.jsx("pre",{className:"mt-1 p-2 bg-muted/50 rounded text-xs overflow-x-auto",children:y.jsx("code",{children:JSON.stringify(E,null,2)})}):y.jsx("span",{className:"text-foreground",children:String(E)})},b=["name","statusCode","url","model","isRetryable","cause"],h=new Set;return y.jsxs("div",{className:"space-y-2 text-sm",children:[d&&y.jsx("div",{className:"text-amber-600 dark:text-amber-400 font-medium",children:"Request aborted"}),g?.message&&y.jsxs("div",{className:"space-y-1",children:[y.jsx("div",{className:"font-medium text-red-600 dark:text-red-400",children:"API Error:"}),y.jsx("div",{className:"text-foreground",children:g.message}),g.type&&y.jsxs("div",{className:"text-xs text-muted-foreground",children:["Type: ",g.type]})]}),!g?.message&&u&&y.jsxs("div",{className:"space-y-1",children:[y.jsx("div",{className:"font-medium text-red-600 dark:text-red-400",children:"Error:"}),y.jsx("div",{className:"text-foreground",children:u}),c&&y.jsxs("div",{className:"text-xs text-muted-foreground",children:["Type: ",c]})]}),l&&y.jsx("div",{className:"space-y-1.5",children:b.map(E=>{const S=l[E];return S==null?null:(h.add(E),y.jsxs("div",{className:"flex gap-2",children:[y.jsxs("span",{className:"font-medium text-muted-foreground min-w-[100px]",children:[E,":"]}),f(S)]},E))})}),l&&y.jsxs("div",{className:"mt-3 border-t border-border pt-2",children:[y.jsxs("button",{type:"button",onClick:()=>i(!a),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[a?y.jsx(la,{className:"h-3 w-3"}):y.jsx(Nt,{className:"h-3 w-3"}),a?"Hide":"View"," Raw Error Details"]}),a&&y.jsx("div",{className:"mt-2",children:y.jsx("pre",{className:"p-3 bg-muted/50 rounded text-xs overflow-x-auto max-h-96 overflow-y-auto",children:y.jsx("code",{children:JSON.stringify(l,null,2)})})})]}),n&&y.jsxs("details",{className:"mt-4 text-xs",children:[y.jsx("summary",{className:"cursor-pointer text-muted-foreground",children:"Debug Info"}),y.jsx("pre",{className:"mt-2 p-2 bg-muted/30 rounded overflow-x-auto",children:y.jsx("code",{children:JSON.stringify({contentJson:e,errorDetails:l,apiError:g},null,2)})})]})]})}function kw({toolName:e,contentJson:n,toolDurationMs:a,debug:i}){const[l,u]=te.useState(!1),c={contentJson:n,toolDurationMs:a??void 0,isExpanded:l,onToggle:()=>u(!l)};if(i)return y.jsx(qH,{...c,toolName:e});switch(e){case"read":return y.jsx(TH,{...c});case"write":return y.jsx(RH,{...c});case"edit":return y.jsx(NH,{...c});case"bash":return y.jsx(wH,{...c});case"git_status":return y.jsx(OH,{...c});case"git_diff":return y.jsx(DH,{...c});case"git_commit":return y.jsx(LH,{...c});case"apply_patch":return y.jsx(MH,{...c});case"ls":return y.jsx(UH,{...c});case"tree":return y.jsx(FH,{...c});case"ripgrep":case"grep":case"glob":return y.jsx(BH,{...c});case"websearch":return y.jsx(HH,{...c});case"finish":return y.jsx(jH,{...c});case"update_plan":return y.jsx(PH,{...c});case"progress_update":return y.jsx(GH,{...c});case"error":return y.jsx($H,{...c});default:return y.jsx(zH,{...c,toolName:e})}}function Yh(e){const n=e.contentJson;if(n&&typeof n=="object")return n;try{if(e.content){const a=JSON.parse(e.content);if(a&&typeof a=="object"&&!Array.isArray(a))return a}}catch{}return null}function VH(e){const n=Yh(e);if(!n)return;const a=n.args;if(a&&typeof a=="object"&&!Array.isArray(a))return a}function YH(e){if(!e)return null;const n=["cmd","command","script","input"];for(const a of n){const i=e[a];if(typeof i=="string"&&i.trim().length>0)return i.trim()}return null}function WH(e,n){if(!n)return null;const a=[{key:"path",match:!0},{key:"file",match:!0},{key:"target",match:!0},{key:"cwd",match:!0},{key:"query",match:!0},{key:"pattern",match:!0},{key:"glob",match:!0},{key:"dir",match:!0}];for(const{key:i}of a){const l=n[i];if(typeof l=="string"&&l.trim().length>0)return{key:i,value:l.trim()}}if(e==="bash"){const i=n.command;if(typeof i=="string"&&i.trim().length>0)return{key:"command",value:i.trim()}}return null}function KH(e,n){if(!e)return null;const a=[];for(const[l,u]of Object.entries(e))if(!(n&&l===n)){if(typeof u=="string"||typeof u=="number"){const c=`${l}=${String(u)}`;a.push(c)}if(a.length>=3)break}if(!a.length)return null;const i=a.join(" ");return i.length>120?`${i.slice(0,117)}…`:i}const Cw=te.memo(function({part:n,showLine:a,isLastToolCall:i,isLastProgressUpdate:l}){if(n.type==="tool_call"&&!i||n.type==="tool_result"&&n.toolName==="progress_update"&&!l)return null;if(n.type==="text"){const h=n.contentJson||n.content;let E="";if(h&&typeof h=="object"&&"text"in h?E=String(h.text):typeof h=="string"&&(E=h),!E||!E.trim())return null}const u=n.type==="tool_call"||n.type==="tool_result",c=["flex-1","min-w-0","max-w-full"];u?c.push("pt-0.5","mt-[1px]"):c.push("pt-0"),n.type==="text"&&c.push("-mt-0.5");const d=c.join(" "),g=()=>{if(n.type==="tool_call")return y.jsx(Kw,{className:"h-4 w-4 text-amber-600 dark:text-amber-300 animate-spin"});if(n.type==="error")return Yh(n)?.isAborted===!0?y.jsx(w1,{className:"h-4 w-4 text-amber-600 dark:text-amber-400"}):y.jsx(Vw,{className:"h-4 w-4 text-red-600 dark:text-red-400"});if(n.type==="tool_result"){const h=n.toolName||"";return h==="read"?y.jsx(u1,{className:"h-4 w-4 text-blue-600 dark:text-blue-300"}):h==="write"?y.jsx(Yv,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-300"}):h==="edit"?y.jsx(Yv,{className:"h-4 w-4 text-purple-600 dark:text-purple-300"}):h==="ls"?y.jsx(v1,{className:"h-4 w-4 text-cyan-600 dark:text-cyan-300"}):h==="tree"?y.jsx(g1,{className:"h-4 w-4 text-cyan-600 dark:text-cyan-300"}):h==="bash"?y.jsx(Kv,{className:"h-4 w-4 text-muted-foreground"}):h==="ripgrep"||h==="grep"||h==="glob"?y.jsx(D1,{className:"h-4 w-4 text-amber-600 dark:text-amber-300"}):h==="apply_patch"?y.jsx(Vv,{className:"h-4 w-4 text-purple-600 dark:text-purple-300"}):h==="git_status"?y.jsx(Pl,{className:"h-4 w-4 text-blue-600 dark:text-blue-300"}):h==="git_diff"?y.jsx(Vv,{className:"h-4 w-4 text-purple-600 dark:text-purple-300"}):h==="git_commit"?y.jsx(Gl,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-300"}):h==="finish"?y.jsx($w,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-300"}):y.jsx(Kv,{className:"h-4 w-4 text-muted-foreground"})}return y.jsx(Hl,{className:"h-4 w-4 text-violet-600 dark:text-violet-300"})},f=()=>{const h=n.toolName||"";let E;try{n.contentJson&&typeof n.contentJson=="object"?E=n.contentJson:typeof n.content=="string"?E=JSON.parse(n.content):E={}}catch{E={result:n.content}}return y.jsx(kw,{toolName:h,contentJson:E,toolDurationMs:n.toolDurationMs,debug:!1})},b=()=>{if(n.type==="text"){let h="";const E=n.contentJson||n.content;return E&&typeof E=="object"&&"text"in E?h=String(E.text):typeof E=="string"?h=E:E&&(h=JSON.stringify(E,null,2)),y.jsx("div",{className:"text-base text-foreground leading-relaxed markdown-content max-w-full overflow-hidden",children:y.jsx(eC,{remarkPlugins:[AC],children:h})})}if(n.type==="error"){let h;try{n.contentJson&&typeof n.contentJson=="object"?h=n.contentJson:typeof n.content=="string"?h=JSON.parse(n.content):h={}}catch{h={message:n.content||"Unknown error"}}return y.jsx(kw,{toolName:"error",contentJson:h,toolDurationMs:n.toolDurationMs,debug:!1})}if(n.type==="tool_call"){const h=Yh(n),E=n.toolName||(typeof h?.name=="string"?h.name:"tool"),S=E.replace(/_/g," "),_=VH(n),T=WH(E,_),C=KH(_,T?.key),x=E==="bash"?YH(_):null,A=[];x?A.push({key:"cmd",node:y.jsx("code",{className:"font-mono text-foreground/90 truncate max-w-xs",children:x})}):T&&A.push({key:"primary",node:y.jsx("code",{className:"font-mono text-foreground/85 truncate max-w-xs",children:T.value})}),C&&A.push({key:"args",node:y.jsx("span",{className:"text-muted-foreground/80 truncate max-w-xs",children:C})}),A.length===0&&A.push({key:"running",node:y.jsx("span",{className:"text-muted-foreground/75",children:"running…"})});const N=["flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-foreground/80 max-w-full"];return n.ephemeral&&N.push("animate-pulse"),y.jsxs("div",{className:N.join(" "),children:[y.jsx("span",{className:"font-medium text-foreground",children:S}),A.map(D=>y.jsxs(te.Fragment,{children:[y.jsx("span",{className:"text-muted-foreground/65",children:"·"}),D.node]},D.key))]})}return n.type==="tool_result"?f():null};return y.jsxs("div",{className:"flex gap-3 pb-2 relative max-w-full overflow-hidden",children:[y.jsxs("div",{className:"flex-shrink-0 w-6 flex items-start justify-center relative pt-0.5",children:[y.jsx("div",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full relative z-10 bg-background",children:g()}),a&&y.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 w-[2px] bg-border z-0",style:{top:"1.25rem",bottom:"-0.5rem"}})]}),y.jsx("div",{className:d,children:b()})]})},(e,n)=>e.part.id===n.part.id&&e.part.content===n.part.content&&e.part.contentJson===n.part.contentJson&&e.part.ephemeral===n.part.ephemeral&&e.part.completedAt===n.part.completedAt&&e.showLine===n.showLine&&e.isLastToolCall===n.isLastToolCall&&e.isLastProgressUpdate===n.isLastProgressUpdate),Iw=["Generating...","Cooking up something...","Thinking...","Processing...","Working on it...","Crafting response...","Brewing magic...","Computing..."];function XH(e){const n=e.split("").reduce((a,i)=>a+i.charCodeAt(0),0);return Iw[n%Iw.length]}const ZH=te.memo(function({message:n,showHeader:a,hasNextAssistantMessage:i}){const l=n.parts||[],u=l.some(S=>S.toolName==="finish"),c=l.reduce((S,_,T)=>_.type==="tool_result"&&_.toolName==="progress_update"?T:S,-1),d=c>=0?l[c]:null,g=l.some(S=>!(S.type==="tool_result"&&S.toolName==="progress_update")),f=l.findIndex(S=>!(S.type==="tool_result"&&S.toolName==="progress_update")),b=n.status==="pending"&&!u&&!!d,h=n.status==="pending"&&!u&&!d,E=S=>S?new Date(S).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"";return y.jsxs("div",{className:"relative",children:[a&&y.jsx("div",{className:"pb-2",children:y.jsxs("div",{className:"inline-flex items-center bg-violet-500/10 border border-violet-500/30 dark:bg-violet-500/5 dark:border-violet-500/20 rounded-full pr-4",children:[y.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-violet-500/50 bg-violet-500/20 dark:bg-violet-500/10",children:y.jsx(Hl,{className:"h-3.5 w-3.5 text-violet-700 dark:text-violet-300"})}),y.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground pl-3",children:[n.agent&&y.jsx("span",{className:"font-medium text-violet-700 dark:text-violet-300",children:n.agent}),n.agent&&n.provider&&y.jsx("span",{children:"·"}),n.provider&&y.jsx("span",{className:"text-muted-foreground",children:n.provider}),n.model&&y.jsx("span",{children:"·"}),n.model&&y.jsx("span",{className:"text-muted-foreground",children:n.model}),n.createdAt&&y.jsx("span",{children:"·"}),n.createdAt&&y.jsx("span",{className:"text-muted-foreground",children:E(n.createdAt)})]})]})}),y.jsxs("div",{className:"relative ml-1",children:[l.map((S,_)=>{const T=_===l.length-1,C=!T||i,x=S.type==="tool_call"&&T;return S.type==="tool_result"&&S.toolName==="progress_update"?null:y.jsx(Cw,{part:S,showLine:C,isFirstPart:_===f&&!a,isLastToolCall:x},S.id)}),b&&d&&y.jsx(Cw,{part:d,showLine:i,isFirstPart:!g&&!a,isLastProgressUpdate:!0},d.id),h&&y.jsxs("div",{className:"flex gap-3 pb-2 relative",children:[y.jsx("div",{className:"flex-shrink-0 w-6 flex items-start justify-center relative pt-0.5",children:y.jsx("div",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full relative z-10 bg-card text-violet-700 dark:bg-background dark:text-violet-300",children:y.jsx(Hl,{className:"h-4 w-4"})})}),y.jsx("div",{className:"flex-1 pt-0.5",children:y.jsx("div",{className:"text-base text-foreground animate-pulse",children:XH(n.id)})})]})]})]})},(e,n)=>{const a=e.message.parts||[],i=n.message.parts||[];if(a.length!==i.length)return!1;for(let l=0;l<a.length;l++){const u=a[l],c=i[l];if(u.id!==c.id||u.content!==c.content||u.contentJson!==c.contentJson||u.ephemeral!==c.ephemeral||u.completedAt!==c.completedAt)return!1}return e.message.id===n.message.id&&e.message.status===n.message.status&&e.message.completedAt===n.message.completedAt&&e.showHeader===n.showHeader&&e.hasNextAssistantMessage===n.hasNextAssistantMessage&&e.isLastMessage===n.isLastMessage}),QH=te.memo(function({message:n}){const i=(n.parts||[])[0];if(!i)return null;let l="";const u=i.contentJson||i.content;u&&typeof u=="object"&&"text"in u?l=String(u.text):typeof u=="string"?l=u:u&&(l=JSON.stringify(u,null,2));const c=d=>d?new Date(d).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"";return y.jsx("div",{className:"relative pb-8 pt-6",children:y.jsxs("div",{className:"flex gap-4 justify-end",children:[y.jsxs("div",{className:"flex flex-col items-end max-w-2xl",children:[y.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground pb-2 justify-end",children:[y.jsx("span",{className:"font-medium text-emerald-700 dark:text-emerald-300",children:"You"}),n.createdAt&&y.jsx("span",{children:"·"}),n.createdAt&&y.jsx("span",{children:c(n.createdAt)})]}),y.jsx("div",{className:"text-sm text-foreground leading-relaxed prose prose-invert prose-sm [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 bg-emerald-500/5 border border-emerald-500/20 rounded-xl px-4 py-3 max-w-full break-words overflow-wrap-anywhere",children:y.jsx(eC,{remarkPlugins:[AC],children:l})})]}),y.jsx("div",{className:"flex-shrink-0 w-8 flex items-start justify-center",children:y.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border-2 border-emerald-500/50 bg-emerald-500/20 dark:bg-emerald-500/10 relative z-10 bg-background",children:y.jsx(q1,{className:"h-4 w-4 text-emerald-700 dark:text-emerald-300"})})})]})})},(e,n)=>{const a=e.message.parts?.[0],i=n.message.parts?.[0];return e.message.id===n.message.id&&a?.content===i?.content&&a?.contentJson===i?.contentJson&&e.message.createdAt===n.message.createdAt});function JH({session:e}){const n=te.useMemo(()=>{const u=e.totalInputTokens||0,c=e.totalOutputTokens||0;return u+c},[e.totalInputTokens,e.totalOutputTokens]),a=te.useMemo(()=>{const u=e.totalInputTokens||0,c=e.totalOutputTokens||0,d=30,g=60,f=u/1e6*d,b=c/1e6*g;return f+b},[e.totalInputTokens,e.totalOutputTokens]),i=u=>{if(!u)return"0s";const c=Math.floor(u/1e3),d=Math.floor(c/60),g=Math.floor(d/60);if(g>0){const f=d%60;return`${g}h ${f}m`}if(d>0){const f=c%60;return`${d}m ${f}s`}return`${c}s`},l=u=>u.toLocaleString("en-US");return y.jsx("div",{className:"border-b border-border bg-background/95 backdrop-blur-sm",children:y.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-6",children:[y.jsx("h1",{className:"text-2xl font-semibold text-foreground mb-4",children:e.title||"Untitled Session"}),y.jsxs("div",{className:"flex flex-wrap gap-6 text-sm",children:[y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(Ww,{className:"w-4 h-4"}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs uppercase tracking-wide opacity-70",children:"Total Tokens"}),y.jsx("span",{className:"text-foreground font-medium",children:l(n)}),(e.totalInputTokens||e.totalOutputTokens)&&y.jsxs("span",{className:"text-xs opacity-60",children:[l(e.totalInputTokens||0)," in /"," ",l(e.totalOutputTokens||0)," out"]})]})]}),y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(QO,{className:"w-4 h-4"}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs uppercase tracking-wide opacity-70",children:"Tool Time"}),y.jsx("span",{className:"text-foreground font-medium",children:i(e.totalToolTimeMs)})]})]}),a>0&&y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(Yw,{className:"w-4 h-4"}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs uppercase tracking-wide opacity-70",children:"Est. Cost"}),y.jsxs("span",{className:"text-foreground font-medium",children:["$",a.toFixed(4)]})]})]}),y.jsx("div",{className:"flex items-center gap-2 text-muted-foreground ml-auto",children:y.jsxs("div",{className:"flex flex-col items-end",children:[y.jsx("span",{className:"text-xs uppercase tracking-wide opacity-70",children:"Model"}),y.jsx("span",{className:"text-foreground font-medium",children:e.model}),y.jsxs("span",{className:"text-xs opacity-60",children:[e.provider," · ",e.agent]})]})})]})]})})}function e$({sessionId:e,onStop:n,disabled:a}){const[i,l]=te.useState(!1),u=async()=>{if(!i){l(!0);try{await $t.abortSession(e),n?.()}catch(c){console.error("Failed to abort stream:",c)}finally{setTimeout(()=>l(!1),1e3)}}};return y.jsxs("button",{type:"button",onClick:u,disabled:a||i,className:"flex items-center gap-1.5 text-sm text-destructive hover:text-destructive/80 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",title:"Stop generation",children:[y.jsx(WO,{className:"w-4 h-4"}),y.jsx("span",{className:"font-medium",children:i?"Stopping...":"Stop"})]})}function t$({session:e,isVisible:n,isGenerating:a}){const i=te.useMemo(()=>{const c=e.totalInputTokens||0,d=e.totalOutputTokens||0;return c+d},[e.totalInputTokens,e.totalOutputTokens]),l=te.useMemo(()=>{const c=e.totalInputTokens||0,d=e.totalOutputTokens||0,g=30,f=60,b=c/1e6*g,h=d/1e6*f;return b+h},[e.totalInputTokens,e.totalOutputTokens]),u=c=>c.toLocaleString("en-US");return y.jsx("div",{className:`absolute top-0 left-0 right-0 h-14 border-b border-border bg-background/95 backdrop-blur-sm z-30 transition-transform duration-200 ${n?"translate-y-0":"-translate-y-full"}`,children:y.jsxs("div",{className:"h-full px-6 flex items-center justify-between gap-6 text-sm",children:[y.jsx("div",{className:"flex-shrink-0",children:a&&y.jsx(e$,{sessionId:e.id})}),y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(Ww,{className:"w-4 h-4"}),y.jsx("span",{className:"text-foreground font-medium",children:u(i)})]}),l>0&&y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(Yw,{className:"w-4 h-4"}),y.jsxs("span",{className:"text-foreground font-medium",children:["$",l.toFixed(4)]})]})]})]})})}const n$=te.memo(function({messages:n,session:a,isGenerating:i}){const l=te.useRef(null),u=te.useRef(null),c=te.useRef(null),[d,g]=te.useState(!0),[f,b]=te.useState(!1),h=te.useRef(0),E=te.useRef(0),S=()=>{const C=u.current;if(!C)return;const{scrollTop:x,scrollHeight:A,clientHeight:N}=C,D=A-x-N;g(D<100);const U=c.current;if(U){const w=U.getBoundingClientRect(),M=C.getBoundingClientRect();b(w.bottom<M.top)}};te.useEffect(()=>{n.length>E.current&&g(!0),E.current=n.length},[n.length]),te.useEffect(()=>{const C=u.current;!C||!d||requestAnimationFrame(()=>{if(!l.current||!C)return;const{scrollHeight:x}=C,N=x!==h.current?"smooth":"instant";l.current.scrollIntoView({behavior:N}),h.current=x})},[n,d]);const _=()=>{g(!0),l.current?.scrollIntoView({behavior:"smooth"})},T=te.useMemo(()=>n.filter(C=>C.role!=="system"),[n]);return n.length===0?y.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground text-sm",children:"No messages yet. Start a conversation below."}):y.jsxs("div",{className:"absolute inset-0 flex flex-col",children:[a&&y.jsx(t$,{session:a,isVisible:f,isGenerating:i}),y.jsxs("div",{ref:u,className:"flex-1 overflow-y-auto",onScroll:S,children:[y.jsx("div",{ref:c,children:a&&y.jsx(JH,{session:a})}),y.jsx("div",{className:"p-6 pb-32",children:y.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[T.map((C,x)=>{const A=T[x-1],N=T[x+1],D=x===T.length-1;if(C.role==="user")return y.jsx(QH,{message:C,isFirst:x===0},C.id);if(C.role==="assistant"){const U=!A||A.role!=="assistant",w=N&&N.role==="assistant";return y.jsx(ZH,{message:C,showHeader:U,hasNextAssistantMessage:w,isLastMessage:D},C.id)}return null}),y.jsx("div",{ref:l})]})})]}),!d&&y.jsxs("button",{type:"button",onClick:_,className:"absolute bottom-36 left-1/2 -translate-x-1/2 flex items-center gap-2 px-4 py-2 bg-background border border-border rounded-full shadow-lg hover:bg-muted/50 transition-all text-sm text-foreground z-10",children:[y.jsx(UO,{className:"w-4 h-4"}),y.jsx("span",{children:"Scroll to bottom"})]})]})}),r$=te.memo(function({sessionId:n}){const{data:a=[],isLoading:i}=Xj(n),{data:l=[]}=yk();Jj(n);const u=te.useMemo(()=>l.find(d=>d.id===n),[l,n]),c=te.useMemo(()=>a.some(d=>d.role==="assistant"&&d.status==="pending"),[a]);return i?y.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Loading messages..."}):y.jsx(n$,{messages:a,session:u,isGenerating:c})}),a$=te.memo(function({onSend:n,disabled:a,onConfigClick:i}){const[l,u]=te.useState(""),c=te.useRef(null);te.useEffect(()=>{c.current?.focus()},[]);const d=te.useCallback(()=>{const h=c.current;h&&(h.style.height="auto",h.style.height=`${h.scrollHeight}px`)},[]);te.useEffect(()=>{d()},[d,l]);const g=te.useCallback(()=>{l.trim()&&!a&&(n(l),u(""),c.current&&(c.current.style.height="auto"),c.current?.focus())},[l,a,n]),f=te.useCallback(h=>{u(h.target.value)},[]),b=te.useCallback(h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),g())},[g]);return y.jsx("div",{className:"absolute bottom-0 left-0 right-0 pt-16 pb-8 px-4 bg-gradient-to-t from-background via-background to-transparent pointer-events-none z-20",children:y.jsx("div",{className:"max-w-3xl mx-auto pointer-events-auto",children:y.jsxs("div",{className:"flex items-end gap-1 bg-card rounded-3xl border border-border p-1 focus-within:border-primary/60 focus-within:ring-1 focus-within:ring-primary/40 transition-colors",children:[i&&y.jsx("button",{type:"button",onClick:i,className:"flex items-center justify-center w-10 h-10 rounded-full hover:bg-background/50 transition-colors text-muted-foreground hover:text-foreground flex-shrink-0",children:y.jsx(n1,{className:"w-4 h-4"})}),y.jsx(cb,{ref:c,value:l,onChange:f,onKeyDown:b,placeholder:"Type a message...",disabled:a,rows:1,className:"border-0 bg-transparent pl-1 pr-2 py-2 max-h-[200px] overflow-y-auto leading-normal resize-none scrollbar-hide",style:{height:"2.5rem"}}),y.jsx("button",{type:"button",onClick:g,disabled:a||!l.trim(),className:`flex items-center justify-center w-10 h-10 rounded-full transition-colors flex-shrink-0 ${l.trim()?"bg-primary hover:bg-primary/90 text-primary-foreground":"bg-transparent text-muted-foreground"}`,children:y.jsx(zO,{className:"w-4 h-4"})})]})})})});function i$(){return ai({queryKey:["config"],queryFn:()=>$t.getConfig()})}function o$(e){return ai({queryKey:["models",e],queryFn:()=>e?$t.getModels(e):null,enabled:!!e})}function l$({isOpen:e,onClose:n,agent:a,provider:i,model:l,onAgentChange:u,onProviderChange:c,onModelChange:d}){const{data:g,isLoading:f}=i$(),{data:b,isLoading:h}=o$(i),E=te.useId(),S=te.useId(),_=te.useId();if(te.useEffect(()=>{g&&!a&&!i&&!l&&(u(g.defaults.agent),c(g.defaults.provider),d(g.defaults.model))},[g,a,i,l,u,c,d]),te.useEffect(()=>{b&&b.models.length>0&&(b.models.some(A=>A.id===l)||d(b.default||b.models[0].id))},[b,l,d]),!e)return null;const T=x=>{x.target===x.currentTarget&&n()},C=x=>{x.key==="Escape"&&n()};return y.jsxs(y.Fragment,{children:[y.jsx("button",{type:"button",className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 cursor-default",onClick:T,onKeyDown:C,"aria-label":"Close modal"}),y.jsx("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 w-full max-w-md",children:y.jsxs("div",{className:"bg-background border border-border rounded-lg shadow-lg",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[y.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Configuration"}),y.jsx("button",{type:"button",onClick:n,className:"text-muted-foreground hover:text-foreground transition-colors",children:y.jsx(Jh,{className:"h-5 w-5"})})]}),y.jsx("div",{className:"p-4 space-y-4",children:f?y.jsx("div",{className:"text-center text-muted-foreground py-8",children:"Loading configuration..."}):g?y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("label",{htmlFor:E,className:"block text-sm font-medium text-foreground mb-2",children:"Agent"}),y.jsx("select",{id:E,value:a,onChange:x=>u(x.target.value),className:"w-full bg-background border border-border rounded px-3 py-2 text-foreground outline-none focus:border-violet-500 transition-colors",children:g.agents.map(x=>y.jsx("option",{value:x,children:x},x))})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:S,className:"block text-sm font-medium text-foreground mb-2",children:"Provider"}),y.jsx("select",{id:S,value:i,onChange:x=>c(x.target.value),className:"w-full bg-background border border-border rounded px-3 py-2 text-foreground outline-none focus:border-violet-500 transition-colors",children:g.providers.map(x=>y.jsx("option",{value:x,children:x},x))})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:_,className:"block text-sm font-medium text-foreground mb-2",children:"Model"}),y.jsx("select",{id:_,value:l,onChange:x=>d(x.target.value),disabled:h||!b,className:"w-full bg-background border border-border rounded px-3 py-2 text-foreground outline-none focus:border-violet-500 transition-colors disabled:opacity-50",children:b?.models.map(x=>y.jsx("option",{value:x.id,children:x.label},x.id))})]})]}):null})]})})]})}const s$=te.memo(function({sessionId:n}){const[a,i]=te.useState(""),[l,u]=te.useState(""),[c,d]=te.useState(""),[g,f]=te.useState(!1),[b,h]=te.useState(0),E=Zj(n);te.useEffect(()=>{h(N=>N+1)},[]);const S=te.useCallback(async N=>{try{await E.mutateAsync({content:N,agent:a||void 0,provider:l||void 0,model:c||void 0})}catch(D){console.error("Failed to send message:",D)}},[E,a,l,c]),_=te.useCallback(()=>{f(N=>!N)},[]),T=te.useCallback(()=>{f(!1)},[]),C=te.useCallback(N=>{i(N)},[]),x=te.useCallback(N=>{u(N)},[]),A=te.useCallback(N=>{d(N)},[]);return y.jsxs(y.Fragment,{children:[y.jsx(l$,{isOpen:g,onClose:T,agent:a,provider:l,model:c,onAgentChange:C,onProviderChange:x,onModelChange:A}),y.jsx(a$,{onSend:S,disabled:E.isPending,onConfigClick:_},b)]})}),_C="agi-theme",Ow="dark";function u$(){if(typeof window>"u")return Ow;const e=window.localStorage.getItem(_C);return e==="light"||e==="dark"?e:Ow}function c$(){const[e,n]=te.useState(()=>u$());te.useEffect(()=>{if(typeof document>"u")return;const i=document.documentElement;e==="dark"?i.classList.add("dark"):i.classList.remove("dark");try{window.localStorage.setItem(_C,e)}catch(l){console.warn("Failed to persist theme preference",l)}},[e]);const a=te.useCallback(()=>{n(i=>i==="dark"?"light":"dark")},[]);return te.useMemo(()=>({theme:e,setTheme:n,toggleTheme:a}),[e,a])}function d$(){const[e,n]=te.useState(null);return te.useEffect(()=>{(async()=>{try{const u=`${window.AGI_SERVER_URL||Zw}/v1/config/cwd`;console.log("[useWorkingDirectory] Fetching from:",u);const c=await fetch(u);if(!c.ok)throw console.error("[useWorkingDirectory] Failed:",c.status,c.statusText),new Error(`Failed to fetch working directory: ${c.status}`);const d=await c.json();console.log("[useWorkingDirectory] Success:",d),d.dirName&&(console.log("[useWorkingDirectory] Setting title to:",d.dirName),n(d.dirName),document.title=d.dirName)}catch(i){console.error("[useWorkingDirectory] Error:",i),document.title="AGI"}})()},[]),e}const p$=new bO({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,structuralSharing:!0}}});function f$(){const[e,n]=te.useState(),a=Yj(),{theme:i,toggleTheme:l}=c$();d$();const u=te.useCallback(async()=>{try{const c=await a.mutateAsync({agent:"general"});n(c.id)}catch(c){console.error("Failed to create session:",c)}},[a]);return y.jsx(Vj,{onNewSession:u,theme:i,onToggleTheme:l,sidebar:y.jsx(Kj,{activeSessionId:e,onSelectSession:n}),children:e?y.jsxs(y.Fragment,{children:[y.jsx(r$,{sessionId:e}),y.jsx(s$,{sessionId:e})]}):y.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Select a session or create a new one to start"})})}function g$(){return y.jsx(yO,{client:p$,children:y.jsx(f$,{})})}const RC=document.getElementById("root");if(!RC)throw new Error("Root element not found");WI.createRoot(RC).render(y.jsx(te.StrictMode,{children:y.jsx(g$,{})}));
|
|
314
|
+
`))}function g(S,_,T,C){const x=T.enter("tableCell"),A=T.enter("phrasing"),N=T.containerPhrasing(S,{...C,before:u,after:u});return A(),x(),N}function f(S,_){return X4(S,{align:_,alignDelimiters:i,padding:a,stringLength:l})}function b(S,_,T){const C=S.children;let x=-1;const A=[],N=_.enter("table");for(;++x<C.length;)A[x]=h(C[x],_,T);return N(),A}function h(S,_,T){const C=S.children;let x=-1;const A=[],N=_.enter("tableRow");for(;++x<C.length;)A[x]=g(C[x],S,_,T);return N(),A}function E(S,_,T){let C=mC.inlineCode(S,_,T);return T.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function F3(){return{exit:{taskListCheckValueChecked:Nw,taskListCheckValueUnchecked:Nw,paragraph:j3}}}function B3(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:z3}}}function Nw(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function j3(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const i=a.children[0];if(i&&i.type==="text"){const l=n.children;let u=-1,c;for(;++u<l.length;){const d=l[u];if(d.type==="paragraph"){c=d;break}}c===a&&(i.value=i.value.slice(1),i.value.length===0?a.children.shift():a.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,a.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function z3(e,n,a,i){const l=e.children[0],u=typeof e.checked=="boolean"&&l&&l.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",d=a.createTracker(i);u&&d.move(c);let g=mC.listItem(e,n,a,{...i,...d.current()});return u&&(g=g.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),g;function f(b){return b+c}}function q3(){return[E4(),z4(),H4(),C3(),F3()]}function P3(e){return{extensions:[S4(),q4(e),$4(),U3(e),B3()]}}const G3={tokenize:K3,partial:!0},hC={tokenize:X3,partial:!0},bC={tokenize:Z3,partial:!0},yC={tokenize:Q3,partial:!0},H3={tokenize:J3,partial:!0},EC={name:"wwwAutolink",tokenize:Y3,previous:vC},SC={name:"protocolAutolink",tokenize:W3,previous:xC},or={name:"emailAutolink",tokenize:V3,previous:TC},Mn={};function $3(){return{text:Mn}}let ra=48;for(;ra<123;)Mn[ra]=or,ra++,ra===58?ra=65:ra===91&&(ra=97);Mn[43]=or;Mn[45]=or;Mn[46]=or;Mn[95]=or;Mn[72]=[or,SC];Mn[104]=[or,SC];Mn[87]=[or,EC];Mn[119]=[or,EC];function V3(e,n,a){const i=this;let l,u;return c;function c(h){return!Vh(h)||!TC.call(i,i.previous)||wb(i.events)?a(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(h))}function d(h){return Vh(h)?(e.consume(h),d):h===64?(e.consume(h),g):a(h)}function g(h){return h===46?e.check(H3,b,f)(h):h===45||h===95||Nt(h)?(u=!0,e.consume(h),g):b(h)}function f(h){return e.consume(h),l=!0,g}function b(h){return u&&l&&Dt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(h)):a(h)}}function Y3(e,n,a){const i=this;return l;function l(c){return c!==87&&c!==119||!vC.call(i,i.previous)||wb(i.events)?a(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(G3,e.attempt(hC,e.attempt(bC,u),a),a)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function W3(e,n,a){const i=this;let l="",u=!1;return c;function c(h){return(h===72||h===104)&&xC.call(i,i.previous)&&!wb(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(h),e.consume(h),d):a(h)}function d(h){if(Dt(h)&&l.length<5)return l+=String.fromCodePoint(h),e.consume(h),d;if(h===58){const E=l.toLowerCase();if(E==="http"||E==="https")return e.consume(h),g}return a(h)}function g(h){return h===47?(e.consume(h),u?f:(u=!0,g)):a(h)}function f(h){return h===null||$l(h)||Ve(h)||sa(h)||es(h)?a(h):e.attempt(hC,e.attempt(bC,b),a)(h)}function b(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(h)}}function K3(e,n,a){let i=0;return l;function l(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),l):c===46&&i===3?(e.consume(c),u):a(c)}function u(c){return c===null?a(c):n(c)}}function X3(e,n,a){let i,l,u;return c;function c(f){return f===46||f===95?e.check(yC,g,d)(f):f===null||Ve(f)||sa(f)||f!==45&&es(f)?g(f):(u=!0,e.consume(f),c)}function d(f){return f===95?i=!0:(l=i,i=void 0),e.consume(f),c}function g(f){return l||i||!u?a(f):n(f)}}function Z3(e,n){let a=0,i=0;return l;function l(c){return c===40?(a++,e.consume(c),l):c===41&&i<a?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(yC,n,u)(c):c===null||Ve(c)||sa(c)?n(c):(e.consume(c),l)}function u(c){return c===41&&i++,e.consume(c),l}}function Q3(e,n,a){return i;function i(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),i):d===38?(e.consume(d),u):d===93?(e.consume(d),l):d===60||d===null||Ve(d)||sa(d)?n(d):a(d)}function l(d){return d===null||d===40||d===91||Ve(d)||sa(d)?n(d):i(d)}function u(d){return Dt(d)?c(d):a(d)}function c(d){return d===59?(e.consume(d),i):Dt(d)?(e.consume(d),c):a(d)}}function J3(e,n,a){return i;function i(u){return e.consume(u),l}function l(u){return Nt(u)?a(u):n(u)}}function vC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ve(e)}function xC(e){return!Dt(e)}function TC(e){return!(e===47||Vh(e))}function Vh(e){return e===43||e===45||e===46||e===95||Nt(e)}function wb(e){let n=e.length,a=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){a=!0;break}if(i._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const eH={tokenize:sH,partial:!0};function tH(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:iH,continuation:{tokenize:oH},exit:lH}},text:{91:{name:"gfmFootnoteCall",tokenize:aH},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nH,resolveTo:rH}}}}function nH(e,n,a){const i=this;let l=i.events.length;const u=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;l--;){const g=i.events[l][1];if(g.type==="labelImage"){c=g;break}if(g.type==="gfmFootnoteCall"||g.type==="labelLink"||g.type==="label"||g.type==="image"||g.type==="link")break}return d;function d(g){if(!c||!c._balanced)return a(g);const f=_n(i.sliceSerialize({start:c.end,end:i.now()}));return f.codePointAt(0)!==94||!u.includes(f.slice(1))?a(g):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),n(g))}}function rH(e,n){let a=e.length;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},d=[e[a+1],e[a+2],["enter",i,n],e[a+3],e[a+4],["enter",l,n],["exit",l,n],["enter",u,n],["enter",c,n],["exit",c,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(a,e.length-a+1,...d),e}function aH(e,n,a){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u=0,c;return d;function d(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),g}function g(h){return h!==94?a(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(h){if(u>999||h===93&&!c||h===null||h===91||Ve(h))return a(h);if(h===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return l.includes(_n(i.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):a(h)}return Ve(h)||(c=!0),u++,e.consume(h),h===92?b:f}function b(h){return h===91||h===92||h===93?(e.consume(h),u++,f):f(h)}}function iH(e,n,a){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u,c=0,d;return g;function g(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):a(_)}function b(_){if(c>999||_===93&&!d||_===null||_===91||Ve(_))return a(_);if(_===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return u=_n(i.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return Ve(_)||(d=!0),c++,e.consume(_),_===92?h:b}function h(_){return _===91||_===92||_===93?(e.consume(_),c++,b):b(_)}function E(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),l.includes(u)||l.push(u),Le(e,S,"gfmFootnoteDefinitionWhitespace")):a(_)}function S(_){return n(_)}}function oH(e,n,a){return e.check(mo,n,e.attempt(eH,n,a))}function lH(e){e.exit("gfmFootnoteDefinition")}function sH(e,n,a){const i=this;return Le(e,l,"gfmFootnoteDefinitionIndent",5);function l(u){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(u):a(u)}}function uH(e){let a=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:u,resolveAll:l};return a==null&&(a=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(c,d){let g=-1;for(;++g<c.length;)if(c[g][0]==="enter"&&c[g][1].type==="strikethroughSequenceTemporary"&&c[g][1]._close){let f=g;for(;f--;)if(c[f][0]==="exit"&&c[f][1].type==="strikethroughSequenceTemporary"&&c[f][1]._open&&c[g][1].end.offset-c[g][1].start.offset===c[f][1].end.offset-c[f][1].start.offset){c[g][1].type="strikethroughSequence",c[f][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[f][1].start),end:Object.assign({},c[g][1].end)},h={type:"strikethroughText",start:Object.assign({},c[f][1].end),end:Object.assign({},c[g][1].start)},E=[["enter",b,d],["enter",c[f][1],d],["exit",c[f][1],d],["enter",h,d]],S=d.parser.constructs.insideSpan.null;S&&rn(E,E.length,0,ts(S,c.slice(f+1,g),d)),rn(E,E.length,0,[["exit",h,d],["enter",c[g][1],d],["exit",c[g][1],d],["exit",b,d]]),rn(c,f-1,g-f+3,E),g=f+E.length-2;break}}for(g=-1;++g<c.length;)c[g][1].type==="strikethroughSequenceTemporary"&&(c[g][1].type="data");return c}function u(c,d,g){const f=this.previous,b=this.events;let h=0;return E;function E(_){return f===126&&b[b.length-1][1].type!=="characterEscape"?g(_):(c.enter("strikethroughSequenceTemporary"),S(_))}function S(_){const T=ni(f);if(_===126)return h>1?g(_):(c.consume(_),h++,S);if(h<2&&!a)return g(_);const C=c.exit("strikethroughSequenceTemporary"),x=ni(_);return C._open=!x||x===2&&!!T,C._close=!T||T===2&&!!x,d(_)}}}class cH{constructor(){this.map=[]}add(n,a,i){dH(this,n,a,i)}consume(n){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let a=this.map.length;const i=[];for(;a>0;)a-=1,i.push(n.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),n.length=this.map[a][0];i.push(n.slice()),n.length=0;let l=i.pop();for(;l;){for(const u of l)n.push(u);l=i.pop()}this.map.length=0}}function dH(e,n,a,i){let l=0;if(!(a===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=a,e.map[l][2].push(...i);return}l+=1}e.map.push([n,a,i])}}function pH(e,n){let a=!1;const i=[];for(;n<e.length;){const l=e[n];if(a){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=i.length-1;i[u]=i[u]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(a=!0);n+=1}return i}function fH(){return{flow:{null:{name:"table",tokenize:gH,resolveAll:mH}}}}function gH(e,n,a){const i=this;let l=0,u=0,c;return d;function d(F){let W=i.events.length-1;for(;W>-1;){const oe=i.events[W][1].type;if(oe==="lineEnding"||oe==="linePrefix")W--;else break}const Q=W>-1?i.events[W][1].type:null,ne=Q==="tableHead"||Q==="tableRow"?w:g;return ne===w&&i.parser.lazy[i.now().line]?a(F):ne(F)}function g(F){return e.enter("tableHead"),e.enter("tableRow"),f(F)}function f(F){return F===124||(c=!0,u+=1),b(F)}function b(F){return F===null?a(F):be(F)?u>1?(u=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),S):a(F):Ne(F)?Le(e,b,"whitespace")(F):(u+=1,c&&(c=!1,l+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),c=!0,b):(e.enter("data"),h(F)))}function h(F){return F===null||F===124||Ve(F)?(e.exit("data"),b(F)):(e.consume(F),F===92?E:h)}function E(F){return F===92||F===124?(e.consume(F),h):h(F)}function S(F){return i.interrupt=!1,i.parser.lazy[i.now().line]?a(F):(e.enter("tableDelimiterRow"),c=!1,Ne(F)?Le(e,_,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):_(F))}function _(F){return F===45||F===58?C(F):F===124?(c=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),T):U(F)}function T(F){return Ne(F)?Le(e,C,"whitespace")(F):C(F)}function C(F){return F===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),x):F===45?(u+=1,x(F)):F===null||be(F)?D(F):U(F)}function x(F){return F===45?(e.enter("tableDelimiterFiller"),A(F)):U(F)}function A(F){return F===45?(e.consume(F),A):F===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(F))}function N(F){return Ne(F)?Le(e,D,"whitespace")(F):D(F)}function D(F){return F===124?_(F):F===null||be(F)?!c||l!==u?U(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(F)):U(F)}function U(F){return a(F)}function w(F){return e.enter("tableRow"),M(F)}function M(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),M):F===null||be(F)?(e.exit("tableRow"),n(F)):Ne(F)?Le(e,M,"whitespace")(F):(e.enter("data"),H(F))}function H(F){return F===null||F===124||Ve(F)?(e.exit("data"),M(F)):(e.consume(F),F===92?z:H)}function z(F){return F===92||F===124?(e.consume(F),H):H(F)}}function mH(e,n){let a=-1,i=!0,l=0,u=[0,0,0,0],c=[0,0,0,0],d=!1,g=0,f,b,h;const E=new cH;for(;++a<e.length;){const S=e[a],_=S[1];S[0]==="enter"?_.type==="tableHead"?(d=!1,g!==0&&(ww(E,n,g,f,b),b=void 0,g=0),f={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},E.add(a,0,[["enter",f,n]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(i=!0,h=void 0,u=[0,0,0,0],c=[0,a+1,0,0],d&&(d=!1,b={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},E.add(a,0,[["enter",b,n]])),l=_.type==="tableDelimiterRow"?2:b?3:1):l&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],h=Ml(E,n,u,l,void 0,h),u=[0,0,0,0]),c[2]=a)):_.type==="tableCellDivider"&&(i?i=!1:(u[1]!==0&&(c[0]=c[1],h=Ml(E,n,u,l,void 0,h)),u=c,c=[u[1],a,0,0])):_.type==="tableHead"?(d=!0,g=a):_.type==="tableRow"||_.type==="tableDelimiterRow"?(g=a,u[1]!==0?(c[0]=c[1],h=Ml(E,n,u,l,a,h)):c[1]!==0&&(h=Ml(E,n,c,l,a,h)),l=0):l&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=a)}for(g!==0&&ww(E,n,g,f,b),E.consume(n.events),a=-1;++a<n.events.length;){const S=n.events[a];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=pH(n.events,a))}return e}function Ml(e,n,a,i,l,u){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";a[0]!==0&&(u.end=Object.assign({},Qa(n.events,a[0])),e.add(a[0],0,[["exit",u,n]]));const g=Qa(n.events,a[1]);if(u={type:c,start:Object.assign({},g),end:Object.assign({},g)},e.add(a[1],0,[["enter",u,n]]),a[2]!==0){const f=Qa(n.events,a[2]),b=Qa(n.events,a[3]),h={type:d,start:Object.assign({},f),end:Object.assign({},b)};if(e.add(a[2],0,[["enter",h,n]]),i!==2){const E=n.events[a[2]],S=n.events[a[3]];if(E[1].end=Object.assign({},S[1].end),E[1].type="chunkText",E[1].contentType="text",a[3]>a[2]+1){const _=a[2]+1,T=a[3]-a[2]-1;e.add(_,T,[])}}e.add(a[3]+1,0,[["exit",h,n]])}return l!==void 0&&(u.end=Object.assign({},Qa(n.events,l)),e.add(l,0,[["exit",u,n]]),u=void 0),u}function ww(e,n,a,i,l){const u=[],c=Qa(n.events,a);l&&(l.end=Object.assign({},c),u.push(["exit",l,n])),i.end=Object.assign({},c),u.push(["exit",i,n]),e.add(a+1,0,u)}function Qa(e,n){const a=e[n],i=a[0]==="enter"?"start":"end";return a[1][i]}const hH={name:"tasklistCheck",tokenize:yH};function bH(){return{text:{91:hH}}}function yH(e,n,a){const i=this;return l;function l(g){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?a(g):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(g),e.exit("taskListCheckMarker"),u)}function u(g){return Ve(g)?(e.enter("taskListCheckValueUnchecked"),e.consume(g),e.exit("taskListCheckValueUnchecked"),c):g===88||g===120?(e.enter("taskListCheckValueChecked"),e.consume(g),e.exit("taskListCheckValueChecked"),c):a(g)}function c(g){return g===93?(e.enter("taskListCheckMarker"),e.consume(g),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):a(g)}function d(g){return be(g)?n(g):Ne(g)?e.check({tokenize:EH},n,a)(g):a(g)}}function EH(e,n,a){return Le(e,i,"whitespace");function i(l){return l===null?a(l):n(l)}}function SH(e){return Dk([$3(),tH(),uH(e),fH(),bH()])}const vH={};function AC(e){const n=this,a=e||vH,i=n.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),u=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(SH(a)),u.push(q3()),c.push(P3(a))}function Lt(e){return e?e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`:""}function xH(e){const n=e.split(".").pop()?.toLowerCase();return{js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",php:"php",sh:"bash",bash:"bash",zsh:"bash",sql:"sql",json:"json",yaml:"yaml",yml:"yaml",xml:"xml",html:"html",css:"css",scss:"scss",md:"markdown",txt:"text"}[n||""]||"text"}function TH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},u=String(l.path||""),c=String(l.content||""),d=c.split(`
|
|
315
|
+
`),g=Lt(n),f=xH(u);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-blue-700 dark:text-blue-300 transition-colors hover:text-blue-600 dark:hover:text-blue-200 w-full min-w-0",children:[y.jsx(wt,{className:`h-3 w-3 flex-shrink-0 transition-transform ${a?"rotate-90":""}`}),y.jsx("span",{className:"font-medium flex-shrink-0",children:"read"}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),y.jsx("span",{className:"text-foreground/70 truncate min-w-0",style:{direction:"rtl",unicodeBidi:"plaintext"},title:u,children:u}),y.jsxs("span",{className:"text-muted-foreground/80 flex-shrink-0 whitespace-nowrap",children:["· ",d.length," lines · ",g]})]}),a&&c&&y.jsx("div",{className:"mt-2 ml-5 bg-card/60 border border-border rounded-lg overflow-hidden max-h-96 overflow-y-auto max-w-full",children:y.jsx("div",{className:"overflow-x-auto max-w-full",children:y.jsx(ar,{language:f,style:Mr,customStyle:{margin:0,padding:"0.75rem",fontSize:"0.75rem",lineHeight:"1.5",background:"transparent",maxWidth:"100%"},showLineNumbers:!0,wrapLines:!0,wrapLongLines:!0,children:c})})})]})}function AH(e){const n=e.split(".").pop()?.toLowerCase();return{js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",php:"php",sh:"bash",bash:"bash",zsh:"bash",sql:"sql",json:"json",yaml:"yaml",yml:"yaml",xml:"xml",html:"html",css:"css",scss:"scss",md:"markdown",txt:"text",svelte:"svelte"}[n||""]||"javascript"}function _H(e){const n=e.split(`
|
|
316
|
+
`),a=[];let i=0,l=0,u=!1,c="";for(const d of n){if(d.startsWith("+++")||d.startsWith("*** Update File:")){const f=d.match(/\+\+\+ b\/(.+)/)||d.match(/\*\*\* Update File: (.+)/);f&&(c=f[1])}const g=d.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(g){i=Number.parseInt(g[1],10),l=Number.parseInt(g[2],10),u=!0,a.push({content:d,codeContent:d,type:"header"});continue}if(d.startsWith("***")||d.startsWith("diff ")||d.startsWith("index ")||d.startsWith("---")||d.startsWith("+++")){a.push({content:d,codeContent:d,type:"meta"});continue}u?d.startsWith("+")?a.push({content:d,codeContent:d.slice(1),type:"add",newLineNum:l++}):d.startsWith("-")?a.push({content:d,codeContent:d.slice(1),type:"remove",oldLineNum:i++}):d.startsWith(" ")||d===""?a.push({content:d,codeContent:d.startsWith(" ")?d.slice(1):d,type:"context",oldLineNum:i++,newLineNum:l++}):a.push({content:d,codeContent:d,type:"context"}):a.push({content:d,codeContent:d,type:"meta"})}return{lines:a,filePath:c}}function is({patch:e}){const{lines:n,filePath:a}=_H(e),i=AH(a);return y.jsx("div",{className:"bg-card/60 border border-border rounded-lg overflow-hidden max-h-96 max-w-full",children:y.jsx("div",{className:"overflow-x-auto overflow-y-auto max-h-96 text-xs font-mono",children:n.map((l,u)=>{const c=`line-${u}-${l.content.slice(0,20)}`;if(l.type==="meta"||l.type==="header")return y.jsx("div",{className:`px-3 py-0.5 whitespace-pre-wrap break-all ${l.type==="header"?"text-muted-foreground/80 bg-muted/20":"text-muted-foreground/80"}`,children:l.content},c);let d="",g="";switch(l.type){case"add":d="text-emerald-700 dark:text-emerald-300",g="bg-emerald-500/10";break;case"remove":d="text-red-600 dark:text-red-300",g="bg-red-500/10";break;default:d="text-foreground/80"}let f=l.content;return l.codeContent.trim()&&i!=="text"&&(f=y.jsx(ar,{language:i,style:Mr,customStyle:{margin:0,padding:0,background:"transparent",display:"inline",fontSize:"inherit",lineHeight:"inherit"},codeTagProps:{style:{fontFamily:"inherit",background:"transparent"}},PreTag:"span",children:l.codeContent}),l.type==="add"?f=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:"+"}),f]}):l.type==="remove"?f=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:"-"}),f]}):l.type==="context"&&(f=y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"select-none",children:" "}),f]}))),y.jsxs("div",{className:`flex ${g}`,children:[y.jsx("div",{className:"px-2 py-0.5 text-right text-muted-foreground/40 select-none w-12 flex-shrink-0",children:l.oldLineNum||""}),y.jsx("div",{className:"px-2 py-0.5 text-right text-muted-foreground/40 select-none w-12 flex-shrink-0 border-r border-border/50",children:l.newLineNum||""}),y.jsx("div",{className:`px-3 py-0.5 flex-1 min-w-0 whitespace-pre-wrap break-all ${d}`,children:f})]},c)})})})}function RH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},u=e.artifact,c=String(l.path||""),d=Number(l.bytes||0),g=u?.patch?String(u.patch):"",f=Lt(n);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-emerald-700 dark:text-emerald-300 transition-colors hover:text-emerald-600 dark:hover:text-emerald-200 min-w-0 w-full",children:[y.jsx(wt,{className:`h-3 w-3 flex-shrink-0 transition-transform ${a?"rotate-90":""}`}),y.jsx("span",{className:"font-medium flex-shrink-0",children:"write"}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),y.jsx("span",{className:"text-foreground/70 min-w-0 flex-shrink overflow-hidden",style:{direction:"rtl",textAlign:"left",unicodeBidi:"plaintext"},title:c,children:c}),y.jsxs("span",{className:"text-muted-foreground/80 whitespace-nowrap flex-shrink-0",children:["· ",d," bytes · ",f]})]}),a&&g&&y.jsx("div",{className:"mt-2 ml-5",children:y.jsx(is,{patch:g})})]})}function NH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.artifact,u=Lt(n),c=l?.summary||{},d=Number(c.files||0),g=Number(c.additions||0),f=Number(c.deletions||0),b=l?.patch?String(l.patch):"";return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-purple-700 dark:text-purple-300 transition-colors hover:text-purple-600 dark:hover:text-purple-200 w-full",children:[y.jsx(wt,{className:`h-3 w-3 flex-shrink-0 transition-transform ${a?"rotate-90":""}`}),y.jsx("span",{className:"font-medium flex-shrink-0",children:"edit"}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),y.jsxs("span",{className:"text-foreground/70 flex-shrink-0",children:[d," ",d===1?"file":"files"]}),y.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400 flex-shrink-0",children:["+",g]}),y.jsxs("span",{className:"text-red-600 dark:text-red-400 flex-shrink-0",children:["-",f]}),y.jsxs("span",{className:"text-muted-foreground/80 flex-shrink-0",children:["· ",u]})]}),a&&b&&y.jsx("div",{className:"mt-2 ml-5",children:y.jsx(is,{patch:b})})]})}function wH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},u=e.args||{},c=String(l.stdout||""),d=String(l.stderr||""),g=Number(l.exitCode??0),f=String(u.cmd||""),b=Lt(n),h=c.length>0||d.length>0;return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:()=>h&&i(),className:`flex items-center gap-2 text-muted-foreground transition-colors w-full min-w-0 ${h?"hover:text-foreground":""}`,children:[h&&(a?y.jsx(la,{className:"h-3 w-3 flex-shrink-0"}):y.jsx(wt,{className:"h-3 w-3 flex-shrink-0"})),!h&&y.jsx("div",{className:"w-3 flex-shrink-0"}),y.jsx("span",{className:"font-medium flex-shrink-0",children:"bash"}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),y.jsx("span",{className:"text-foreground/70 truncate min-w-0",title:f,children:f}),y.jsxs("span",{className:`flex-shrink-0 whitespace-nowrap ${g===0?"text-emerald-600 dark:text-emerald-400":"text-red-600 dark:text-red-400"}`,children:["· exit ",g," · ",b]})]}),a&&h&&y.jsx("div",{className:"mt-2 ml-5 bg-card/60 border border-border rounded-lg overflow-hidden max-h-96 overflow-y-auto max-w-full",children:y.jsxs("div",{className:"overflow-x-auto max-w-full",children:[c&&y.jsxs("div",{className:"mb-2",children:[y.jsx("div",{className:"text-xs text-muted-foreground px-3 py-1 border-b border-border bg-muted/30",children:"stdout"}),y.jsx(ar,{language:"bash",style:Mr,customStyle:{margin:0,padding:"0.75rem",fontSize:"0.75rem",lineHeight:"1.5",background:"transparent",maxWidth:"100%"},wrapLines:!0,wrapLongLines:!0,children:c})]}),d&&y.jsxs("div",{children:[y.jsx("div",{className:"text-xs text-red-600 dark:text-red-400 px-3 py-1 border-b border-border bg-red-500/10",children:"stderr"}),y.jsx(ar,{language:"bash",style:Mr,customStyle:{margin:0,padding:"0.75rem",fontSize:"0.75rem",lineHeight:"1.5",background:"transparent",maxWidth:"100%"},wrapLines:!0,wrapLongLines:!0,children:d})]})]})})]})}function kH(e){if(!e||e.length<3)return null;const n=e[0],a=e[1],i=e.slice(3);if(n==="?"&&a==="?")return{status:"??",file:i,type:"untracked"};let l="unstaged";return n!==" "&&a!==" "?l="both":n!==" "&&(l="staged"),{status:`${n}${a}`,file:i,type:l}}function CH(e){return e==="??"?"?":e[0]==="A"||e[1]==="A"?"+":e[0]==="M"||e[1]==="M"?"~":e[0]==="D"||e[1]==="D"?"-":e[0]==="R"||e[1]==="R"?"→":e}function IH(e){switch(e){case"staged":return"text-emerald-600 dark:text-emerald-400";case"unstaged":return"text-amber-600 dark:text-amber-400";case"untracked":return"text-muted-foreground/60";case"both":return"text-blue-600 dark:text-blue-400"}}function OH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},u=Number(l.staged||0),c=Number(l.unstaged||0),d=l.raw||[],g=String(l.summary||""),f=Lt(n),b=d.map(kH).filter(Boolean),h=u>0||c>0;return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-blue-700 dark:text-blue-300 transition-colors hover:text-blue-600 dark:hover:text-blue-200 w-full",children:[y.jsx(wt,{className:`h-3 w-3 flex-shrink-0 transition-transform ${a?"rotate-90":""}`}),y.jsx("span",{className:"font-medium flex-shrink-0",children:"git status"}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),h?y.jsxs(y.Fragment,{children:[u>0&&y.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400 flex-shrink-0",children:[u," staged"]}),c>0&&y.jsxs("span",{className:"text-amber-600 dark:text-amber-400 flex-shrink-0",children:[c," unstaged"]})]}):y.jsx("span",{className:"text-muted-foreground/60 flex-shrink-0",children:"clean"}),y.jsxs("span",{className:"text-muted-foreground/80 flex-shrink-0",children:["· ",f]})]}),a&&(b.length>0||g)&&y.jsx("div",{className:"mt-2 ml-5",children:b.length>0?y.jsx("div",{className:"bg-card/60 border border-border rounded-lg overflow-hidden max-h-96 overflow-y-auto",children:y.jsx("div",{className:"divide-y divide-border/50",children:b.map((E,S)=>y.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 font-mono hover:bg-muted/20",children:[y.jsx("span",{className:`font-semibold w-6 flex-shrink-0 ${IH(E.type)}`,children:CH(E.status)}),y.jsx("span",{className:"text-foreground/80 break-all",children:E.file})]},`${E.file}-${S}`))})}):g&&y.jsx("div",{className:"bg-card/60 border border-border rounded-lg p-3 text-muted-foreground",children:g})})]})}function DH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},u=String(l.patch||l.diff||""),c=l.all,d=Lt(n),g=u.split(`
|
|
317
|
+
`);let f=0,b=0,h=0;for(const E of g)E.startsWith("diff --git")?f+=1:E.startsWith("+")&&!E.startsWith("+++")?b+=1:E.startsWith("-")&&!E.startsWith("---")&&(h+=1);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-purple-700 dark:text-purple-300 transition-colors hover:text-purple-600 dark:hover:text-purple-200 w-full",children:[y.jsx(wt,{className:`h-3 w-3 flex-shrink-0 transition-transform ${a?"rotate-90":""}`}),y.jsx("span",{className:"font-medium flex-shrink-0",children:"git diff"}),c&&y.jsx("span",{className:"text-xs text-muted-foreground/60 flex-shrink-0",children:"(all)"}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),f>0&&y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"text-foreground/70 flex-shrink-0",children:[f," ",f===1?"file":"files"]}),b>0&&y.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400 flex-shrink-0",children:["+",b]}),h>0&&y.jsxs("span",{className:"text-red-600 dark:text-red-400 flex-shrink-0",children:["-",h]})]}),y.jsxs("span",{className:"text-muted-foreground/80 flex-shrink-0",children:["· ",d]})]}),a&&u&&y.jsx("div",{className:"mt-2 ml-5",children:y.jsx(is,{patch:u})})]})}function LH({contentJson:e,toolDurationMs:n}){const a=e.result||{},i=String(a.message||""),l=Lt(n);return y.jsxs("div",{className:"text-xs space-y-2",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"font-medium text-emerald-700 dark:text-emerald-300",children:"git commit"}),y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsx("span",{className:"text-muted-foreground/80",children:l})]}),i&&y.jsx("div",{className:"bg-card/60 border border-border rounded-lg overflow-hidden max-w-full",children:y.jsx("div",{className:"overflow-x-auto max-w-full",children:y.jsx(ar,{language:"bash",style:Mr,customStyle:{margin:0,padding:"0.75rem",fontSize:"0.75rem",lineHeight:"1.5",background:"transparent",maxWidth:"100%"},wrapLines:!0,wrapLongLines:!0,children:i})})})]})}function MH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.artifact,u=Lt(n),c=l?.summary||{},d=Number(c.files||0),g=Number(c.additions||0),f=Number(c.deletions||0),b=l?.patch?String(l.patch):"";return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-purple-700 dark:text-purple-300 transition-colors hover:text-purple-600 dark:hover:text-purple-200 w-full",children:[y.jsx(wt,{className:`h-3 w-3 flex-shrink-0 transition-transform ${a?"rotate-90":""}`}),y.jsx("span",{className:"font-medium flex-shrink-0",children:"apply patch"}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),y.jsxs("span",{className:"text-foreground/70 flex-shrink-0",children:[d," ",d===1?"file":"files"]}),y.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400 flex-shrink-0",children:["+",g]}),y.jsxs("span",{className:"text-red-600 dark:text-red-400 flex-shrink-0",children:["-",f]}),y.jsxs("span",{className:"text-muted-foreground/80 flex-shrink-0",children:["· ",u]})]}),a&&b&&y.jsx("div",{className:"mt-2 ml-5",children:y.jsx(is,{patch:b})})]})}function UH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const u=(e.result||{}).entries||[],c=Lt(n);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-cyan-700 dark:text-cyan-300 transition-colors hover:text-cyan-600 dark:hover:text-cyan-200",children:[a?y.jsx(la,{className:"h-3 w-3"}):y.jsx(wt,{className:"h-3 w-3"}),y.jsx("span",{className:"font-medium",children:"ls"}),y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsxs("span",{className:"text-foreground/70",children:[u.length," ",u.length===1?"entry":"entries"]}),y.jsxs("span",{className:"text-muted-foreground/80",children:["· ",c]})]}),a&&y.jsx("div",{className:"mt-2 ml-5 space-y-0.5 max-h-96 overflow-y-auto",children:u.map((d,g)=>{const f=d;return y.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-mono text-foreground/80",children:[f.isDirectory?y.jsx(h1,{className:"h-3 w-3 text-blue-500"}):y.jsx(Ul,{className:"h-3 w-3 text-muted-foreground"}),y.jsx("span",{children:f.name})]},`${f.name}-${g}`)})})]})}function FH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},u=String(l.tree||""),c=u.split(`
|
|
318
|
+
`).length,d=Lt(n);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-cyan-700 dark:text-cyan-300 transition-colors hover:text-cyan-600 dark:hover:text-cyan-200",children:[a?y.jsx(la,{className:"h-3 w-3"}):y.jsx(wt,{className:"h-3 w-3"}),y.jsx("span",{className:"font-medium",children:"tree"}),y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsxs("span",{className:"text-foreground/70",children:[c," ",c===1?"line":"lines"]}),y.jsxs("span",{className:"text-muted-foreground/80",children:["· ",d]})]}),a&&u&&y.jsx("div",{className:"mt-2 ml-5 bg-card/60 border border-border rounded-lg overflow-hidden max-h-96 overflow-y-auto max-w-full",children:y.jsx("div",{className:"overflow-x-auto max-w-full",children:y.jsx(ar,{language:"bash",style:Mr,customStyle:{margin:0,padding:"0.75rem",fontSize:"0.75rem",lineHeight:"1.5",background:"transparent",maxWidth:"100%"},wrapLines:!0,wrapLongLines:!0,children:u})})})]})}function BH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const u=(e.result||{}).matches||[],c=Lt(n);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-amber-700 dark:text-amber-300 transition-colors hover:text-amber-600 dark:hover:text-amber-200",children:[a?y.jsx(la,{className:"h-3 w-3"}):y.jsx(wt,{className:"h-3 w-3"}),y.jsx("span",{className:"font-medium",children:"search"}),y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsxs("span",{className:"text-foreground/70",children:[u.length," ",u.length===1?"match":"matches"]}),y.jsxs("span",{className:"text-muted-foreground/80",children:["· ",c]})]}),a&&y.jsx("div",{className:"mt-2 ml-5 space-y-1 max-h-96 overflow-y-auto",children:u.map((d,g)=>{const f=d;return y.jsxs("div",{className:"text-xs font-mono bg-card/60 border border-border rounded px-2 py-1",children:[y.jsxs("div",{className:"text-blue-600 dark:text-blue-400 truncate",children:[f.file,":",f.line]}),y.jsx("div",{className:"text-foreground/80 truncate",children:f.text})]},`${f.file}-${f.line}-${g}`)})})]})}function jH({toolDurationMs:e}){const n=Lt(e);return y.jsx("div",{className:"text-xs",children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"font-medium text-emerald-700 dark:text-emerald-300",children:"Done"}),n&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsx("span",{className:"text-muted-foreground/80",children:n})]})]})})}function zH({toolName:e,contentJson:n,toolDurationMs:a,isExpanded:i,onToggle:l}){const u=n.result,c=Lt(a),d=u&&Object.keys(u).length>0;return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:l,className:"flex items-center gap-2 text-foreground transition-colors hover:text-foreground/80 w-full",children:[y.jsx(wt,{className:`h-3 w-3 flex-shrink-0 transition-transform ${i?"rotate-90":""}`}),y.jsx("span",{className:"font-medium flex-shrink-0",children:e}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),y.jsx("span",{className:"text-muted-foreground/80 flex-shrink-0",children:c})]}),i&&d&&y.jsx("div",{className:"mt-2 ml-5 bg-card/60 border border-border rounded-lg overflow-hidden max-h-96 overflow-y-auto max-w-full",children:y.jsx("div",{className:"overflow-x-auto max-w-full",children:y.jsx(ar,{language:"json",style:Mr,customStyle:{margin:0,padding:"0.75rem",fontSize:"0.75rem",lineHeight:"1.5",background:"transparent",maxWidth:"100%"},wrapLines:!0,wrapLongLines:!0,children:JSON.stringify(u,null,2)})})})]})}function qH({contentJson:e,toolDurationMs:n}){return y.jsx("div",{className:"text-xs",children:y.jsxs("div",{className:"text-muted-foreground",children:[y.jsxs("div",{children:["Tool: ",e.name]}),y.jsxs("div",{children:["Duration: ",n,"ms"]}),y.jsx("pre",{className:"mt-2 text-[10px] bg-card border border-border p-2 rounded overflow-x-auto",children:JSON.stringify(e,null,2)})]})})}function PH({contentJson:e}){const n=e.result||{},a=n.items||[],i=n.note;return y.jsx("div",{className:"text-xs",children:y.jsxs("div",{className:"bg-blue-500/10 border border-blue-500/30 dark:bg-blue-500/5 dark:border-blue-500/20 rounded-lg p-3 space-y-2",children:[i&&y.jsx("div",{className:"text-blue-700 dark:text-blue-300 text-sm font-medium mb-3",children:i}),y.jsx("div",{className:"space-y-1.5",children:a.map((l,u)=>y.jsxs("div",{className:"flex items-start gap-2",children:[l.status==="completed"&&y.jsx(VO,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-300 flex-shrink-0 mt-0.5"}),l.status==="in_progress"&&y.jsx(BO,{className:"h-4 w-4 text-blue-700 dark:text-blue-300 flex-shrink-0 mt-0.5 animate-pulse"}),l.status==="pending"&&y.jsx(XO,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),y.jsx("span",{className:`text-sm ${l.status==="completed"?"text-muted-foreground line-through":l.status==="in_progress"?"text-foreground":"text-muted-foreground/80"}`,children:l.step})]},`${l.step}-${u}`))})]})})}function GH({contentJson:e}){const n=e.result||{},a=String(n.message||"Processing..."),i=n.stage?String(n.stage):void 0,l=n.pct?Number(n.pct):void 0;return y.jsxs("div",{className:"flex items-center gap-2 text-sm text-violet-700 dark:text-violet-300 animate-pulse",children:[i&&y.jsxs("span",{className:"text-muted-foreground/80",children:["[",i,"]"]}),y.jsx("span",{children:a}),l!==void 0&&y.jsxs("span",{className:"text-muted-foreground/80",children:["(",l,"%)"]})]})}function HH({contentJson:e,toolDurationMs:n,isExpanded:a,onToggle:i}){const l=e.result||{},[u,c]=te.useState(new Set),d=S=>{c(_=>{const T=new Set(_);return T.has(S)?T.delete(S):T.add(S),T})},g="results"in l,f=l.results||[],b=l;if(g){const S=Lt(n);return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-2 text-purple-700 dark:text-purple-300 transition-colors hover:text-purple-600 dark:hover:text-purple-200",children:[a?y.jsx(la,{className:"h-3 w-3"}):y.jsx(wt,{className:"h-3 w-3"}),y.jsx("span",{className:"font-medium",children:"web search"}),y.jsx("span",{className:"text-muted-foreground/70",children:"·"}),y.jsxs("span",{className:"text-foreground/70",children:[f.length," ",f.length===1?"result":"results"]}),y.jsxs("span",{className:"text-muted-foreground/80",children:["· ",S]})]}),a&&y.jsx("div",{className:"mt-2 ml-5 space-y-2 max-h-96 overflow-y-auto",children:f.map((_,T)=>y.jsxs("div",{className:"bg-card/60 border border-border rounded-lg p-3 space-y-1",children:[y.jsxs("a",{href:_.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-blue-600 dark:text-blue-400 hover:underline font-medium",children:[_.title,y.jsx(a1,{className:"h-3 w-3"})]}),y.jsx("p",{className:"text-muted-foreground text-xs",children:_.snippet}),y.jsx("p",{className:"text-xs text-muted-foreground/70 truncate",children:_.url})]},`${_.url}-${T}`))})]})}const h=Lt(n),E=b.url&&b.url.length>60?`${b.url.slice(0,60)}...`:b.url;return y.jsxs("div",{className:"text-xs",children:[y.jsxs("button",{type:"button",onClick:()=>d(0),className:"flex items-center gap-2 text-purple-700 dark:text-purple-300 transition-colors hover:text-purple-600 dark:hover:text-purple-200 w-full text-left",children:[u.has(0)?y.jsx(la,{className:"h-3 w-3 flex-shrink-0"}):y.jsx(wt,{className:"h-3 w-3 flex-shrink-0"}),y.jsx("span",{className:"font-medium flex-shrink-0",children:"web fetch"}),y.jsx("span",{className:"text-muted-foreground/70 flex-shrink-0",children:"·"}),y.jsx("a",{href:b.url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:underline truncate flex-1 min-w-0",onClick:S=>S.stopPropagation(),children:E}),y.jsxs("span",{className:"text-muted-foreground/80 flex-shrink-0",children:["· ",h]})]}),u.has(0)&&b.content&&y.jsx("div",{className:"mt-2 ml-5 bg-card/60 border border-border rounded-lg p-3 max-h-96 overflow-y-auto",children:y.jsx("div",{className:"text-xs text-foreground/80 whitespace-pre-wrap break-words",children:b.content})})]})}function $H({contentJson:e,debug:n}){const[a,i]=te.useState(!1);let l,u,c,d=!1;e.error&&typeof e.error=="object"?(l=e.error,l.message&&typeof l.message=="string"&&(u=l.message),l.type&&typeof l.type=="string"&&(c=l.type)):e.details&&typeof e.details=="object"?(l=e.details,e.message&&typeof e.message=="string"&&(u=e.message),e.type&&typeof e.type=="string"&&(c=e.type),e.isAborted===!0&&(d=!0)):(e.message&&typeof e.message=="string"&&(u=e.message),e.type&&typeof e.type=="string"&&(c=e.type),e.isAborted===!0&&(d=!0),l=e);let g;if(l?.responseBody&&typeof l.responseBody=="string")try{const E=JSON.parse(l.responseBody);E.error&&typeof E.error=="object"&&(g={type:typeof E.error.type=="string"?E.error.type:void 0,message:typeof E.error.message=="string"?E.error.message:void 0})}catch{}const f=E=>{if(E==null)return y.jsx("span",{className:"text-muted-foreground",children:"null"});if(typeof E=="boolean")return y.jsx("span",{className:"text-amber-600 dark:text-amber-400",children:String(E)});if(typeof E=="number")return y.jsx("span",{className:"text-blue-600 dark:text-blue-400",children:E});if(typeof E=="string"){if(E.startsWith("{")||E.startsWith("["))try{const S=JSON.parse(E);return y.jsx("pre",{className:"mt-1 p-2 bg-muted/50 rounded text-xs overflow-x-auto",children:y.jsx("code",{children:JSON.stringify(S,null,2)})})}catch{}return y.jsx("span",{className:"text-foreground",children:E})}return typeof E=="object"?y.jsx("pre",{className:"mt-1 p-2 bg-muted/50 rounded text-xs overflow-x-auto",children:y.jsx("code",{children:JSON.stringify(E,null,2)})}):y.jsx("span",{className:"text-foreground",children:String(E)})},b=["name","statusCode","url","model","isRetryable","cause"],h=new Set;return y.jsxs("div",{className:"space-y-2 text-sm",children:[d&&y.jsx("div",{className:"text-amber-600 dark:text-amber-400 font-medium",children:"Request aborted"}),g?.message&&y.jsxs("div",{className:"space-y-1",children:[y.jsx("div",{className:"font-medium text-red-600 dark:text-red-400",children:"API Error:"}),y.jsx("div",{className:"text-foreground",children:g.message}),g.type&&y.jsxs("div",{className:"text-xs text-muted-foreground",children:["Type: ",g.type]})]}),!g?.message&&u&&y.jsxs("div",{className:"space-y-1",children:[y.jsx("div",{className:"font-medium text-red-600 dark:text-red-400",children:"Error:"}),y.jsx("div",{className:"text-foreground",children:u}),c&&y.jsxs("div",{className:"text-xs text-muted-foreground",children:["Type: ",c]})]}),l&&y.jsx("div",{className:"space-y-1.5",children:b.map(E=>{const S=l[E];return S==null?null:(h.add(E),y.jsxs("div",{className:"flex gap-2",children:[y.jsxs("span",{className:"font-medium text-muted-foreground min-w-[100px]",children:[E,":"]}),f(S)]},E))})}),l&&y.jsxs("div",{className:"mt-3 border-t border-border pt-2",children:[y.jsxs("button",{type:"button",onClick:()=>i(!a),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[a?y.jsx(la,{className:"h-3 w-3"}):y.jsx(wt,{className:"h-3 w-3"}),a?"Hide":"View"," Raw Error Details"]}),a&&y.jsx("div",{className:"mt-2",children:y.jsx("pre",{className:"p-3 bg-muted/50 rounded text-xs overflow-x-auto max-h-96 overflow-y-auto",children:y.jsx("code",{children:JSON.stringify(l,null,2)})})})]}),n&&y.jsxs("details",{className:"mt-4 text-xs",children:[y.jsx("summary",{className:"cursor-pointer text-muted-foreground",children:"Debug Info"}),y.jsx("pre",{className:"mt-2 p-2 bg-muted/30 rounded overflow-x-auto",children:y.jsx("code",{children:JSON.stringify({contentJson:e,errorDetails:l,apiError:g},null,2)})})]})]})}function kw({toolName:e,contentJson:n,toolDurationMs:a,debug:i}){const[l,u]=te.useState(!1),c={contentJson:n,toolDurationMs:a??void 0,isExpanded:l,onToggle:()=>u(!l)};if(i)return y.jsx(qH,{...c,toolName:e});switch(e){case"read":return y.jsx(TH,{...c});case"write":return y.jsx(RH,{...c});case"edit":return y.jsx(NH,{...c});case"bash":return y.jsx(wH,{...c});case"git_status":return y.jsx(OH,{...c});case"git_diff":return y.jsx(DH,{...c});case"git_commit":return y.jsx(LH,{...c});case"apply_patch":return y.jsx(MH,{...c});case"ls":return y.jsx(UH,{...c});case"tree":return y.jsx(FH,{...c});case"ripgrep":case"grep":case"glob":return y.jsx(BH,{...c});case"websearch":return y.jsx(HH,{...c});case"finish":return y.jsx(jH,{...c});case"update_plan":return y.jsx(PH,{...c});case"progress_update":return y.jsx(GH,{...c});case"error":return y.jsx($H,{...c});default:return y.jsx(zH,{...c,toolName:e})}}function Yh(e){const n=e.contentJson;if(n&&typeof n=="object")return n;try{if(e.content){const a=JSON.parse(e.content);if(a&&typeof a=="object"&&!Array.isArray(a))return a}}catch{}return null}function VH(e){const n=Yh(e);if(!n)return;const a=n.args;if(a&&typeof a=="object"&&!Array.isArray(a))return a}function YH(e){if(!e)return null;const n=["cmd","command","script","input"];for(const a of n){const i=e[a];if(typeof i=="string"&&i.trim().length>0)return i.trim()}return null}function WH(e,n){if(!n)return null;const a=[{key:"path",match:!0},{key:"file",match:!0},{key:"target",match:!0},{key:"cwd",match:!0},{key:"query",match:!0},{key:"pattern",match:!0},{key:"glob",match:!0},{key:"dir",match:!0}];for(const{key:i}of a){const l=n[i];if(typeof l=="string"&&l.trim().length>0)return{key:i,value:l.trim()}}if(e==="bash"){const i=n.command;if(typeof i=="string"&&i.trim().length>0)return{key:"command",value:i.trim()}}return null}function KH(e,n){if(!e)return null;const a=[];for(const[l,u]of Object.entries(e))if(!(n&&l===n)){if(typeof u=="string"||typeof u=="number"){const c=`${l}=${String(u)}`;a.push(c)}if(a.length>=3)break}if(!a.length)return null;const i=a.join(" ");return i.length>120?`${i.slice(0,117)}…`:i}const Cw=te.memo(function({part:n,showLine:a,isLastToolCall:i,isLastProgressUpdate:l}){if(n.type==="tool_call"&&!i||n.type==="tool_result"&&n.toolName==="progress_update"&&!l)return null;if(n.type==="text"){const h=n.contentJson||n.content;let E="";if(h&&typeof h=="object"&&"text"in h?E=String(h.text):typeof h=="string"&&(E=h),!E||!E.trim())return null}const u=n.type==="tool_call"||n.type==="tool_result",c=["flex-1","min-w-0","max-w-full"];u?c.push("pt-0.5","mt-[1px]"):c.push("pt-0"),n.type==="text"&&c.push("-mt-0.5");const d=c.join(" "),g=()=>{if(n.type==="tool_call")return y.jsx(Kw,{className:"h-4 w-4 text-amber-600 dark:text-amber-300 animate-spin"});if(n.type==="error")return Yh(n)?.isAborted===!0?y.jsx(w1,{className:"h-4 w-4 text-amber-600 dark:text-amber-400"}):y.jsx(Vw,{className:"h-4 w-4 text-red-600 dark:text-red-400"});if(n.type==="tool_result"){const h=n.toolName||"";return h==="read"?y.jsx(u1,{className:"h-4 w-4 text-blue-600 dark:text-blue-300"}):h==="write"?y.jsx(Yv,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-300"}):h==="edit"?y.jsx(Yv,{className:"h-4 w-4 text-purple-600 dark:text-purple-300"}):h==="ls"?y.jsx(v1,{className:"h-4 w-4 text-cyan-600 dark:text-cyan-300"}):h==="tree"?y.jsx(g1,{className:"h-4 w-4 text-cyan-600 dark:text-cyan-300"}):h==="bash"?y.jsx(Kv,{className:"h-4 w-4 text-muted-foreground"}):h==="ripgrep"||h==="grep"||h==="glob"?y.jsx(D1,{className:"h-4 w-4 text-amber-600 dark:text-amber-300"}):h==="apply_patch"?y.jsx(Vv,{className:"h-4 w-4 text-purple-600 dark:text-purple-300"}):h==="git_status"?y.jsx(Pl,{className:"h-4 w-4 text-blue-600 dark:text-blue-300"}):h==="git_diff"?y.jsx(Vv,{className:"h-4 w-4 text-purple-600 dark:text-purple-300"}):h==="git_commit"?y.jsx(Gl,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-300"}):h==="finish"?y.jsx($w,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-300"}):y.jsx(Kv,{className:"h-4 w-4 text-muted-foreground"})}return y.jsx(Hl,{className:"h-4 w-4 text-violet-600 dark:text-violet-300"})},f=()=>{const h=n.toolName||"";let E;try{n.contentJson&&typeof n.contentJson=="object"?E=n.contentJson:typeof n.content=="string"?E=JSON.parse(n.content):E={}}catch{E={result:n.content}}return y.jsx(kw,{toolName:h,contentJson:E,toolDurationMs:n.toolDurationMs,debug:!1})},b=()=>{if(n.type==="text"){let h="";const E=n.contentJson||n.content;return E&&typeof E=="object"&&"text"in E?h=String(E.text):typeof E=="string"?h=E:E&&(h=JSON.stringify(E,null,2)),y.jsx("div",{className:"text-base text-foreground leading-relaxed markdown-content max-w-full overflow-hidden",children:y.jsx(eC,{remarkPlugins:[AC],children:h})})}if(n.type==="error"){let h;try{n.contentJson&&typeof n.contentJson=="object"?h=n.contentJson:typeof n.content=="string"?h=JSON.parse(n.content):h={}}catch{h={message:n.content||"Unknown error"}}return y.jsx(kw,{toolName:"error",contentJson:h,toolDurationMs:n.toolDurationMs,debug:!1})}if(n.type==="tool_call"){const h=Yh(n),E=n.toolName||(typeof h?.name=="string"?h.name:"tool"),S=E.replace(/_/g," "),_=VH(n),T=WH(E,_),C=KH(_,T?.key),x=E==="bash"?YH(_):null,A=[];x?A.push({key:"cmd",node:y.jsx("code",{className:"font-mono text-foreground/90 truncate max-w-xs",children:x})}):T&&A.push({key:"primary",node:y.jsx("code",{className:"font-mono text-foreground/85 truncate max-w-xs",children:T.value})}),C&&A.push({key:"args",node:y.jsx("span",{className:"text-muted-foreground/80 truncate max-w-xs",children:C})}),A.length===0&&A.push({key:"running",node:y.jsx("span",{className:"text-muted-foreground/75",children:"running…"})});const N=["flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-foreground/80 max-w-full"];return n.ephemeral&&N.push("animate-pulse"),y.jsxs("div",{className:N.join(" "),children:[y.jsx("span",{className:"font-medium text-foreground",children:S}),A.map(D=>y.jsxs(te.Fragment,{children:[y.jsx("span",{className:"text-muted-foreground/65",children:"·"}),D.node]},D.key))]})}return n.type==="tool_result"?f():null};return y.jsxs("div",{className:"flex gap-3 pb-2 relative max-w-full overflow-hidden",children:[y.jsxs("div",{className:"flex-shrink-0 w-6 flex items-start justify-center relative pt-0.5",children:[y.jsx("div",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full relative z-10 bg-background",children:g()}),a&&y.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 w-[2px] bg-border z-0",style:{top:"1.25rem",bottom:"-0.5rem"}})]}),y.jsx("div",{className:d,children:b()})]})},(e,n)=>e.part.id===n.part.id&&e.part.content===n.part.content&&e.part.contentJson===n.part.contentJson&&e.part.ephemeral===n.part.ephemeral&&e.part.completedAt===n.part.completedAt&&e.showLine===n.showLine&&e.isLastToolCall===n.isLastToolCall&&e.isLastProgressUpdate===n.isLastProgressUpdate),Iw=["Generating...","Cooking up something...","Thinking...","Processing...","Working on it...","Crafting response...","Brewing magic...","Computing..."];function XH(e){const n=e.split("").reduce((a,i)=>a+i.charCodeAt(0),0);return Iw[n%Iw.length]}const ZH=te.memo(function({message:n,showHeader:a,hasNextAssistantMessage:i}){const l=n.parts||[],u=l.some(S=>S.toolName==="finish"),c=l.reduce((S,_,T)=>_.type==="tool_result"&&_.toolName==="progress_update"?T:S,-1),d=c>=0?l[c]:null,g=l.some(S=>!(S.type==="tool_result"&&S.toolName==="progress_update")),f=l.findIndex(S=>!(S.type==="tool_result"&&S.toolName==="progress_update")),b=n.status==="pending"&&!u&&!!d,h=n.status==="pending"&&!u&&!d,E=S=>S?new Date(S).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"";return y.jsxs("div",{className:"relative",children:[a&&y.jsx("div",{className:"pb-2",children:y.jsxs("div",{className:"inline-flex items-center bg-violet-500/10 border border-violet-500/30 dark:bg-violet-500/5 dark:border-violet-500/20 rounded-full pr-4",children:[y.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-violet-500/50 bg-violet-500/20 dark:bg-violet-500/10",children:y.jsx(Hl,{className:"h-3.5 w-3.5 text-violet-700 dark:text-violet-300"})}),y.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground pl-3",children:[n.agent&&y.jsx("span",{className:"font-medium text-violet-700 dark:text-violet-300",children:n.agent}),n.agent&&n.provider&&y.jsx("span",{children:"·"}),n.provider&&y.jsx("span",{className:"text-muted-foreground",children:n.provider}),n.model&&y.jsx("span",{children:"·"}),n.model&&y.jsx("span",{className:"text-muted-foreground",children:n.model}),n.createdAt&&y.jsx("span",{children:"·"}),n.createdAt&&y.jsx("span",{className:"text-muted-foreground",children:E(n.createdAt)})]})]})}),y.jsxs("div",{className:"relative ml-1",children:[l.map((S,_)=>{const T=_===l.length-1,C=!T||i,x=S.type==="tool_call"&&T;return S.type==="tool_result"&&S.toolName==="progress_update"?null:y.jsx(Cw,{part:S,showLine:C,isFirstPart:_===f&&!a,isLastToolCall:x},S.id)}),b&&d&&y.jsx(Cw,{part:d,showLine:i,isFirstPart:!g&&!a,isLastProgressUpdate:!0},d.id),h&&y.jsxs("div",{className:"flex gap-3 pb-2 relative",children:[y.jsx("div",{className:"flex-shrink-0 w-6 flex items-start justify-center relative pt-0.5",children:y.jsx("div",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full relative z-10 bg-card text-violet-700 dark:bg-background dark:text-violet-300",children:y.jsx(Hl,{className:"h-4 w-4"})})}),y.jsx("div",{className:"flex-1 pt-0.5",children:y.jsx("div",{className:"text-base text-foreground animate-pulse",children:XH(n.id)})})]})]})]})},(e,n)=>{const a=e.message.parts||[],i=n.message.parts||[];if(a.length!==i.length)return!1;for(let l=0;l<a.length;l++){const u=a[l],c=i[l];if(u.id!==c.id||u.content!==c.content||u.contentJson!==c.contentJson||u.ephemeral!==c.ephemeral||u.completedAt!==c.completedAt)return!1}return e.message.id===n.message.id&&e.message.status===n.message.status&&e.message.completedAt===n.message.completedAt&&e.showHeader===n.showHeader&&e.hasNextAssistantMessage===n.hasNextAssistantMessage&&e.isLastMessage===n.isLastMessage}),QH=te.memo(function({message:n}){const i=(n.parts||[])[0];if(!i)return null;let l="";const u=i.contentJson||i.content;u&&typeof u=="object"&&"text"in u?l=String(u.text):typeof u=="string"?l=u:u&&(l=JSON.stringify(u,null,2));const c=d=>d?new Date(d).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"";return y.jsx("div",{className:"relative pb-8 pt-6",children:y.jsxs("div",{className:"flex gap-4 justify-end",children:[y.jsxs("div",{className:"flex flex-col items-end max-w-2xl",children:[y.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground pb-2 justify-end",children:[y.jsx("span",{className:"font-medium text-emerald-700 dark:text-emerald-300",children:"You"}),n.createdAt&&y.jsx("span",{children:"·"}),n.createdAt&&y.jsx("span",{children:c(n.createdAt)})]}),y.jsx("div",{className:"text-sm text-foreground leading-relaxed prose prose-invert prose-sm [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 bg-emerald-500/5 border border-emerald-500/20 rounded-xl px-4 py-3 max-w-full break-words overflow-wrap-anywhere",children:y.jsx(eC,{remarkPlugins:[AC],children:l})})]}),y.jsx("div",{className:"flex-shrink-0 w-8 flex items-start justify-center",children:y.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border-2 border-emerald-500/50 bg-emerald-500/20 dark:bg-emerald-500/10 relative z-10 bg-background",children:y.jsx(q1,{className:"h-4 w-4 text-emerald-700 dark:text-emerald-300"})})})]})})},(e,n)=>{const a=e.message.parts?.[0],i=n.message.parts?.[0];return e.message.id===n.message.id&&a?.content===i?.content&&a?.contentJson===i?.contentJson&&e.message.createdAt===n.message.createdAt});function JH({session:e}){const n=te.useMemo(()=>{const u=e.totalInputTokens||0,c=e.totalOutputTokens||0;return u+c},[e.totalInputTokens,e.totalOutputTokens]),a=te.useMemo(()=>{const u=e.totalInputTokens||0,c=e.totalOutputTokens||0,d=30,g=60,f=u/1e6*d,b=c/1e6*g;return f+b},[e.totalInputTokens,e.totalOutputTokens]),i=u=>{if(!u)return"0s";const c=Math.floor(u/1e3),d=Math.floor(c/60),g=Math.floor(d/60);if(g>0){const f=d%60;return`${g}h ${f}m`}if(d>0){const f=c%60;return`${d}m ${f}s`}return`${c}s`},l=u=>u.toLocaleString("en-US");return y.jsx("div",{className:"border-b border-border bg-background/95 backdrop-blur-sm",children:y.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-6",children:[y.jsx("h1",{className:"text-2xl font-semibold text-foreground mb-4",children:e.title||"Untitled Session"}),y.jsxs("div",{className:"flex flex-wrap gap-6 text-sm",children:[y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(Ww,{className:"w-4 h-4"}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs uppercase tracking-wide opacity-70",children:"Total Tokens"}),y.jsx("span",{className:"text-foreground font-medium",children:l(n)}),(e.totalInputTokens||e.totalOutputTokens)&&y.jsxs("span",{className:"text-xs opacity-60",children:[l(e.totalInputTokens||0)," in /"," ",l(e.totalOutputTokens||0)," out"]})]})]}),y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(QO,{className:"w-4 h-4"}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs uppercase tracking-wide opacity-70",children:"Tool Time"}),y.jsx("span",{className:"text-foreground font-medium",children:i(e.totalToolTimeMs)})]})]}),a>0&&y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(Yw,{className:"w-4 h-4"}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-xs uppercase tracking-wide opacity-70",children:"Est. Cost"}),y.jsxs("span",{className:"text-foreground font-medium",children:["$",a.toFixed(4)]})]})]}),y.jsx("div",{className:"flex items-center gap-2 text-muted-foreground ml-auto",children:y.jsxs("div",{className:"flex flex-col items-end",children:[y.jsx("span",{className:"text-xs uppercase tracking-wide opacity-70",children:"Model"}),y.jsx("span",{className:"text-foreground font-medium",children:e.model}),y.jsxs("span",{className:"text-xs opacity-60",children:[e.provider," · ",e.agent]})]})})]})]})})}function e$({sessionId:e,onStop:n,disabled:a}){const[i,l]=te.useState(!1),u=async()=>{if(!i){l(!0);try{await $t.abortSession(e),n?.()}catch(c){console.error("Failed to abort stream:",c)}finally{setTimeout(()=>l(!1),1e3)}}};return y.jsxs("button",{type:"button",onClick:u,disabled:a||i,className:"flex items-center gap-1.5 text-sm text-destructive hover:text-destructive/80 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",title:"Stop generation",children:[y.jsx(WO,{className:"w-4 h-4"}),y.jsx("span",{className:"font-medium",children:i?"Stopping...":"Stop"})]})}function t$({session:e,isVisible:n,isGenerating:a}){const i=te.useMemo(()=>{const c=e.totalInputTokens||0,d=e.totalOutputTokens||0;return c+d},[e.totalInputTokens,e.totalOutputTokens]),l=te.useMemo(()=>{const c=e.totalInputTokens||0,d=e.totalOutputTokens||0,g=30,f=60,b=c/1e6*g,h=d/1e6*f;return b+h},[e.totalInputTokens,e.totalOutputTokens]),u=c=>c.toLocaleString("en-US");return y.jsx("div",{className:`absolute top-0 left-0 right-0 h-14 border-b border-border bg-background/95 backdrop-blur-sm z-30 transition-transform duration-200 ${n?"translate-y-0":"-translate-y-full"}`,children:y.jsxs("div",{className:"h-full px-6 flex items-center justify-between gap-6 text-sm",children:[y.jsx("div",{className:"flex-shrink-0",children:a&&y.jsx(e$,{sessionId:e.id})}),y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(Ww,{className:"w-4 h-4"}),y.jsx("span",{className:"text-foreground font-medium",children:u(i)})]}),l>0&&y.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[y.jsx(Yw,{className:"w-4 h-4"}),y.jsxs("span",{className:"text-foreground font-medium",children:["$",l.toFixed(4)]})]})]})]})})}const n$=te.memo(function({messages:n,session:a,isGenerating:i}){const l=te.useRef(null),u=te.useRef(null),c=te.useRef(null),[d,g]=te.useState(!0),[f,b]=te.useState(!1),h=te.useRef(0),E=te.useRef(0),S=()=>{const C=u.current;if(!C)return;const{scrollTop:x,scrollHeight:A,clientHeight:N}=C,D=A-x-N;g(D<100);const U=c.current;if(U){const w=U.getBoundingClientRect(),M=C.getBoundingClientRect();b(w.bottom<M.top)}};te.useEffect(()=>{n.length>E.current&&g(!0),E.current=n.length},[n.length]),te.useEffect(()=>{const C=u.current;!C||!d||requestAnimationFrame(()=>{if(!l.current||!C)return;const{scrollHeight:x}=C,N=x!==h.current?"smooth":"instant";l.current.scrollIntoView({behavior:N}),h.current=x})},[n,d]);const _=()=>{g(!0),l.current?.scrollIntoView({behavior:"smooth"})},T=te.useMemo(()=>n.filter(C=>C.role!=="system"),[n]);return n.length===0?y.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground text-sm",children:"No messages yet. Start a conversation below."}):y.jsxs("div",{className:"absolute inset-0 flex flex-col",children:[a&&y.jsx(t$,{session:a,isVisible:f,isGenerating:i}),y.jsxs("div",{ref:u,className:"flex-1 overflow-y-auto",onScroll:S,children:[y.jsx("div",{ref:c,children:a&&y.jsx(JH,{session:a})}),y.jsx("div",{className:"p-6 pb-32",children:y.jsxs("div",{className:"max-w-3xl mx-auto space-y-6",children:[T.map((C,x)=>{const A=T[x-1],N=T[x+1],D=x===T.length-1;if(C.role==="user")return y.jsx(QH,{message:C,isFirst:x===0},C.id);if(C.role==="assistant"){const U=!A||A.role!=="assistant",w=N&&N.role==="assistant";return y.jsx(ZH,{message:C,showHeader:U,hasNextAssistantMessage:w,isLastMessage:D},C.id)}return null}),y.jsx("div",{ref:l})]})})]}),!d&&y.jsxs("button",{type:"button",onClick:_,className:"absolute bottom-36 left-1/2 -translate-x-1/2 flex items-center gap-2 px-4 py-2 bg-background border border-border rounded-full shadow-lg hover:bg-muted/50 transition-all text-sm text-foreground z-10",children:[y.jsx(UO,{className:"w-4 h-4"}),y.jsx("span",{children:"Scroll to bottom"})]})]})}),r$=te.memo(function({sessionId:n}){const{data:a=[],isLoading:i}=Xj(n),{data:l=[]}=yk();Jj(n);const u=te.useMemo(()=>l.find(d=>d.id===n),[l,n]),c=te.useMemo(()=>a.some(d=>d.role==="assistant"&&d.status==="pending"),[a]);return i?y.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Loading messages..."}):y.jsx(n$,{messages:a,session:u,isGenerating:c})}),a$=te.memo(function({onSend:n,disabled:a,onConfigClick:i}){const[l,u]=te.useState(""),c=te.useRef(null);te.useEffect(()=>{c.current?.focus()},[]);const d=te.useCallback(()=>{const h=c.current;h&&(h.style.height="auto",h.style.height=`${h.scrollHeight}px`)},[]);te.useEffect(()=>{d()},[d,l]);const g=te.useCallback(()=>{l.trim()&&!a&&(n(l),u(""),c.current&&(c.current.style.height="auto"),c.current?.focus())},[l,a,n]),f=te.useCallback(h=>{u(h.target.value)},[]),b=te.useCallback(h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),g())},[g]);return y.jsx("div",{className:"absolute bottom-0 left-0 right-0 pt-16 pb-8 px-4 bg-gradient-to-t from-background via-background to-transparent pointer-events-none z-20",children:y.jsx("div",{className:"max-w-3xl mx-auto pointer-events-auto",children:y.jsxs("div",{className:"flex items-end gap-1 bg-card rounded-3xl border border-border p-1 focus-within:border-primary/60 focus-within:ring-1 focus-within:ring-primary/40 transition-colors",children:[i&&y.jsx("button",{type:"button",onClick:i,className:"flex items-center justify-center w-10 h-10 rounded-full hover:bg-background/50 transition-colors text-muted-foreground hover:text-foreground flex-shrink-0",children:y.jsx(n1,{className:"w-4 h-4"})}),y.jsx(cb,{ref:c,value:l,onChange:f,onKeyDown:b,placeholder:"Type a message...",disabled:a,rows:1,className:"border-0 bg-transparent pl-1 pr-2 py-2 max-h-[200px] overflow-y-auto leading-normal resize-none scrollbar-hide",style:{height:"2.5rem"}}),y.jsx("button",{type:"button",onClick:g,disabled:a||!l.trim(),className:`flex items-center justify-center w-10 h-10 rounded-full transition-colors flex-shrink-0 ${l.trim()?"bg-primary hover:bg-primary/90 text-primary-foreground":"bg-transparent text-muted-foreground"}`,children:y.jsx(zO,{className:"w-4 h-4"})})]})})})});function i$(){return ai({queryKey:["config"],queryFn:()=>$t.getConfig()})}function o$(e){return ai({queryKey:["models",e],queryFn:()=>e?$t.getModels(e):null,enabled:!!e})}function l$({isOpen:e,onClose:n,agent:a,provider:i,model:l,onAgentChange:u,onProviderChange:c,onModelChange:d}){const{data:g,isLoading:f}=i$(),{data:b,isLoading:h}=o$(i),E=te.useId(),S=te.useId(),_=te.useId();if(te.useEffect(()=>{g&&!a&&!i&&!l&&(u(g.defaults.agent),c(g.defaults.provider),d(g.defaults.model))},[g,a,i,l,u,c,d]),te.useEffect(()=>{b&&b.models.length>0&&(b.models.some(A=>A.id===l)||d(b.default||b.models[0].id))},[b,l,d]),!e)return null;const T=x=>{x.target===x.currentTarget&&n()},C=x=>{x.key==="Escape"&&n()};return y.jsxs(y.Fragment,{children:[y.jsx("button",{type:"button",className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 cursor-default",onClick:T,onKeyDown:C,"aria-label":"Close modal"}),y.jsx("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 w-full max-w-md",children:y.jsxs("div",{className:"bg-background border border-border rounded-lg shadow-lg",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border",children:[y.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Configuration"}),y.jsx("button",{type:"button",onClick:n,className:"text-muted-foreground hover:text-foreground transition-colors",children:y.jsx(Jh,{className:"h-5 w-5"})})]}),y.jsx("div",{className:"p-4 space-y-4",children:f?y.jsx("div",{className:"text-center text-muted-foreground py-8",children:"Loading configuration..."}):g?y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("label",{htmlFor:E,className:"block text-sm font-medium text-foreground mb-2",children:"Agent"}),y.jsx("select",{id:E,value:a,onChange:x=>u(x.target.value),className:"w-full bg-background border border-border rounded px-3 py-2 text-foreground outline-none focus:border-violet-500 transition-colors",children:g.agents.map(x=>y.jsx("option",{value:x,children:x},x))})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:S,className:"block text-sm font-medium text-foreground mb-2",children:"Provider"}),y.jsx("select",{id:S,value:i,onChange:x=>c(x.target.value),className:"w-full bg-background border border-border rounded px-3 py-2 text-foreground outline-none focus:border-violet-500 transition-colors",children:g.providers.map(x=>y.jsx("option",{value:x,children:x},x))})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:_,className:"block text-sm font-medium text-foreground mb-2",children:"Model"}),y.jsx("select",{id:_,value:l,onChange:x=>d(x.target.value),disabled:h||!b,className:"w-full bg-background border border-border rounded px-3 py-2 text-foreground outline-none focus:border-violet-500 transition-colors disabled:opacity-50",children:b?.models.map(x=>y.jsx("option",{value:x.id,children:x.label},x.id))})]})]}):null})]})})]})}const s$=te.memo(function({sessionId:n}){const[a,i]=te.useState(""),[l,u]=te.useState(""),[c,d]=te.useState(""),[g,f]=te.useState(!1),[b,h]=te.useState(0),E=Zj(n);te.useEffect(()=>{h(N=>N+1)},[]);const S=te.useCallback(async N=>{try{await E.mutateAsync({content:N,agent:a||void 0,provider:l||void 0,model:c||void 0})}catch(D){console.error("Failed to send message:",D)}},[E,a,l,c]),_=te.useCallback(()=>{f(N=>!N)},[]),T=te.useCallback(()=>{f(!1)},[]),C=te.useCallback(N=>{i(N)},[]),x=te.useCallback(N=>{u(N)},[]),A=te.useCallback(N=>{d(N)},[]);return y.jsxs(y.Fragment,{children:[y.jsx(l$,{isOpen:g,onClose:T,agent:a,provider:l,model:c,onAgentChange:C,onProviderChange:x,onModelChange:A}),y.jsx(a$,{onSend:S,disabled:E.isPending,onConfigClick:_},b)]})}),_C="agi-theme",Ow="dark";function u$(){if(typeof window>"u")return Ow;const e=window.localStorage.getItem(_C);return e==="light"||e==="dark"?e:Ow}function c$(){const[e,n]=te.useState(()=>u$());te.useEffect(()=>{if(typeof document>"u")return;const i=document.documentElement;e==="dark"?i.classList.add("dark"):i.classList.remove("dark");try{window.localStorage.setItem(_C,e)}catch(l){console.warn("Failed to persist theme preference",l)}},[e]);const a=te.useCallback(()=>{n(i=>i==="dark"?"light":"dark")},[]);return te.useMemo(()=>({theme:e,setTheme:n,toggleTheme:a}),[e,a])}function d$(){const[e,n]=te.useState(null);return te.useEffect(()=>{(async()=>{try{const u=`${window.AGI_SERVER_URL||Zw}/v1/config/cwd`;console.log("[useWorkingDirectory] Fetching from:",u);const c=await fetch(u);if(!c.ok)throw console.error("[useWorkingDirectory] Failed:",c.status,c.statusText),new Error(`Failed to fetch working directory: ${c.status}`);const d=await c.json();console.log("[useWorkingDirectory] Success:",d),d.dirName&&(console.log("[useWorkingDirectory] Setting title to:",d.dirName),n(d.dirName),document.title=d.dirName)}catch(i){console.error("[useWorkingDirectory] Error:",i),document.title="AGI"}})()},[]),e}const p$=new bO({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,structuralSharing:!0}}});function f$(){const[e,n]=te.useState(),a=Yj(),{theme:i,toggleTheme:l}=c$();d$();const u=te.useCallback(async()=>{try{const c=await a.mutateAsync({agent:"general"});n(c.id)}catch(c){console.error("Failed to create session:",c)}},[a]);return y.jsx(Vj,{onNewSession:u,theme:i,onToggleTheme:l,sidebar:y.jsx(Kj,{activeSessionId:e,onSelectSession:n}),children:e?y.jsxs(y.Fragment,{children:[y.jsx(r$,{sessionId:e}),y.jsx(s$,{sessionId:e})]}):y.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Select a session or create a new one to start"})})}function g$(){return y.jsx(yO,{client:p$,children:y.jsx(f$,{})})}const RC=document.getElementById("root");if(!RC)throw new Error("Root element not found");WI.createRoot(RC).render(y.jsx(te.StrictMode,{children:y.jsx(g$,{})}));
|