@harness-engineering/dashboard 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function Sc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pp={exports:{}},Qs={},Bp={exports:{}},He={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var zv;function V_(){if(zv)return He;zv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator;function b(F){return F===null||typeof F!="object"?null:(F=h&&F[h]||F["@@iterator"],typeof F=="function"?F:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function w(F,K,j){this.props=F,this.context=K,this.refs=k,this.updater=j||y}w.prototype.isReactComponent={},w.prototype.setState=function(F,K){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,K,"setState")},w.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function v(){}v.prototype=w.prototype;function N(F,K,j){this.props=F,this.context=K,this.refs=k,this.updater=j||y}var A=N.prototype=new v;A.constructor=N,E(A,w.prototype),A.isPureReactComponent=!0;var _=Array.isArray,M=Object.prototype.hasOwnProperty,D={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function P(F,K,j){var fe,Ne={},be=null,De=null;if(K!=null)for(fe in K.ref!==void 0&&(De=K.ref),K.key!==void 0&&(be=""+K.key),K)M.call(K,fe)&&!R.hasOwnProperty(fe)&&(Ne[fe]=K[fe]);var ne=arguments.length-2;if(ne===1)Ne.children=j;else if(1<ne){for(var xe=Array(ne),je=0;je<ne;je++)xe[je]=arguments[je+2];Ne.children=xe}if(F&&F.defaultProps)for(fe in ne=F.defaultProps,ne)Ne[fe]===void 0&&(Ne[fe]=ne[fe]);return{$$typeof:e,type:F,key:be,ref:De,props:Ne,_owner:D.current}}function B(F,K){return{$$typeof:e,type:F.type,key:K,ref:F.ref,props:F.props,_owner:F._owner}}function O(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function $(F){var K={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(j){return K[j]})}var H=/\/+/g;function Z(F,K){return typeof F=="object"&&F!==null&&F.key!=null?$(""+F.key):K.toString(36)}function q(F,K,j,fe,Ne){var be=typeof F;(be==="undefined"||be==="boolean")&&(F=null);var De=!1;if(F===null)De=!0;else switch(be){case"string":case"number":De=!0;break;case"object":switch(F.$$typeof){case e:case t:De=!0}}if(De)return De=F,Ne=Ne(De),F=fe===""?"."+Z(De,0):fe,_(Ne)?(j="",F!=null&&(j=F.replace(H,"$&/")+"/"),q(Ne,K,j,"",function(je){return je})):Ne!=null&&(O(Ne)&&(Ne=B(Ne,j+(!Ne.key||De&&De.key===Ne.key?"":(""+Ne.key).replace(H,"$&/")+"/")+F)),K.push(Ne)),1;if(De=0,fe=fe===""?".":fe+":",_(F))for(var ne=0;ne<F.length;ne++){be=F[ne];var xe=fe+Z(be,ne);De+=q(be,K,j,xe,Ne)}else if(xe=b(F),typeof xe=="function")for(F=xe.call(F),ne=0;!(be=F.next()).done;)be=be.value,xe=fe+Z(be,ne++),De+=q(be,K,j,xe,Ne);else if(be==="object")throw K=String(F),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return De}function Y(F,K,j){if(F==null)return F;var fe=[],Ne=0;return q(F,fe,"","",function(be){return K.call(j,be,Ne++)}),fe}function ae(F){if(F._status===-1){var K=F._result;K=K(),K.then(function(j){(F._status===0||F._status===-1)&&(F._status=1,F._result=j)},function(j){(F._status===0||F._status===-1)&&(F._status=2,F._result=j)}),F._status===-1&&(F._status=0,F._result=K)}if(F._status===1)return F._result.default;throw F._result}var J={current:null},W={transition:null},re={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:W,ReactCurrentOwner:D};function C(){throw Error("act(...) is not supported in production builds of React.")}return He.Children={map:Y,forEach:function(F,K,j){Y(F,function(){K.apply(this,arguments)},j)},count:function(F){var K=0;return Y(F,function(){K++}),K},toArray:function(F){return Y(F,function(K){return K})||[]},only:function(F){if(!O(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},He.Component=w,He.Fragment=n,He.Profiler=a,He.PureComponent=N,He.StrictMode=r,He.Suspense=d,He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,He.act=C,He.cloneElement=function(F,K,j){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var fe=E({},F.props),Ne=F.key,be=F.ref,De=F._owner;if(K!=null){if(K.ref!==void 0&&(be=K.ref,De=D.current),K.key!==void 0&&(Ne=""+K.key),F.type&&F.type.defaultProps)var ne=F.type.defaultProps;for(xe in K)M.call(K,xe)&&!R.hasOwnProperty(xe)&&(fe[xe]=K[xe]===void 0&&ne!==void 0?ne[xe]:K[xe])}var xe=arguments.length-2;if(xe===1)fe.children=j;else if(1<xe){ne=Array(xe);for(var je=0;je<xe;je++)ne[je]=arguments[je+2];fe.children=ne}return{$$typeof:e,type:F.type,key:Ne,ref:be,props:fe,_owner:De}},He.createContext=function(F){return F={$$typeof:o,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:s,_context:F},F.Consumer=F},He.createElement=P,He.createFactory=function(F){var K=P.bind(null,F);return K.type=F,K},He.createRef=function(){return{current:null}},He.forwardRef=function(F){return{$$typeof:c,render:F}},He.isValidElement=O,He.lazy=function(F){return{$$typeof:m,_payload:{_status:-1,_result:F},_init:ae}},He.memo=function(F,K){return{$$typeof:f,type:F,compare:K===void 0?null:K}},He.startTransition=function(F){var K=W.transition;W.transition={};try{F()}finally{W.transition=K}},He.unstable_act=C,He.useCallback=function(F,K){return J.current.useCallback(F,K)},He.useContext=function(F){return J.current.useContext(F)},He.useDebugValue=function(){},He.useDeferredValue=function(F){return J.current.useDeferredValue(F)},He.useEffect=function(F,K){return J.current.useEffect(F,K)},He.useId=function(){return J.current.useId()},He.useImperativeHandle=function(F,K,j){return J.current.useImperativeHandle(F,K,j)},He.useInsertionEffect=function(F,K){return J.current.useInsertionEffect(F,K)},He.useLayoutEffect=function(F,K){return J.current.useLayoutEffect(F,K)},He.useMemo=function(F,K){return J.current.useMemo(F,K)},He.useReducer=function(F,K,j){return J.current.useReducer(F,K,j)},He.useRef=function(F){return J.current.useRef(F)},He.useState=function(F){return J.current.useState(F)},He.useSyncExternalStore=function(F,K,j){return J.current.useSyncExternalStore(F,K,j)},He.useTransition=function(){return J.current.useTransition()},He.version="18.3.1",He}var Gv;function Pm(){return Gv||(Gv=1,Bp.exports=V_()),Bp.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Hv;function W_(){if(Hv)return Qs;Hv=1;var e=Pm(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(c,d,f){var m,h={},b=null,y=null;f!==void 0&&(b=""+f),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(y=d.ref);for(m in d)r.call(d,m)&&!s.hasOwnProperty(m)&&(h[m]=d[m]);if(c&&c.defaultProps)for(m in d=c.defaultProps,d)h[m]===void 0&&(h[m]=d[m]);return{$$typeof:t,type:c,key:b,ref:y,props:h,_owner:a.current}}return Qs.Fragment=n,Qs.jsx=o,Qs.jsxs=o,Qs}var Vv;function q_(){return Vv||(Vv=1,Pp.exports=W_()),Pp.exports}var u=q_(),T=Pm();const me=Sc(T);var hu={},Up={exports:{}},bn={},$p={exports:{}},zp={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Wv;function Y_(){return Wv||(Wv=1,(function(e){function t(W,re){var C=W.length;W.push(re);e:for(;0<C;){var F=C-1>>>1,K=W[F];if(0<a(K,re))W[F]=re,W[C]=K,C=F;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var re=W[0],C=W.pop();if(C!==re){W[0]=C;e:for(var F=0,K=W.length,j=K>>>1;F<j;){var fe=2*(F+1)-1,Ne=W[fe],be=fe+1,De=W[be];if(0>a(Ne,C))be<K&&0>a(De,Ne)?(W[F]=De,W[be]=C,F=be):(W[F]=Ne,W[fe]=C,F=fe);else if(be<K&&0>a(De,C))W[F]=De,W[be]=C,F=be;else break e}}return re}function a(W,re){var C=W.sortIndex-re.sortIndex;return C!==0?C:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var d=[],f=[],m=1,h=null,b=3,y=!1,E=!1,k=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(W){for(var re=n(f);re!==null;){if(re.callback===null)r(f);else if(re.startTime<=W)r(f),re.sortIndex=re.expirationTime,t(d,re);else break;re=n(f)}}function _(W){if(k=!1,A(W),!E)if(n(d)!==null)E=!0,ae(M);else{var re=n(f);re!==null&&J(_,re.startTime-W)}}function M(W,re){E=!1,k&&(k=!1,v(P),P=-1),y=!0;var C=b;try{for(A(re),h=n(d);h!==null&&(!(h.expirationTime>re)||W&&!$());){var F=h.callback;if(typeof F=="function"){h.callback=null,b=h.priorityLevel;var K=F(h.expirationTime<=re);re=e.unstable_now(),typeof K=="function"?h.callback=K:h===n(d)&&r(d),A(re)}else r(d);h=n(d)}if(h!==null)var j=!0;else{var fe=n(f);fe!==null&&J(_,fe.startTime-re),j=!1}return j}finally{h=null,b=C,y=!1}}var D=!1,R=null,P=-1,B=5,O=-1;function $(){return!(e.unstable_now()-O<B)}function H(){if(R!==null){var W=e.unstable_now();O=W;var re=!0;try{re=R(!0,W)}finally{re?Z():(D=!1,R=null)}}else D=!1}var Z;if(typeof N=="function")Z=function(){N(H)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,Y=q.port2;q.port1.onmessage=H,Z=function(){Y.postMessage(null)}}else Z=function(){w(H,0)};function ae(W){R=W,D||(D=!0,Z())}function J(W,re){P=w(function(){W(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){E||y||(E=!0,ae(M))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(W){switch(b){case 1:case 2:case 3:var re=3;break;default:re=b}var C=b;b=re;try{return W()}finally{b=C}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var C=b;b=W;try{return re()}finally{b=C}},e.unstable_scheduleCallback=function(W,re,C){var F=e.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?F+C:F):C=F,W){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=C+K,W={id:m++,callback:re,priorityLevel:W,startTime:C,expirationTime:K,sortIndex:-1},C>F?(W.sortIndex=C,t(f,W),n(d)===null&&W===n(f)&&(k?(v(P),P=-1):k=!0,J(_,C-F))):(W.sortIndex=K,t(d,W),E||y||(E=!0,ae(M))),W},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(W){var re=b;return function(){var C=b;b=re;try{return W.apply(this,arguments)}finally{b=C}}}})(zp)),zp}var qv;function K_(){return qv||(qv=1,$p.exports=Y_()),$p.exports}/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Yv;function X_(){if(Yv)return bn;Yv=1;var e=Pm(),t=K_();function n(i){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+i,p=1;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+i+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function s(i,l){o(i,l),o(i+"Capture",l)}function o(i,l){for(a[i]=l,i=0;i<l.length;i++)r.add(l[i])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},h={};function b(i){return d.call(h,i)?!0:d.call(m,i)?!1:f.test(i)?h[i]=!0:(m[i]=!0,!1)}function y(i,l,p,g){if(p!==null&&p.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function E(i,l,p,g){if(l===null||typeof l>"u"||y(i,l,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function k(i,l,p,g,x,S,I){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=g,this.attributeNamespace=x,this.mustUseProperty=p,this.propertyName=i,this.type=l,this.sanitizeURL=S,this.removeEmptyString=I}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){w[i]=new k(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var l=i[0];w[l]=new k(l,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){w[i]=new k(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){w[i]=new k(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){w[i]=new k(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){w[i]=new k(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){w[i]=new k(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){w[i]=new k(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){w[i]=new k(i,5,!1,i.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function N(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var l=i.replace(v,N);w[l]=new k(l,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var l=i.replace(v,N);w[l]=new k(l,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var l=i.replace(v,N);w[l]=new k(l,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){w[i]=new k(i,1,!1,i.toLowerCase(),null,!1,!1)}),w.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){w[i]=new k(i,1,!1,i.toLowerCase(),null,!0,!0)});function A(i,l,p,g){var x=w.hasOwnProperty(l)?w[l]:null;(x!==null?x.type!==0:g||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(E(l,p,x,g)&&(p=null),g||x===null?b(l)&&(p===null?i.removeAttribute(l):i.setAttribute(l,""+p)):x.mustUseProperty?i[x.propertyName]=p===null?x.type===3?!1:"":p:(l=x.attributeName,g=x.attributeNamespace,p===null?i.removeAttribute(l):(x=x.type,p=x===3||x===4&&p===!0?"":""+p,g?i.setAttributeNS(g,l,p):i.setAttribute(l,p))))}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),D=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),$=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),J=Symbol.for("react.offscreen"),W=Symbol.iterator;function re(i){return i===null||typeof i!="object"?null:(i=W&&i[W]||i["@@iterator"],typeof i=="function"?i:null)}var C=Object.assign,F;function K(i){if(F===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);F=l&&l[1]||""}return`
|
|
34
|
-
`+F+i}var j=!1;function fe(i,l){if(!i||j)return"";j=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(Q){var g=Q}Reflect.construct(i,[],l)}else{try{l.call()}catch(Q){g=Q}i.call(l.prototype)}else{try{throw Error()}catch(Q){g=Q}i()}}catch(Q){if(Q&&g&&typeof Q.stack=="string"){for(var x=Q.stack.split(`
|
|
35
|
-
`),S=g.stack.split(`
|
|
36
|
-
`),I=x.length-1,U=S.length-1;1<=I&&0<=U&&x[I]!==S[U];)U--;for(;1<=I&&0<=U;I--,U--)if(x[I]!==S[U]){if(I!==1||U!==1)do if(I--,U--,0>U||x[I]!==S[U]){var z=`
|
|
37
|
-
`+x[I].replace(" at new "," at ");return i.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",i.displayName)),z}while(1<=I&&0<=U);break}}}finally{j=!1,Error.prepareStackTrace=p}return(i=i?i.displayName||i.name:"")?K(i):""}function Ne(i){switch(i.tag){case 5:return K(i.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return i=fe(i.type,!1),i;case 11:return i=fe(i.type.render,!1),i;case 1:return i=fe(i.type,!0),i;default:return""}}function be(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case R:return"Fragment";case D:return"Portal";case B:return"Profiler";case P:return"StrictMode";case Z:return"Suspense";case q:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case $:return(i.displayName||"Context")+".Consumer";case O:return(i._context.displayName||"Context")+".Provider";case H:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Y:return l=i.displayName||null,l!==null?l:be(i.type)||"Memo";case ae:l=i._payload,i=i._init;try{return be(i(l))}catch{}}return null}function De(i){var l=i.type;switch(i.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=l.render,i=i.displayName||i.name||"",l.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return be(l);case 8:return l===P?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function ne(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function xe(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function je(i){var l=xe(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),g=""+i[l];if(!i.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,S=p.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return x.call(this)},set:function(I){g=""+I,S.call(this,I)}}),Object.defineProperty(i,l,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(I){g=""+I},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function ze(i){i._valueTracker||(i._valueTracker=je(i))}function qe(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var p=l.getValue(),g="";return i&&(g=xe(i)?i.checked?"true":"false":i.value),i=g,i!==p?(l.setValue(i),!0):!1}function Je(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function lt(i,l){var p=l.checked;return C({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??i._wrapperState.initialChecked})}function et(i,l){var p=l.defaultValue==null?"":l.defaultValue,g=l.checked!=null?l.checked:l.defaultChecked;p=ne(l.value!=null?l.value:p),i._wrapperState={initialChecked:g,initialValue:p,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function at(i,l){l=l.checked,l!=null&&A(i,"checked",l,!1)}function kt(i,l){at(i,l);var p=ne(l.value),g=l.type;if(p!=null)g==="number"?(p===0&&i.value===""||i.value!=p)&&(i.value=""+p):i.value!==""+p&&(i.value=""+p);else if(g==="submit"||g==="reset"){i.removeAttribute("value");return}l.hasOwnProperty("value")?Dn(i,l.type,p):l.hasOwnProperty("defaultValue")&&Dn(i,l.type,ne(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(i.defaultChecked=!!l.defaultChecked)}function ct(i,l,p){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var g=l.type;if(!(g!=="submit"&&g!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+i._wrapperState.initialValue,p||l===i.value||(i.value=l),i.defaultValue=l}p=i.name,p!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,p!==""&&(i.name=p)}function Dn(i,l,p){(l!=="number"||Je(i.ownerDocument)!==i)&&(p==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+p&&(i.defaultValue=""+p))}var Sn=Array.isArray;function Mn(i,l,p,g){if(i=i.options,l){l={};for(var x=0;x<p.length;x++)l["$"+p[x]]=!0;for(p=0;p<i.length;p++)x=l.hasOwnProperty("$"+i[p].value),i[p].selected!==x&&(i[p].selected=x),x&&g&&(i[p].defaultSelected=!0)}else{for(p=""+ne(p),l=null,x=0;x<i.length;x++){if(i[x].value===p){i[x].selected=!0,g&&(i[x].defaultSelected=!0);return}l!==null||i[x].disabled||(l=i[x])}l!==null&&(l.selected=!0)}}function qr(i,l){if(l.dangerouslySetInnerHTML!=null)throw Error(n(91));return C({},l,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Lr(i,l){var p=l.value;if(p==null){if(p=l.children,l=l.defaultValue,p!=null){if(l!=null)throw Error(n(92));if(Sn(p)){if(1<p.length)throw Error(n(93));p=p[0]}l=p}l==null&&(l=""),p=l}i._wrapperState={initialValue:ne(p)}}function Xn(i,l){var p=ne(l.value),g=ne(l.defaultValue);p!=null&&(p=""+p,p!==i.value&&(i.value=p),l.defaultValue==null&&i.defaultValue!==p&&(i.defaultValue=p)),g!=null&&(i.defaultValue=""+g)}function jn(i){var l=i.textContent;l===i._wrapperState.initialValue&&l!==""&&l!==null&&(i.value=l)}function te(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(i,l){return i==null||i==="http://www.w3.org/1999/xhtml"?te(l):i==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Re,Pe=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,p,g,x){MSApp.execUnsafeLocalFunction(function(){return i(l,p,g,x)})}:i})(function(i,l){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=l;else{for(Re=Re||document.createElement("div"),Re.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=Re.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}});function Ye(i,l){if(l){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=l;return}}i.textContent=l}var Ct={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zn=["Webkit","ms","Moz","O"];Object.keys(Ct).forEach(function(i){Zn.forEach(function(l){l=l+i.charAt(0).toUpperCase()+i.substring(1),Ct[l]=Ct[i]})});function Fn(i,l,p){return l==null||typeof l=="boolean"||l===""?"":p||typeof l!="number"||l===0||Ct.hasOwnProperty(i)&&Ct[i]?(""+l).trim():l+"px"}function Yr(i,l){i=i.style;for(var p in l)if(l.hasOwnProperty(p)){var g=p.indexOf("--")===0,x=Fn(p,l[p],g);p==="float"&&(p="cssFloat"),g?i.setProperty(p,x):i[p]=x}}var _a=C({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ht(i,l){if(l){if(_a[i]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(n(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(n(61))}if(l.style!=null&&typeof l.style!="object")throw Error(n(62))}}function gr(i,l){if(i.indexOf("-")===-1)return typeof l.is=="string";switch(i){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 vn=null;function Jc(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ed=null,fi=null,mi=null;function iE(i){if(i=Fs(i)){if(typeof ed!="function")throw Error(n(280));var l=i.stateNode;l&&(l=Rl(l),ed(i.stateNode,i.type,l))}}function sE(i){fi?mi?mi.push(i):mi=[i]:fi=i}function oE(){if(fi){var i=fi,l=mi;if(mi=fi=null,iE(i),l)for(i=0;i<l.length;i++)iE(l[i])}}function lE(i,l){return i(l)}function uE(){}var td=!1;function cE(i,l,p){if(td)return i(l,p);td=!0;try{return lE(i,l,p)}finally{td=!1,(fi!==null||mi!==null)&&(uE(),oE())}}function gs(i,l){var p=i.stateNode;if(p===null)return null;var g=Rl(p);if(g===null)return null;p=g[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(i=i.type,g=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!g;break e;default:i=!1}if(i)return null;if(p&&typeof p!="function")throw Error(n(231,l,typeof p));return p}var nd=!1;if(c)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){nd=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{nd=!1}function ZR(i,l,p,g,x,S,I,U,z){var Q=Array.prototype.slice.call(arguments,3);try{l.apply(p,Q)}catch(se){this.onError(se)}}var ys=!1,ll=null,ul=!1,rd=null,QR={onError:function(i){ys=!0,ll=i}};function JR(i,l,p,g,x,S,I,U,z){ys=!1,ll=null,ZR.apply(QR,arguments)}function e1(i,l,p,g,x,S,I,U,z){if(JR.apply(this,arguments),ys){if(ys){var Q=ll;ys=!1,ll=null}else throw Error(n(198));ul||(ul=!0,rd=Q)}}function Oa(i){var l=i,p=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(p=l.return),i=l.return;while(i)}return l.tag===3?p:null}function dE(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function pE(i){if(Oa(i)!==i)throw Error(n(188))}function t1(i){var l=i.alternate;if(!l){if(l=Oa(i),l===null)throw Error(n(188));return l!==i?null:i}for(var p=i,g=l;;){var x=p.return;if(x===null)break;var S=x.alternate;if(S===null){if(g=x.return,g!==null){p=g;continue}break}if(x.child===S.child){for(S=x.child;S;){if(S===p)return pE(x),i;if(S===g)return pE(x),l;S=S.sibling}throw Error(n(188))}if(p.return!==g.return)p=x,g=S;else{for(var I=!1,U=x.child;U;){if(U===p){I=!0,p=x,g=S;break}if(U===g){I=!0,g=x,p=S;break}U=U.sibling}if(!I){for(U=S.child;U;){if(U===p){I=!0,p=S,g=x;break}if(U===g){I=!0,g=S,p=x;break}U=U.sibling}if(!I)throw Error(n(189))}}if(p.alternate!==g)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?i:l}function fE(i){return i=t1(i),i!==null?mE(i):null}function mE(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var l=mE(i);if(l!==null)return l;i=i.sibling}return null}var hE=t.unstable_scheduleCallback,gE=t.unstable_cancelCallback,n1=t.unstable_shouldYield,r1=t.unstable_requestPaint,At=t.unstable_now,a1=t.unstable_getCurrentPriorityLevel,ad=t.unstable_ImmediatePriority,bE=t.unstable_UserBlockingPriority,cl=t.unstable_NormalPriority,i1=t.unstable_LowPriority,yE=t.unstable_IdlePriority,dl=null,br=null;function s1(i){if(br&&typeof br.onCommitFiberRoot=="function")try{br.onCommitFiberRoot(dl,i,void 0,(i.current.flags&128)===128)}catch{}}var Qn=Math.clz32?Math.clz32:u1,o1=Math.log,l1=Math.LN2;function u1(i){return i>>>=0,i===0?32:31-(o1(i)/l1|0)|0}var pl=64,fl=4194304;function xs(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function ml(i,l){var p=i.pendingLanes;if(p===0)return 0;var g=0,x=i.suspendedLanes,S=i.pingedLanes,I=p&268435455;if(I!==0){var U=I&~x;U!==0?g=xs(U):(S&=I,S!==0&&(g=xs(S)))}else I=p&~x,I!==0?g=xs(I):S!==0&&(g=xs(S));if(g===0)return 0;if(l!==0&&l!==g&&(l&x)===0&&(x=g&-g,S=l&-l,x>=S||x===16&&(S&4194240)!==0))return l;if((g&4)!==0&&(g|=p&16),l=i.entangledLanes,l!==0)for(i=i.entanglements,l&=g;0<l;)p=31-Qn(l),x=1<<p,g|=i[p],l&=~x;return g}function c1(i,l){switch(i){case 1:case 2:case 4:return l+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function d1(i,l){for(var p=i.suspendedLanes,g=i.pingedLanes,x=i.expirationTimes,S=i.pendingLanes;0<S;){var I=31-Qn(S),U=1<<I,z=x[I];z===-1?((U&p)===0||(U&g)!==0)&&(x[I]=c1(U,l)):z<=l&&(i.expiredLanes|=U),S&=~U}}function id(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function xE(){var i=pl;return pl<<=1,(pl&4194240)===0&&(pl=64),i}function sd(i){for(var l=[],p=0;31>p;p++)l.push(i);return l}function Es(i,l,p){i.pendingLanes|=l,l!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,l=31-Qn(l),i[l]=p}function p1(i,l){var p=i.pendingLanes&~l;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=l,i.mutableReadLanes&=l,i.entangledLanes&=l,l=i.entanglements;var g=i.eventTimes;for(i=i.expirationTimes;0<p;){var x=31-Qn(p),S=1<<x;l[x]=0,g[x]=-1,i[x]=-1,p&=~S}}function od(i,l){var p=i.entangledLanes|=l;for(i=i.entanglements;p;){var g=31-Qn(p),x=1<<g;x&l|i[g]&l&&(i[g]|=l),p&=~x}}var it=0;function EE(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var SE,ld,vE,wE,kE,ud=!1,hl=[],Kr=null,Xr=null,Zr=null,Ss=new Map,vs=new Map,Qr=[],f1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function TE(i,l){switch(i){case"focusin":case"focusout":Kr=null;break;case"dragenter":case"dragleave":Xr=null;break;case"mouseover":case"mouseout":Zr=null;break;case"pointerover":case"pointerout":Ss.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":vs.delete(l.pointerId)}}function ws(i,l,p,g,x,S){return i===null||i.nativeEvent!==S?(i={blockedOn:l,domEventName:p,eventSystemFlags:g,nativeEvent:S,targetContainers:[x]},l!==null&&(l=Fs(l),l!==null&&ld(l)),i):(i.eventSystemFlags|=g,l=i.targetContainers,x!==null&&l.indexOf(x)===-1&&l.push(x),i)}function m1(i,l,p,g,x){switch(l){case"focusin":return Kr=ws(Kr,i,l,p,g,x),!0;case"dragenter":return Xr=ws(Xr,i,l,p,g,x),!0;case"mouseover":return Zr=ws(Zr,i,l,p,g,x),!0;case"pointerover":var S=x.pointerId;return Ss.set(S,ws(Ss.get(S)||null,i,l,p,g,x)),!0;case"gotpointercapture":return S=x.pointerId,vs.set(S,ws(vs.get(S)||null,i,l,p,g,x)),!0}return!1}function NE(i){var l=La(i.target);if(l!==null){var p=Oa(l);if(p!==null){if(l=p.tag,l===13){if(l=dE(p),l!==null){i.blockedOn=l,kE(i.priority,function(){vE(p)});return}}else if(l===3&&p.stateNode.current.memoizedState.isDehydrated){i.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}i.blockedOn=null}function gl(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var p=dd(i.domEventName,i.eventSystemFlags,l[0],i.nativeEvent);if(p===null){p=i.nativeEvent;var g=new p.constructor(p.type,p);vn=g,p.target.dispatchEvent(g),vn=null}else return l=Fs(p),l!==null&&ld(l),i.blockedOn=p,!1;l.shift()}return!0}function AE(i,l,p){gl(i)&&p.delete(l)}function h1(){ud=!1,Kr!==null&&gl(Kr)&&(Kr=null),Xr!==null&&gl(Xr)&&(Xr=null),Zr!==null&&gl(Zr)&&(Zr=null),Ss.forEach(AE),vs.forEach(AE)}function ks(i,l){i.blockedOn===l&&(i.blockedOn=null,ud||(ud=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,h1)))}function Ts(i){function l(x){return ks(x,i)}if(0<hl.length){ks(hl[0],i);for(var p=1;p<hl.length;p++){var g=hl[p];g.blockedOn===i&&(g.blockedOn=null)}}for(Kr!==null&&ks(Kr,i),Xr!==null&&ks(Xr,i),Zr!==null&&ks(Zr,i),Ss.forEach(l),vs.forEach(l),p=0;p<Qr.length;p++)g=Qr[p],g.blockedOn===i&&(g.blockedOn=null);for(;0<Qr.length&&(p=Qr[0],p.blockedOn===null);)NE(p),p.blockedOn===null&&Qr.shift()}var hi=_.ReactCurrentBatchConfig,bl=!0;function g1(i,l,p,g){var x=it,S=hi.transition;hi.transition=null;try{it=1,cd(i,l,p,g)}finally{it=x,hi.transition=S}}function b1(i,l,p,g){var x=it,S=hi.transition;hi.transition=null;try{it=4,cd(i,l,p,g)}finally{it=x,hi.transition=S}}function cd(i,l,p,g){if(bl){var x=dd(i,l,p,g);if(x===null)Id(i,l,g,yl,p),TE(i,g);else if(m1(x,i,l,p,g))g.stopPropagation();else if(TE(i,g),l&4&&-1<f1.indexOf(i)){for(;x!==null;){var S=Fs(x);if(S!==null&&SE(S),S=dd(i,l,p,g),S===null&&Id(i,l,g,yl,p),S===x)break;x=S}x!==null&&g.stopPropagation()}else Id(i,l,g,null,p)}}var yl=null;function dd(i,l,p,g){if(yl=null,i=Jc(g),i=La(i),i!==null)if(l=Oa(i),l===null)i=null;else if(p=l.tag,p===13){if(i=dE(l),i!==null)return i;i=null}else if(p===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null);return yl=i,null}function IE(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(a1()){case ad:return 1;case bE:return 4;case cl:case i1:return 16;case yE:return 536870912;default:return 16}default:return 16}}var Jr=null,pd=null,xl=null;function CE(){if(xl)return xl;var i,l=pd,p=l.length,g,x="value"in Jr?Jr.value:Jr.textContent,S=x.length;for(i=0;i<p&&l[i]===x[i];i++);var I=p-i;for(g=1;g<=I&&l[p-g]===x[S-g];g++);return xl=x.slice(i,1<g?1-g:void 0)}function El(i){var l=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&l===13&&(i=13)):i=l,i===10&&(i=13),32<=i||i===13?i:0}function Sl(){return!0}function RE(){return!1}function wn(i){function l(p,g,x,S,I){this._reactName=p,this._targetInst=x,this.type=g,this.nativeEvent=S,this.target=I,this.currentTarget=null;for(var U in i)i.hasOwnProperty(U)&&(p=i[U],this[U]=p?p(S):S[U]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Sl:RE,this.isPropagationStopped=RE,this}return C(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Sl)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Sl)},persist:function(){},isPersistent:Sl}),l}var gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fd=wn(gi),Ns=C({},gi,{view:0,detail:0}),y1=wn(Ns),md,hd,As,vl=C({},Ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==As&&(As&&i.type==="mousemove"?(md=i.screenX-As.screenX,hd=i.screenY-As.screenY):hd=md=0,As=i),md)},movementY:function(i){return"movementY"in i?i.movementY:hd}}),_E=wn(vl),x1=C({},vl,{dataTransfer:0}),E1=wn(x1),S1=C({},Ns,{relatedTarget:0}),gd=wn(S1),v1=C({},gi,{animationName:0,elapsedTime:0,pseudoElement:0}),w1=wn(v1),k1=C({},gi,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),T1=wn(k1),N1=C({},gi,{data:0}),OE=wn(N1),A1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I1={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"},C1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function R1(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=C1[i])?!!l[i]:!1}function bd(){return R1}var _1=C({},Ns,{key:function(i){if(i.key){var l=A1[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=El(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?I1[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bd,charCode:function(i){return i.type==="keypress"?El(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?El(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),O1=wn(_1),L1=C({},vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),LE=wn(L1),D1=C({},Ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bd}),M1=wn(D1),j1=C({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),F1=wn(j1),P1=C({},vl,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),B1=wn(P1),U1=[9,13,27,32],yd=c&&"CompositionEvent"in window,Is=null;c&&"documentMode"in document&&(Is=document.documentMode);var $1=c&&"TextEvent"in window&&!Is,DE=c&&(!yd||Is&&8<Is&&11>=Is),ME=" ",jE=!1;function FE(i,l){switch(i){case"keyup":return U1.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function PE(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var bi=!1;function z1(i,l){switch(i){case"compositionend":return PE(l);case"keypress":return l.which!==32?null:(jE=!0,ME);case"textInput":return i=l.data,i===ME&&jE?null:i;default:return null}}function G1(i,l){if(bi)return i==="compositionend"||!yd&&FE(i,l)?(i=CE(),xl=pd=Jr=null,bi=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return DE&&l.locale!=="ko"?null:l.data;default:return null}}var H1={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 BE(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!H1[i.type]:l==="textarea"}function UE(i,l,p,g){sE(g),l=Al(l,"onChange"),0<l.length&&(p=new fd("onChange","change",null,p,g),i.push({event:p,listeners:l}))}var Cs=null,Rs=null;function V1(i){aS(i,0)}function wl(i){var l=vi(i);if(qe(l))return i}function W1(i,l){if(i==="change")return l}var $E=!1;if(c){var xd;if(c){var Ed="oninput"in document;if(!Ed){var zE=document.createElement("div");zE.setAttribute("oninput","return;"),Ed=typeof zE.oninput=="function"}xd=Ed}else xd=!1;$E=xd&&(!document.documentMode||9<document.documentMode)}function GE(){Cs&&(Cs.detachEvent("onpropertychange",HE),Rs=Cs=null)}function HE(i){if(i.propertyName==="value"&&wl(Rs)){var l=[];UE(l,Rs,i,Jc(i)),cE(V1,l)}}function q1(i,l,p){i==="focusin"?(GE(),Cs=l,Rs=p,Cs.attachEvent("onpropertychange",HE)):i==="focusout"&&GE()}function Y1(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return wl(Rs)}function K1(i,l){if(i==="click")return wl(l)}function X1(i,l){if(i==="input"||i==="change")return wl(l)}function Z1(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var Jn=typeof Object.is=="function"?Object.is:Z1;function _s(i,l){if(Jn(i,l))return!0;if(typeof i!="object"||i===null||typeof l!="object"||l===null)return!1;var p=Object.keys(i),g=Object.keys(l);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var x=p[g];if(!d.call(l,x)||!Jn(i[x],l[x]))return!1}return!0}function VE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function WE(i,l){var p=VE(i);i=0;for(var g;p;){if(p.nodeType===3){if(g=i+p.textContent.length,i<=l&&g>=l)return{node:p,offset:l-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=VE(p)}}function qE(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?qE(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function YE(){for(var i=window,l=Je();l instanceof i.HTMLIFrameElement;){try{var p=typeof l.contentWindow.location.href=="string"}catch{p=!1}if(p)i=l.contentWindow;else break;l=Je(i.document)}return l}function Sd(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}function Q1(i){var l=YE(),p=i.focusedElem,g=i.selectionRange;if(l!==p&&p&&p.ownerDocument&&qE(p.ownerDocument.documentElement,p)){if(g!==null&&Sd(p)){if(l=g.start,i=g.end,i===void 0&&(i=l),"selectionStart"in p)p.selectionStart=l,p.selectionEnd=Math.min(i,p.value.length);else if(i=(l=p.ownerDocument||document)&&l.defaultView||window,i.getSelection){i=i.getSelection();var x=p.textContent.length,S=Math.min(g.start,x);g=g.end===void 0?S:Math.min(g.end,x),!i.extend&&S>g&&(x=g,g=S,S=x),x=WE(p,S);var I=WE(p,g);x&&I&&(i.rangeCount!==1||i.anchorNode!==x.node||i.anchorOffset!==x.offset||i.focusNode!==I.node||i.focusOffset!==I.offset)&&(l=l.createRange(),l.setStart(x.node,x.offset),i.removeAllRanges(),S>g?(i.addRange(l),i.extend(I.node,I.offset)):(l.setEnd(I.node,I.offset),i.addRange(l)))}}for(l=[],i=p;i=i.parentNode;)i.nodeType===1&&l.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<l.length;p++)i=l[p],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var J1=c&&"documentMode"in document&&11>=document.documentMode,yi=null,vd=null,Os=null,wd=!1;function KE(i,l,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;wd||yi==null||yi!==Je(g)||(g=yi,"selectionStart"in g&&Sd(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Os&&_s(Os,g)||(Os=g,g=Al(vd,"onSelect"),0<g.length&&(l=new fd("onSelect","select",null,l,p),i.push({event:l,listeners:g}),l.target=yi)))}function kl(i,l){var p={};return p[i.toLowerCase()]=l.toLowerCase(),p["Webkit"+i]="webkit"+l,p["Moz"+i]="moz"+l,p}var xi={animationend:kl("Animation","AnimationEnd"),animationiteration:kl("Animation","AnimationIteration"),animationstart:kl("Animation","AnimationStart"),transitionend:kl("Transition","TransitionEnd")},kd={},XE={};c&&(XE=document.createElement("div").style,"AnimationEvent"in window||(delete xi.animationend.animation,delete xi.animationiteration.animation,delete xi.animationstart.animation),"TransitionEvent"in window||delete xi.transitionend.transition);function Tl(i){if(kd[i])return kd[i];if(!xi[i])return i;var l=xi[i],p;for(p in l)if(l.hasOwnProperty(p)&&p in XE)return kd[i]=l[p];return i}var ZE=Tl("animationend"),QE=Tl("animationiteration"),JE=Tl("animationstart"),eS=Tl("transitionend"),tS=new Map,nS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ea(i,l){tS.set(i,l),s(l,[i])}for(var Td=0;Td<nS.length;Td++){var Nd=nS[Td],e_=Nd.toLowerCase(),t_=Nd[0].toUpperCase()+Nd.slice(1);ea(e_,"on"+t_)}ea(ZE,"onAnimationEnd"),ea(QE,"onAnimationIteration"),ea(JE,"onAnimationStart"),ea("dblclick","onDoubleClick"),ea("focusin","onFocus"),ea("focusout","onBlur"),ea(eS,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="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(" "),n_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ls));function rS(i,l,p){var g=i.type||"unknown-event";i.currentTarget=p,e1(g,l,void 0,i),i.currentTarget=null}function aS(i,l){l=(l&4)!==0;for(var p=0;p<i.length;p++){var g=i[p],x=g.event;g=g.listeners;e:{var S=void 0;if(l)for(var I=g.length-1;0<=I;I--){var U=g[I],z=U.instance,Q=U.currentTarget;if(U=U.listener,z!==S&&x.isPropagationStopped())break e;rS(x,U,Q),S=z}else for(I=0;I<g.length;I++){if(U=g[I],z=U.instance,Q=U.currentTarget,U=U.listener,z!==S&&x.isPropagationStopped())break e;rS(x,U,Q),S=z}}}if(ul)throw i=rd,ul=!1,rd=null,i}function ft(i,l){var p=l[Dd];p===void 0&&(p=l[Dd]=new Set);var g=i+"__bubble";p.has(g)||(iS(l,i,2,!1),p.add(g))}function Ad(i,l,p){var g=0;l&&(g|=4),iS(p,i,g,l)}var Nl="_reactListening"+Math.random().toString(36).slice(2);function Ds(i){if(!i[Nl]){i[Nl]=!0,r.forEach(function(p){p!=="selectionchange"&&(n_.has(p)||Ad(p,!1,i),Ad(p,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[Nl]||(l[Nl]=!0,Ad("selectionchange",!1,l))}}function iS(i,l,p,g){switch(IE(l)){case 1:var x=g1;break;case 4:x=b1;break;default:x=cd}p=x.bind(null,l,p,i),x=void 0,!nd||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(x=!0),g?x!==void 0?i.addEventListener(l,p,{capture:!0,passive:x}):i.addEventListener(l,p,!0):x!==void 0?i.addEventListener(l,p,{passive:x}):i.addEventListener(l,p,!1)}function Id(i,l,p,g,x){var S=g;if((l&1)===0&&(l&2)===0&&g!==null)e:for(;;){if(g===null)return;var I=g.tag;if(I===3||I===4){var U=g.stateNode.containerInfo;if(U===x||U.nodeType===8&&U.parentNode===x)break;if(I===4)for(I=g.return;I!==null;){var z=I.tag;if((z===3||z===4)&&(z=I.stateNode.containerInfo,z===x||z.nodeType===8&&z.parentNode===x))return;I=I.return}for(;U!==null;){if(I=La(U),I===null)return;if(z=I.tag,z===5||z===6){g=S=I;continue e}U=U.parentNode}}g=g.return}cE(function(){var Q=S,se=Jc(p),le=[];e:{var ie=tS.get(i);if(ie!==void 0){var he=fd,Se=i;switch(i){case"keypress":if(El(p)===0)break e;case"keydown":case"keyup":he=O1;break;case"focusin":Se="focus",he=gd;break;case"focusout":Se="blur",he=gd;break;case"beforeblur":case"afterblur":he=gd;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=_E;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=E1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=M1;break;case ZE:case QE:case JE:he=w1;break;case eS:he=F1;break;case"scroll":he=y1;break;case"wheel":he=B1;break;case"copy":case"cut":case"paste":he=T1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=LE}var we=(l&4)!==0,It=!we&&i==="scroll",V=we?ie!==null?ie+"Capture":null:ie;we=[];for(var G=Q,X;G!==null;){X=G;var de=X.stateNode;if(X.tag===5&&de!==null&&(X=de,V!==null&&(de=gs(G,V),de!=null&&we.push(Ms(G,de,X)))),It)break;G=G.return}0<we.length&&(ie=new he(ie,Se,null,p,se),le.push({event:ie,listeners:we}))}}if((l&7)===0){e:{if(ie=i==="mouseover"||i==="pointerover",he=i==="mouseout"||i==="pointerout",ie&&p!==vn&&(Se=p.relatedTarget||p.fromElement)&&(La(Se)||Se[Dr]))break e;if((he||ie)&&(ie=se.window===se?se:(ie=se.ownerDocument)?ie.defaultView||ie.parentWindow:window,he?(Se=p.relatedTarget||p.toElement,he=Q,Se=Se?La(Se):null,Se!==null&&(It=Oa(Se),Se!==It||Se.tag!==5&&Se.tag!==6)&&(Se=null)):(he=null,Se=Q),he!==Se)){if(we=_E,de="onMouseLeave",V="onMouseEnter",G="mouse",(i==="pointerout"||i==="pointerover")&&(we=LE,de="onPointerLeave",V="onPointerEnter",G="pointer"),It=he==null?ie:vi(he),X=Se==null?ie:vi(Se),ie=new we(de,G+"leave",he,p,se),ie.target=It,ie.relatedTarget=X,de=null,La(se)===Q&&(we=new we(V,G+"enter",Se,p,se),we.target=X,we.relatedTarget=It,de=we),It=de,he&&Se)t:{for(we=he,V=Se,G=0,X=we;X;X=Ei(X))G++;for(X=0,de=V;de;de=Ei(de))X++;for(;0<G-X;)we=Ei(we),G--;for(;0<X-G;)V=Ei(V),X--;for(;G--;){if(we===V||V!==null&&we===V.alternate)break t;we=Ei(we),V=Ei(V)}we=null}else we=null;he!==null&&sS(le,ie,he,we,!1),Se!==null&&It!==null&&sS(le,It,Se,we,!0)}}e:{if(ie=Q?vi(Q):window,he=ie.nodeName&&ie.nodeName.toLowerCase(),he==="select"||he==="input"&&ie.type==="file")var ke=W1;else if(BE(ie))if($E)ke=X1;else{ke=Y1;var Ae=q1}else(he=ie.nodeName)&&he.toLowerCase()==="input"&&(ie.type==="checkbox"||ie.type==="radio")&&(ke=K1);if(ke&&(ke=ke(i,Q))){UE(le,ke,p,se);break e}Ae&&Ae(i,ie,Q),i==="focusout"&&(Ae=ie._wrapperState)&&Ae.controlled&&ie.type==="number"&&Dn(ie,"number",ie.value)}switch(Ae=Q?vi(Q):window,i){case"focusin":(BE(Ae)||Ae.contentEditable==="true")&&(yi=Ae,vd=Q,Os=null);break;case"focusout":Os=vd=yi=null;break;case"mousedown":wd=!0;break;case"contextmenu":case"mouseup":case"dragend":wd=!1,KE(le,p,se);break;case"selectionchange":if(J1)break;case"keydown":case"keyup":KE(le,p,se)}var Ie;if(yd)e:{switch(i){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else bi?FE(i,p)&&(Me="onCompositionEnd"):i==="keydown"&&p.keyCode===229&&(Me="onCompositionStart");Me&&(DE&&p.locale!=="ko"&&(bi||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&bi&&(Ie=CE()):(Jr=se,pd="value"in Jr?Jr.value:Jr.textContent,bi=!0)),Ae=Al(Q,Me),0<Ae.length&&(Me=new OE(Me,i,null,p,se),le.push({event:Me,listeners:Ae}),Ie?Me.data=Ie:(Ie=PE(p),Ie!==null&&(Me.data=Ie)))),(Ie=$1?z1(i,p):G1(i,p))&&(Q=Al(Q,"onBeforeInput"),0<Q.length&&(se=new OE("onBeforeInput","beforeinput",null,p,se),le.push({event:se,listeners:Q}),se.data=Ie))}aS(le,l)})}function Ms(i,l,p){return{instance:i,listener:l,currentTarget:p}}function Al(i,l){for(var p=l+"Capture",g=[];i!==null;){var x=i,S=x.stateNode;x.tag===5&&S!==null&&(x=S,S=gs(i,p),S!=null&&g.unshift(Ms(i,S,x)),S=gs(i,l),S!=null&&g.push(Ms(i,S,x))),i=i.return}return g}function Ei(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function sS(i,l,p,g,x){for(var S=l._reactName,I=[];p!==null&&p!==g;){var U=p,z=U.alternate,Q=U.stateNode;if(z!==null&&z===g)break;U.tag===5&&Q!==null&&(U=Q,x?(z=gs(p,S),z!=null&&I.unshift(Ms(p,z,U))):x||(z=gs(p,S),z!=null&&I.push(Ms(p,z,U)))),p=p.return}I.length!==0&&i.push({event:l,listeners:I})}var r_=/\r\n?/g,a_=/\u0000|\uFFFD/g;function oS(i){return(typeof i=="string"?i:""+i).replace(r_,`
|
|
38
|
-
`).replace(a_,"")}function Il(i,l,p){if(l=oS(l),oS(i)!==l&&p)throw Error(n(425))}function Cl(){}var Cd=null,Rd=null;function _d(i,l){return i==="textarea"||i==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Od=typeof setTimeout=="function"?setTimeout:void 0,i_=typeof clearTimeout=="function"?clearTimeout:void 0,lS=typeof Promise=="function"?Promise:void 0,s_=typeof queueMicrotask=="function"?queueMicrotask:typeof lS<"u"?function(i){return lS.resolve(null).then(i).catch(o_)}:Od;function o_(i){setTimeout(function(){throw i})}function Ld(i,l){var p=l,g=0;do{var x=p.nextSibling;if(i.removeChild(p),x&&x.nodeType===8)if(p=x.data,p==="/$"){if(g===0){i.removeChild(x),Ts(l);return}g--}else p!=="$"&&p!=="$?"&&p!=="$!"||g++;p=x}while(p);Ts(l)}function ta(i){for(;i!=null;i=i.nextSibling){var l=i.nodeType;if(l===1||l===3)break;if(l===8){if(l=i.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return i}function uS(i){i=i.previousSibling;for(var l=0;i;){if(i.nodeType===8){var p=i.data;if(p==="$"||p==="$!"||p==="$?"){if(l===0)return i;l--}else p==="/$"&&l++}i=i.previousSibling}return null}var Si=Math.random().toString(36).slice(2),yr="__reactFiber$"+Si,js="__reactProps$"+Si,Dr="__reactContainer$"+Si,Dd="__reactEvents$"+Si,l_="__reactListeners$"+Si,u_="__reactHandles$"+Si;function La(i){var l=i[yr];if(l)return l;for(var p=i.parentNode;p;){if(l=p[Dr]||p[yr]){if(p=l.alternate,l.child!==null||p!==null&&p.child!==null)for(i=uS(i);i!==null;){if(p=i[yr])return p;i=uS(i)}return l}i=p,p=i.parentNode}return null}function Fs(i){return i=i[yr]||i[Dr],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function vi(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function Rl(i){return i[js]||null}var Md=[],wi=-1;function na(i){return{current:i}}function mt(i){0>wi||(i.current=Md[wi],Md[wi]=null,wi--)}function dt(i,l){wi++,Md[wi]=i.current,i.current=l}var ra={},Kt=na(ra),pn=na(!1),Da=ra;function ki(i,l){var p=i.type.contextTypes;if(!p)return ra;var g=i.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===l)return g.__reactInternalMemoizedMaskedChildContext;var x={},S;for(S in p)x[S]=l[S];return g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=l,i.__reactInternalMemoizedMaskedChildContext=x),x}function fn(i){return i=i.childContextTypes,i!=null}function _l(){mt(pn),mt(Kt)}function cS(i,l,p){if(Kt.current!==ra)throw Error(n(168));dt(Kt,l),dt(pn,p)}function dS(i,l,p){var g=i.stateNode;if(l=l.childContextTypes,typeof g.getChildContext!="function")return p;g=g.getChildContext();for(var x in g)if(!(x in l))throw Error(n(108,De(i)||"Unknown",x));return C({},p,g)}function Ol(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ra,Da=Kt.current,dt(Kt,i),dt(pn,pn.current),!0}function pS(i,l,p){var g=i.stateNode;if(!g)throw Error(n(169));p?(i=dS(i,l,Da),g.__reactInternalMemoizedMergedChildContext=i,mt(pn),mt(Kt),dt(Kt,i)):mt(pn),dt(pn,p)}var Mr=null,Ll=!1,jd=!1;function fS(i){Mr===null?Mr=[i]:Mr.push(i)}function c_(i){Ll=!0,fS(i)}function aa(){if(!jd&&Mr!==null){jd=!0;var i=0,l=it;try{var p=Mr;for(it=1;i<p.length;i++){var g=p[i];do g=g(!0);while(g!==null)}Mr=null,Ll=!1}catch(x){throw Mr!==null&&(Mr=Mr.slice(i+1)),hE(ad,aa),x}finally{it=l,jd=!1}}return null}var Ti=[],Ni=0,Dl=null,Ml=0,Pn=[],Bn=0,Ma=null,jr=1,Fr="";function ja(i,l){Ti[Ni++]=Ml,Ti[Ni++]=Dl,Dl=i,Ml=l}function mS(i,l,p){Pn[Bn++]=jr,Pn[Bn++]=Fr,Pn[Bn++]=Ma,Ma=i;var g=jr;i=Fr;var x=32-Qn(g)-1;g&=~(1<<x),p+=1;var S=32-Qn(l)+x;if(30<S){var I=x-x%5;S=(g&(1<<I)-1).toString(32),g>>=I,x-=I,jr=1<<32-Qn(l)+x|p<<x|g,Fr=S+i}else jr=1<<S|p<<x|g,Fr=i}function Fd(i){i.return!==null&&(ja(i,1),mS(i,1,0))}function Pd(i){for(;i===Dl;)Dl=Ti[--Ni],Ti[Ni]=null,Ml=Ti[--Ni],Ti[Ni]=null;for(;i===Ma;)Ma=Pn[--Bn],Pn[Bn]=null,Fr=Pn[--Bn],Pn[Bn]=null,jr=Pn[--Bn],Pn[Bn]=null}var kn=null,Tn=null,yt=!1,er=null;function hS(i,l){var p=Gn(5,null,null,0);p.elementType="DELETED",p.stateNode=l,p.return=i,l=i.deletions,l===null?(i.deletions=[p],i.flags|=16):l.push(p)}function gS(i,l){switch(i.tag){case 5:var p=i.type;return l=l.nodeType!==1||p.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(i.stateNode=l,kn=i,Tn=ta(l.firstChild),!0):!1;case 6:return l=i.pendingProps===""||l.nodeType!==3?null:l,l!==null?(i.stateNode=l,kn=i,Tn=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(p=Ma!==null?{id:jr,overflow:Fr}:null,i.memoizedState={dehydrated:l,treeContext:p,retryLane:1073741824},p=Gn(18,null,null,0),p.stateNode=l,p.return=i,i.child=p,kn=i,Tn=null,!0):!1;default:return!1}}function Bd(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Ud(i){if(yt){var l=Tn;if(l){var p=l;if(!gS(i,l)){if(Bd(i))throw Error(n(418));l=ta(p.nextSibling);var g=kn;l&&gS(i,l)?hS(g,p):(i.flags=i.flags&-4097|2,yt=!1,kn=i)}}else{if(Bd(i))throw Error(n(418));i.flags=i.flags&-4097|2,yt=!1,kn=i}}}function bS(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;kn=i}function jl(i){if(i!==kn)return!1;if(!yt)return bS(i),yt=!0,!1;var l;if((l=i.tag!==3)&&!(l=i.tag!==5)&&(l=i.type,l=l!=="head"&&l!=="body"&&!_d(i.type,i.memoizedProps)),l&&(l=Tn)){if(Bd(i))throw yS(),Error(n(418));for(;l;)hS(i,l),l=ta(l.nextSibling)}if(bS(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,l=0;i;){if(i.nodeType===8){var p=i.data;if(p==="/$"){if(l===0){Tn=ta(i.nextSibling);break e}l--}else p!=="$"&&p!=="$!"&&p!=="$?"||l++}i=i.nextSibling}Tn=null}}else Tn=kn?ta(i.stateNode.nextSibling):null;return!0}function yS(){for(var i=Tn;i;)i=ta(i.nextSibling)}function Ai(){Tn=kn=null,yt=!1}function $d(i){er===null?er=[i]:er.push(i)}var d_=_.ReactCurrentBatchConfig;function Ps(i,l,p){if(i=p.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(n(309));var g=p.stateNode}if(!g)throw Error(n(147,i));var x=g,S=""+i;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===S?l.ref:(l=function(I){var U=x.refs;I===null?delete U[S]:U[S]=I},l._stringRef=S,l)}if(typeof i!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,i))}return i}function Fl(i,l){throw i=Object.prototype.toString.call(l),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":i))}function xS(i){var l=i._init;return l(i._payload)}function ES(i){function l(V,G){if(i){var X=V.deletions;X===null?(V.deletions=[G],V.flags|=16):X.push(G)}}function p(V,G){if(!i)return null;for(;G!==null;)l(V,G),G=G.sibling;return null}function g(V,G){for(V=new Map;G!==null;)G.key!==null?V.set(G.key,G):V.set(G.index,G),G=G.sibling;return V}function x(V,G){return V=pa(V,G),V.index=0,V.sibling=null,V}function S(V,G,X){return V.index=X,i?(X=V.alternate,X!==null?(X=X.index,X<G?(V.flags|=2,G):X):(V.flags|=2,G)):(V.flags|=1048576,G)}function I(V){return i&&V.alternate===null&&(V.flags|=2),V}function U(V,G,X,de){return G===null||G.tag!==6?(G=Op(X,V.mode,de),G.return=V,G):(G=x(G,X),G.return=V,G)}function z(V,G,X,de){var ke=X.type;return ke===R?se(V,G,X.props.children,de,X.key):G!==null&&(G.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===ae&&xS(ke)===G.type)?(de=x(G,X.props),de.ref=Ps(V,G,X),de.return=V,de):(de=ou(X.type,X.key,X.props,null,V.mode,de),de.ref=Ps(V,G,X),de.return=V,de)}function Q(V,G,X,de){return G===null||G.tag!==4||G.stateNode.containerInfo!==X.containerInfo||G.stateNode.implementation!==X.implementation?(G=Lp(X,V.mode,de),G.return=V,G):(G=x(G,X.children||[]),G.return=V,G)}function se(V,G,X,de,ke){return G===null||G.tag!==7?(G=Ha(X,V.mode,de,ke),G.return=V,G):(G=x(G,X),G.return=V,G)}function le(V,G,X){if(typeof G=="string"&&G!==""||typeof G=="number")return G=Op(""+G,V.mode,X),G.return=V,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case M:return X=ou(G.type,G.key,G.props,null,V.mode,X),X.ref=Ps(V,null,G),X.return=V,X;case D:return G=Lp(G,V.mode,X),G.return=V,G;case ae:var de=G._init;return le(V,de(G._payload),X)}if(Sn(G)||re(G))return G=Ha(G,V.mode,X,null),G.return=V,G;Fl(V,G)}return null}function ie(V,G,X,de){var ke=G!==null?G.key:null;if(typeof X=="string"&&X!==""||typeof X=="number")return ke!==null?null:U(V,G,""+X,de);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case M:return X.key===ke?z(V,G,X,de):null;case D:return X.key===ke?Q(V,G,X,de):null;case ae:return ke=X._init,ie(V,G,ke(X._payload),de)}if(Sn(X)||re(X))return ke!==null?null:se(V,G,X,de,null);Fl(V,X)}return null}function he(V,G,X,de,ke){if(typeof de=="string"&&de!==""||typeof de=="number")return V=V.get(X)||null,U(G,V,""+de,ke);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case M:return V=V.get(de.key===null?X:de.key)||null,z(G,V,de,ke);case D:return V=V.get(de.key===null?X:de.key)||null,Q(G,V,de,ke);case ae:var Ae=de._init;return he(V,G,X,Ae(de._payload),ke)}if(Sn(de)||re(de))return V=V.get(X)||null,se(G,V,de,ke,null);Fl(G,de)}return null}function Se(V,G,X,de){for(var ke=null,Ae=null,Ie=G,Me=G=0,zt=null;Ie!==null&&Me<X.length;Me++){Ie.index>Me?(zt=Ie,Ie=null):zt=Ie.sibling;var tt=ie(V,Ie,X[Me],de);if(tt===null){Ie===null&&(Ie=zt);break}i&&Ie&&tt.alternate===null&&l(V,Ie),G=S(tt,G,Me),Ae===null?ke=tt:Ae.sibling=tt,Ae=tt,Ie=zt}if(Me===X.length)return p(V,Ie),yt&&ja(V,Me),ke;if(Ie===null){for(;Me<X.length;Me++)Ie=le(V,X[Me],de),Ie!==null&&(G=S(Ie,G,Me),Ae===null?ke=Ie:Ae.sibling=Ie,Ae=Ie);return yt&&ja(V,Me),ke}for(Ie=g(V,Ie);Me<X.length;Me++)zt=he(Ie,V,Me,X[Me],de),zt!==null&&(i&&zt.alternate!==null&&Ie.delete(zt.key===null?Me:zt.key),G=S(zt,G,Me),Ae===null?ke=zt:Ae.sibling=zt,Ae=zt);return i&&Ie.forEach(function(fa){return l(V,fa)}),yt&&ja(V,Me),ke}function we(V,G,X,de){var ke=re(X);if(typeof ke!="function")throw Error(n(150));if(X=ke.call(X),X==null)throw Error(n(151));for(var Ae=ke=null,Ie=G,Me=G=0,zt=null,tt=X.next();Ie!==null&&!tt.done;Me++,tt=X.next()){Ie.index>Me?(zt=Ie,Ie=null):zt=Ie.sibling;var fa=ie(V,Ie,tt.value,de);if(fa===null){Ie===null&&(Ie=zt);break}i&&Ie&&fa.alternate===null&&l(V,Ie),G=S(fa,G,Me),Ae===null?ke=fa:Ae.sibling=fa,Ae=fa,Ie=zt}if(tt.done)return p(V,Ie),yt&&ja(V,Me),ke;if(Ie===null){for(;!tt.done;Me++,tt=X.next())tt=le(V,tt.value,de),tt!==null&&(G=S(tt,G,Me),Ae===null?ke=tt:Ae.sibling=tt,Ae=tt);return yt&&ja(V,Me),ke}for(Ie=g(V,Ie);!tt.done;Me++,tt=X.next())tt=he(Ie,V,Me,tt.value,de),tt!==null&&(i&&tt.alternate!==null&&Ie.delete(tt.key===null?Me:tt.key),G=S(tt,G,Me),Ae===null?ke=tt:Ae.sibling=tt,Ae=tt);return i&&Ie.forEach(function(H_){return l(V,H_)}),yt&&ja(V,Me),ke}function It(V,G,X,de){if(typeof X=="object"&&X!==null&&X.type===R&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case M:e:{for(var ke=X.key,Ae=G;Ae!==null;){if(Ae.key===ke){if(ke=X.type,ke===R){if(Ae.tag===7){p(V,Ae.sibling),G=x(Ae,X.props.children),G.return=V,V=G;break e}}else if(Ae.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===ae&&xS(ke)===Ae.type){p(V,Ae.sibling),G=x(Ae,X.props),G.ref=Ps(V,Ae,X),G.return=V,V=G;break e}p(V,Ae);break}else l(V,Ae);Ae=Ae.sibling}X.type===R?(G=Ha(X.props.children,V.mode,de,X.key),G.return=V,V=G):(de=ou(X.type,X.key,X.props,null,V.mode,de),de.ref=Ps(V,G,X),de.return=V,V=de)}return I(V);case D:e:{for(Ae=X.key;G!==null;){if(G.key===Ae)if(G.tag===4&&G.stateNode.containerInfo===X.containerInfo&&G.stateNode.implementation===X.implementation){p(V,G.sibling),G=x(G,X.children||[]),G.return=V,V=G;break e}else{p(V,G);break}else l(V,G);G=G.sibling}G=Lp(X,V.mode,de),G.return=V,V=G}return I(V);case ae:return Ae=X._init,It(V,G,Ae(X._payload),de)}if(Sn(X))return Se(V,G,X,de);if(re(X))return we(V,G,X,de);Fl(V,X)}return typeof X=="string"&&X!==""||typeof X=="number"?(X=""+X,G!==null&&G.tag===6?(p(V,G.sibling),G=x(G,X),G.return=V,V=G):(p(V,G),G=Op(X,V.mode,de),G.return=V,V=G),I(V)):p(V,G)}return It}var Ii=ES(!0),SS=ES(!1),Pl=na(null),Bl=null,Ci=null,zd=null;function Gd(){zd=Ci=Bl=null}function Hd(i){var l=Pl.current;mt(Pl),i._currentValue=l}function Vd(i,l,p){for(;i!==null;){var g=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,g!==null&&(g.childLanes|=l)):g!==null&&(g.childLanes&l)!==l&&(g.childLanes|=l),i===p)break;i=i.return}}function Ri(i,l){Bl=i,zd=Ci=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&l)!==0&&(mn=!0),i.firstContext=null)}function Un(i){var l=i._currentValue;if(zd!==i)if(i={context:i,memoizedValue:l,next:null},Ci===null){if(Bl===null)throw Error(n(308));Ci=i,Bl.dependencies={lanes:0,firstContext:i}}else Ci=Ci.next=i;return l}var Fa=null;function Wd(i){Fa===null?Fa=[i]:Fa.push(i)}function vS(i,l,p,g){var x=l.interleaved;return x===null?(p.next=p,Wd(l)):(p.next=x.next,x.next=p),l.interleaved=p,Pr(i,g)}function Pr(i,l){i.lanes|=l;var p=i.alternate;for(p!==null&&(p.lanes|=l),p=i,i=i.return;i!==null;)i.childLanes|=l,p=i.alternate,p!==null&&(p.childLanes|=l),p=i,i=i.return;return p.tag===3?p.stateNode:null}var ia=!1;function qd(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wS(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Br(i,l){return{eventTime:i,lane:l,tag:0,payload:null,callback:null,next:null}}function sa(i,l,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(Qe&2)!==0){var x=g.pending;return x===null?l.next=l:(l.next=x.next,x.next=l),g.pending=l,Pr(i,p)}return x=g.interleaved,x===null?(l.next=l,Wd(g)):(l.next=x.next,x.next=l),g.interleaved=l,Pr(i,p)}function Ul(i,l,p){if(l=l.updateQueue,l!==null&&(l=l.shared,(p&4194240)!==0)){var g=l.lanes;g&=i.pendingLanes,p|=g,l.lanes=p,od(i,p)}}function kS(i,l){var p=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var x=null,S=null;if(p=p.firstBaseUpdate,p!==null){do{var I={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};S===null?x=S=I:S=S.next=I,p=p.next}while(p!==null);S===null?x=S=l:S=S.next=l}else x=S=l;p={baseState:g.baseState,firstBaseUpdate:x,lastBaseUpdate:S,shared:g.shared,effects:g.effects},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=l:i.next=l,p.lastBaseUpdate=l}function $l(i,l,p,g){var x=i.updateQueue;ia=!1;var S=x.firstBaseUpdate,I=x.lastBaseUpdate,U=x.shared.pending;if(U!==null){x.shared.pending=null;var z=U,Q=z.next;z.next=null,I===null?S=Q:I.next=Q,I=z;var se=i.alternate;se!==null&&(se=se.updateQueue,U=se.lastBaseUpdate,U!==I&&(U===null?se.firstBaseUpdate=Q:U.next=Q,se.lastBaseUpdate=z))}if(S!==null){var le=x.baseState;I=0,se=Q=z=null,U=S;do{var ie=U.lane,he=U.eventTime;if((g&ie)===ie){se!==null&&(se=se.next={eventTime:he,lane:0,tag:U.tag,payload:U.payload,callback:U.callback,next:null});e:{var Se=i,we=U;switch(ie=l,he=p,we.tag){case 1:if(Se=we.payload,typeof Se=="function"){le=Se.call(he,le,ie);break e}le=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=we.payload,ie=typeof Se=="function"?Se.call(he,le,ie):Se,ie==null)break e;le=C({},le,ie);break e;case 2:ia=!0}}U.callback!==null&&U.lane!==0&&(i.flags|=64,ie=x.effects,ie===null?x.effects=[U]:ie.push(U))}else he={eventTime:he,lane:ie,tag:U.tag,payload:U.payload,callback:U.callback,next:null},se===null?(Q=se=he,z=le):se=se.next=he,I|=ie;if(U=U.next,U===null){if(U=x.shared.pending,U===null)break;ie=U,U=ie.next,ie.next=null,x.lastBaseUpdate=ie,x.shared.pending=null}}while(!0);if(se===null&&(z=le),x.baseState=z,x.firstBaseUpdate=Q,x.lastBaseUpdate=se,l=x.shared.interleaved,l!==null){x=l;do I|=x.lane,x=x.next;while(x!==l)}else S===null&&(x.shared.lanes=0);Ua|=I,i.lanes=I,i.memoizedState=le}}function TS(i,l,p){if(i=l.effects,l.effects=null,i!==null)for(l=0;l<i.length;l++){var g=i[l],x=g.callback;if(x!==null){if(g.callback=null,g=p,typeof x!="function")throw Error(n(191,x));x.call(g)}}}var Bs={},xr=na(Bs),Us=na(Bs),$s=na(Bs);function Pa(i){if(i===Bs)throw Error(n(174));return i}function Yd(i,l){switch(dt($s,l),dt(Us,i),dt(xr,Bs),i=l.nodeType,i){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:pe(null,"");break;default:i=i===8?l.parentNode:l,l=i.namespaceURI||null,i=i.tagName,l=pe(l,i)}mt(xr),dt(xr,l)}function _i(){mt(xr),mt(Us),mt($s)}function NS(i){Pa($s.current);var l=Pa(xr.current),p=pe(l,i.type);l!==p&&(dt(Us,i),dt(xr,p))}function Kd(i){Us.current===i&&(mt(xr),mt(Us))}var vt=na(0);function zl(i){for(var l=i;l!==null;){if(l.tag===13){var p=l.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Xd=[];function Zd(){for(var i=0;i<Xd.length;i++)Xd[i]._workInProgressVersionPrimary=null;Xd.length=0}var Gl=_.ReactCurrentDispatcher,Qd=_.ReactCurrentBatchConfig,Ba=0,wt=null,Dt=null,Ut=null,Hl=!1,zs=!1,Gs=0,p_=0;function Xt(){throw Error(n(321))}function Jd(i,l){if(l===null)return!1;for(var p=0;p<l.length&&p<i.length;p++)if(!Jn(i[p],l[p]))return!1;return!0}function ep(i,l,p,g,x,S){if(Ba=S,wt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Gl.current=i===null||i.memoizedState===null?g_:b_,i=p(g,x),zs){S=0;do{if(zs=!1,Gs=0,25<=S)throw Error(n(301));S+=1,Ut=Dt=null,l.updateQueue=null,Gl.current=y_,i=p(g,x)}while(zs)}if(Gl.current=ql,l=Dt!==null&&Dt.next!==null,Ba=0,Ut=Dt=wt=null,Hl=!1,l)throw Error(n(300));return i}function tp(){var i=Gs!==0;return Gs=0,i}function Er(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?wt.memoizedState=Ut=i:Ut=Ut.next=i,Ut}function $n(){if(Dt===null){var i=wt.alternate;i=i!==null?i.memoizedState:null}else i=Dt.next;var l=Ut===null?wt.memoizedState:Ut.next;if(l!==null)Ut=l,Dt=i;else{if(i===null)throw Error(n(310));Dt=i,i={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Ut===null?wt.memoizedState=Ut=i:Ut=Ut.next=i}return Ut}function Hs(i,l){return typeof l=="function"?l(i):l}function np(i){var l=$n(),p=l.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=i;var g=Dt,x=g.baseQueue,S=p.pending;if(S!==null){if(x!==null){var I=x.next;x.next=S.next,S.next=I}g.baseQueue=x=S,p.pending=null}if(x!==null){S=x.next,g=g.baseState;var U=I=null,z=null,Q=S;do{var se=Q.lane;if((Ba&se)===se)z!==null&&(z=z.next={lane:0,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),g=Q.hasEagerState?Q.eagerState:i(g,Q.action);else{var le={lane:se,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null};z===null?(U=z=le,I=g):z=z.next=le,wt.lanes|=se,Ua|=se}Q=Q.next}while(Q!==null&&Q!==S);z===null?I=g:z.next=U,Jn(g,l.memoizedState)||(mn=!0),l.memoizedState=g,l.baseState=I,l.baseQueue=z,p.lastRenderedState=g}if(i=p.interleaved,i!==null){x=i;do S=x.lane,wt.lanes|=S,Ua|=S,x=x.next;while(x!==i)}else x===null&&(p.lanes=0);return[l.memoizedState,p.dispatch]}function rp(i){var l=$n(),p=l.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=i;var g=p.dispatch,x=p.pending,S=l.memoizedState;if(x!==null){p.pending=null;var I=x=x.next;do S=i(S,I.action),I=I.next;while(I!==x);Jn(S,l.memoizedState)||(mn=!0),l.memoizedState=S,l.baseQueue===null&&(l.baseState=S),p.lastRenderedState=S}return[S,g]}function AS(){}function IS(i,l){var p=wt,g=$n(),x=l(),S=!Jn(g.memoizedState,x);if(S&&(g.memoizedState=x,mn=!0),g=g.queue,ap(_S.bind(null,p,g,i),[i]),g.getSnapshot!==l||S||Ut!==null&&Ut.memoizedState.tag&1){if(p.flags|=2048,Vs(9,RS.bind(null,p,g,x,l),void 0,null),$t===null)throw Error(n(349));(Ba&30)!==0||CS(p,l,x)}return x}function CS(i,l,p){i.flags|=16384,i={getSnapshot:l,value:p},l=wt.updateQueue,l===null?(l={lastEffect:null,stores:null},wt.updateQueue=l,l.stores=[i]):(p=l.stores,p===null?l.stores=[i]:p.push(i))}function RS(i,l,p,g){l.value=p,l.getSnapshot=g,OS(l)&&LS(i)}function _S(i,l,p){return p(function(){OS(l)&&LS(i)})}function OS(i){var l=i.getSnapshot;i=i.value;try{var p=l();return!Jn(i,p)}catch{return!0}}function LS(i){var l=Pr(i,1);l!==null&&ar(l,i,1,-1)}function DS(i){var l=Er();return typeof i=="function"&&(i=i()),l.memoizedState=l.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hs,lastRenderedState:i},l.queue=i,i=i.dispatch=h_.bind(null,wt,i),[l.memoizedState,i]}function Vs(i,l,p,g){return i={tag:i,create:l,destroy:p,deps:g,next:null},l=wt.updateQueue,l===null?(l={lastEffect:null,stores:null},wt.updateQueue=l,l.lastEffect=i.next=i):(p=l.lastEffect,p===null?l.lastEffect=i.next=i:(g=p.next,p.next=i,i.next=g,l.lastEffect=i)),i}function MS(){return $n().memoizedState}function Vl(i,l,p,g){var x=Er();wt.flags|=i,x.memoizedState=Vs(1|l,p,void 0,g===void 0?null:g)}function Wl(i,l,p,g){var x=$n();g=g===void 0?null:g;var S=void 0;if(Dt!==null){var I=Dt.memoizedState;if(S=I.destroy,g!==null&&Jd(g,I.deps)){x.memoizedState=Vs(l,p,S,g);return}}wt.flags|=i,x.memoizedState=Vs(1|l,p,S,g)}function jS(i,l){return Vl(8390656,8,i,l)}function ap(i,l){return Wl(2048,8,i,l)}function FS(i,l){return Wl(4,2,i,l)}function PS(i,l){return Wl(4,4,i,l)}function BS(i,l){if(typeof l=="function")return i=i(),l(i),function(){l(null)};if(l!=null)return i=i(),l.current=i,function(){l.current=null}}function US(i,l,p){return p=p!=null?p.concat([i]):null,Wl(4,4,BS.bind(null,l,i),p)}function ip(){}function $S(i,l){var p=$n();l=l===void 0?null:l;var g=p.memoizedState;return g!==null&&l!==null&&Jd(l,g[1])?g[0]:(p.memoizedState=[i,l],i)}function zS(i,l){var p=$n();l=l===void 0?null:l;var g=p.memoizedState;return g!==null&&l!==null&&Jd(l,g[1])?g[0]:(i=i(),p.memoizedState=[i,l],i)}function GS(i,l,p){return(Ba&21)===0?(i.baseState&&(i.baseState=!1,mn=!0),i.memoizedState=p):(Jn(p,l)||(p=xE(),wt.lanes|=p,Ua|=p,i.baseState=!0),l)}function f_(i,l){var p=it;it=p!==0&&4>p?p:4,i(!0);var g=Qd.transition;Qd.transition={};try{i(!1),l()}finally{it=p,Qd.transition=g}}function HS(){return $n().memoizedState}function m_(i,l,p){var g=ca(i);if(p={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null},VS(i))WS(l,p);else if(p=vS(i,l,p,g),p!==null){var x=on();ar(p,i,g,x),qS(p,l,g)}}function h_(i,l,p){var g=ca(i),x={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null};if(VS(i))WS(l,x);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=l.lastRenderedReducer,S!==null))try{var I=l.lastRenderedState,U=S(I,p);if(x.hasEagerState=!0,x.eagerState=U,Jn(U,I)){var z=l.interleaved;z===null?(x.next=x,Wd(l)):(x.next=z.next,z.next=x),l.interleaved=x;return}}catch{}finally{}p=vS(i,l,x,g),p!==null&&(x=on(),ar(p,i,g,x),qS(p,l,g))}}function VS(i){var l=i.alternate;return i===wt||l!==null&&l===wt}function WS(i,l){zs=Hl=!0;var p=i.pending;p===null?l.next=l:(l.next=p.next,p.next=l),i.pending=l}function qS(i,l,p){if((p&4194240)!==0){var g=l.lanes;g&=i.pendingLanes,p|=g,l.lanes=p,od(i,p)}}var ql={readContext:Un,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useInsertionEffect:Xt,useLayoutEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useMutableSource:Xt,useSyncExternalStore:Xt,useId:Xt,unstable_isNewReconciler:!1},g_={readContext:Un,useCallback:function(i,l){return Er().memoizedState=[i,l===void 0?null:l],i},useContext:Un,useEffect:jS,useImperativeHandle:function(i,l,p){return p=p!=null?p.concat([i]):null,Vl(4194308,4,BS.bind(null,l,i),p)},useLayoutEffect:function(i,l){return Vl(4194308,4,i,l)},useInsertionEffect:function(i,l){return Vl(4,2,i,l)},useMemo:function(i,l){var p=Er();return l=l===void 0?null:l,i=i(),p.memoizedState=[i,l],i},useReducer:function(i,l,p){var g=Er();return l=p!==void 0?p(l):l,g.memoizedState=g.baseState=l,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:l},g.queue=i,i=i.dispatch=m_.bind(null,wt,i),[g.memoizedState,i]},useRef:function(i){var l=Er();return i={current:i},l.memoizedState=i},useState:DS,useDebugValue:ip,useDeferredValue:function(i){return Er().memoizedState=i},useTransition:function(){var i=DS(!1),l=i[0];return i=f_.bind(null,i[1]),Er().memoizedState=i,[l,i]},useMutableSource:function(){},useSyncExternalStore:function(i,l,p){var g=wt,x=Er();if(yt){if(p===void 0)throw Error(n(407));p=p()}else{if(p=l(),$t===null)throw Error(n(349));(Ba&30)!==0||CS(g,l,p)}x.memoizedState=p;var S={value:p,getSnapshot:l};return x.queue=S,jS(_S.bind(null,g,S,i),[i]),g.flags|=2048,Vs(9,RS.bind(null,g,S,p,l),void 0,null),p},useId:function(){var i=Er(),l=$t.identifierPrefix;if(yt){var p=Fr,g=jr;p=(g&~(1<<32-Qn(g)-1)).toString(32)+p,l=":"+l+"R"+p,p=Gs++,0<p&&(l+="H"+p.toString(32)),l+=":"}else p=p_++,l=":"+l+"r"+p.toString(32)+":";return i.memoizedState=l},unstable_isNewReconciler:!1},b_={readContext:Un,useCallback:$S,useContext:Un,useEffect:ap,useImperativeHandle:US,useInsertionEffect:FS,useLayoutEffect:PS,useMemo:zS,useReducer:np,useRef:MS,useState:function(){return np(Hs)},useDebugValue:ip,useDeferredValue:function(i){var l=$n();return GS(l,Dt.memoizedState,i)},useTransition:function(){var i=np(Hs)[0],l=$n().memoizedState;return[i,l]},useMutableSource:AS,useSyncExternalStore:IS,useId:HS,unstable_isNewReconciler:!1},y_={readContext:Un,useCallback:$S,useContext:Un,useEffect:ap,useImperativeHandle:US,useInsertionEffect:FS,useLayoutEffect:PS,useMemo:zS,useReducer:rp,useRef:MS,useState:function(){return rp(Hs)},useDebugValue:ip,useDeferredValue:function(i){var l=$n();return Dt===null?l.memoizedState=i:GS(l,Dt.memoizedState,i)},useTransition:function(){var i=rp(Hs)[0],l=$n().memoizedState;return[i,l]},useMutableSource:AS,useSyncExternalStore:IS,useId:HS,unstable_isNewReconciler:!1};function tr(i,l){if(i&&i.defaultProps){l=C({},l),i=i.defaultProps;for(var p in i)l[p]===void 0&&(l[p]=i[p]);return l}return l}function sp(i,l,p,g){l=i.memoizedState,p=p(g,l),p=p==null?l:C({},l,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var Yl={isMounted:function(i){return(i=i._reactInternals)?Oa(i)===i:!1},enqueueSetState:function(i,l,p){i=i._reactInternals;var g=on(),x=ca(i),S=Br(g,x);S.payload=l,p!=null&&(S.callback=p),l=sa(i,S,x),l!==null&&(ar(l,i,x,g),Ul(l,i,x))},enqueueReplaceState:function(i,l,p){i=i._reactInternals;var g=on(),x=ca(i),S=Br(g,x);S.tag=1,S.payload=l,p!=null&&(S.callback=p),l=sa(i,S,x),l!==null&&(ar(l,i,x,g),Ul(l,i,x))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var p=on(),g=ca(i),x=Br(p,g);x.tag=2,l!=null&&(x.callback=l),l=sa(i,x,g),l!==null&&(ar(l,i,g,p),Ul(l,i,g))}};function YS(i,l,p,g,x,S,I){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,S,I):l.prototype&&l.prototype.isPureReactComponent?!_s(p,g)||!_s(x,S):!0}function KS(i,l,p){var g=!1,x=ra,S=l.contextType;return typeof S=="object"&&S!==null?S=Un(S):(x=fn(l)?Da:Kt.current,g=l.contextTypes,S=(g=g!=null)?ki(i,x):ra),l=new l(p,S),i.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Yl,i.stateNode=l,l._reactInternals=i,g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=x,i.__reactInternalMemoizedMaskedChildContext=S),l}function XS(i,l,p,g){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(p,g),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(p,g),l.state!==i&&Yl.enqueueReplaceState(l,l.state,null)}function op(i,l,p,g){var x=i.stateNode;x.props=p,x.state=i.memoizedState,x.refs={},qd(i);var S=l.contextType;typeof S=="object"&&S!==null?x.context=Un(S):(S=fn(l)?Da:Kt.current,x.context=ki(i,S)),x.state=i.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(sp(i,l,S,p),x.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(l=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),l!==x.state&&Yl.enqueueReplaceState(x,x.state,null),$l(i,p,x,g),x.state=i.memoizedState),typeof x.componentDidMount=="function"&&(i.flags|=4194308)}function Oi(i,l){try{var p="",g=l;do p+=Ne(g),g=g.return;while(g);var x=p}catch(S){x=`
|
|
39
|
-
Error generating stack: `+S.message+`
|
|
40
|
-
`+S.stack}return{value:i,source:l,stack:x,digest:null}}function lp(i,l,p){return{value:i,source:null,stack:p??null,digest:l??null}}function up(i,l){try{console.error(l.value)}catch(p){setTimeout(function(){throw p})}}var x_=typeof WeakMap=="function"?WeakMap:Map;function ZS(i,l,p){p=Br(-1,p),p.tag=3,p.payload={element:null};var g=l.value;return p.callback=function(){tu||(tu=!0,kp=g),up(i,l)},p}function QS(i,l,p){p=Br(-1,p),p.tag=3;var g=i.type.getDerivedStateFromError;if(typeof g=="function"){var x=l.value;p.payload=function(){return g(x)},p.callback=function(){up(i,l)}}var S=i.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(p.callback=function(){up(i,l),typeof g!="function"&&(la===null?la=new Set([this]):la.add(this));var I=l.stack;this.componentDidCatch(l.value,{componentStack:I!==null?I:""})}),p}function JS(i,l,p){var g=i.pingCache;if(g===null){g=i.pingCache=new x_;var x=new Set;g.set(l,x)}else x=g.get(l),x===void 0&&(x=new Set,g.set(l,x));x.has(p)||(x.add(p),i=L_.bind(null,i,l,p),l.then(i,i))}function ev(i){do{var l;if((l=i.tag===13)&&(l=i.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return i;i=i.return}while(i!==null);return null}function tv(i,l,p,g,x){return(i.mode&1)===0?(i===l?i.flags|=65536:(i.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(l=Br(-1,1),l.tag=2,sa(p,l,1))),p.lanes|=1),i):(i.flags|=65536,i.lanes=x,i)}var E_=_.ReactCurrentOwner,mn=!1;function sn(i,l,p,g){l.child=i===null?SS(l,null,p,g):Ii(l,i.child,p,g)}function nv(i,l,p,g,x){p=p.render;var S=l.ref;return Ri(l,x),g=ep(i,l,p,g,S,x),p=tp(),i!==null&&!mn?(l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~x,Ur(i,l,x)):(yt&&p&&Fd(l),l.flags|=1,sn(i,l,g,x),l.child)}function rv(i,l,p,g,x){if(i===null){var S=p.type;return typeof S=="function"&&!_p(S)&&S.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(l.tag=15,l.type=S,av(i,l,S,g,x)):(i=ou(p.type,null,g,l,l.mode,x),i.ref=l.ref,i.return=l,l.child=i)}if(S=i.child,(i.lanes&x)===0){var I=S.memoizedProps;if(p=p.compare,p=p!==null?p:_s,p(I,g)&&i.ref===l.ref)return Ur(i,l,x)}return l.flags|=1,i=pa(S,g),i.ref=l.ref,i.return=l,l.child=i}function av(i,l,p,g,x){if(i!==null){var S=i.memoizedProps;if(_s(S,g)&&i.ref===l.ref)if(mn=!1,l.pendingProps=g=S,(i.lanes&x)!==0)(i.flags&131072)!==0&&(mn=!0);else return l.lanes=i.lanes,Ur(i,l,x)}return cp(i,l,p,g,x)}function iv(i,l,p){var g=l.pendingProps,x=g.children,S=i!==null?i.memoizedState:null;if(g.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},dt(Di,Nn),Nn|=p;else{if((p&1073741824)===0)return i=S!==null?S.baseLanes|p:p,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:i,cachePool:null,transitions:null},l.updateQueue=null,dt(Di,Nn),Nn|=i,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=S!==null?S.baseLanes:p,dt(Di,Nn),Nn|=g}else S!==null?(g=S.baseLanes|p,l.memoizedState=null):g=p,dt(Di,Nn),Nn|=g;return sn(i,l,x,p),l.child}function sv(i,l){var p=l.ref;(i===null&&p!==null||i!==null&&i.ref!==p)&&(l.flags|=512,l.flags|=2097152)}function cp(i,l,p,g,x){var S=fn(p)?Da:Kt.current;return S=ki(l,S),Ri(l,x),p=ep(i,l,p,g,S,x),g=tp(),i!==null&&!mn?(l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~x,Ur(i,l,x)):(yt&&g&&Fd(l),l.flags|=1,sn(i,l,p,x),l.child)}function ov(i,l,p,g,x){if(fn(p)){var S=!0;Ol(l)}else S=!1;if(Ri(l,x),l.stateNode===null)Xl(i,l),KS(l,p,g),op(l,p,g,x),g=!0;else if(i===null){var I=l.stateNode,U=l.memoizedProps;I.props=U;var z=I.context,Q=p.contextType;typeof Q=="object"&&Q!==null?Q=Un(Q):(Q=fn(p)?Da:Kt.current,Q=ki(l,Q));var se=p.getDerivedStateFromProps,le=typeof se=="function"||typeof I.getSnapshotBeforeUpdate=="function";le||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(U!==g||z!==Q)&&XS(l,I,g,Q),ia=!1;var ie=l.memoizedState;I.state=ie,$l(l,g,I,x),z=l.memoizedState,U!==g||ie!==z||pn.current||ia?(typeof se=="function"&&(sp(l,p,se,g),z=l.memoizedState),(U=ia||YS(l,p,U,g,ie,z,Q))?(le||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(l.flags|=4194308)):(typeof I.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=g,l.memoizedState=z),I.props=g,I.state=z,I.context=Q,g=U):(typeof I.componentDidMount=="function"&&(l.flags|=4194308),g=!1)}else{I=l.stateNode,wS(i,l),U=l.memoizedProps,Q=l.type===l.elementType?U:tr(l.type,U),I.props=Q,le=l.pendingProps,ie=I.context,z=p.contextType,typeof z=="object"&&z!==null?z=Un(z):(z=fn(p)?Da:Kt.current,z=ki(l,z));var he=p.getDerivedStateFromProps;(se=typeof he=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(U!==le||ie!==z)&&XS(l,I,g,z),ia=!1,ie=l.memoizedState,I.state=ie,$l(l,g,I,x);var Se=l.memoizedState;U!==le||ie!==Se||pn.current||ia?(typeof he=="function"&&(sp(l,p,he,g),Se=l.memoizedState),(Q=ia||YS(l,p,Q,g,ie,Se,z)||!1)?(se||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(g,Se,z),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(g,Se,z)),typeof I.componentDidUpdate=="function"&&(l.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof I.componentDidUpdate!="function"||U===i.memoizedProps&&ie===i.memoizedState||(l.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||U===i.memoizedProps&&ie===i.memoizedState||(l.flags|=1024),l.memoizedProps=g,l.memoizedState=Se),I.props=g,I.state=Se,I.context=z,g=Q):(typeof I.componentDidUpdate!="function"||U===i.memoizedProps&&ie===i.memoizedState||(l.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||U===i.memoizedProps&&ie===i.memoizedState||(l.flags|=1024),g=!1)}return dp(i,l,p,g,S,x)}function dp(i,l,p,g,x,S){sv(i,l);var I=(l.flags&128)!==0;if(!g&&!I)return x&&pS(l,p,!1),Ur(i,l,S);g=l.stateNode,E_.current=l;var U=I&&typeof p.getDerivedStateFromError!="function"?null:g.render();return l.flags|=1,i!==null&&I?(l.child=Ii(l,i.child,null,S),l.child=Ii(l,null,U,S)):sn(i,l,U,S),l.memoizedState=g.state,x&&pS(l,p,!0),l.child}function lv(i){var l=i.stateNode;l.pendingContext?cS(i,l.pendingContext,l.pendingContext!==l.context):l.context&&cS(i,l.context,!1),Yd(i,l.containerInfo)}function uv(i,l,p,g,x){return Ai(),$d(x),l.flags|=256,sn(i,l,p,g),l.child}var pp={dehydrated:null,treeContext:null,retryLane:0};function fp(i){return{baseLanes:i,cachePool:null,transitions:null}}function cv(i,l,p){var g=l.pendingProps,x=vt.current,S=!1,I=(l.flags&128)!==0,U;if((U=I)||(U=i!==null&&i.memoizedState===null?!1:(x&2)!==0),U?(S=!0,l.flags&=-129):(i===null||i.memoizedState!==null)&&(x|=1),dt(vt,x&1),i===null)return Ud(l),i=l.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((l.mode&1)===0?l.lanes=1:i.data==="$!"?l.lanes=8:l.lanes=1073741824,null):(I=g.children,i=g.fallback,S?(g=l.mode,S=l.child,I={mode:"hidden",children:I},(g&1)===0&&S!==null?(S.childLanes=0,S.pendingProps=I):S=lu(I,g,0,null),i=Ha(i,g,p,null),S.return=l,i.return=l,S.sibling=i,l.child=S,l.child.memoizedState=fp(p),l.memoizedState=pp,i):mp(l,I));if(x=i.memoizedState,x!==null&&(U=x.dehydrated,U!==null))return S_(i,l,I,g,U,x,p);if(S){S=g.fallback,I=l.mode,x=i.child,U=x.sibling;var z={mode:"hidden",children:g.children};return(I&1)===0&&l.child!==x?(g=l.child,g.childLanes=0,g.pendingProps=z,l.deletions=null):(g=pa(x,z),g.subtreeFlags=x.subtreeFlags&14680064),U!==null?S=pa(U,S):(S=Ha(S,I,p,null),S.flags|=2),S.return=l,g.return=l,g.sibling=S,l.child=g,g=S,S=l.child,I=i.child.memoizedState,I=I===null?fp(p):{baseLanes:I.baseLanes|p,cachePool:null,transitions:I.transitions},S.memoizedState=I,S.childLanes=i.childLanes&~p,l.memoizedState=pp,g}return S=i.child,i=S.sibling,g=pa(S,{mode:"visible",children:g.children}),(l.mode&1)===0&&(g.lanes=p),g.return=l,g.sibling=null,i!==null&&(p=l.deletions,p===null?(l.deletions=[i],l.flags|=16):p.push(i)),l.child=g,l.memoizedState=null,g}function mp(i,l){return l=lu({mode:"visible",children:l},i.mode,0,null),l.return=i,i.child=l}function Kl(i,l,p,g){return g!==null&&$d(g),Ii(l,i.child,null,p),i=mp(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function S_(i,l,p,g,x,S,I){if(p)return l.flags&256?(l.flags&=-257,g=lp(Error(n(422))),Kl(i,l,I,g)):l.memoizedState!==null?(l.child=i.child,l.flags|=128,null):(S=g.fallback,x=l.mode,g=lu({mode:"visible",children:g.children},x,0,null),S=Ha(S,x,I,null),S.flags|=2,g.return=l,S.return=l,g.sibling=S,l.child=g,(l.mode&1)!==0&&Ii(l,i.child,null,I),l.child.memoizedState=fp(I),l.memoizedState=pp,S);if((l.mode&1)===0)return Kl(i,l,I,null);if(x.data==="$!"){if(g=x.nextSibling&&x.nextSibling.dataset,g)var U=g.dgst;return g=U,S=Error(n(419)),g=lp(S,g,void 0),Kl(i,l,I,g)}if(U=(I&i.childLanes)!==0,mn||U){if(g=$t,g!==null){switch(I&-I){case 4:x=2;break;case 16:x=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(g.suspendedLanes|I))!==0?0:x,x!==0&&x!==S.retryLane&&(S.retryLane=x,Pr(i,x),ar(g,i,x,-1))}return Rp(),g=lp(Error(n(421))),Kl(i,l,I,g)}return x.data==="$?"?(l.flags|=128,l.child=i.child,l=D_.bind(null,i),x._reactRetry=l,null):(i=S.treeContext,Tn=ta(x.nextSibling),kn=l,yt=!0,er=null,i!==null&&(Pn[Bn++]=jr,Pn[Bn++]=Fr,Pn[Bn++]=Ma,jr=i.id,Fr=i.overflow,Ma=l),l=mp(l,g.children),l.flags|=4096,l)}function dv(i,l,p){i.lanes|=l;var g=i.alternate;g!==null&&(g.lanes|=l),Vd(i.return,l,p)}function hp(i,l,p,g,x){var S=i.memoizedState;S===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:x}:(S.isBackwards=l,S.rendering=null,S.renderingStartTime=0,S.last=g,S.tail=p,S.tailMode=x)}function pv(i,l,p){var g=l.pendingProps,x=g.revealOrder,S=g.tail;if(sn(i,l,g.children,p),g=vt.current,(g&2)!==0)g=g&1|2,l.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&dv(i,p,l);else if(i.tag===19)dv(i,p,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}g&=1}if(dt(vt,g),(l.mode&1)===0)l.memoizedState=null;else switch(x){case"forwards":for(p=l.child,x=null;p!==null;)i=p.alternate,i!==null&&zl(i)===null&&(x=p),p=p.sibling;p=x,p===null?(x=l.child,l.child=null):(x=p.sibling,p.sibling=null),hp(l,!1,x,p,S);break;case"backwards":for(p=null,x=l.child,l.child=null;x!==null;){if(i=x.alternate,i!==null&&zl(i)===null){l.child=x;break}i=x.sibling,x.sibling=p,p=x,x=i}hp(l,!0,p,null,S);break;case"together":hp(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Xl(i,l){(l.mode&1)===0&&i!==null&&(i.alternate=null,l.alternate=null,l.flags|=2)}function Ur(i,l,p){if(i!==null&&(l.dependencies=i.dependencies),Ua|=l.lanes,(p&l.childLanes)===0)return null;if(i!==null&&l.child!==i.child)throw Error(n(153));if(l.child!==null){for(i=l.child,p=pa(i,i.pendingProps),l.child=p,p.return=l;i.sibling!==null;)i=i.sibling,p=p.sibling=pa(i,i.pendingProps),p.return=l;p.sibling=null}return l.child}function v_(i,l,p){switch(l.tag){case 3:lv(l),Ai();break;case 5:NS(l);break;case 1:fn(l.type)&&Ol(l);break;case 4:Yd(l,l.stateNode.containerInfo);break;case 10:var g=l.type._context,x=l.memoizedProps.value;dt(Pl,g._currentValue),g._currentValue=x;break;case 13:if(g=l.memoizedState,g!==null)return g.dehydrated!==null?(dt(vt,vt.current&1),l.flags|=128,null):(p&l.child.childLanes)!==0?cv(i,l,p):(dt(vt,vt.current&1),i=Ur(i,l,p),i!==null?i.sibling:null);dt(vt,vt.current&1);break;case 19:if(g=(p&l.childLanes)!==0,(i.flags&128)!==0){if(g)return pv(i,l,p);l.flags|=128}if(x=l.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),dt(vt,vt.current),g)break;return null;case 22:case 23:return l.lanes=0,iv(i,l,p)}return Ur(i,l,p)}var fv,gp,mv,hv;fv=function(i,l){for(var p=l.child;p!==null;){if(p.tag===5||p.tag===6)i.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===l)break;for(;p.sibling===null;){if(p.return===null||p.return===l)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},gp=function(){},mv=function(i,l,p,g){var x=i.memoizedProps;if(x!==g){i=l.stateNode,Pa(xr.current);var S=null;switch(p){case"input":x=lt(i,x),g=lt(i,g),S=[];break;case"select":x=C({},x,{value:void 0}),g=C({},g,{value:void 0}),S=[];break;case"textarea":x=qr(i,x),g=qr(i,g),S=[];break;default:typeof x.onClick!="function"&&typeof g.onClick=="function"&&(i.onclick=Cl)}Ht(p,g);var I;p=null;for(Q in x)if(!g.hasOwnProperty(Q)&&x.hasOwnProperty(Q)&&x[Q]!=null)if(Q==="style"){var U=x[Q];for(I in U)U.hasOwnProperty(I)&&(p||(p={}),p[I]="")}else Q!=="dangerouslySetInnerHTML"&&Q!=="children"&&Q!=="suppressContentEditableWarning"&&Q!=="suppressHydrationWarning"&&Q!=="autoFocus"&&(a.hasOwnProperty(Q)?S||(S=[]):(S=S||[]).push(Q,null));for(Q in g){var z=g[Q];if(U=x!=null?x[Q]:void 0,g.hasOwnProperty(Q)&&z!==U&&(z!=null||U!=null))if(Q==="style")if(U){for(I in U)!U.hasOwnProperty(I)||z&&z.hasOwnProperty(I)||(p||(p={}),p[I]="");for(I in z)z.hasOwnProperty(I)&&U[I]!==z[I]&&(p||(p={}),p[I]=z[I])}else p||(S||(S=[]),S.push(Q,p)),p=z;else Q==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,U=U?U.__html:void 0,z!=null&&U!==z&&(S=S||[]).push(Q,z)):Q==="children"?typeof z!="string"&&typeof z!="number"||(S=S||[]).push(Q,""+z):Q!=="suppressContentEditableWarning"&&Q!=="suppressHydrationWarning"&&(a.hasOwnProperty(Q)?(z!=null&&Q==="onScroll"&&ft("scroll",i),S||U===z||(S=[])):(S=S||[]).push(Q,z))}p&&(S=S||[]).push("style",p);var Q=S;(l.updateQueue=Q)&&(l.flags|=4)}},hv=function(i,l,p,g){p!==g&&(l.flags|=4)};function Ws(i,l){if(!yt)switch(i.tailMode){case"hidden":l=i.tail;for(var p=null;l!==null;)l.alternate!==null&&(p=l),l=l.sibling;p===null?i.tail=null:p.sibling=null;break;case"collapsed":p=i.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function Zt(i){var l=i.alternate!==null&&i.alternate.child===i.child,p=0,g=0;if(l)for(var x=i.child;x!==null;)p|=x.lanes|x.childLanes,g|=x.subtreeFlags&14680064,g|=x.flags&14680064,x.return=i,x=x.sibling;else for(x=i.child;x!==null;)p|=x.lanes|x.childLanes,g|=x.subtreeFlags,g|=x.flags,x.return=i,x=x.sibling;return i.subtreeFlags|=g,i.childLanes=p,l}function w_(i,l,p){var g=l.pendingProps;switch(Pd(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(l),null;case 1:return fn(l.type)&&_l(),Zt(l),null;case 3:return g=l.stateNode,_i(),mt(pn),mt(Kt),Zd(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(i===null||i.child===null)&&(jl(l)?l.flags|=4:i===null||i.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,er!==null&&(Ap(er),er=null))),gp(i,l),Zt(l),null;case 5:Kd(l);var x=Pa($s.current);if(p=l.type,i!==null&&l.stateNode!=null)mv(i,l,p,g,x),i.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!g){if(l.stateNode===null)throw Error(n(166));return Zt(l),null}if(i=Pa(xr.current),jl(l)){g=l.stateNode,p=l.type;var S=l.memoizedProps;switch(g[yr]=l,g[js]=S,i=(l.mode&1)!==0,p){case"dialog":ft("cancel",g),ft("close",g);break;case"iframe":case"object":case"embed":ft("load",g);break;case"video":case"audio":for(x=0;x<Ls.length;x++)ft(Ls[x],g);break;case"source":ft("error",g);break;case"img":case"image":case"link":ft("error",g),ft("load",g);break;case"details":ft("toggle",g);break;case"input":et(g,S),ft("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!S.multiple},ft("invalid",g);break;case"textarea":Lr(g,S),ft("invalid",g)}Ht(p,S),x=null;for(var I in S)if(S.hasOwnProperty(I)){var U=S[I];I==="children"?typeof U=="string"?g.textContent!==U&&(S.suppressHydrationWarning!==!0&&Il(g.textContent,U,i),x=["children",U]):typeof U=="number"&&g.textContent!==""+U&&(S.suppressHydrationWarning!==!0&&Il(g.textContent,U,i),x=["children",""+U]):a.hasOwnProperty(I)&&U!=null&&I==="onScroll"&&ft("scroll",g)}switch(p){case"input":ze(g),ct(g,S,!0);break;case"textarea":ze(g),jn(g);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(g.onclick=Cl)}g=x,l.updateQueue=g,g!==null&&(l.flags|=4)}else{I=x.nodeType===9?x:x.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=te(p)),i==="http://www.w3.org/1999/xhtml"?p==="script"?(i=I.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof g.is=="string"?i=I.createElement(p,{is:g.is}):(i=I.createElement(p),p==="select"&&(I=i,g.multiple?I.multiple=!0:g.size&&(I.size=g.size))):i=I.createElementNS(i,p),i[yr]=l,i[js]=g,fv(i,l,!1,!1),l.stateNode=i;e:{switch(I=gr(p,g),p){case"dialog":ft("cancel",i),ft("close",i),x=g;break;case"iframe":case"object":case"embed":ft("load",i),x=g;break;case"video":case"audio":for(x=0;x<Ls.length;x++)ft(Ls[x],i);x=g;break;case"source":ft("error",i),x=g;break;case"img":case"image":case"link":ft("error",i),ft("load",i),x=g;break;case"details":ft("toggle",i),x=g;break;case"input":et(i,g),x=lt(i,g),ft("invalid",i);break;case"option":x=g;break;case"select":i._wrapperState={wasMultiple:!!g.multiple},x=C({},g,{value:void 0}),ft("invalid",i);break;case"textarea":Lr(i,g),x=qr(i,g),ft("invalid",i);break;default:x=g}Ht(p,x),U=x;for(S in U)if(U.hasOwnProperty(S)){var z=U[S];S==="style"?Yr(i,z):S==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,z!=null&&Pe(i,z)):S==="children"?typeof z=="string"?(p!=="textarea"||z!=="")&&Ye(i,z):typeof z=="number"&&Ye(i,""+z):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(a.hasOwnProperty(S)?z!=null&&S==="onScroll"&&ft("scroll",i):z!=null&&A(i,S,z,I))}switch(p){case"input":ze(i),ct(i,g,!1);break;case"textarea":ze(i),jn(i);break;case"option":g.value!=null&&i.setAttribute("value",""+ne(g.value));break;case"select":i.multiple=!!g.multiple,S=g.value,S!=null?Mn(i,!!g.multiple,S,!1):g.defaultValue!=null&&Mn(i,!!g.multiple,g.defaultValue,!0);break;default:typeof x.onClick=="function"&&(i.onclick=Cl)}switch(p){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return Zt(l),null;case 6:if(i&&l.stateNode!=null)hv(i,l,i.memoizedProps,g);else{if(typeof g!="string"&&l.stateNode===null)throw Error(n(166));if(p=Pa($s.current),Pa(xr.current),jl(l)){if(g=l.stateNode,p=l.memoizedProps,g[yr]=l,(S=g.nodeValue!==p)&&(i=kn,i!==null))switch(i.tag){case 3:Il(g.nodeValue,p,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Il(g.nodeValue,p,(i.mode&1)!==0)}S&&(l.flags|=4)}else g=(p.nodeType===9?p:p.ownerDocument).createTextNode(g),g[yr]=l,l.stateNode=g}return Zt(l),null;case 13:if(mt(vt),g=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(yt&&Tn!==null&&(l.mode&1)!==0&&(l.flags&128)===0)yS(),Ai(),l.flags|=98560,S=!1;else if(S=jl(l),g!==null&&g.dehydrated!==null){if(i===null){if(!S)throw Error(n(318));if(S=l.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(n(317));S[yr]=l}else Ai(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Zt(l),S=!1}else er!==null&&(Ap(er),er=null),S=!0;if(!S)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=p,l):(g=g!==null,g!==(i!==null&&i.memoizedState!==null)&&g&&(l.child.flags|=8192,(l.mode&1)!==0&&(i===null||(vt.current&1)!==0?Mt===0&&(Mt=3):Rp())),l.updateQueue!==null&&(l.flags|=4),Zt(l),null);case 4:return _i(),gp(i,l),i===null&&Ds(l.stateNode.containerInfo),Zt(l),null;case 10:return Hd(l.type._context),Zt(l),null;case 17:return fn(l.type)&&_l(),Zt(l),null;case 19:if(mt(vt),S=l.memoizedState,S===null)return Zt(l),null;if(g=(l.flags&128)!==0,I=S.rendering,I===null)if(g)Ws(S,!1);else{if(Mt!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(I=zl(i),I!==null){for(l.flags|=128,Ws(S,!1),g=I.updateQueue,g!==null&&(l.updateQueue=g,l.flags|=4),l.subtreeFlags=0,g=p,p=l.child;p!==null;)S=p,i=g,S.flags&=14680066,I=S.alternate,I===null?(S.childLanes=0,S.lanes=i,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=I.childLanes,S.lanes=I.lanes,S.child=I.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=I.memoizedProps,S.memoizedState=I.memoizedState,S.updateQueue=I.updateQueue,S.type=I.type,i=I.dependencies,S.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),p=p.sibling;return dt(vt,vt.current&1|2),l.child}i=i.sibling}S.tail!==null&&At()>Mi&&(l.flags|=128,g=!0,Ws(S,!1),l.lanes=4194304)}else{if(!g)if(i=zl(I),i!==null){if(l.flags|=128,g=!0,p=i.updateQueue,p!==null&&(l.updateQueue=p,l.flags|=4),Ws(S,!0),S.tail===null&&S.tailMode==="hidden"&&!I.alternate&&!yt)return Zt(l),null}else 2*At()-S.renderingStartTime>Mi&&p!==1073741824&&(l.flags|=128,g=!0,Ws(S,!1),l.lanes=4194304);S.isBackwards?(I.sibling=l.child,l.child=I):(p=S.last,p!==null?p.sibling=I:l.child=I,S.last=I)}return S.tail!==null?(l=S.tail,S.rendering=l,S.tail=l.sibling,S.renderingStartTime=At(),l.sibling=null,p=vt.current,dt(vt,g?p&1|2:p&1),l):(Zt(l),null);case 22:case 23:return Cp(),g=l.memoizedState!==null,i!==null&&i.memoizedState!==null!==g&&(l.flags|=8192),g&&(l.mode&1)!==0?(Nn&1073741824)!==0&&(Zt(l),l.subtreeFlags&6&&(l.flags|=8192)):Zt(l),null;case 24:return null;case 25:return null}throw Error(n(156,l.tag))}function k_(i,l){switch(Pd(l),l.tag){case 1:return fn(l.type)&&_l(),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return _i(),mt(pn),mt(Kt),Zd(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 5:return Kd(l),null;case 13:if(mt(vt),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(n(340));Ai()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return mt(vt),null;case 4:return _i(),null;case 10:return Hd(l.type._context),null;case 22:case 23:return Cp(),null;case 24:return null;default:return null}}var Zl=!1,Qt=!1,T_=typeof WeakSet=="function"?WeakSet:Set,Ee=null;function Li(i,l){var p=i.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(g){Tt(i,l,g)}else p.current=null}function bp(i,l,p){try{p()}catch(g){Tt(i,l,g)}}var gv=!1;function N_(i,l){if(Cd=bl,i=YE(),Sd(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var x=g.anchorOffset,S=g.focusNode;g=g.focusOffset;try{p.nodeType,S.nodeType}catch{p=null;break e}var I=0,U=-1,z=-1,Q=0,se=0,le=i,ie=null;t:for(;;){for(var he;le!==p||x!==0&&le.nodeType!==3||(U=I+x),le!==S||g!==0&&le.nodeType!==3||(z=I+g),le.nodeType===3&&(I+=le.nodeValue.length),(he=le.firstChild)!==null;)ie=le,le=he;for(;;){if(le===i)break t;if(ie===p&&++Q===x&&(U=I),ie===S&&++se===g&&(z=I),(he=le.nextSibling)!==null)break;le=ie,ie=le.parentNode}le=he}p=U===-1||z===-1?null:{start:U,end:z}}else p=null}p=p||{start:0,end:0}}else p=null;for(Rd={focusedElem:i,selectionRange:p},bl=!1,Ee=l;Ee!==null;)if(l=Ee,i=l.child,(l.subtreeFlags&1028)!==0&&i!==null)i.return=l,Ee=i;else for(;Ee!==null;){l=Ee;try{var Se=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(Se!==null){var we=Se.memoizedProps,It=Se.memoizedState,V=l.stateNode,G=V.getSnapshotBeforeUpdate(l.elementType===l.type?we:tr(l.type,we),It);V.__reactInternalSnapshotBeforeUpdate=G}break;case 3:var X=l.stateNode.containerInfo;X.nodeType===1?X.textContent="":X.nodeType===9&&X.documentElement&&X.removeChild(X.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(de){Tt(l,l.return,de)}if(i=l.sibling,i!==null){i.return=l.return,Ee=i;break}Ee=l.return}return Se=gv,gv=!1,Se}function qs(i,l,p){var g=l.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var x=g=g.next;do{if((x.tag&i)===i){var S=x.destroy;x.destroy=void 0,S!==void 0&&bp(l,p,S)}x=x.next}while(x!==g)}}function Ql(i,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var p=l=l.next;do{if((p.tag&i)===i){var g=p.create;p.destroy=g()}p=p.next}while(p!==l)}}function yp(i){var l=i.ref;if(l!==null){var p=i.stateNode;switch(i.tag){case 5:i=p;break;default:i=p}typeof l=="function"?l(i):l.current=i}}function bv(i){var l=i.alternate;l!==null&&(i.alternate=null,bv(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&(delete l[yr],delete l[js],delete l[Dd],delete l[l_],delete l[u_])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function yv(i){return i.tag===5||i.tag===3||i.tag===4}function xv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||yv(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function xp(i,l,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,l?p.nodeType===8?p.parentNode.insertBefore(i,l):p.insertBefore(i,l):(p.nodeType===8?(l=p.parentNode,l.insertBefore(i,p)):(l=p,l.appendChild(i)),p=p._reactRootContainer,p!=null||l.onclick!==null||(l.onclick=Cl));else if(g!==4&&(i=i.child,i!==null))for(xp(i,l,p),i=i.sibling;i!==null;)xp(i,l,p),i=i.sibling}function Ep(i,l,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,l?p.insertBefore(i,l):p.appendChild(i);else if(g!==4&&(i=i.child,i!==null))for(Ep(i,l,p),i=i.sibling;i!==null;)Ep(i,l,p),i=i.sibling}var Vt=null,nr=!1;function oa(i,l,p){for(p=p.child;p!==null;)Ev(i,l,p),p=p.sibling}function Ev(i,l,p){if(br&&typeof br.onCommitFiberUnmount=="function")try{br.onCommitFiberUnmount(dl,p)}catch{}switch(p.tag){case 5:Qt||Li(p,l);case 6:var g=Vt,x=nr;Vt=null,oa(i,l,p),Vt=g,nr=x,Vt!==null&&(nr?(i=Vt,p=p.stateNode,i.nodeType===8?i.parentNode.removeChild(p):i.removeChild(p)):Vt.removeChild(p.stateNode));break;case 18:Vt!==null&&(nr?(i=Vt,p=p.stateNode,i.nodeType===8?Ld(i.parentNode,p):i.nodeType===1&&Ld(i,p),Ts(i)):Ld(Vt,p.stateNode));break;case 4:g=Vt,x=nr,Vt=p.stateNode.containerInfo,nr=!0,oa(i,l,p),Vt=g,nr=x;break;case 0:case 11:case 14:case 15:if(!Qt&&(g=p.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){x=g=g.next;do{var S=x,I=S.destroy;S=S.tag,I!==void 0&&((S&2)!==0||(S&4)!==0)&&bp(p,l,I),x=x.next}while(x!==g)}oa(i,l,p);break;case 1:if(!Qt&&(Li(p,l),g=p.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=p.memoizedProps,g.state=p.memoizedState,g.componentWillUnmount()}catch(U){Tt(p,l,U)}oa(i,l,p);break;case 21:oa(i,l,p);break;case 22:p.mode&1?(Qt=(g=Qt)||p.memoizedState!==null,oa(i,l,p),Qt=g):oa(i,l,p);break;default:oa(i,l,p)}}function Sv(i){var l=i.updateQueue;if(l!==null){i.updateQueue=null;var p=i.stateNode;p===null&&(p=i.stateNode=new T_),l.forEach(function(g){var x=M_.bind(null,i,g);p.has(g)||(p.add(g),g.then(x,x))})}}function rr(i,l){var p=l.deletions;if(p!==null)for(var g=0;g<p.length;g++){var x=p[g];try{var S=i,I=l,U=I;e:for(;U!==null;){switch(U.tag){case 5:Vt=U.stateNode,nr=!1;break e;case 3:Vt=U.stateNode.containerInfo,nr=!0;break e;case 4:Vt=U.stateNode.containerInfo,nr=!0;break e}U=U.return}if(Vt===null)throw Error(n(160));Ev(S,I,x),Vt=null,nr=!1;var z=x.alternate;z!==null&&(z.return=null),x.return=null}catch(Q){Tt(x,l,Q)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)vv(l,i),l=l.sibling}function vv(i,l){var p=i.alternate,g=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(rr(l,i),Sr(i),g&4){try{qs(3,i,i.return),Ql(3,i)}catch(we){Tt(i,i.return,we)}try{qs(5,i,i.return)}catch(we){Tt(i,i.return,we)}}break;case 1:rr(l,i),Sr(i),g&512&&p!==null&&Li(p,p.return);break;case 5:if(rr(l,i),Sr(i),g&512&&p!==null&&Li(p,p.return),i.flags&32){var x=i.stateNode;try{Ye(x,"")}catch(we){Tt(i,i.return,we)}}if(g&4&&(x=i.stateNode,x!=null)){var S=i.memoizedProps,I=p!==null?p.memoizedProps:S,U=i.type,z=i.updateQueue;if(i.updateQueue=null,z!==null)try{U==="input"&&S.type==="radio"&&S.name!=null&&at(x,S),gr(U,I);var Q=gr(U,S);for(I=0;I<z.length;I+=2){var se=z[I],le=z[I+1];se==="style"?Yr(x,le):se==="dangerouslySetInnerHTML"?Pe(x,le):se==="children"?Ye(x,le):A(x,se,le,Q)}switch(U){case"input":kt(x,S);break;case"textarea":Xn(x,S);break;case"select":var ie=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!S.multiple;var he=S.value;he!=null?Mn(x,!!S.multiple,he,!1):ie!==!!S.multiple&&(S.defaultValue!=null?Mn(x,!!S.multiple,S.defaultValue,!0):Mn(x,!!S.multiple,S.multiple?[]:"",!1))}x[js]=S}catch(we){Tt(i,i.return,we)}}break;case 6:if(rr(l,i),Sr(i),g&4){if(i.stateNode===null)throw Error(n(162));x=i.stateNode,S=i.memoizedProps;try{x.nodeValue=S}catch(we){Tt(i,i.return,we)}}break;case 3:if(rr(l,i),Sr(i),g&4&&p!==null&&p.memoizedState.isDehydrated)try{Ts(l.containerInfo)}catch(we){Tt(i,i.return,we)}break;case 4:rr(l,i),Sr(i);break;case 13:rr(l,i),Sr(i),x=i.child,x.flags&8192&&(S=x.memoizedState!==null,x.stateNode.isHidden=S,!S||x.alternate!==null&&x.alternate.memoizedState!==null||(wp=At())),g&4&&Sv(i);break;case 22:if(se=p!==null&&p.memoizedState!==null,i.mode&1?(Qt=(Q=Qt)||se,rr(l,i),Qt=Q):rr(l,i),Sr(i),g&8192){if(Q=i.memoizedState!==null,(i.stateNode.isHidden=Q)&&!se&&(i.mode&1)!==0)for(Ee=i,se=i.child;se!==null;){for(le=Ee=se;Ee!==null;){switch(ie=Ee,he=ie.child,ie.tag){case 0:case 11:case 14:case 15:qs(4,ie,ie.return);break;case 1:Li(ie,ie.return);var Se=ie.stateNode;if(typeof Se.componentWillUnmount=="function"){g=ie,p=ie.return;try{l=g,Se.props=l.memoizedProps,Se.state=l.memoizedState,Se.componentWillUnmount()}catch(we){Tt(g,p,we)}}break;case 5:Li(ie,ie.return);break;case 22:if(ie.memoizedState!==null){Tv(le);continue}}he!==null?(he.return=ie,Ee=he):Tv(le)}se=se.sibling}e:for(se=null,le=i;;){if(le.tag===5){if(se===null){se=le;try{x=le.stateNode,Q?(S=x.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none"):(U=le.stateNode,z=le.memoizedProps.style,I=z!=null&&z.hasOwnProperty("display")?z.display:null,U.style.display=Fn("display",I))}catch(we){Tt(i,i.return,we)}}}else if(le.tag===6){if(se===null)try{le.stateNode.nodeValue=Q?"":le.memoizedProps}catch(we){Tt(i,i.return,we)}}else if((le.tag!==22&&le.tag!==23||le.memoizedState===null||le===i)&&le.child!==null){le.child.return=le,le=le.child;continue}if(le===i)break e;for(;le.sibling===null;){if(le.return===null||le.return===i)break e;se===le&&(se=null),le=le.return}se===le&&(se=null),le.sibling.return=le.return,le=le.sibling}}break;case 19:rr(l,i),Sr(i),g&4&&Sv(i);break;case 21:break;default:rr(l,i),Sr(i)}}function Sr(i){var l=i.flags;if(l&2){try{e:{for(var p=i.return;p!==null;){if(yv(p)){var g=p;break e}p=p.return}throw Error(n(160))}switch(g.tag){case 5:var x=g.stateNode;g.flags&32&&(Ye(x,""),g.flags&=-33);var S=xv(i);Ep(i,S,x);break;case 3:case 4:var I=g.stateNode.containerInfo,U=xv(i);xp(i,U,I);break;default:throw Error(n(161))}}catch(z){Tt(i,i.return,z)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function A_(i,l,p){Ee=i,wv(i)}function wv(i,l,p){for(var g=(i.mode&1)!==0;Ee!==null;){var x=Ee,S=x.child;if(x.tag===22&&g){var I=x.memoizedState!==null||Zl;if(!I){var U=x.alternate,z=U!==null&&U.memoizedState!==null||Qt;U=Zl;var Q=Qt;if(Zl=I,(Qt=z)&&!Q)for(Ee=x;Ee!==null;)I=Ee,z=I.child,I.tag===22&&I.memoizedState!==null?Nv(x):z!==null?(z.return=I,Ee=z):Nv(x);for(;S!==null;)Ee=S,wv(S),S=S.sibling;Ee=x,Zl=U,Qt=Q}kv(i)}else(x.subtreeFlags&8772)!==0&&S!==null?(S.return=x,Ee=S):kv(i)}}function kv(i){for(;Ee!==null;){var l=Ee;if((l.flags&8772)!==0){var p=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:Qt||Ql(5,l);break;case 1:var g=l.stateNode;if(l.flags&4&&!Qt)if(p===null)g.componentDidMount();else{var x=l.elementType===l.type?p.memoizedProps:tr(l.type,p.memoizedProps);g.componentDidUpdate(x,p.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var S=l.updateQueue;S!==null&&TS(l,S,g);break;case 3:var I=l.updateQueue;if(I!==null){if(p=null,l.child!==null)switch(l.child.tag){case 5:p=l.child.stateNode;break;case 1:p=l.child.stateNode}TS(l,I,p)}break;case 5:var U=l.stateNode;if(p===null&&l.flags&4){p=U;var z=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":z.autoFocus&&p.focus();break;case"img":z.src&&(p.src=z.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var Q=l.alternate;if(Q!==null){var se=Q.memoizedState;if(se!==null){var le=se.dehydrated;le!==null&&Ts(le)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Qt||l.flags&512&&yp(l)}catch(ie){Tt(l,l.return,ie)}}if(l===i){Ee=null;break}if(p=l.sibling,p!==null){p.return=l.return,Ee=p;break}Ee=l.return}}function Tv(i){for(;Ee!==null;){var l=Ee;if(l===i){Ee=null;break}var p=l.sibling;if(p!==null){p.return=l.return,Ee=p;break}Ee=l.return}}function Nv(i){for(;Ee!==null;){var l=Ee;try{switch(l.tag){case 0:case 11:case 15:var p=l.return;try{Ql(4,l)}catch(z){Tt(l,p,z)}break;case 1:var g=l.stateNode;if(typeof g.componentDidMount=="function"){var x=l.return;try{g.componentDidMount()}catch(z){Tt(l,x,z)}}var S=l.return;try{yp(l)}catch(z){Tt(l,S,z)}break;case 5:var I=l.return;try{yp(l)}catch(z){Tt(l,I,z)}}}catch(z){Tt(l,l.return,z)}if(l===i){Ee=null;break}var U=l.sibling;if(U!==null){U.return=l.return,Ee=U;break}Ee=l.return}}var I_=Math.ceil,Jl=_.ReactCurrentDispatcher,Sp=_.ReactCurrentOwner,zn=_.ReactCurrentBatchConfig,Qe=0,$t=null,Rt=null,Wt=0,Nn=0,Di=na(0),Mt=0,Ys=null,Ua=0,eu=0,vp=0,Ks=null,hn=null,wp=0,Mi=1/0,$r=null,tu=!1,kp=null,la=null,nu=!1,ua=null,ru=0,Xs=0,Tp=null,au=-1,iu=0;function on(){return(Qe&6)!==0?At():au!==-1?au:au=At()}function ca(i){return(i.mode&1)===0?1:(Qe&2)!==0&&Wt!==0?Wt&-Wt:d_.transition!==null?(iu===0&&(iu=xE()),iu):(i=it,i!==0||(i=window.event,i=i===void 0?16:IE(i.type)),i)}function ar(i,l,p,g){if(50<Xs)throw Xs=0,Tp=null,Error(n(185));Es(i,p,g),((Qe&2)===0||i!==$t)&&(i===$t&&((Qe&2)===0&&(eu|=p),Mt===4&&da(i,Wt)),gn(i,g),p===1&&Qe===0&&(l.mode&1)===0&&(Mi=At()+500,Ll&&aa()))}function gn(i,l){var p=i.callbackNode;d1(i,l);var g=ml(i,i===$t?Wt:0);if(g===0)p!==null&&gE(p),i.callbackNode=null,i.callbackPriority=0;else if(l=g&-g,i.callbackPriority!==l){if(p!=null&&gE(p),l===1)i.tag===0?c_(Iv.bind(null,i)):fS(Iv.bind(null,i)),s_(function(){(Qe&6)===0&&aa()}),p=null;else{switch(EE(g)){case 1:p=ad;break;case 4:p=bE;break;case 16:p=cl;break;case 536870912:p=yE;break;default:p=cl}p=jv(p,Av.bind(null,i))}i.callbackPriority=l,i.callbackNode=p}}function Av(i,l){if(au=-1,iu=0,(Qe&6)!==0)throw Error(n(327));var p=i.callbackNode;if(ji()&&i.callbackNode!==p)return null;var g=ml(i,i===$t?Wt:0);if(g===0)return null;if((g&30)!==0||(g&i.expiredLanes)!==0||l)l=su(i,g);else{l=g;var x=Qe;Qe|=2;var S=Rv();($t!==i||Wt!==l)&&($r=null,Mi=At()+500,za(i,l));do try{__();break}catch(U){Cv(i,U)}while(!0);Gd(),Jl.current=S,Qe=x,Rt!==null?l=0:($t=null,Wt=0,l=Mt)}if(l!==0){if(l===2&&(x=id(i),x!==0&&(g=x,l=Np(i,x))),l===1)throw p=Ys,za(i,0),da(i,g),gn(i,At()),p;if(l===6)da(i,g);else{if(x=i.current.alternate,(g&30)===0&&!C_(x)&&(l=su(i,g),l===2&&(S=id(i),S!==0&&(g=S,l=Np(i,S))),l===1))throw p=Ys,za(i,0),da(i,g),gn(i,At()),p;switch(i.finishedWork=x,i.finishedLanes=g,l){case 0:case 1:throw Error(n(345));case 2:Ga(i,hn,$r);break;case 3:if(da(i,g),(g&130023424)===g&&(l=wp+500-At(),10<l)){if(ml(i,0)!==0)break;if(x=i.suspendedLanes,(x&g)!==g){on(),i.pingedLanes|=i.suspendedLanes&x;break}i.timeoutHandle=Od(Ga.bind(null,i,hn,$r),l);break}Ga(i,hn,$r);break;case 4:if(da(i,g),(g&4194240)===g)break;for(l=i.eventTimes,x=-1;0<g;){var I=31-Qn(g);S=1<<I,I=l[I],I>x&&(x=I),g&=~S}if(g=x,g=At()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*I_(g/1960))-g,10<g){i.timeoutHandle=Od(Ga.bind(null,i,hn,$r),g);break}Ga(i,hn,$r);break;case 5:Ga(i,hn,$r);break;default:throw Error(n(329))}}}return gn(i,At()),i.callbackNode===p?Av.bind(null,i):null}function Np(i,l){var p=Ks;return i.current.memoizedState.isDehydrated&&(za(i,l).flags|=256),i=su(i,l),i!==2&&(l=hn,hn=p,l!==null&&Ap(l)),i}function Ap(i){hn===null?hn=i:hn.push.apply(hn,i)}function C_(i){for(var l=i;;){if(l.flags&16384){var p=l.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var g=0;g<p.length;g++){var x=p[g],S=x.getSnapshot;x=x.value;try{if(!Jn(S(),x))return!1}catch{return!1}}}if(p=l.child,l.subtreeFlags&16384&&p!==null)p.return=l,l=p;else{if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function da(i,l){for(l&=~vp,l&=~eu,i.suspendedLanes|=l,i.pingedLanes&=~l,i=i.expirationTimes;0<l;){var p=31-Qn(l),g=1<<p;i[p]=-1,l&=~g}}function Iv(i){if((Qe&6)!==0)throw Error(n(327));ji();var l=ml(i,0);if((l&1)===0)return gn(i,At()),null;var p=su(i,l);if(i.tag!==0&&p===2){var g=id(i);g!==0&&(l=g,p=Np(i,g))}if(p===1)throw p=Ys,za(i,0),da(i,l),gn(i,At()),p;if(p===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=l,Ga(i,hn,$r),gn(i,At()),null}function Ip(i,l){var p=Qe;Qe|=1;try{return i(l)}finally{Qe=p,Qe===0&&(Mi=At()+500,Ll&&aa())}}function $a(i){ua!==null&&ua.tag===0&&(Qe&6)===0&&ji();var l=Qe;Qe|=1;var p=zn.transition,g=it;try{if(zn.transition=null,it=1,i)return i()}finally{it=g,zn.transition=p,Qe=l,(Qe&6)===0&&aa()}}function Cp(){Nn=Di.current,mt(Di)}function za(i,l){i.finishedWork=null,i.finishedLanes=0;var p=i.timeoutHandle;if(p!==-1&&(i.timeoutHandle=-1,i_(p)),Rt!==null)for(p=Rt.return;p!==null;){var g=p;switch(Pd(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&_l();break;case 3:_i(),mt(pn),mt(Kt),Zd();break;case 5:Kd(g);break;case 4:_i();break;case 13:mt(vt);break;case 19:mt(vt);break;case 10:Hd(g.type._context);break;case 22:case 23:Cp()}p=p.return}if($t=i,Rt=i=pa(i.current,null),Wt=Nn=l,Mt=0,Ys=null,vp=eu=Ua=0,hn=Ks=null,Fa!==null){for(l=0;l<Fa.length;l++)if(p=Fa[l],g=p.interleaved,g!==null){p.interleaved=null;var x=g.next,S=p.pending;if(S!==null){var I=S.next;S.next=x,g.next=I}p.pending=g}Fa=null}return i}function Cv(i,l){do{var p=Rt;try{if(Gd(),Gl.current=ql,Hl){for(var g=wt.memoizedState;g!==null;){var x=g.queue;x!==null&&(x.pending=null),g=g.next}Hl=!1}if(Ba=0,Ut=Dt=wt=null,zs=!1,Gs=0,Sp.current=null,p===null||p.return===null){Mt=1,Ys=l,Rt=null;break}e:{var S=i,I=p.return,U=p,z=l;if(l=Wt,U.flags|=32768,z!==null&&typeof z=="object"&&typeof z.then=="function"){var Q=z,se=U,le=se.tag;if((se.mode&1)===0&&(le===0||le===11||le===15)){var ie=se.alternate;ie?(se.updateQueue=ie.updateQueue,se.memoizedState=ie.memoizedState,se.lanes=ie.lanes):(se.updateQueue=null,se.memoizedState=null)}var he=ev(I);if(he!==null){he.flags&=-257,tv(he,I,U,S,l),he.mode&1&&JS(S,Q,l),l=he,z=Q;var Se=l.updateQueue;if(Se===null){var we=new Set;we.add(z),l.updateQueue=we}else Se.add(z);break e}else{if((l&1)===0){JS(S,Q,l),Rp();break e}z=Error(n(426))}}else if(yt&&U.mode&1){var It=ev(I);if(It!==null){(It.flags&65536)===0&&(It.flags|=256),tv(It,I,U,S,l),$d(Oi(z,U));break e}}S=z=Oi(z,U),Mt!==4&&(Mt=2),Ks===null?Ks=[S]:Ks.push(S),S=I;do{switch(S.tag){case 3:S.flags|=65536,l&=-l,S.lanes|=l;var V=ZS(S,z,l);kS(S,V);break e;case 1:U=z;var G=S.type,X=S.stateNode;if((S.flags&128)===0&&(typeof G.getDerivedStateFromError=="function"||X!==null&&typeof X.componentDidCatch=="function"&&(la===null||!la.has(X)))){S.flags|=65536,l&=-l,S.lanes|=l;var de=QS(S,U,l);kS(S,de);break e}}S=S.return}while(S!==null)}Ov(p)}catch(ke){l=ke,Rt===p&&p!==null&&(Rt=p=p.return);continue}break}while(!0)}function Rv(){var i=Jl.current;return Jl.current=ql,i===null?ql:i}function Rp(){(Mt===0||Mt===3||Mt===2)&&(Mt=4),$t===null||(Ua&268435455)===0&&(eu&268435455)===0||da($t,Wt)}function su(i,l){var p=Qe;Qe|=2;var g=Rv();($t!==i||Wt!==l)&&($r=null,za(i,l));do try{R_();break}catch(x){Cv(i,x)}while(!0);if(Gd(),Qe=p,Jl.current=g,Rt!==null)throw Error(n(261));return $t=null,Wt=0,Mt}function R_(){for(;Rt!==null;)_v(Rt)}function __(){for(;Rt!==null&&!n1();)_v(Rt)}function _v(i){var l=Mv(i.alternate,i,Nn);i.memoizedProps=i.pendingProps,l===null?Ov(i):Rt=l,Sp.current=null}function Ov(i){var l=i;do{var p=l.alternate;if(i=l.return,(l.flags&32768)===0){if(p=w_(p,l,Nn),p!==null){Rt=p;return}}else{if(p=k_(p,l),p!==null){p.flags&=32767,Rt=p;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Mt=6,Rt=null;return}}if(l=l.sibling,l!==null){Rt=l;return}Rt=l=i}while(l!==null);Mt===0&&(Mt=5)}function Ga(i,l,p){var g=it,x=zn.transition;try{zn.transition=null,it=1,O_(i,l,p,g)}finally{zn.transition=x,it=g}return null}function O_(i,l,p,g){do ji();while(ua!==null);if((Qe&6)!==0)throw Error(n(327));p=i.finishedWork;var x=i.finishedLanes;if(p===null)return null;if(i.finishedWork=null,i.finishedLanes=0,p===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var S=p.lanes|p.childLanes;if(p1(i,S),i===$t&&(Rt=$t=null,Wt=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||nu||(nu=!0,jv(cl,function(){return ji(),null})),S=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||S){S=zn.transition,zn.transition=null;var I=it;it=1;var U=Qe;Qe|=4,Sp.current=null,N_(i,p),vv(p,i),Q1(Rd),bl=!!Cd,Rd=Cd=null,i.current=p,A_(p),r1(),Qe=U,it=I,zn.transition=S}else i.current=p;if(nu&&(nu=!1,ua=i,ru=x),S=i.pendingLanes,S===0&&(la=null),s1(p.stateNode),gn(i,At()),l!==null)for(g=i.onRecoverableError,p=0;p<l.length;p++)x=l[p],g(x.value,{componentStack:x.stack,digest:x.digest});if(tu)throw tu=!1,i=kp,kp=null,i;return(ru&1)!==0&&i.tag!==0&&ji(),S=i.pendingLanes,(S&1)!==0?i===Tp?Xs++:(Xs=0,Tp=i):Xs=0,aa(),null}function ji(){if(ua!==null){var i=EE(ru),l=zn.transition,p=it;try{if(zn.transition=null,it=16>i?16:i,ua===null)var g=!1;else{if(i=ua,ua=null,ru=0,(Qe&6)!==0)throw Error(n(331));var x=Qe;for(Qe|=4,Ee=i.current;Ee!==null;){var S=Ee,I=S.child;if((Ee.flags&16)!==0){var U=S.deletions;if(U!==null){for(var z=0;z<U.length;z++){var Q=U[z];for(Ee=Q;Ee!==null;){var se=Ee;switch(se.tag){case 0:case 11:case 15:qs(8,se,S)}var le=se.child;if(le!==null)le.return=se,Ee=le;else for(;Ee!==null;){se=Ee;var ie=se.sibling,he=se.return;if(bv(se),se===Q){Ee=null;break}if(ie!==null){ie.return=he,Ee=ie;break}Ee=he}}}var Se=S.alternate;if(Se!==null){var we=Se.child;if(we!==null){Se.child=null;do{var It=we.sibling;we.sibling=null,we=It}while(we!==null)}}Ee=S}}if((S.subtreeFlags&2064)!==0&&I!==null)I.return=S,Ee=I;else e:for(;Ee!==null;){if(S=Ee,(S.flags&2048)!==0)switch(S.tag){case 0:case 11:case 15:qs(9,S,S.return)}var V=S.sibling;if(V!==null){V.return=S.return,Ee=V;break e}Ee=S.return}}var G=i.current;for(Ee=G;Ee!==null;){I=Ee;var X=I.child;if((I.subtreeFlags&2064)!==0&&X!==null)X.return=I,Ee=X;else e:for(I=G;Ee!==null;){if(U=Ee,(U.flags&2048)!==0)try{switch(U.tag){case 0:case 11:case 15:Ql(9,U)}}catch(ke){Tt(U,U.return,ke)}if(U===I){Ee=null;break e}var de=U.sibling;if(de!==null){de.return=U.return,Ee=de;break e}Ee=U.return}}if(Qe=x,aa(),br&&typeof br.onPostCommitFiberRoot=="function")try{br.onPostCommitFiberRoot(dl,i)}catch{}g=!0}return g}finally{it=p,zn.transition=l}}return!1}function Lv(i,l,p){l=Oi(p,l),l=ZS(i,l,1),i=sa(i,l,1),l=on(),i!==null&&(Es(i,1,l),gn(i,l))}function Tt(i,l,p){if(i.tag===3)Lv(i,i,p);else for(;l!==null;){if(l.tag===3){Lv(l,i,p);break}else if(l.tag===1){var g=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(la===null||!la.has(g))){i=Oi(p,i),i=QS(l,i,1),l=sa(l,i,1),i=on(),l!==null&&(Es(l,1,i),gn(l,i));break}}l=l.return}}function L_(i,l,p){var g=i.pingCache;g!==null&&g.delete(l),l=on(),i.pingedLanes|=i.suspendedLanes&p,$t===i&&(Wt&p)===p&&(Mt===4||Mt===3&&(Wt&130023424)===Wt&&500>At()-wp?za(i,0):vp|=p),gn(i,l)}function Dv(i,l){l===0&&((i.mode&1)===0?l=1:(l=fl,fl<<=1,(fl&130023424)===0&&(fl=4194304)));var p=on();i=Pr(i,l),i!==null&&(Es(i,l,p),gn(i,p))}function D_(i){var l=i.memoizedState,p=0;l!==null&&(p=l.retryLane),Dv(i,p)}function M_(i,l){var p=0;switch(i.tag){case 13:var g=i.stateNode,x=i.memoizedState;x!==null&&(p=x.retryLane);break;case 19:g=i.stateNode;break;default:throw Error(n(314))}g!==null&&g.delete(l),Dv(i,p)}var Mv;Mv=function(i,l,p){if(i!==null)if(i.memoizedProps!==l.pendingProps||pn.current)mn=!0;else{if((i.lanes&p)===0&&(l.flags&128)===0)return mn=!1,v_(i,l,p);mn=(i.flags&131072)!==0}else mn=!1,yt&&(l.flags&1048576)!==0&&mS(l,Ml,l.index);switch(l.lanes=0,l.tag){case 2:var g=l.type;Xl(i,l),i=l.pendingProps;var x=ki(l,Kt.current);Ri(l,p),x=ep(null,l,g,i,x,p);var S=tp();return l.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,fn(g)?(S=!0,Ol(l)):S=!1,l.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,qd(l),x.updater=Yl,l.stateNode=x,x._reactInternals=l,op(l,g,i,p),l=dp(null,l,g,!0,S,p)):(l.tag=0,yt&&S&&Fd(l),sn(null,l,x,p),l=l.child),l;case 16:g=l.elementType;e:{switch(Xl(i,l),i=l.pendingProps,x=g._init,g=x(g._payload),l.type=g,x=l.tag=F_(g),i=tr(g,i),x){case 0:l=cp(null,l,g,i,p);break e;case 1:l=ov(null,l,g,i,p);break e;case 11:l=nv(null,l,g,i,p);break e;case 14:l=rv(null,l,g,tr(g.type,i),p);break e}throw Error(n(306,g,""))}return l;case 0:return g=l.type,x=l.pendingProps,x=l.elementType===g?x:tr(g,x),cp(i,l,g,x,p);case 1:return g=l.type,x=l.pendingProps,x=l.elementType===g?x:tr(g,x),ov(i,l,g,x,p);case 3:e:{if(lv(l),i===null)throw Error(n(387));g=l.pendingProps,S=l.memoizedState,x=S.element,wS(i,l),$l(l,g,null,p);var I=l.memoizedState;if(g=I.element,S.isDehydrated)if(S={element:g,isDehydrated:!1,cache:I.cache,pendingSuspenseBoundaries:I.pendingSuspenseBoundaries,transitions:I.transitions},l.updateQueue.baseState=S,l.memoizedState=S,l.flags&256){x=Oi(Error(n(423)),l),l=uv(i,l,g,p,x);break e}else if(g!==x){x=Oi(Error(n(424)),l),l=uv(i,l,g,p,x);break e}else for(Tn=ta(l.stateNode.containerInfo.firstChild),kn=l,yt=!0,er=null,p=SS(l,null,g,p),l.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Ai(),g===x){l=Ur(i,l,p);break e}sn(i,l,g,p)}l=l.child}return l;case 5:return NS(l),i===null&&Ud(l),g=l.type,x=l.pendingProps,S=i!==null?i.memoizedProps:null,I=x.children,_d(g,x)?I=null:S!==null&&_d(g,S)&&(l.flags|=32),sv(i,l),sn(i,l,I,p),l.child;case 6:return i===null&&Ud(l),null;case 13:return cv(i,l,p);case 4:return Yd(l,l.stateNode.containerInfo),g=l.pendingProps,i===null?l.child=Ii(l,null,g,p):sn(i,l,g,p),l.child;case 11:return g=l.type,x=l.pendingProps,x=l.elementType===g?x:tr(g,x),nv(i,l,g,x,p);case 7:return sn(i,l,l.pendingProps,p),l.child;case 8:return sn(i,l,l.pendingProps.children,p),l.child;case 12:return sn(i,l,l.pendingProps.children,p),l.child;case 10:e:{if(g=l.type._context,x=l.pendingProps,S=l.memoizedProps,I=x.value,dt(Pl,g._currentValue),g._currentValue=I,S!==null)if(Jn(S.value,I)){if(S.children===x.children&&!pn.current){l=Ur(i,l,p);break e}}else for(S=l.child,S!==null&&(S.return=l);S!==null;){var U=S.dependencies;if(U!==null){I=S.child;for(var z=U.firstContext;z!==null;){if(z.context===g){if(S.tag===1){z=Br(-1,p&-p),z.tag=2;var Q=S.updateQueue;if(Q!==null){Q=Q.shared;var se=Q.pending;se===null?z.next=z:(z.next=se.next,se.next=z),Q.pending=z}}S.lanes|=p,z=S.alternate,z!==null&&(z.lanes|=p),Vd(S.return,p,l),U.lanes|=p;break}z=z.next}}else if(S.tag===10)I=S.type===l.type?null:S.child;else if(S.tag===18){if(I=S.return,I===null)throw Error(n(341));I.lanes|=p,U=I.alternate,U!==null&&(U.lanes|=p),Vd(I,p,l),I=S.sibling}else I=S.child;if(I!==null)I.return=S;else for(I=S;I!==null;){if(I===l){I=null;break}if(S=I.sibling,S!==null){S.return=I.return,I=S;break}I=I.return}S=I}sn(i,l,x.children,p),l=l.child}return l;case 9:return x=l.type,g=l.pendingProps.children,Ri(l,p),x=Un(x),g=g(x),l.flags|=1,sn(i,l,g,p),l.child;case 14:return g=l.type,x=tr(g,l.pendingProps),x=tr(g.type,x),rv(i,l,g,x,p);case 15:return av(i,l,l.type,l.pendingProps,p);case 17:return g=l.type,x=l.pendingProps,x=l.elementType===g?x:tr(g,x),Xl(i,l),l.tag=1,fn(g)?(i=!0,Ol(l)):i=!1,Ri(l,p),KS(l,g,x),op(l,g,x,p),dp(null,l,g,!0,i,p);case 19:return pv(i,l,p);case 22:return iv(i,l,p)}throw Error(n(156,l.tag))};function jv(i,l){return hE(i,l)}function j_(i,l,p,g){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(i,l,p,g){return new j_(i,l,p,g)}function _p(i){return i=i.prototype,!(!i||!i.isReactComponent)}function F_(i){if(typeof i=="function")return _p(i)?1:0;if(i!=null){if(i=i.$$typeof,i===H)return 11;if(i===Y)return 14}return 2}function pa(i,l){var p=i.alternate;return p===null?(p=Gn(i.tag,l,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=l,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&14680064,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,l=i.dependencies,p.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p}function ou(i,l,p,g,x,S){var I=2;if(g=i,typeof i=="function")_p(i)&&(I=1);else if(typeof i=="string")I=5;else e:switch(i){case R:return Ha(p.children,x,S,l);case P:I=8,x|=8;break;case B:return i=Gn(12,p,l,x|2),i.elementType=B,i.lanes=S,i;case Z:return i=Gn(13,p,l,x),i.elementType=Z,i.lanes=S,i;case q:return i=Gn(19,p,l,x),i.elementType=q,i.lanes=S,i;case J:return lu(p,x,S,l);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case O:I=10;break e;case $:I=9;break e;case H:I=11;break e;case Y:I=14;break e;case ae:I=16,g=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return l=Gn(I,p,l,x),l.elementType=i,l.type=g,l.lanes=S,l}function Ha(i,l,p,g){return i=Gn(7,i,g,l),i.lanes=p,i}function lu(i,l,p,g){return i=Gn(22,i,g,l),i.elementType=J,i.lanes=p,i.stateNode={isHidden:!1},i}function Op(i,l,p){return i=Gn(6,i,null,l),i.lanes=p,i}function Lp(i,l,p){return l=Gn(4,i.children!==null?i.children:[],i.key,l),l.lanes=p,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}function P_(i,l,p,g,x){this.tag=l,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sd(0),this.expirationTimes=sd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sd(0),this.identifierPrefix=g,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Dp(i,l,p,g,x,S,I,U,z){return i=new P_(i,l,p,U,z),l===1?(l=1,S===!0&&(l|=8)):l=0,S=Gn(3,null,null,l),i.current=S,S.stateNode=i,S.memoizedState={element:g,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},qd(S),i}function B_(i,l,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:g==null?null:""+g,children:i,containerInfo:l,implementation:p}}function Fv(i){if(!i)return ra;i=i._reactInternals;e:{if(Oa(i)!==i||i.tag!==1)throw Error(n(170));var l=i;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(fn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(n(171))}if(i.tag===1){var p=i.type;if(fn(p))return dS(i,p,l)}return l}function Pv(i,l,p,g,x,S,I,U,z){return i=Dp(p,g,!0,i,x,S,I,U,z),i.context=Fv(null),p=i.current,g=on(),x=ca(p),S=Br(g,x),S.callback=l??null,sa(p,S,x),i.current.lanes=x,Es(i,x,g),gn(i,g),i}function uu(i,l,p,g){var x=l.current,S=on(),I=ca(x);return p=Fv(p),l.context===null?l.context=p:l.pendingContext=p,l=Br(S,I),l.payload={element:i},g=g===void 0?null:g,g!==null&&(l.callback=g),i=sa(x,l,I),i!==null&&(ar(i,x,I,S),Ul(i,x,I)),I}function cu(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Bv(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<l?p:l}}function Mp(i,l){Bv(i,l),(i=i.alternate)&&Bv(i,l)}function U_(){return null}var Uv=typeof reportError=="function"?reportError:function(i){console.error(i)};function jp(i){this._internalRoot=i}du.prototype.render=jp.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(n(409));uu(i,l,null,null)},du.prototype.unmount=jp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;$a(function(){uu(null,i,null,null)}),l[Dr]=null}};function du(i){this._internalRoot=i}du.prototype.unstable_scheduleHydration=function(i){if(i){var l=wE();i={blockedOn:null,target:i,priority:l};for(var p=0;p<Qr.length&&l!==0&&l<Qr[p].priority;p++);Qr.splice(p,0,i),p===0&&NE(i)}};function Fp(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function pu(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function $v(){}function $_(i,l,p,g,x){if(x){if(typeof g=="function"){var S=g;g=function(){var Q=cu(I);S.call(Q)}}var I=Pv(l,g,i,0,null,!1,!1,"",$v);return i._reactRootContainer=I,i[Dr]=I.current,Ds(i.nodeType===8?i.parentNode:i),$a(),I}for(;x=i.lastChild;)i.removeChild(x);if(typeof g=="function"){var U=g;g=function(){var Q=cu(z);U.call(Q)}}var z=Dp(i,0,!1,null,null,!1,!1,"",$v);return i._reactRootContainer=z,i[Dr]=z.current,Ds(i.nodeType===8?i.parentNode:i),$a(function(){uu(l,z,p,g)}),z}function fu(i,l,p,g,x){var S=p._reactRootContainer;if(S){var I=S;if(typeof x=="function"){var U=x;x=function(){var z=cu(I);U.call(z)}}uu(l,I,i,x)}else I=$_(p,l,i,x,g);return cu(I)}SE=function(i){switch(i.tag){case 3:var l=i.stateNode;if(l.current.memoizedState.isDehydrated){var p=xs(l.pendingLanes);p!==0&&(od(l,p|1),gn(l,At()),(Qe&6)===0&&(Mi=At()+500,aa()))}break;case 13:$a(function(){var g=Pr(i,1);if(g!==null){var x=on();ar(g,i,1,x)}}),Mp(i,1)}},ld=function(i){if(i.tag===13){var l=Pr(i,134217728);if(l!==null){var p=on();ar(l,i,134217728,p)}Mp(i,134217728)}},vE=function(i){if(i.tag===13){var l=ca(i),p=Pr(i,l);if(p!==null){var g=on();ar(p,i,l,g)}Mp(i,l)}},wE=function(){return it},kE=function(i,l){var p=it;try{return it=i,l()}finally{it=p}},ed=function(i,l,p){switch(l){case"input":if(kt(i,p),l=p.name,p.type==="radio"&&l!=null){for(p=i;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<p.length;l++){var g=p[l];if(g!==i&&g.form===i.form){var x=Rl(g);if(!x)throw Error(n(90));qe(g),kt(g,x)}}}break;case"textarea":Xn(i,p);break;case"select":l=p.value,l!=null&&Mn(i,!!p.multiple,l,!1)}},lE=Ip,uE=$a;var z_={usingClientEntryPoint:!1,Events:[Fs,vi,Rl,sE,oE,Ip]},Zs={findFiberByHostInstance:La,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},G_={bundleType:Zs.bundleType,version:Zs.version,rendererPackageName:Zs.rendererPackageName,rendererConfig:Zs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=fE(i),i===null?null:i.stateNode},findFiberByHostInstance:Zs.findFiberByHostInstance||U_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mu.isDisabled&&mu.supportsFiber)try{dl=mu.inject(G_),br=mu}catch{}}return bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z_,bn.createPortal=function(i,l){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fp(l))throw Error(n(200));return B_(i,l,null,p)},bn.createRoot=function(i,l){if(!Fp(i))throw Error(n(299));var p=!1,g="",x=Uv;return l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(x=l.onRecoverableError)),l=Dp(i,1,!1,null,null,p,!1,g,x),i[Dr]=l.current,Ds(i.nodeType===8?i.parentNode:i),new jp(l)},bn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var l=i._reactInternals;if(l===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=fE(l),i=i===null?null:i.stateNode,i},bn.flushSync=function(i){return $a(i)},bn.hydrate=function(i,l,p){if(!pu(l))throw Error(n(200));return fu(null,i,l,!0,p)},bn.hydrateRoot=function(i,l,p){if(!Fp(i))throw Error(n(405));var g=p!=null&&p.hydratedSources||null,x=!1,S="",I=Uv;if(p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(S=p.identifierPrefix),p.onRecoverableError!==void 0&&(I=p.onRecoverableError)),l=Pv(l,null,i,1,p??null,x,!1,S,I),i[Dr]=l.current,Ds(i),g)for(i=0;i<g.length;i++)p=g[i],x=p._getVersion,x=x(p._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[p,x]:l.mutableSourceEagerHydrationData.push(p,x);return new du(l)},bn.render=function(i,l,p){if(!pu(l))throw Error(n(200));return fu(null,i,l,!1,p)},bn.unmountComponentAtNode=function(i){if(!pu(i))throw Error(n(40));return i._reactRootContainer?($a(function(){fu(null,null,i,!1,function(){i._reactRootContainer=null,i[Dr]=null})}),!0):!1},bn.unstable_batchedUpdates=Ip,bn.unstable_renderSubtreeIntoContainer=function(i,l,p,g){if(!pu(p))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return fu(i,l,p,!1,g)},bn.version="18.3.1-next-f1338f8080-20240426",bn}var Kv;function uN(){if(Kv)return Up.exports;Kv=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(t){console.error(t)}}return e(),Up.exports=X_(),Up.exports}var Xv;function Z_(){if(Xv)return hu;Xv=1;var e=uN();return hu.createRoot=e.createRoot,hu.hydrateRoot=e.hydrateRoot,hu}var Q_=Z_();/**
|
|
41
|
-
* react-router v7.14.0
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Remix Software Inc.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
-
*
|
|
48
|
-
* @license MIT
|
|
49
|
-
*/var Zv="popstate";function Qv(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function J_(e={}){function t(r,a){var f;let s=(f=a.state)==null?void 0:f.masked,{pathname:o,search:c,hash:d}=s||r.location;return $f("",{pathname:o,search:c,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:wo(a)}return tO(t,n,null,e)}function St(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function pr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function eO(){return Math.random().toString(36).substring(2,10)}function Jv(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function $f(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?es(t):t,state:n,key:t&&t.key||r||eO(),unstable_mask:a}}function wo({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function es(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function tO(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,o=a.history,c="POP",d=null,f=m();f==null&&(f=0,o.replaceState({...o.state,idx:f},""));function m(){return(o.state||{idx:null}).idx}function h(){c="POP";let w=m(),v=w==null?null:w-f;f=w,d&&d({action:c,location:k.location,delta:v})}function b(w,v){c="PUSH";let N=Qv(w)?w:$f(k.location,w,v);f=m()+1;let A=Jv(N,f),_=k.createHref(N.unstable_mask||N);try{o.pushState(A,"",_)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(_)}s&&d&&d({action:c,location:k.location,delta:1})}function y(w,v){c="REPLACE";let N=Qv(w)?w:$f(k.location,w,v);f=m();let A=Jv(N,f),_=k.createHref(N.unstable_mask||N);o.replaceState(A,"",_),s&&d&&d({action:c,location:k.location,delta:0})}function E(w){return nO(w)}let k={get action(){return c},get location(){return e(a,o)},listen(w){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Zv,h),d=w,()=>{a.removeEventListener(Zv,h),d=null}},createHref(w){return t(a,w)},createURL:E,encodeLocation(w){let v=E(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:b,replace:y,go(w){return o.go(w)}};return k}function nO(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),St(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:wo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function cN(e,t,n="/"){return rO(e,t,n,!1)}function rO(e,t,n,r){let a=typeof t=="string"?es(t):t,s=Hr(a.pathname||"/",n);if(s==null)return null;let o=dN(e);aO(o);let c=null;for(let d=0;c==null&&d<o.length;++d){let f=hO(s);c=fO(o[d],f,r)}return c}function dN(e,t=[],n=[],r="",a=!1){let s=(o,c,d=a,f)=>{let m={relativePath:f===void 0?o.path||"":f,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&d)return;St(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let h=Ar([r,m.relativePath]),b=n.concat(m);o.children&&o.children.length>0&&(St(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),dN(o.children,t,b,h,d)),!(o.path==null&&!o.index)&&t.push({path:h,score:dO(h,o.index),routesMeta:b})};return e.forEach((o,c)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))s(o,c);else for(let f of pN(o.path))s(o,c,!0,f)}),t}function pN(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let o=pN(r.join("/")),c=[];return c.push(...o.map(d=>d===""?s:[s,d].join("/"))),a&&c.push(...o),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function aO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var iO=/^:[\w-]+$/,sO=3,oO=2,lO=1,uO=10,cO=-2,ew=e=>e==="*";function dO(e,t){let n=e.split("/"),r=n.length;return n.some(ew)&&(r+=cO),t&&(r+=oO),n.filter(a=>!ew(a)).reduce((a,s)=>a+(iO.test(s)?sO:s===""?lO:uO),r)}function pO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function fO(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",o=[];for(let c=0;c<r.length;++c){let d=r[c],f=c===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",h=Xu({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),b=d.route;if(!h&&f&&n&&!r[r.length-1].route.index&&(h=Xu({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!h)return null;Object.assign(a,h.params),o.push({params:a,pathname:Ar([s,h.pathname]),pathnameBase:xO(Ar([s,h.pathnameBase])),route:b}),h.pathnameBase!=="/"&&(s=Ar([s,h.pathnameBase]))}return o}function Xu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=mO(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],o=s.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:h},b)=>{if(m==="*"){let E=c[b]||"";o=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const y=c[b];return h&&!y?f[m]=void 0:f[m]=(y||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:o,pattern:e}}function mO(e,t=!1,n=!0){pr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,d,f,m)=>{if(r.push({paramName:c,isOptional:d!=null}),d){let h=m.charAt(f+o.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function hO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return pr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Hr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var gO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function bO(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?es(e):e,s;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?s=tw(n.substring(1),"/"):s=tw(n,t)):s=t,{pathname:s,search:EO(r),hash:SO(a)}}function tw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Gp(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function yO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Bm(e){let t=yO(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function vc(e,t,n,r=!1){let a;typeof e=="string"?a=es(e):(a={...e},St(!a.pathname||!a.pathname.includes("?"),Gp("?","pathname","search",a)),St(!a.pathname||!a.pathname.includes("#"),Gp("#","pathname","hash",a)),St(!a.search||!a.search.includes("#"),Gp("#","search","hash",a)));let s=e===""||a.pathname==="",o=s?"/":a.pathname,c;if(o==null)c=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let b=o.split("/");for(;b[0]==="..";)b.shift(),h-=1;a.pathname=b.join("/")}c=h>=0?t[h]:"/"}let d=bO(a,c),f=o&&o!=="/"&&o.endsWith("/"),m=(s||o===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var Ar=e=>e.join("/").replace(/\/\/+/g,"/"),xO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,SO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,vO=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function wO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function kO(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var fN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function mN(e,t){let n=e;if(typeof n!="string"||!gO.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(fN)try{let s=new URL(window.location.href),o=n.startsWith("//")?new URL(s.protocol+n):new URL(n),c=Hr(o.pathname,t);o.origin===s.origin&&c!=null?n=c+o.search+o.hash:a=!0}catch{pr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var hN=["POST","PUT","PATCH","DELETE"];new Set(hN);var TO=["GET",...hN];new Set(TO);var ts=T.createContext(null);ts.displayName="DataRouter";var wc=T.createContext(null);wc.displayName="DataRouterState";var gN=T.createContext(!1);function NO(){return T.useContext(gN)}var bN=T.createContext({isTransitioning:!1});bN.displayName="ViewTransition";var AO=T.createContext(new Map);AO.displayName="Fetchers";var IO=T.createContext(null);IO.displayName="Await";var On=T.createContext(null);On.displayName="Navigation";var $o=T.createContext(null);$o.displayName="Location";var mr=T.createContext({outlet:null,matches:[],isDataRoute:!1});mr.displayName="Route";var Um=T.createContext(null);Um.displayName="RouteError";var yN="REACT_ROUTER_ERROR",CO="REDIRECT",RO="ROUTE_ERROR_RESPONSE";function _O(e){if(e.startsWith(`${yN}:${CO}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function OO(e){if(e.startsWith(`${yN}:${RO}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new vO(t.status,t.statusText,t.data)}catch{}}function LO(e,{relative:t}={}){St(ns(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=T.useContext(On),{hash:a,pathname:s,search:o}=zo(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:Ar([n,s])),r.createHref({pathname:c,search:o,hash:a})}function ns(){return T.useContext($o)!=null}function hr(){return St(ns(),"useLocation() may be used only in the context of a <Router> component."),T.useContext($o).location}var xN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function EN(e){T.useContext(On).static||T.useLayoutEffect(e)}function Ln(){let{isDataRoute:e}=T.useContext(mr);return e?WO():DO()}function DO(){St(ns(),"useNavigate() may be used only in the context of a <Router> component.");let e=T.useContext(ts),{basename:t,navigator:n}=T.useContext(On),{matches:r}=T.useContext(mr),{pathname:a}=hr(),s=JSON.stringify(Bm(r)),o=T.useRef(!1);return EN(()=>{o.current=!0}),T.useCallback((d,f={})=>{if(pr(o.current,xN),!o.current)return;if(typeof d=="number"){n.go(d);return}let m=vc(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ar([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,s,a,e])}T.createContext(null);function SN(){let{matches:e}=T.useContext(mr),t=e[e.length-1];return t?t.params:{}}function zo(e,{relative:t}={}){let{matches:n}=T.useContext(mr),{pathname:r}=hr(),a=JSON.stringify(Bm(n));return T.useMemo(()=>vc(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function MO(e,t){return vN(e,t)}function vN(e,t,n){var w;St(ns(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=T.useContext(On),{matches:a}=T.useContext(mr),s=a[a.length-1],o=s?s.params:{},c=s?s.pathname:"/",d=s?s.pathnameBase:"/",f=s&&s.route;{let v=f&&f.path||"";kN(c,!f||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
-
|
|
51
|
-
Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let m=hr(),h;if(t){let v=typeof t=="string"?es(t):t;St(d==="/"||((w=v.pathname)==null?void 0:w.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${v.pathname}" was given in the \`location\` prop.`),h=v}else h=m;let b=h.pathname||"/",y=b;if(d!=="/"){let v=d.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(v.length).join("/")}let E=cN(e,{pathname:y});pr(f||E!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),pr(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=UO(E&&E.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:Ar([d,r.encodeLocation?r.encodeLocation(v.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?d:Ar([d,r.encodeLocation?r.encodeLocation(v.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),a,n);return t&&k?T.createElement($o.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...h},navigationType:"POP"}},k):k}function jO(){let e=VO(),t=wO(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:s},"ErrorBoundary")," or"," ",T.createElement("code",{style:s},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:a},n):null,o)}var FO=T.createElement(jO,null),wN=class extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=OO(e.digest);n&&(e=n)}let t=e!==void 0?T.createElement(mr.Provider,{value:this.props.routeContext},T.createElement(Um.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?T.createElement(PO,{error:e},t):t}};wN.contextType=gN;var Hp=new WeakMap;function PO({children:e,error:t}){let{basename:n}=T.useContext(On);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=_O(t.digest);if(r){let a=Hp.get(t);if(a)throw a;let s=mN(r.location,n);if(fN&&!Hp.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Hp.set(t,o),o}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function BO({routeContext:e,match:t,children:n}){let r=T.useContext(ts);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),T.createElement(mr.Provider,{value:e},n)}function UO(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=r==null?void 0:r.errors;if(s!=null){let m=a.findIndex(h=>h.route.id&&(s==null?void 0:s[h.route.id])!==void 0);St(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let o=!1,c=-1;if(n&&r){o=r.renderFallback;for(let m=0;m<a.length;m++){let h=a[m];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=m),h.route.id){let{loaderData:b,errors:y}=r,E=h.route.loader&&!b.hasOwnProperty(h.route.id)&&(!y||y[h.route.id]===void 0);if(h.route.lazy||E){n.isStatic&&(o=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let d=n==null?void 0:n.onError,f=r&&d?(m,h)=>{var b,y;d(m,{location:r.location,params:((y=(b=r.matches)==null?void 0:b[0])==null?void 0:y.params)??{},unstable_pattern:kO(r.matches),errorInfo:h})}:void 0;return a.reduceRight((m,h,b)=>{let y,E=!1,k=null,w=null;r&&(y=s&&h.route.id?s[h.route.id]:void 0,k=h.route.errorElement||FO,o&&(c<0&&b===0?(kN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,w=null):c===b&&(E=!0,w=h.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,b+1)),N=()=>{let A;return y?A=k:E?A=w:h.route.Component?A=T.createElement(h.route.Component,null):h.route.element?A=h.route.element:A=m,T.createElement(BO,{match:h,routeContext:{outlet:m,matches:v,isDataRoute:r!=null},children:A})};return r&&(h.route.ErrorBoundary||h.route.errorElement||b===0)?T.createElement(wN,{location:r.location,revalidation:r.revalidation,component:k,error:y,children:N(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:f}):N()},null)}function $m(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $O(e){let t=T.useContext(ts);return St(t,$m(e)),t}function zO(e){let t=T.useContext(wc);return St(t,$m(e)),t}function GO(e){let t=T.useContext(mr);return St(t,$m(e)),t}function zm(e){let t=GO(e),n=t.matches[t.matches.length-1];return St(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function HO(){return zm("useRouteId")}function VO(){var r;let e=T.useContext(Um),t=zO("useRouteError"),n=zm("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function WO(){let{router:e}=$O("useNavigate"),t=zm("useNavigate"),n=T.useRef(!1);return EN(()=>{n.current=!0}),T.useCallback(async(a,s={})=>{pr(n.current,xN),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var nw={};function kN(e,t,n){!t&&!nw[e]&&(nw[e]=!0,pr(!1,n))}T.memo(qO);function qO({routes:e,future:t,state:n,isStatic:r,onError:a}){return vN(e,void 0,{state:n,isStatic:r,onError:a})}function YO({to:e,replace:t,state:n,relative:r}){St(ns(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=T.useContext(On);pr(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=T.useContext(mr),{pathname:o}=hr(),c=Ln(),d=vc(e,Bm(s),o,r==="path"),f=JSON.stringify(d);return T.useEffect(()=>{c(JSON.parse(f),{replace:t,state:n,relative:r})},[c,f,r,t,n]),null}function uo(e){St(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function KO({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1,unstable_useTransitions:o}){St(!ns(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=T.useMemo(()=>({basename:c,navigator:a,static:s,unstable_useTransitions:o,future:{}}),[c,a,s,o]);typeof n=="string"&&(n=es(n));let{pathname:f="/",search:m="",hash:h="",state:b=null,key:y="default",unstable_mask:E}=n,k=T.useMemo(()=>{let w=Hr(f,c);return w==null?null:{location:{pathname:w,search:m,hash:h,state:b,key:y,unstable_mask:E},navigationType:r}},[c,f,m,h,b,y,r,E]);return pr(k!=null,`<Router basename="${c}"> is not able to match the URL "${f}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:T.createElement(On.Provider,{value:d},T.createElement($o.Provider,{children:t,value:k}))}function XO({children:e,location:t}){return MO(zf(e),t)}function zf(e,t=[]){let n=[];return T.Children.forEach(e,(r,a)=>{if(!T.isValidElement(r))return;let s=[...t,a];if(r.type===T.Fragment){n.push.apply(n,zf(r.props.children,s));return}St(r.type===uo,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),St(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=zf(r.props.children,s)),n.push(o)}),n}var Du="get",Mu="application/x-www-form-urlencoded";function kc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function ZO(e){return kc(e)&&e.tagName.toLowerCase()==="button"}function QO(e){return kc(e)&&e.tagName.toLowerCase()==="form"}function JO(e){return kc(e)&&e.tagName.toLowerCase()==="input"}function eL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tL(e,t){return e.button===0&&(!t||t==="_self")&&!eL(e)}var gu=null;function nL(){if(gu===null)try{new FormData(document.createElement("form"),0),gu=!1}catch{gu=!0}return gu}var rL=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vp(e){return e!=null&&!rL.has(e)?(pr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mu}"`),null):e}function aL(e,t){let n,r,a,s,o;if(QO(e)){let c=e.getAttribute("action");r=c?Hr(c,t):null,n=e.getAttribute("method")||Du,a=Vp(e.getAttribute("enctype"))||Mu,s=new FormData(e)}else if(ZO(e)||JO(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Hr(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Du,a=Vp(e.getAttribute("formenctype"))||Vp(c.getAttribute("enctype"))||Mu,s=new FormData(c,e),!nL()){let{name:f,type:m,value:h}=e;if(m==="image"){let b=f?`${f}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else f&&s.append(f,h)}}else{if(kc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Du,r=null,a=Mu,o=e}return s&&a==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Gm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function TN(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&Hr(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}async function iL(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sL(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function oL(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let o=await iL(s,n);return o.links?o.links():[]}return[]}));return dL(r.flat(1).filter(sL).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function rw(e,t,n,r,a,s){let o=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,c=(d,f)=>{var m;return n[f].pathname!==d.pathname||((m=n[f].route.path)==null?void 0:m.endsWith("*"))&&n[f].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,f)=>o(d,f)||c(d,f)):s==="data"?t.filter((d,f)=>{var h;let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(o(d,f)||c(d,f))return!0;if(d.route.shouldRevalidate){let b=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((h=n[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function lL(e,t,{includeHydrateFallback:n}={}){return uL(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function uL(e){return[...new Set(e)]}function cL(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function dL(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(cL(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function Hm(){let e=T.useContext(ts);return Gm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function pL(){let e=T.useContext(wc);return Gm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Vm=T.createContext(void 0);Vm.displayName="FrameworkContext";function Wm(){let e=T.useContext(Vm);return Gm(e,"You must render this element inside a <HydratedRouter> element"),e}function fL(e,t){let n=T.useContext(Vm),[r,a]=T.useState(!1),[s,o]=T.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:h}=t,b=T.useRef(null);T.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let k=v=>{v.forEach(N=>{o(N.isIntersecting)})},w=new IntersectionObserver(k,{threshold:.5});return b.current&&w.observe(b.current),()=>{w.disconnect()}}},[e]),T.useEffect(()=>{if(r){let k=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(k)}}},[r]);let y=()=>{a(!0)},E=()=>{a(!1),o(!1)};return n?e!=="intent"?[s,b,{}]:[s,b,{onFocus:Js(c,y),onBlur:Js(d,E),onMouseEnter:Js(f,y),onMouseLeave:Js(m,E),onTouchStart:Js(h,y)}]:[!1,b,{}]}function Js(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function mL({page:e,...t}){let n=NO(),{router:r}=Hm(),a=T.useMemo(()=>cN(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?T.createElement(gL,{page:e,matches:a,...t}):T.createElement(bL,{page:e,matches:a,...t}):null}function hL(e){let{manifest:t,routeModules:n}=Wm(),[r,a]=T.useState([]);return T.useEffect(()=>{let s=!1;return oL(e,t,n).then(o=>{s||a(o)}),()=>{s=!0}},[e,t,n]),r}function gL({page:e,matches:t,...n}){let r=hr(),{future:a}=Wm(),{basename:s}=Hm(),o=T.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let c=TN(e,s,a.unstable_trailingSlashAwareDataRequests,"rsc"),d=!1,f=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?d=!0:f.push(m.route.id);return d&&f.length>0&&c.searchParams.set("_routes",f.join(",")),[c.pathname+c.search]},[s,a.unstable_trailingSlashAwareDataRequests,e,r,t]);return T.createElement(T.Fragment,null,o.map(c=>T.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function bL({page:e,matches:t,...n}){let r=hr(),{future:a,manifest:s,routeModules:o}=Wm(),{basename:c}=Hm(),{loaderData:d,matches:f}=pL(),m=T.useMemo(()=>rw(e,t,f,s,r,"data"),[e,t,f,s,r]),h=T.useMemo(()=>rw(e,t,f,s,r,"assets"),[e,t,f,s,r]),b=T.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let k=new Set,w=!1;if(t.forEach(N=>{var _;let A=s.routes[N.route.id];!A||!A.hasLoader||(!m.some(M=>M.route.id===N.route.id)&&N.route.id in d&&((_=o[N.route.id])!=null&&_.shouldRevalidate)||A.hasClientLoader?w=!0:k.add(N.route.id))}),k.size===0)return[];let v=TN(e,c,a.unstable_trailingSlashAwareDataRequests,"data");return w&&k.size>0&&v.searchParams.set("_routes",t.filter(N=>k.has(N.route.id)).map(N=>N.route.id).join(",")),[v.pathname+v.search]},[c,a.unstable_trailingSlashAwareDataRequests,d,r,s,m,t,e,o]),y=T.useMemo(()=>lL(h,s),[h,s]),E=hL(h);return T.createElement(T.Fragment,null,b.map(k=>T.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...n})),y.map(k=>T.createElement("link",{key:k,rel:"modulepreload",href:k,...n})),E.map(({key:k,link:w})=>T.createElement("link",{key:k,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function yL(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var xL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{xL&&(window.__reactRouterVersion="7.14.0")}catch{}function EL({basename:e,children:t,unstable_useTransitions:n,window:r}){let a=T.useRef();a.current==null&&(a.current=J_({window:r,v5Compat:!0}));let s=a.current,[o,c]=T.useState({action:s.action,location:s.location}),d=T.useCallback(f=>{n===!1?c(f):T.startTransition(()=>c(f))},[n]);return T.useLayoutEffect(()=>s.listen(d),[s,d]),T.createElement(KO,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:s,unstable_useTransitions:n})}var NN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AN=T.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:o,unstable_mask:c,state:d,target:f,to:m,preventScrollReset:h,viewTransition:b,unstable_defaultShouldRevalidate:y,...E},k){let{basename:w,navigator:v,unstable_useTransitions:N}=T.useContext(On),A=typeof m=="string"&&NN.test(m),_=mN(m,w);m=_.to;let M=LO(m,{relative:a}),D=hr(),R=null;if(c){let Y=vc(c,[],D.unstable_mask?D.unstable_mask.pathname:"/",!0);w!=="/"&&(Y.pathname=Y.pathname==="/"?w:Ar([w,Y.pathname])),R=v.createHref(Y)}let[P,B,O]=fL(r,E),$=wL(m,{replace:o,unstable_mask:c,state:d,target:f,preventScrollReset:h,relative:a,viewTransition:b,unstable_defaultShouldRevalidate:y,unstable_useTransitions:N});function H(Y){t&&t(Y),Y.defaultPrevented||$(Y)}let Z=!(_.isExternal||s),q=T.createElement("a",{...E,...O,href:(Z?R:void 0)||_.absoluteURL||M,onClick:Z?H:t,ref:yL(k,B),target:f,"data-discover":!A&&n==="render"?"true":void 0});return P&&!A?T.createElement(T.Fragment,null,q,T.createElement(mL,{page:M})):q});AN.displayName="Link";var IN=T.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:o,viewTransition:c,children:d,...f},m){let h=zo(o,{relative:f.relative}),b=hr(),y=T.useContext(wc),{navigator:E,basename:k}=T.useContext(On),w=y!=null&&IL(h)&&c===!0,v=E.encodeLocation?E.encodeLocation(h).pathname:h.pathname,N=b.pathname,A=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(N=N.toLowerCase(),A=A?A.toLowerCase():null,v=v.toLowerCase()),A&&k&&(A=Hr(A,k)||A);const _=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let M=N===v||!a&&N.startsWith(v)&&N.charAt(_)==="/",D=A!=null&&(A===v||!a&&A.startsWith(v)&&A.charAt(v.length)==="/"),R={isActive:M,isPending:D,isTransitioning:w},P=M?t:void 0,B;typeof r=="function"?B=r(R):B=[r,M?"active":null,D?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let O=typeof s=="function"?s(R):s;return T.createElement(AN,{...f,"aria-current":P,className:B,ref:m,style:O,to:o,viewTransition:c},typeof d=="function"?d(R):d)});IN.displayName="NavLink";var SL=T.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:o=Du,action:c,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:h,unstable_defaultShouldRevalidate:b,...y},E)=>{let{unstable_useTransitions:k}=T.useContext(On),w=NL(),v=AL(c,{relative:f}),N=o.toLowerCase()==="get"?"get":"post",A=typeof c=="string"&&NN.test(c),_=M=>{if(d&&d(M),M.defaultPrevented)return;M.preventDefault();let D=M.nativeEvent.submitter,R=(D==null?void 0:D.getAttribute("formmethod"))||o,P=()=>w(D||M.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:a,state:s,relative:f,preventScrollReset:m,viewTransition:h,unstable_defaultShouldRevalidate:b});k&&n!==!1?T.startTransition(()=>P()):P()};return T.createElement("form",{ref:E,method:N,action:v,onSubmit:r?d:_,...y,"data-discover":!A&&e==="render"?"true":void 0})});SL.displayName="Form";function vL(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function CN(e){let t=T.useContext(ts);return St(t,vL(e)),t}function wL(e,{target:t,replace:n,unstable_mask:r,state:a,preventScrollReset:s,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:d,unstable_useTransitions:f}={}){let m=Ln(),h=hr(),b=zo(e,{relative:o});return T.useCallback(y=>{if(tL(y,t)){y.preventDefault();let E=n!==void 0?n:wo(h)===wo(b),k=()=>m(e,{replace:E,unstable_mask:r,state:a,preventScrollReset:s,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:d});f?T.startTransition(()=>k()):k()}},[h,m,b,n,r,a,t,e,s,o,c,d,f])}var kL=0,TL=()=>`__${String(++kL)}__`;function NL(){let{router:e}=CN("useSubmit"),{basename:t}=T.useContext(On),n=HO(),r=e.fetch,a=e.navigate;return T.useCallback(async(s,o={})=>{let{action:c,method:d,encType:f,formData:m,body:h}=aL(s,t);if(o.navigate===!1){let b=o.fetcherKey||TL();await r(b,n,o.action||c,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:m,body:h,formMethod:o.method||d,formEncType:o.encType||f,flushSync:o.flushSync})}else await a(o.action||c,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:m,body:h,formMethod:o.method||d,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,a,t,n])}function AL(e,{relative:t}={}){let{basename:n}=T.useContext(On),r=T.useContext(mr);St(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...zo(e||".",{relative:t})},o=hr();if(e==null){s.search=o.search;let c=new URLSearchParams(s.search),d=c.getAll("index");if(d.some(m=>m==="")){c.delete("index"),d.filter(h=>h).forEach(h=>c.append("index",h));let m=c.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Ar([n,s.pathname])),wo(s)}function IL(e,{relative:t}={}){let n=T.useContext(bN);St(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=CN("useViewTransitionState"),a=zo(e,{relative:t});if(!n.isTransitioning)return!1;let s=Hr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Hr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xu(a.pathname,o)!=null||Xu(a.pathname,s)!=null}const qm=T.createContext({});function ri(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const CL=typeof window<"u",Ym=CL?T.useLayoutEffect:T.useEffect,Tc=T.createContext(null);function Km(e,t){e.indexOf(t)===-1&&e.push(t)}function Zu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Cr=(e,t,n)=>n>t?t:n<e?e:n;let Xm=()=>{};const va={},RN=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function _N(e){return typeof e=="object"&&e!==null}const ON=e=>/^0[^.\s]+$/u.test(e);function LN(e){let t;return()=>(t===void 0&&(t=e()),t)}const Kn=e=>e,RL=(e,t)=>n=>t(e(n)),Go=(...e)=>e.reduce(RL),ko=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Zm{constructor(){this.subscriptions=[]}add(t){return Km(this.subscriptions,t),()=>Zu(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cn=e=>e*1e3,Vn=e=>e/1e3;function DN(e,t){return t?e*(1e3/t):0}const MN=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_L=1e-7,OL=12;function LL(e,t,n,r,a){let s,o,c=0;do o=t+(n-t)/2,s=MN(o,r,a)-e,s>0?n=o:t=o;while(Math.abs(s)>_L&&++c<OL);return o}function Ho(e,t,n,r){if(e===t&&n===r)return Kn;const a=s=>LL(s,0,1,e,n);return s=>s===0||s===1?s:MN(a(s),t,r)}const jN=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FN=e=>t=>1-e(1-t),PN=Ho(.33,1.53,.69,.99),Qm=FN(PN),BN=jN(Qm),UN=e=>e>=1?1:(e*=2)<1?.5*Qm(e):.5*(2-Math.pow(2,-10*(e-1))),Jm=e=>1-Math.sin(Math.acos(e)),$N=FN(Jm),zN=jN(Jm),DL=Ho(.42,0,1,1),ML=Ho(0,0,.58,1),GN=Ho(.42,0,.58,1),jL=e=>Array.isArray(e)&&typeof e[0]!="number",HN=e=>Array.isArray(e)&&typeof e[0]=="number",FL={linear:Kn,easeIn:DL,easeInOut:GN,easeOut:ML,circIn:Jm,circInOut:zN,circOut:$N,backIn:Qm,backInOut:BN,backOut:PN,anticipate:UN},PL=e=>typeof e=="string",aw=e=>{if(HN(e)){Xm(e.length===4);const[t,n,r,a]=e;return Ho(t,n,r,a)}else if(PL(e))return FL[e];return e},bu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function BL(e,t){let n=new Set,r=new Set,a=!1,s=!1;const o=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){o.has(m)&&(f.schedule(m),e()),m(c)}const f={schedule:(m,h=!1,b=!1)=>{const E=b&&a?n:r;return h&&o.add(m),E.add(m),m},cancel:m=>{r.delete(m),o.delete(m)},process:m=>{if(c=m,a){s=!0;return}a=!0;const h=n;n=r,r=h,n.forEach(d),n.clear(),a=!1,s&&(s=!1,f.process(m))}};return f}const UL=40;function VN(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=bu.reduce((A,_)=>(A[_]=BL(s),A),{}),{setup:c,read:d,resolveKeyframes:f,preUpdate:m,update:h,preRender:b,render:y,postRender:E}=o,k=()=>{const A=va.useManualTiming,_=A?a.timestamp:performance.now();n=!1,A||(a.delta=r?1e3/60:Math.max(Math.min(_-a.timestamp,UL),1)),a.timestamp=_,a.isProcessing=!0,c.process(a),d.process(a),f.process(a),m.process(a),h.process(a),b.process(a),y.process(a),E.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(k))},w=()=>{n=!0,r=!0,a.isProcessing||e(k)};return{schedule:bu.reduce((A,_)=>{const M=o[_];return A[_]=(D,R=!1,P=!1)=>(n||w(),M.schedule(D,R,P)),A},{}),cancel:A=>{for(let _=0;_<bu.length;_++)o[bu[_]].cancel(A)},state:a,steps:o}}const{schedule:st,cancel:Vr,state:qt,steps:Wp}=VN(typeof requestAnimationFrame<"u"?requestAnimationFrame:Kn,!0);let ju;function $L(){ju=void 0}const un={now:()=>(ju===void 0&&un.set(qt.isProcessing||va.useManualTiming?qt.timestamp:performance.now()),ju),set:e=>{ju=e,queueMicrotask($L)}},WN=e=>t=>typeof t=="string"&&t.startsWith(e),qN=WN("--"),zL=WN("var(--"),eh=e=>zL(e)?GL.test(e.split("/*")[0].trim()):!1,GL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function iw(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const rs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},To={...rs,transform:e=>Cr(0,1,e)},yu={...rs,default:1},po=e=>Math.round(e*1e5)/1e5,th=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function HL(e){return e==null}const VL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nh=(e,t)=>n=>!!(typeof n=="string"&&VL.test(n)&&n.startsWith(e)||t&&!HL(n)&&Object.prototype.hasOwnProperty.call(n,t)),YN=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,o,c]=r.match(th);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},WL=e=>Cr(0,255,e),qp={...rs,transform:e=>Math.round(WL(e))},Ka={test:nh("rgb","red"),parse:YN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qp.transform(e)+", "+qp.transform(t)+", "+qp.transform(n)+", "+po(To.transform(r))+")"};function qL(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const Gf={test:nh("#"),parse:qL,transform:Ka.transform},Vo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ha=Vo("deg"),Ir=Vo("%"),ve=Vo("px"),YL=Vo("vh"),KL=Vo("vw"),sw={...Ir,parse:e=>Ir.parse(e)/100,transform:e=>Ir.transform(e*100)},Hi={test:nh("hsl","hue"),parse:YN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ir.transform(po(t))+", "+Ir.transform(po(n))+", "+po(To.transform(r))+")"},Ot={test:e=>Ka.test(e)||Gf.test(e)||Hi.test(e),parse:e=>Ka.test(e)?Ka.parse(e):Hi.test(e)?Hi.parse(e):Gf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ka.transform(e):Hi.transform(e),getAnimatableNone:e=>{const t=Ot.parse(e);return t.alpha=0,Ot.transform(t)}},XL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ZL(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(th))==null?void 0:t.length)||0)+(((n=e.match(XL))==null?void 0:n.length)||0)>0}const KN="number",XN="color",QL="var",JL="var(",ow="${}",eD=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Qi(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const c=t.replace(eD,d=>(Ot.test(d)?(r.color.push(s),a.push(XN),n.push(Ot.parse(d))):d.startsWith(JL)?(r.var.push(s),a.push(QL),n.push(d)):(r.number.push(s),a.push(KN),n.push(parseFloat(d))),++s,ow)).split(ow);return{values:n,split:c,indexes:r,types:a}}function tD(e){return Qi(e).values}function ZN({split:e,types:t}){const n=e.length;return r=>{let a="";for(let s=0;s<n;s++)if(a+=e[s],r[s]!==void 0){const o=t[s];o===KN?a+=po(r[s]):o===XN?a+=Ot.transform(r[s]):a+=r[s]}return a}}function nD(e){return ZN(Qi(e))}const rD=e=>typeof e=="number"?0:Ot.test(e)?Ot.getAnimatableNone(e):e,aD=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:rD(e);function iD(e){const t=Qi(e);return ZN(t)(t.values.map((r,a)=>aD(r,t.split[a])))}const lr={test:ZL,parse:tD,createTransformer:nD,getAnimatableNone:iD};function Yp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sD({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,o=0;if(!t)a=s=o=n;else{const c=n<.5?n*(1+t):n+t-n*t,d=2*n-c;a=Yp(d,c,e+1/3),s=Yp(d,c,e),o=Yp(d,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Qu(e,t){return n=>n>0?t:e}const ht=(e,t,n)=>e+(t-e)*n,Kp=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},oD=[Gf,Ka,Hi],lD=e=>oD.find(t=>t.test(e));function lw(e){const t=lD(e);if(!t)return!1;let n=t.parse(e);return t===Hi&&(n=sD(n)),n}const uw=(e,t)=>{const n=lw(e),r=lw(t);if(!n||!r)return Qu(e,t);const a={...n};return s=>(a.red=Kp(n.red,r.red,s),a.green=Kp(n.green,r.green,s),a.blue=Kp(n.blue,r.blue,s),a.alpha=ht(n.alpha,r.alpha,s),Ka.transform(a))},Hf=new Set(["none","hidden"]);function uD(e,t){return Hf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function cD(e,t){return n=>ht(e,t,n)}function rh(e){return typeof e=="number"?cD:typeof e=="string"?eh(e)?Qu:Ot.test(e)?uw:fD:Array.isArray(e)?QN:typeof e=="object"?Ot.test(e)?uw:dD:Qu}function QN(e,t){const n=[...e],r=n.length,a=e.map((s,o)=>rh(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=a[o](s);return n}}function dD(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=rh(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function pD(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],o=e.indexes[s][r[s]],c=e.values[o]??0;n[a]=c,r[s]++}return n}const fD=(e,t)=>{const n=lr.createTransformer(t),r=Qi(e),a=Qi(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?Hf.has(e)&&!a.values.length||Hf.has(t)&&!r.values.length?uD(e,t):Go(QN(pD(r,a),a.values),n):Qu(e,t)};function JN(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ht(e,t,n):rh(e)(e,t)}const mD=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>st.update(t,n),stop:()=>Vr(t),now:()=>qt.isProcessing?qt.timestamp:un.now()}},eA=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ju=2e4;function ah(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ju;)t+=n,r=e.next(t);return t>=Ju?1/0:t}function hD(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(ah(r),Ju);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:Vn(a)}}const Nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Vf(e,t){return e*Math.sqrt(1-t*t)}const gD=12;function bD(e,t,n){let r=n;for(let a=1;a<gD;a++)r=r-e(r)/t(r);return r}const Xp=.001;function yD({duration:e=Nt.duration,bounce:t=Nt.bounce,velocity:n=Nt.velocity,mass:r=Nt.mass}){let a,s,o=1-t;o=Cr(Nt.minDamping,Nt.maxDamping,o),e=Cr(Nt.minDuration,Nt.maxDuration,Vn(e)),o<1?(a=f=>{const m=f*o,h=m*e,b=m-n,y=Vf(f,o),E=Math.exp(-h);return Xp-b/y*E},s=f=>{const h=f*o*e,b=h*n+n,y=Math.pow(o,2)*Math.pow(f,2)*e,E=Math.exp(-h),k=Vf(Math.pow(f,2),o);return(-a(f)+Xp>0?-1:1)*((b-y)*E)/k}):(a=f=>{const m=Math.exp(-f*e),h=(f-n)*e+1;return-Xp+m*h},s=f=>{const m=Math.exp(-f*e),h=(n-f)*(e*e);return m*h});const c=5/e,d=bD(a,s,c);if(e=Cn(e),isNaN(d))return{stiffness:Nt.stiffness,damping:Nt.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const xD=["duration","bounce"],ED=["stiffness","damping","mass"];function cw(e,t){return t.some(n=>e[n]!==void 0)}function SD(e){let t={velocity:Nt.velocity,stiffness:Nt.stiffness,damping:Nt.damping,mass:Nt.mass,isResolvedFromDuration:!1,...e};if(!cw(e,ED)&&cw(e,xD))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*Cr(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Nt.mass,stiffness:a,damping:s}}else{const n=yD({...e,velocity:0});t={...t,...n,mass:Nt.mass},t.isResolvedFromDuration=!0}return t}function ec(e=Nt.visualDuration,t=Nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:d,damping:f,mass:m,duration:h,velocity:b,isResolvedFromDuration:y}=SD({...n,velocity:-Vn(n.velocity||0)}),E=b||0,k=f/(2*Math.sqrt(d*m)),w=o-s,v=Vn(Math.sqrt(d/m)),N=Math.abs(w)<5;r||(r=N?Nt.restSpeed.granular:Nt.restSpeed.default),a||(a=N?Nt.restDelta.granular:Nt.restDelta.default);let A,_,M,D,R,P;if(k<1)M=Vf(v,k),D=(E+k*v*w)/M,A=O=>{const $=Math.exp(-k*v*O);return o-$*(D*Math.sin(M*O)+w*Math.cos(M*O))},R=k*v*D+w*M,P=k*v*w-D*M,_=O=>Math.exp(-k*v*O)*(R*Math.sin(M*O)+P*Math.cos(M*O));else if(k===1){A=$=>o-Math.exp(-v*$)*(w+(E+v*w)*$);const O=E+v*w;_=$=>Math.exp(-v*$)*(v*O*$-E)}else{const O=v*Math.sqrt(k*k-1);A=q=>{const Y=Math.exp(-k*v*q),ae=Math.min(O*q,300);return o-Y*((E+k*v*w)*Math.sinh(ae)+O*w*Math.cosh(ae))/O};const $=(E+k*v*w)/O,H=k*v*$-w*O,Z=k*v*w-$*O;_=q=>{const Y=Math.exp(-k*v*q),ae=Math.min(O*q,300);return Y*(H*Math.sinh(ae)+Z*Math.cosh(ae))}}const B={calculatedDuration:y&&h||null,velocity:O=>Cn(_(O)),next:O=>{if(!y&&k<1){const H=Math.exp(-k*v*O),Z=Math.sin(M*O),q=Math.cos(M*O),Y=o-H*(D*Z+w*q),ae=Cn(H*(R*Z+P*q));return c.done=Math.abs(ae)<=r&&Math.abs(o-Y)<=a,c.value=c.done?o:Y,c}const $=A(O);if(y)c.done=O>=h;else{const H=Cn(_(O));c.done=Math.abs(H)<=r&&Math.abs(o-$)<=a}return c.value=c.done?o:$,c},toString:()=>{const O=Math.min(ah(B),Ju),$=eA(H=>B.next(O*H).value,O,30);return O+"ms "+$},toTransition:()=>{}};return B}ec.applyToOptions=e=>{const t=hD(e,100,ec);return e.ease=t.ease,e.duration=Cn(t.duration),e.type="keyframes",e};const vD=5;function tA(e,t,n){const r=Math.max(t-vD,0);return DN(n-e(r),t-r)}function Wf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:o,min:c,max:d,restDelta:f=.5,restSpeed:m}){const h=e[0],b={done:!1,value:h},y=P=>c!==void 0&&P<c||d!==void 0&&P>d,E=P=>c===void 0?d:d===void 0||Math.abs(c-P)<Math.abs(d-P)?c:d;let k=n*t;const w=h+k,v=o===void 0?w:o(w);v!==w&&(k=v-h);const N=P=>-k*Math.exp(-P/r),A=P=>v+N(P),_=P=>{const B=N(P),O=A(P);b.done=Math.abs(B)<=f,b.value=b.done?v:O};let M,D;const R=P=>{y(b.value)&&(M=P,D=ec({keyframes:[b.value,E(b.value)],velocity:tA(A,P,b.value),damping:a,stiffness:s,restDelta:f,restSpeed:m}))};return R(0),{calculatedDuration:null,next:P=>{let B=!1;return!D&&M===void 0&&(B=!0,_(P),R(P)),M!==void 0&&P>=M?D.next(P-M):(!B&&_(P),b)}}}function wD(e,t,n){const r=[],a=n||va.mix||JN,s=e.length-1;for(let o=0;o<s;o++){let c=a(e[o],e[o+1]);if(t){const d=Array.isArray(t)?t[o]||Kn:t;c=Go(d,c)}r.push(c)}return r}function nA(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(Xm(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=wD(t,r,a),d=c.length,f=m=>{if(o&&m<e[0])return t[0];let h=0;if(d>1)for(;h<e.length-2&&!(m<e[h+1]);h++);const b=ko(e[h],e[h+1],m);return c[h](b)};return n?m=>f(Cr(e[0],e[s-1],m)):f}function kD(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=ko(0,t,r);e.push(ht(n,1,a))}}function TD(e){const t=[0];return kD(t,e.length-1),t}function ND(e,t){return e.map(n=>n*t)}function AD(e,t){return e.map(()=>t||GN).splice(0,e.length-1)}function fo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=jL(r)?r.map(aw):aw(r),s={done:!1,value:t[0]},o=ND(n&&n.length===t.length?n:TD(t),e),c=nA(o,t,{ease:Array.isArray(a)?a:AD(t,a)});return{calculatedDuration:e,next:d=>(s.value=c(d),s.done=d>=e,s)}}const ID=e=>e!==null;function Nc(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(ID),c=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!c||r===void 0?s[c]:r}const CD={decay:Wf,inertia:Wf,tween:fo,keyframes:fo,spring:ec};function rA(e){typeof e.type=="string"&&(e.type=CD[e.type])}class ih{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const RD=e=>e/100;class No extends ih{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==un.now()&&this.tick(un.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;rA(t);const{type:n=fo,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:o=0}=t;let{keyframes:c}=t;const d=n||fo;d!==fo&&typeof c[0]!="number"&&(this.mixKeyframes=Go(RD,JN(c[0],c[1])),c=[0,100]);const f=d({...t,keyframes:c});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...c].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=ah(f));const{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:c,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:m,repeat:h,repeatType:b,repeatDelay:y,type:E,onUpdate:k,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-f*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?v<0:v>a;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let A=this.currentTime,_=r;if(h){const P=Math.min(this.currentTime,a)/c;let B=Math.floor(P),O=P%1;!O&&P>=1&&(O=1),O===1&&B--,B=Math.min(B,h+1),!!(B%2)&&(b==="reverse"?(O=1-O,y&&(O-=y/c)):b==="mirror"&&(_=o)),A=Cr(0,1,O)*c}let M;N?(this.delayState.value=m[0],M=this.delayState):M=_.next(A),s&&!N&&(M.value=s(M.value));let{done:D}=M;!N&&d!==null&&(D=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&E!==Wf&&(M.value=Nc(m,this.options,w,this.speed)),k&&k(M.value),R&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return Vn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vn(t)}get time(){return Vn(this.currentTime)}set time(t){t=Cn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return tA(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(un.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Vn(this.currentTime))}play(){var a,s;if(this.isStopped)return;const{driver:t=mD,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(a=this.options).onPlay)==null||s.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(un.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function _D(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Xa=e=>e*180/Math.PI,qf=e=>{const t=Xa(Math.atan2(e[1],e[0]));return Yf(t)},OD={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:qf,rotateZ:qf,skewX:e=>Xa(Math.atan(e[1])),skewY:e=>Xa(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Yf=e=>(e=e%360,e<0&&(e+=360),e),dw=qf,pw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),LD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pw,scaleY:fw,scale:e=>(pw(e)+fw(e))/2,rotateX:e=>Yf(Xa(Math.atan2(e[6],e[5]))),rotateY:e=>Yf(Xa(Math.atan2(-e[2],e[0]))),rotateZ:dw,rotate:dw,skewX:e=>Xa(Math.atan(e[4])),skewY:e=>Xa(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Kf(e){return e.includes("scale")?1:0}function Xf(e,t){if(!e||e==="none")return Kf(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=LD,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=OD,a=c}if(!a)return Kf(t);const s=r[t],o=a[1].split(",").map(MD);return typeof s=="function"?s(o):o[s]}const DD=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Xf(n,t)};function MD(e){return parseFloat(e.trim())}const as=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],is=new Set(as),mw=e=>e===rs||e===ve,jD=new Set(["x","y","z"]),FD=as.filter(e=>!jD.has(e));function PD(e){const t=[];return FD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ea={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Xf(t,"x"),y:(e,{transform:t})=>Xf(t,"y")};Ea.translateX=Ea.x;Ea.translateY=Ea.y;const ti=new Set;let Zf=!1,Qf=!1,Jf=!1;function aA(){if(Qf){const e=Array.from(ti).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=PD(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,o])=>{var c;(c=r.getValue(s))==null||c.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Qf=!1,Zf=!1,ti.forEach(e=>e.complete(Jf)),ti.clear()}function iA(){ti.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qf=!0)})}function BD(){Jf=!0,iA(),aA(),Jf=!1}class sh{constructor(t,n,r,a,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ti.add(this),Zf||(Zf=!0,st.read(iA),st.resolveKeyframes(aA))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a==null?void 0:a.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const c=r.readValue(n,o);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=o),a&&s===void 0&&a.set(t[0])}_D(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ti.delete(this)}cancel(){this.state==="scheduled"&&(ti.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const UD=e=>e.startsWith("--");function sA(e,t,n){UD(t)?e.style.setProperty(t,n):e.style[t]=n}const $D={};function oA(e,t){const n=LN(e);return()=>$D[t]??n()}const zD=oA(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),lA=oA(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),co=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:co([0,.65,.55,1]),circOut:co([.55,0,1,.45]),backIn:co([.31,.01,.66,-.59]),backOut:co([.33,1.53,.69,.99])};function uA(e,t){if(e)return typeof e=="function"?lA()?eA(e,t):"ease-out":HN(e)?co(e):Array.isArray(e)?e.map(n=>uA(n,t)||hw.easeOut):hw[e]}function GD(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:o="loop",ease:c="easeOut",times:d}={},f=void 0){const m={[t]:n};d&&(m.offset=d);const h=uA(c,a);Array.isArray(h)&&(m.easing=h);const b={delay:r,duration:a,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return f&&(b.pseudoElement=f),e.animate(m,b)}function cA(e){return typeof e=="function"&&"applyToOptions"in e}function HD({type:e,...t}){return cA(e)&&lA()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class dA extends ih{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:c,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Xm(typeof t.type!="string");const f=HD(t);this.animation=GD(n,r,a,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=Nc(a,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(m),sA(n,r,m),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,a;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((a=(r=this.animation).commitStyles)==null||a.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Vn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vn(t)}get time(){return Vn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Cn(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:a}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&zD()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Kn):a(this)}}const pA={anticipate:UN,backInOut:BN,circInOut:zN};function VD(e){return e in pA}function WD(e){typeof e.ease=="string"&&VD(e.ease)&&(e.ease=pA[e.ease])}const Zp=10;class qD extends dA{constructor(t){WD(t),rA(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new No({...o,autoplay:!1}),d=Math.max(Zp,un.now()-this.startTime),f=Cr(0,Zp,d-Zp),m=c.sample(d).value,{name:h}=this.options;s&&h&&sA(s,h,m),n.setWithVelocity(c.sample(Math.max(0,d-f)).value,m,f),c.stop()}}const gw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(lr.test(e)||e==="0")&&!e.startsWith("url("));function YD(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function KD(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=gw(a,t),c=gw(s,t);return!o||!c?!1:YD(e)||(n==="spring"||cA(n))&&r}function em(e){e.duration=0,e.type="keyframes"}const fA=new Set(["opacity","clipPath","filter","transform"]),XD=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ZD(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&XD.test(e[t]))return!0;return!1}const QD=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),JD=LN(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function eM(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:o,keyframes:c}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:m}=t.owner.getProps();return JD()&&n&&(fA.has(n)||QD.has(n)&&ZD(c))&&(n!=="transform"||!m)&&!f&&!r&&a!=="mirror"&&s!==0&&o!=="inertia"}const tM=40;class nM extends ih{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:o="loop",keyframes:c,name:d,motionValue:f,element:m,...h}){var E;super(),this.stop=()=>{var k,w;this._animation&&(this._animation.stop(),(k=this.stopTimeline)==null||k.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=un.now();const b={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:o,name:d,motionValue:f,element:m,...h},y=(m==null?void 0:m.KeyframeResolver)||sh;this.keyframeResolver=new y(c,(k,w,v)=>this.onKeyframesResolved(k,w,b,!v),d,f,m),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(t,n,r,a){var v,N;this.keyframeResolver=void 0;const{name:s,type:o,velocity:c,delay:d,isHandoff:f,onUpdate:m}=r;this.resolvedAt=un.now();let h=!0;KD(t,s,o,c)||(h=!1,(va.instantAnimations||!d)&&(m==null||m(Nc(t,r,n))),t[0]=t[t.length-1],em(r),r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>tM?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},E=h&&!f&&eM(y),k=(N=(v=y.motionValue)==null?void 0:v.owner)==null?void 0:N.current;let w;if(E)try{w=new qD({...y,element:k})}catch{w=new No(y)}else w=new No(y);w.finished.then(()=>{this.notifyFinished()}).catch(Kn),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),BD()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function mA(e,t,n,r=0,a=1){const s=Array.from(e).sort((f,m)=>f.sortNodePosition(m)).indexOf(t),o=e.size,c=(o-1)*r;return typeof n=="function"?n(s,o):a===1?s*r:c-s*r}const rM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aM(e){const t=rM.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function hA(e,t,n=1){const[r,a]=aM(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return RN(o)?parseFloat(o):o}return eh(a)?hA(a,t,n+1):a}const iM={type:"spring",stiffness:500,damping:25,restSpeed:10},sM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),oM={type:"keyframes",duration:.8},lM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uM=(e,{keyframes:t})=>t.length>2?oM:is.has(e)?e.startsWith("scale")?sM(t[1]):iM:lM;function gA(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function oh(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?gA(n,e):n}const cM=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function dM(e){for(const t in e)if(!cM.has(t))return!0;return!1}const lh=(e,t,n,r={},a,s)=>o=>{const c=oh(r,e)||{},d=c.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Cn(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,onUpdate:b=>{t.set(b),c.onUpdate&&c.onUpdate(b)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:a};dM(c)||Object.assign(m,uM(e,m)),m.duration&&(m.duration=Cn(m.duration)),m.repeatDelay&&(m.repeatDelay=Cn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let h=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(em(m),m.delay===0&&(h=!0)),(va.instantAnimations||va.skipAnimations||a!=null&&a.shouldSkipAnimations)&&(h=!0,em(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,h&&!s&&t.get()!==void 0){const b=Nc(m.keyframes,c);if(b!==void 0){st.update(()=>{m.onUpdate(b),m.onComplete()});return}}return c.isSync?new No(m):new nM(m)};function bw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function uh(e,t,n,r){if(typeof t=="function"){const[a,s]=bw(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=bw(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function ni(e,t,n){const r=e.getProps();return uh(r,t,n!==void 0?n:r.custom,e)}const bA=new Set(["width","height","top","left","right","bottom",...as]),yw=30,pM=e=>!isNaN(parseFloat(e)),mo={current:void 0};class fM{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const a=un.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=un.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zm);const r=this.events[t].add(n);return t==="change"?()=>{r(),st.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return mo.current&&mo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=un.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yw);return DN(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new fM(e,t)}const tm=e=>Array.isArray(e);function mM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function hM(e){return tm(e)?e[e.length-1]||0:e}function gM(e,t){const n=ni(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const o in s){const c=hM(s[o]);mM(e,o,c)}}const Pt=e=>!!(e&&e.getVelocity);function bM(e){return!!(Pt(e)&&e.add)}function nm(e,t){const n=e.getValue("willChange");if(bM(n))return n.add(t);if(!n&&va.WillChange){const r=new va.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function ch(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const yM="framerAppearId",yA="data-"+ch(yM);function xA(e){return e.props[yA]}function xM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function EA(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s,transitionEnd:o,...c}=t;const d=e.getDefaultTransition();s=s?gA(s,d):d;const f=s==null?void 0:s.reduceMotion;r&&(s=r);const m=[],h=a&&e.animationState&&e.animationState.getState()[a];for(const b in c){const y=e.getValue(b,e.latestValues[b]??null),E=c[b];if(E===void 0||h&&xM(h,b))continue;const k={delay:n,...oh(s||{},b)},w=y.get();if(w!==void 0&&!y.isAnimating()&&!Array.isArray(E)&&E===w&&!k.velocity){st.update(()=>y.set(E));continue}let v=!1;if(window.MotionHandoffAnimation){const _=xA(e);if(_){const M=window.MotionHandoffAnimation(_,b,st);M!==null&&(k.startTime=M,v=!0)}}nm(e,b);const N=f??e.shouldReduceMotion;y.start(lh(b,y,E,N&&bA.has(b)?{type:!1}:k,e,v));const A=y.animation;A&&m.push(A)}if(o){const b=()=>st.update(()=>{o&&gM(e,o)});m.length?Promise.all(m).then(b):b()}return m}function rm(e,t,n={}){var d;const r=ni(e,t,n.type==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(EA(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:m=0,staggerChildren:h,staggerDirection:b}=a;return EM(e,t,f,m,h,b,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[f,m]=c==="beforeChildren"?[s,o]:[o,s];return f().then(()=>m())}else return Promise.all([s(),o(n.delay)])}function EM(e,t,n=0,r=0,a=0,s=1,o){const c=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),c.push(rm(d,t,{...o,delay:n+(typeof r=="function"?0:r)+mA(e.variantChildren,d,r,a,s)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(c)}function SM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>rm(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=rm(e,t,n);else{const a=typeof t=="function"?ni(e,t,n.custom):t;r=Promise.all(EA(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const vM={test:e=>e==="auto",parse:e=>e},SA=e=>t=>t.test(e),vA=[rs,ve,Ir,ha,KL,YL,vM],xw=e=>vA.find(SA(e));function wM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ON(e):!0}const kM=new Set(["brightness","contrast","saturate","opacity"]);function TM(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(th)||[];if(!r)return e;const a=n.replace(r,"");let s=kM.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const NM=/\b([a-z-]*)\(.*?\)/gu,am={...lr,getAnimatableNone:e=>{const t=e.match(NM);return t?t.map(TM).join(" "):e}},im={...lr,getAnimatableNone:e=>{const t=lr.parse(e);return lr.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Ew={...rs,transform:Math.round},AM={rotate:ha,rotateX:ha,rotateY:ha,rotateZ:ha,scale:yu,scaleX:yu,scaleY:yu,scaleZ:yu,skew:ha,skewX:ha,skewY:ha,distance:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:To,originX:sw,originY:sw,originZ:ve},dh={borderWidth:ve,borderTopWidth:ve,borderRightWidth:ve,borderBottomWidth:ve,borderLeftWidth:ve,borderRadius:ve,borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomRightRadius:ve,borderBottomLeftRadius:ve,width:ve,maxWidth:ve,height:ve,maxHeight:ve,top:ve,right:ve,bottom:ve,left:ve,inset:ve,insetBlock:ve,insetBlockStart:ve,insetBlockEnd:ve,insetInline:ve,insetInlineStart:ve,insetInlineEnd:ve,padding:ve,paddingTop:ve,paddingRight:ve,paddingBottom:ve,paddingLeft:ve,paddingBlock:ve,paddingBlockStart:ve,paddingBlockEnd:ve,paddingInline:ve,paddingInlineStart:ve,paddingInlineEnd:ve,margin:ve,marginTop:ve,marginRight:ve,marginBottom:ve,marginLeft:ve,marginBlock:ve,marginBlockStart:ve,marginBlockEnd:ve,marginInline:ve,marginInlineStart:ve,marginInlineEnd:ve,fontSize:ve,backgroundPositionX:ve,backgroundPositionY:ve,...AM,zIndex:Ew,fillOpacity:To,strokeOpacity:To,numOctaves:Ew},IM={...dh,color:Ot,backgroundColor:Ot,outlineColor:Ot,fill:Ot,stroke:Ot,borderColor:Ot,borderTopColor:Ot,borderRightColor:Ot,borderBottomColor:Ot,borderLeftColor:Ot,filter:am,WebkitFilter:am,mask:im,WebkitMask:im},wA=e=>IM[e],CM=new Set([am,im]);function kA(e,t){let n=wA(e);return CM.has(n)||(n=lr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const RM=new Set(["auto","none","0"]);function _M(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!RM.has(s)&&Qi(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=kA(n,a)}class OM extends sh{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let h=t[m];if(typeof h=="string"&&(h=h.trim(),eh(h))){const b=hA(h,n.current);b!==void 0&&(t[m]=b),m===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!bA.has(r)||t.length!==2)return;const[a,s]=t,o=xw(a),c=xw(s),d=iw(a),f=iw(s);if(d!==f&&Ea[r]){this.needsMeasurement=!0;return}if(o!==c)if(mw(o)&&mw(c))for(let m=0;m<t.length;m++){const h=t[m];typeof h=="string"&&(t[m]=parseFloat(h))}else Ea[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||wM(t[a]))&&r.push(a);r.length&&_M(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ea[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Ea[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([d,f])=>{t.getValue(d).set(f)}),this.resolveNoneKeyframes()}}function TA(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(r=>r!=null)}const NA=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Fu(e){return _N(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:ph}=VN(queueMicrotask,!1),sr={x:!1,y:!1};function AA(){return sr.x||sr.y}function LM(e){return e==="x"||e==="y"?sr[e]?null:(sr[e]=!0,()=>{sr[e]=!1}):sr.x||sr.y?null:(sr.x=sr.y=!0,()=>{sr.x=sr.y=!1})}function IA(e,t){const n=TA(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function DM(e){return!(e.pointerType==="touch"||AA())}function MM(e,t,n={}){const[r,a,s]=IA(e,n);return r.forEach(o=>{let c=!1,d=!1,f;const m=()=>{o.removeEventListener("pointerleave",E)},h=w=>{f&&(f(w),f=void 0),m()},b=w=>{c=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),d&&(d=!1,h(w))},y=()=>{c=!0,window.addEventListener("pointerup",b,a),window.addEventListener("pointercancel",b,a)},E=w=>{if(w.pointerType!=="touch"){if(c){d=!0;return}h(w)}},k=w=>{if(!DM(w))return;d=!1;const v=t(o,w);typeof v=="function"&&(f=v,o.addEventListener("pointerleave",E,a))};o.addEventListener("pointerenter",k,a),o.addEventListener("pointerdown",y,a)}),s}const CA=(e,t)=>t?e===t?!0:CA(e,t.parentElement):!1,fh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,jM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function FM(e){return jM.has(e.tagName)||e.isContentEditable===!0}const PM=new Set(["INPUT","SELECT","TEXTAREA"]);function BM(e){return PM.has(e.tagName)||e.isContentEditable===!0}const Pu=new WeakSet;function Sw(e){return t=>{t.key==="Enter"&&e(t)}}function Qp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const UM=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Sw(()=>{if(Pu.has(n))return;Qp(n,"down");const a=Sw(()=>{Qp(n,"up")}),s=()=>Qp(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function vw(e){return fh(e)&&!AA()}const ww=new WeakSet;function $M(e,t,n={}){const[r,a,s]=IA(e,n),o=c=>{const d=c.currentTarget;if(!vw(c)||ww.has(c))return;Pu.add(d),n.stopPropagation&&ww.add(c);const f=t(d,c),m=(y,E)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",b),Pu.has(d)&&Pu.delete(d),vw(y)&&typeof f=="function"&&f(y,{success:E})},h=y=>{m(y,d===window||d===document||n.useGlobalTarget||CA(d,y.target))},b=y=>{m(y,!1)};window.addEventListener("pointerup",h,a),window.addEventListener("pointercancel",b,a)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",o,a),Fu(c)&&(c.addEventListener("focus",f=>UM(f,a)),!FM(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),s}function mh(e){return _N(e)&&"ownerSVGElement"in e}const Bu=new WeakMap;let ga;const RA=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:mh(r)&&"getBBox"in r?r.getBBox()[t]:r[n],zM=RA("inline","width","offsetWidth"),GM=RA("block","height","offsetHeight");function HM({target:e,borderBoxSize:t}){var n;(n=Bu.get(e))==null||n.forEach(r=>{r(e,{get width(){return zM(e,t)},get height(){return GM(e,t)}})})}function VM(e){e.forEach(HM)}function WM(){typeof ResizeObserver>"u"||(ga=new ResizeObserver(VM))}function qM(e,t){ga||WM();const n=TA(e);return n.forEach(r=>{let a=Bu.get(r);a||(a=new Set,Bu.set(r,a)),a.add(t),ga==null||ga.observe(r)}),()=>{n.forEach(r=>{const a=Bu.get(r);a==null||a.delete(t),a!=null&&a.size||ga==null||ga.unobserve(r)})}}const Uu=new Set;let Vi;function YM(){Vi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Uu.forEach(t=>t(e))},window.addEventListener("resize",Vi)}function KM(e){return Uu.add(e),Vi||YM(),()=>{Uu.delete(e),!Uu.size&&typeof Vi=="function"&&(window.removeEventListener("resize",Vi),Vi=void 0)}}function kw(e,t){return typeof e=="function"?KM(e):qM(e,t)}function XM(e){return mh(e)&&e.tagName==="svg"}function ZM(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],a=e[1+n],s=e[2+n],o=e[3+n],c=nA(a,s,o);return t?c(r):c}function QM(e,t,n={}){const r=e.get();let a=null,s=r,o;const c=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,d=()=>{a&&(a.stop(),a=null),e.animation=void 0},f=()=>{const h=Tw(e.get()),b=Tw(s);if(h===b){d();return}const y=a?a.getGeneratorVelocity():e.getVelocity();d(),a=new No({keyframes:[h,b],velocity:y,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})},m=()=>{var h;f(),e.animation=a??void 0,(h=e.events.animationStart)==null||h.notify(),a==null||a.then(()=>{var b;e.animation=void 0,(b=e.events.animationComplete)==null||b.notify()})};if(e.attach((h,b)=>{s=h,o=y=>b(Jp(y,c)),st.postRender(m)},d),Pt(t)){let h=n.skipInitialAnimation===!0;const b=t.on("change",E=>{h?(h=!1,e.jump(Jp(E,c),!1)):e.set(Jp(E,c))}),y=e.on("destroy",b);return()=>{b(),y()}}return d}function Jp(e,t){return t?e+t:e}function Tw(e){return typeof e=="number"?e:parseFloat(e)}const JM=[...vA,Ot,lr],ej=e=>JM.find(SA(e)),Nw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wi=()=>({x:Nw(),y:Nw()}),Aw=()=>({min:0,max:0}),jt=()=>({x:Aw(),y:Aw()}),tj=new WeakMap;function Ac(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ao(e){return typeof e=="string"||Array.isArray(e)}const hh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gh=["initial",...hh];function Ic(e){return Ac(e.animate)||gh.some(t=>Ao(e[t]))}function _A(e){return!!(Ic(e)||e.variants)}function nj(e,t,n){for(const r in t){const a=t[r],s=n[r];if(Pt(a))e.addValue(r,a);else if(Pt(s))e.addValue(r,ai(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=e.getStaticValue(r);e.addValue(r,ai(o!==void 0?o:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const tc={current:null},bh={current:!1},rj=typeof window<"u";function OA(){if(bh.current=!0,!!rj)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tc.current=e.matches;e.addEventListener("change",t),t()}else tc.current=!1}const Iw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let nc={};function LA(e){nc=e}function aj(){return nc}class ij{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:s,blockInitialAnimation:o,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=sh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=un.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,st.render(this.render,!1,!0))};const{latestValues:f,renderState:m}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=s,this.options=d,this.blockInitialAnimation=!!o,this.isControllingVariants=Ic(n),this.isVariantNode=_A(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...b}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in b){const E=b[y];f[y]!==void 0&&Pt(E)&&E.set(f[y])}}mount(t){var n,r;if(this.hasBeenMounted)for(const a in this.initialValues)(n=this.values.get(a))==null||n.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,tj.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,s)=>this.bindToMotionValue(s,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(bh.current||OA(),this.shouldReduceMotion=tc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Vr(this.notifyUpdate),Vr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&fA.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:c,times:d,ease:f,duration:m}=n.accelerate,h=new dA({element:this.current,name:t,keyframes:c,times:d,ease:f,duration:Cn(m)}),b=o(h);this.valueSubscriptions.set(t,()=>{b(),h.cancel()});return}const r=is.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&st.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in nc){const n=nc[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):jt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Iw.length;r++){const a=Iw[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,o=t[s];o&&(this.propEventSubscriptions[a]=this.on(a,o))}this.prevMotionValues=nj(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ai(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(RN(r)||ON(r))?r=parseFloat(r):!ej(r)&&lr.test(n)&&(r=kA(t,n)),this.setBaseTarget(t,Pt(r)?r.get():r)),Pt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=uh(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Pt(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ph.render(this.render)}}class DA extends ij{constructor(){super(...arguments),this.KeyframeResolver=OM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Pt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Na{constructor(t){this.isMounted=!1,this.node=t}update(){}}function MA({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oj(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ef(e){return e===void 0||e===1}function sm({scale:e,scaleX:t,scaleY:n}){return!ef(e)||!ef(t)||!ef(n)}function qa(e){return sm(e)||jA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function jA(e){return Cw(e.x)||Cw(e.y)}function Cw(e){return e&&e!=="0%"}function rc(e,t,n){const r=e-n,a=t*r;return n+a}function Rw(e,t,n,r,a){return a!==void 0&&(e=rc(e,a,r)),rc(e,n,r)+t}function om(e,t=0,n=1,r,a){e.min=Rw(e.min,t,n,r,a),e.max=Rw(e.max,t,n,r,a)}function FA(e,{x:t,y:n}){om(e.x,t.translate,t.scale,t.originPoint),om(e.y,n.translate,n.scale,n.originPoint)}const _w=.999999999999,Ow=1.0000000000001;function lj(e,t,n,r=!1){var c;const a=n.length;if(!a)return;t.x=t.y=1;let s,o;for(let d=0;d<a;d++){s=n[d],o=s.projectionDelta;const{visualElement:f}=s.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(kr(e.x,-s.scroll.offset.x),kr(e.y,-s.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,FA(e,o)),r&&qa(s.latestValues)&&$u(e,s.latestValues,(c=s.layout)==null?void 0:c.layoutBox))}t.x<Ow&&t.x>_w&&(t.x=1),t.y<Ow&&t.y>_w&&(t.y=1)}function kr(e,t){e.min+=t,e.max+=t}function Lw(e,t,n,r,a=.5){const s=ht(e.min,e.max,a);om(e,t,n,s,r)}function Dw(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function $u(e,t,n){const r=n??e;Lw(e.x,Dw(t.x,r.x),t.scaleX,t.scale,t.originX),Lw(e.y,Dw(t.y,r.y),t.scaleY,t.scale,t.originY)}function PA(e,t){return MA(oj(e.getBoundingClientRect(),t))}function uj(e,t,n){const r=PA(e,n),{scroll:a}=t;return a&&(kr(r.x,a.offset.x),kr(r.y,a.offset.y)),r}const cj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dj=as.length;function pj(e,t,n){let r="",a=!0;for(let s=0;s<dj;s++){const o=as[s],c=e[o];if(c===void 0)continue;let d=!0;if(typeof c=="number")d=c===(o.startsWith("scale")?1:0);else{const f=parseFloat(c);d=o.startsWith("scale")?f===1:f===0}if(!d||n){const f=NA(c,dh[o]);if(!d){a=!1;const m=cj[o]||o;r+=`${m}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function yh(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let o=!1,c=!1;for(const d in t){const f=t[d];if(is.has(d)){o=!0;continue}else if(qN(d)){a[d]=f;continue}else{const m=NA(f,dh[d]);d.startsWith("origin")?(c=!0,s[d]=m):r[d]=m}}if(t.transform||(o||n?r.transform=pj(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:d="50%",originY:f="50%",originZ:m=0}=s;r.transformOrigin=`${d} ${f} ${m}`}}function BA(e,{style:t,vars:n},r,a){const s=e.style;let o;for(o in t)s[o]=t[o];a==null||a.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function Mw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const eo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ve.test(e))e=parseFloat(e);else return e;const n=Mw(e,t.target.x),r=Mw(e,t.target.y);return`${n}% ${r}%`}},fj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=lr.parse(e);if(a.length>5)return r;const s=lr.createTransformer(e),o=typeof a[0]!="number"?1:0,c=n.x.scale*t.x,d=n.y.scale*t.y;a[0+o]/=c,a[1+o]/=d;const f=ht(c,d,.5);return typeof a[2+o]=="number"&&(a[2+o]/=f),typeof a[3+o]=="number"&&(a[3+o]/=f),s(a)}},lm={borderRadius:{...eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomLeftRadius:eo,borderBottomRightRadius:eo,boxShadow:fj};function UA(e,{layout:t,layoutId:n}){return is.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!lm[e]||e==="opacity")}function xh(e,t,n){var o;const r=e.style,a=t==null?void 0:t.style,s={};if(!r)return s;for(const c in r)(Pt(r[c])||a&&Pt(a[c])||UA(c,e)||((o=n==null?void 0:n.getValue(c))==null?void 0:o.liveStyle)!==void 0)&&(s[c]=r[c]);return s}function mj(e){return window.getComputedStyle(e)}class hj extends DA{constructor(){super(...arguments),this.type="html",this.renderInstance=BA}readValueFromInstance(t,n){var r;if(is.has(n))return(r=this.projection)!=null&&r.isProjecting?Kf(n):DD(t,n);{const a=mj(t),s=(qN(n)?a.getPropertyValue(n):a[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return PA(t,n)}build(t,n,r){yh(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return xh(t,n,r)}}const gj={offset:"stroke-dashoffset",array:"stroke-dasharray"},bj={offset:"strokeDashoffset",array:"strokeDasharray"};function yj(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?gj:bj;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const xj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function $A(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:o=0,...c},d,f,m){if(yh(e,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:b}=e;h.transform&&(b.transform=h.transform,delete h.transform),(b.transform||h.transformOrigin)&&(b.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),b.transform&&(b.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete h.transformBox);for(const y of xj)h[y]!==void 0&&(b[y]=h[y],delete h[y]);t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&yj(h,a,s,o,!1)}const zA=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),GA=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ej(e,t,n,r){BA(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(zA.has(a)?a:ch(a),t.attrs[a])}function HA(e,t,n){const r=xh(e,t,n);for(const a in e)if(Pt(e[a])||Pt(t[a])){const s=as.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}class Sj extends DA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=jt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(is.has(n)){const r=wA(n);return r&&r.default||0}return n=zA.has(n)?n:ch(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return HA(t,n,r)}build(t,n,r){$A(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){Ej(t,n,r,a)}mount(t){this.isSVGTag=GA(t.tagName),super.mount(t)}}const vj=gh.length;function VA(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?VA(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<vj;n++){const r=gh[n],a=e.props[r];(Ao(a)||a===!1)&&(t[r]=a)}return t}function WA(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const wj=[...hh].reverse(),kj=hh.length;function Tj(e){return t=>Promise.all(t.map(({animation:n,options:r})=>SM(e,n,r)))}function Nj(e){let t=Tj(e),n=jw(),r=!0,a=!1;const s=f=>(m,h)=>{var y;const b=ni(e,h,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(b){const{transition:E,transitionEnd:k,...w}=b;m={...m,...w,...k}}return m};function o(f){t=f(e)}function c(f){const{props:m}=e,h=VA(e.parent)||{},b=[],y=new Set;let E={},k=1/0;for(let v=0;v<kj;v++){const N=wj[v],A=n[N],_=m[N]!==void 0?m[N]:h[N],M=Ao(_),D=N===f?A.isActive:null;D===!1&&(k=v);let R=_===h[N]&&_!==m[N]&&M;if(R&&(r||a)&&e.manuallyAnimateOnMount&&(R=!1),A.protectedKeys={...E},!A.isActive&&D===null||!_&&!A.prevProp||Ac(_)||typeof _=="boolean")continue;if(N==="exit"&&A.isActive&&D!==!0){A.prevResolvedValues&&(E={...E,...A.prevResolvedValues});continue}const P=Aj(A.prevProp,_);let B=P||N===f&&A.isActive&&!R&&M||v>k&&M,O=!1;const $=Array.isArray(_)?_:[_];let H=$.reduce(s(N),{});D===!1&&(H={});const{prevResolvedValues:Z={}}=A,q={...Z,...H},Y=W=>{B=!0,y.has(W)&&(O=!0,y.delete(W)),A.needsAnimating[W]=!0;const re=e.getValue(W);re&&(re.liveStyle=!1)};for(const W in q){const re=H[W],C=Z[W];if(E.hasOwnProperty(W))continue;let F=!1;tm(re)&&tm(C)?F=!WA(re,C):F=re!==C,F?re!=null?Y(W):y.add(W):re!==void 0&&y.has(W)?Y(W):A.protectedKeys[W]=!0}A.prevProp=_,A.prevResolvedValues=H,A.isActive&&(E={...E,...H}),(r||a)&&e.blockInitialAnimation&&(B=!1);const ae=R&&P;B&&(!ae||O)&&b.push(...$.map(W=>{const re={type:N};if(typeof W=="string"&&(r||a)&&!ae&&e.manuallyAnimateOnMount&&e.parent){const{parent:C}=e,F=ni(C,W);if(C.enteringChildren&&F){const{delayChildren:K}=F.transition||{};re.delay=mA(C.enteringChildren,e,K)}}return{animation:W,options:re}}))}if(y.size){const v={};if(typeof m.initial!="boolean"){const N=ni(e,Array.isArray(m.initial)?m.initial[0]:m.initial);N&&N.transition&&(v.transition=N.transition)}y.forEach(N=>{const A=e.getBaseTarget(N),_=e.getValue(N);_&&(_.liveStyle=!0),v[N]=A??null}),b.push({animation:v})}let w=!!b.length;return r&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,a=!1,w?t(b):Promise.resolve()}function d(f,m){var b;if(n[f].isActive===m)return Promise.resolve();(b=e.variantChildren)==null||b.forEach(y=>{var E;return(E=y.animationState)==null?void 0:E.setActive(f,m)}),n[f].isActive=m;const h=c(f);for(const y in n)n[y].protectedKeys={};return h}return{animateChanges:c,setActive:d,setAnimateFunction:o,getState:()=>n,reset:()=>{n=jw(),a=!0}}}function Aj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!WA(t,e):!1}function Va(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jw(){return{animate:Va(!0),whileInView:Va(),whileHover:Va(),whileTap:Va(),whileDrag:Va(),whileFocus:Va(),exit:Va()}}function um(e,t){e.min=t.min,e.max=t.max}function ir(e,t){um(e.x,t.x),um(e.y,t.y)}function Fw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const qA=1e-4,Ij=1-qA,Cj=1+qA,YA=.01,Rj=0-YA,_j=0+YA;function cn(e){return e.max-e.min}function Oj(e,t,n){return Math.abs(e-t)<=n}function Pw(e,t,n,r=.5){e.origin=r,e.originPoint=ht(t.min,t.max,e.origin),e.scale=cn(n)/cn(t),e.translate=ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ij&&e.scale<=Cj||isNaN(e.scale))&&(e.scale=1),(e.translate>=Rj&&e.translate<=_j||isNaN(e.translate))&&(e.translate=0)}function ho(e,t,n,r){Pw(e.x,t.x,n.x,r?r.originX:void 0),Pw(e.y,t.y,n.y,r?r.originY:void 0)}function Bw(e,t,n,r=0){const a=r?ht(n.min,n.max,r):n.min;e.min=a+t.min,e.max=e.min+cn(t)}function Lj(e,t,n,r){Bw(e.x,t.x,n.x,r==null?void 0:r.x),Bw(e.y,t.y,n.y,r==null?void 0:r.y)}function Uw(e,t,n,r=0){const a=r?ht(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+cn(t)}function ac(e,t,n,r){Uw(e.x,t.x,n.x,r==null?void 0:r.x),Uw(e.y,t.y,n.y,r==null?void 0:r.y)}function $w(e,t,n,r,a){return e-=t,e=rc(e,1/n,r),a!==void 0&&(e=rc(e,1/a,r)),e}function Dj(e,t=0,n=1,r=.5,a,s=e,o=e){if(Ir.test(t)&&(t=parseFloat(t),t=ht(o.min,o.max,t/100)-o.min),typeof t!="number")return;let c=ht(s.min,s.max,r);e===s&&(c-=t),e.min=$w(e.min,t,n,c,a),e.max=$w(e.max,t,n,c,a)}function zw(e,t,[n,r,a],s,o){Dj(e,t[n],t[r],t[a],t.scale,s,o)}const Mj=["x","scaleX","originX"],jj=["y","scaleY","originY"];function Gw(e,t,n,r){zw(e.x,t,Mj,n?n.x:void 0,r?r.x:void 0),zw(e.y,t,jj,n?n.y:void 0,r?r.y:void 0)}function Hw(e){return e.translate===0&&e.scale===1}function KA(e){return Hw(e.x)&&Hw(e.y)}function Vw(e,t){return e.min===t.min&&e.max===t.max}function Fj(e,t){return Vw(e.x,t.x)&&Vw(e.y,t.y)}function Ww(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function XA(e,t){return Ww(e.x,t.x)&&Ww(e.y,t.y)}function qw(e){return cn(e.x)/cn(e.y)}function Yw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function vr(e){return[e("x"),e("y")]}function Pj(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((a||s||o)&&(r=`translate3d(${a}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:m,rotateX:h,rotateY:b,skewX:y,skewY:E}=n;f&&(r=`perspective(${f}px) ${r}`),m&&(r+=`rotate(${m}deg) `),h&&(r+=`rotateX(${h}deg) `),b&&(r+=`rotateY(${b}deg) `),y&&(r+=`skewX(${y}deg) `),E&&(r+=`skewY(${E}deg) `)}const c=e.x.scale*t.x,d=e.y.scale*t.y;return(c!==1||d!==1)&&(r+=`scale(${c}, ${d})`),r||"none"}const ZA=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Bj=ZA.length,Kw=e=>typeof e=="string"?parseFloat(e):e,Xw=e=>typeof e=="number"||ve.test(e);function Uj(e,t,n,r,a,s){a?(e.opacity=ht(0,n.opacity??1,$j(r)),e.opacityExit=ht(t.opacity??1,0,zj(r))):s&&(e.opacity=ht(t.opacity??1,n.opacity??1,r));for(let o=0;o<Bj;o++){const c=ZA[o];let d=Zw(t,c),f=Zw(n,c);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||Xw(d)===Xw(f)?(e[c]=Math.max(ht(Kw(d),Kw(f),r),0),(Ir.test(f)||Ir.test(d))&&(e[c]+="%")):e[c]=f}(t.rotate||n.rotate)&&(e.rotate=ht(t.rotate||0,n.rotate||0,r))}function Zw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $j=QA(0,.5,$N),zj=QA(.5,.95,Kn);function QA(e,t,n){return r=>r<e?0:r>t?1:n(ko(e,t,r))}function Gj(e,t,n){const r=Pt(e)?e:ai(e);return r.start(lh("",r,t,n)),r.animation}function Io(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Hj=(e,t)=>e.depth-t.depth;class Vj{constructor(){this.children=[],this.isDirty=!1}add(t){Km(this.children,t),this.isDirty=!0}remove(t){Zu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Hj),this.isDirty=!1,this.children.forEach(t)}}function Wj(e,t){const n=un.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(Vr(r),e(s-t))};return st.setup(r,!0),()=>Vr(r)}function zu(e){return Pt(e)?e.get():e}class qj{constructor(){this.members=[]}add(t){Km(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const a=r.instance;(!a||a.isConnected===!1)&&!r.snapshot&&(Zu(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Zu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1&&((n=a.instance)==null?void 0:n.isConnected)!==!1)return this.promote(a),!0}return!1}promote(t,n){var a;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:o}=t.options;(s===void 0||s!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(a=t.root)!=null&&a.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,a,s,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(a=t.resumingFrom)==null?void 0:(s=a.options).onExitComplete)==null||o.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Gu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tf=["","X","Y","Z"],Yj=1e3;let Kj=0;function nf(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function JA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xA(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",st,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&JA(r)}function eI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(o={},c=t==null?void 0:t()){this.id=Kj++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Qj),this.nodes.forEach(a2),this.nodes.forEach(i2),this.nodes.forEach(Jj)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vj)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Zm),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const d=this.eventHandlers.get(o);d&&d.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=mh(o)&&!XM(o),this.instance=o;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||c)&&(this.isLayoutDirty=!0),e){let m,h=0;const b=()=>this.root.updateBlockedByResize=!1;st.read(()=>{h=window.innerWidth}),e(o,()=>{const y=window.innerWidth;y!==h&&(h=y,this.root.updateBlockedByResize=!0,m&&m(),m=Wj(b,250),Gu.hasAnimatedSinceResize&&(Gu.hasAnimatedSinceResize=!1,this.nodes.forEach(ek)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:h,hasRelativeLayoutChanged:b,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||f.getDefaultTransition()||c2,{onLayoutAnimationStart:k,onLayoutAnimationComplete:w}=f.getProps(),v=!this.targetLayout||!XA(this.targetLayout,y),N=!h&&b;if(this.options.layoutRoot||this.resumeFrom||N||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...oh(E,"layout"),onPlay:k,onComplete:w};(f.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(m,N)}else h||ek(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(s2),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&JA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const h=this.path[m];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const d=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),d&&this.nodes.forEach(t2),this.nodes.forEach(Qw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Jw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n2),this.nodes.forEach(r2),this.nodes.forEach(Xj),this.nodes.forEach(Zj)):this.nodes.forEach(Jw),this.clearAllSnapshots();const c=un.now();qt.delta=Cr(0,1e3/60,c-qt.timestamp),qt.timestamp=c,qt.isProcessing=!0,Wp.update.process(qt),Wp.preRender.process(qt),Wp.render.process(qt),qt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ph.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e2),this.sharedNodes.forEach(o2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,st.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){st.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!cn(this.snapshot.measuredBox.x)&&!cn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=jt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!KA(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;o&&this.instance&&(c||qa(this.latestValues)||m)&&(a(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return o&&(d=this.removeTransform(d)),d2(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:o}=this.options;if(!o)return jt();const c=o.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(p2))){const{scroll:m}=this.root;m&&(kr(c.x,m.offset.x),kr(c.y,m.offset.y))}return c}removeElementScroll(o){var d;const c=jt();if(ir(c,o),(d=this.scroll)!=null&&d.wasRoot)return c;for(let f=0;f<this.path.length;f++){const m=this.path[f],{scroll:h,options:b}=m;m!==this.root&&h&&b.layoutScroll&&(h.wasRoot&&ir(c,o),kr(c.x,h.offset.x),kr(c.y,h.offset.y))}return c}applyTransform(o,c=!1,d){var m,h;const f=d||jt();ir(f,o);for(let b=0;b<this.path.length;b++){const y=this.path[b];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&(kr(f.x,-y.scroll.offset.x),kr(f.y,-y.scroll.offset.y)),qa(y.latestValues)&&$u(f,y.latestValues,(m=y.layout)==null?void 0:m.layoutBox)}return qa(this.latestValues)&&$u(f,this.latestValues,(h=this.layout)==null?void 0:h.layoutBox),f}removeTransform(o){var d;const c=jt();ir(c,o);for(let f=0;f<this.path.length;f++){const m=this.path[f];if(!qa(m.latestValues))continue;let h;m.instance&&(sm(m.latestValues)&&m.updateSnapshot(),h=jt(),ir(h,m.measurePageBox())),Gw(c,m.latestValues,(d=m.snapshot)==null?void 0:d.layoutBox,h)}return qa(this.latestValues)&&Gw(c,this.latestValues),c}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==qt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var y;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:h}=this.options;if(!this.layout||!(m||h))return;this.resolvedRelativeTargetAt=qt.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=jt(),this.targetWithTransforms=jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Lj(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ir(this.target,this.layout.layoutBox),FA(this.target,this.targetDelta)):ir(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||sm(this.parent.latestValues)||jA(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,c,d){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=jt(),this.relativeTargetOrigin=jt(),ac(this.relativeTargetOrigin,c,d,this.options.layoutAnchor||void 0),ir(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var E;const o=this.getLead(),c=!!this.resumingFrom||this!==o;let d=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===qt.timestamp&&(d=!1),d)return;const{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;ir(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,b=this.treeScale.y;lj(this.layoutCorrected,this.treeScale,this.path,c),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=jt());const{target:y}=o;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Fw(this.prevProjectionDelta.x,this.projectionDelta.x),Fw(this.prevProjectionDelta.y,this.projectionDelta.y)),ho(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==b||!Yw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),o){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Wi(),this.projectionDelta=Wi(),this.projectionDeltaWithTransform=Wi()}setAnimationOrigin(o,c=!1){const d=this.snapshot,f=d?d.latestValues:{},m={...this.latestValues},h=Wi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const b=jt(),y=d?d.source:void 0,E=this.layout?this.layout.source:void 0,k=y!==E,w=this.getStack(),v=!w||w.members.length<=1,N=!!(k&&!v&&this.options.crossfade===!0&&!this.path.some(u2));this.animationProgress=0;let A;this.mixTargetDelta=_=>{const M=_/1e3;tk(h.x,o.x,M),tk(h.y,o.y,M),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ac(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),l2(this.relativeTarget,this.relativeTargetOrigin,b,M),A&&Fj(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=jt()),ir(A,this.relativeTarget)),k&&(this.animationValues=m,Uj(m,f,this.latestValues,M,N,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var c,d,f;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(f=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||f.stop(),this.pendingAnimation&&(Vr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=st.update(()=>{Gu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ai(0)),this.motionValue.jump(0,!1),this.currentAnimation=Gj(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),o.onUpdate&&o.onUpdate(m)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Yj),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:d,layout:f,latestValues:m}=o;if(!(!c||!d||!f)){if(this!==o&&this.layout&&f&&tI(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||jt();const h=cn(this.layout.layoutBox.x);d.x.min=o.target.x.min,d.x.max=d.x.min+h;const b=cn(this.layout.layoutBox.y);d.y.min=o.target.y.min,d.y.max=d.y.min+b}ir(c,d),$u(c,m),ho(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new qj),this.sharedNodes.get(o).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var c;const{layoutId:o}=this.options;return o?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:o}=this.options;return o?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:d}=o;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const f={};d.z&&nf("z",o,f,this.animationValues);for(let m=0;m<tf.length;m++)nf(`rotate${tf[m]}`,o,f,this.animationValues),nf(`skew${tf[m]}`,o,f,this.animationValues);o.render();for(const m in f)o.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);o.scheduleRender()}applyProjectionStyles(o,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=zu(c==null?void 0:c.pointerEvents)||"",o.transform=d?d(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=zu(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!qa(this.latestValues)&&(o.transform=d?d({},""):"none",this.hasProjected=!1);return}o.visibility="";const m=f.animationValues||f.latestValues;this.applyTransformsToTarget();let h=Pj(this.projectionDeltaWithTransform,this.treeScale,m);d&&(h=d(m,h)),o.transform=h;const{x:b,y}=this.projectionDelta;o.transformOrigin=`${b.origin*100}% ${y.origin*100}% 0`,f.animationValues?o.opacity=f===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:o.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const E in lm){if(m[E]===void 0)continue;const{correct:k,applyTo:w,isCSSVariable:v}=lm[E],N=h==="none"?m[E]:k(m[E],f);if(w){const A=w.length;for(let _=0;_<A;_++)o[w[_]]=N}else v?this.options.visualElement.renderState.vars[E]=N:o[E]=N}this.options.layoutId&&(o.pointerEvents=f===this?zu(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(Qw),this.root.sharedNodes.clear()}}}function Xj(e){e.updateLayout()}function Zj(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;if(s==="size")vr(h=>{const b=o?t.measuredBox[h]:t.layoutBox[h],y=cn(b);b.min=r[h].min,b.max=b.min+y});else if(s==="x"||s==="y"){const h=s==="x"?"y":"x";um(o?t.measuredBox[h]:t.layoutBox[h],r[h])}else tI(s,t.layoutBox,r)&&vr(h=>{const b=o?t.measuredBox[h]:t.layoutBox[h],y=cn(r[h]);b.max=b.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+y)});const c=Wi();ho(c,r,t.layoutBox);const d=Wi();o?ho(d,e.applyTransform(a,!0),t.measuredBox):ho(d,r,t.layoutBox);const f=!KA(c);let m=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:b,layout:y}=h;if(b&&y){const E=e.options.layoutAnchor||void 0,k=jt();ac(k,t.layoutBox,b.layoutBox,E);const w=jt();ac(w,r,y.layoutBox,E),XA(k,w)||(m=!0),h.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=k,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:d,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Qj(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Jj(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e2(e){e.clearSnapshot()}function Qw(e){e.clearMeasurements()}function t2(e){e.isLayoutDirty=!0,e.updateLayout()}function Jw(e){e.isLayoutDirty=!1}function n2(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function r2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ek(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function a2(e){e.resolveTargetDelta()}function i2(e){e.calcProjection()}function s2(e){e.resetSkewAndRotation()}function o2(e){e.removeLeadSnapshot()}function tk(e,t,n){e.translate=ht(t.translate,0,n),e.scale=ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nk(e,t,n,r){e.min=ht(t.min,n.min,r),e.max=ht(t.max,n.max,r)}function l2(e,t,n,r){nk(e.x,t.x,n.x,r),nk(e.y,t.y,n.y,r)}function u2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const c2={duration:.45,ease:[.4,0,.1,1]},rk=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ak=rk("applewebkit/")&&!rk("chrome/")?Math.round:Kn;function ik(e){e.min=ak(e.min),e.max=ak(e.max)}function d2(e){ik(e.x),ik(e.y)}function tI(e,t,n){return e==="position"||e==="preserve-aspect"&&!Oj(qw(t),qw(n),.2)}function p2(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const f2=eI({attachResizeListener:(e,t)=>Io(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),rf={current:void 0},nI=eI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rf.current){const e=new f2({});e.mount(window),e.setOptions({layoutScroll:!0}),rf.current=e}return rf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Wo=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sk(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function m2(...e){return t=>{let n=!1;const r=e.map(a=>{const s=sk(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():sk(e[a],null)}}}}function h2(...e){return T.useCallback(m2(...e),e)}class g2 extends T.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Fu(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,a=Fu(r)&&r.offsetWidth||0,s=Fu(r)&&r.offsetHeight||0,o=getComputedStyle(n),c=this.props.sizeRef.current;c.height=parseFloat(o.height),c.width=parseFloat(o.width),c.top=n.offsetTop,c.left=n.offsetLeft,c.right=a-c.width-c.left,c.bottom=s-c.height-c.top}return null}componentDidUpdate(){}render(){return this.props.children}}function b2({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:s}){var b;const o=T.useId(),c=T.useRef(null),d=T.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=T.useContext(Wo),m=((b=e.props)==null?void 0:b.ref)??(e==null?void 0:e.ref),h=h2(c,m);return T.useInsertionEffect(()=>{const{width:y,height:E,top:k,left:w,right:v,bottom:N}=d.current;if(t||s===!1||!c.current||!y||!E)return;const A=n==="left"?`left: ${w}`:`right: ${v}`,_=r==="bottom"?`bottom: ${N}`:`top: ${k}`;c.current.dataset.motionPopId=o;const M=document.createElement("style");f&&(M.nonce=f);const D=a??document.head;return D.appendChild(M),M.sheet&&M.sheet.insertRule(`
|
|
52
|
-
[data-motion-pop-id="${o}"] {
|
|
53
|
-
position: absolute !important;
|
|
54
|
-
width: ${y}px !important;
|
|
55
|
-
height: ${E}px !important;
|
|
56
|
-
${A}px !important;
|
|
57
|
-
${_}px !important;
|
|
58
|
-
}
|
|
59
|
-
`),()=>{var R;(R=c.current)==null||R.removeAttribute("data-motion-pop-id"),D.contains(M)&&D.removeChild(M)}},[t]),u.jsx(g2,{isPresent:t,childRef:c,sizeRef:d,pop:s,children:s===!1?e:T.cloneElement(e,{ref:h})})}const y2=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:s,mode:o,anchorX:c,anchorY:d,root:f})=>{const m=ri(x2),h=T.useId();let b=!0,y=T.useMemo(()=>(b=!1,{id:h,initial:t,isPresent:n,custom:a,onExitComplete:E=>{m.set(E,!0);for(const k of m.values())if(!k)return;r&&r()},register:E=>(m.set(E,!1),()=>m.delete(E))}),[n,m,r]);return s&&b&&(y={...y}),T.useMemo(()=>{m.forEach((E,k)=>m.set(k,!1))},[n]),T.useEffect(()=>{!n&&!m.size&&r&&r()},[n]),e=u.jsx(b2,{pop:o==="popLayout",isPresent:n,anchorX:c,anchorY:d,root:f,children:e}),u.jsx(Tc.Provider,{value:y,children:e})};function x2(){return new Map}function rI(e=!0){const t=T.useContext(Tc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=T.useId();T.useEffect(()=>{if(e)return a(s)},[e]);const o=T.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const xu=e=>e.key||"";function ok(e){const t=[];return T.Children.forEach(e,n=>{T.isValidElement(n)&&t.push(n)}),t}const xn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:s="sync",propagate:o=!1,anchorX:c="left",anchorY:d="top",root:f})=>{const[m,h]=rI(o),b=T.useMemo(()=>ok(e),[e]),y=o&&!m?[]:b.map(xu),E=T.useRef(!0),k=T.useRef(b),w=ri(()=>new Map),v=T.useRef(new Set),[N,A]=T.useState(b),[_,M]=T.useState(b);Ym(()=>{E.current=!1,k.current=b;for(let P=0;P<_.length;P++){const B=xu(_[P]);y.includes(B)?(w.delete(B),v.current.delete(B)):w.get(B)!==!0&&w.set(B,!1)}},[_,y.length,y.join("-")]);const D=[];if(b!==N){let P=[...b];for(let B=0;B<_.length;B++){const O=_[B],$=xu(O);y.includes($)||(P.splice(B,0,O),D.push(O))}return s==="wait"&&D.length&&(P=D),M(ok(P)),A(b),null}const{forceRender:R}=T.useContext(qm);return u.jsx(u.Fragment,{children:_.map(P=>{const B=xu(P),O=o&&!m?!1:b===_||y.includes(B),$=()=>{if(v.current.has(B))return;if(w.has(B))v.current.add(B),w.set(B,!0);else return;let H=!0;w.forEach(Z=>{Z||(H=!1)}),H&&(R==null||R(),M(k.current),o&&(h==null||h()),r&&r())};return u.jsx(y2,{isPresent:O,initial:!E.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:s,root:f,onExitComplete:O?void 0:$,anchorX:c,anchorY:d,children:P},B)})})},aI=T.createContext({strict:!1}),lk={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let uk=!1;function E2(){if(uk)return;const e={};for(const t in lk)e[t]={isEnabled:n=>lk[t].some(r=>!!n[r])};LA(e),uk=!0}function iI(){return E2(),aj()}function S2(e){const t=iI();for(const n in e)t[n]={...t[n],...e[n]};LA(t)}const v2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ic(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||v2.has(e)}let sI=e=>!ic(e);function w2(e){typeof e=="function"&&(sI=t=>t.startsWith("on")?!ic(t):e(t))}try{w2(require("@emotion/is-prop-valid").default)}catch{}function k2(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||Pt(e[a])||(sI(a)||n===!0&&ic(a)||!t&&!ic(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Cc=T.createContext({});function T2(e,t){if(Ic(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ao(n)?n:void 0,animate:Ao(r)?r:void 0}}return e.inherit!==!1?t:{}}function N2(e){const{initial:t,animate:n}=T2(e,T.useContext(Cc));return T.useMemo(()=>({initial:t,animate:n}),[ck(t),ck(n)])}function ck(e){return Array.isArray(e)?e.join(" "):e}const Eh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function oI(e,t,n){for(const r in t)!Pt(t[r])&&!UA(r,n)&&(e[r]=t[r])}function A2({transformTemplate:e},t){return T.useMemo(()=>{const n=Eh();return yh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function I2(e,t){const n=e.style||{},r={};return oI(r,n,e),Object.assign(r,A2(e,t)),r}function C2(e,t){const n={},r=I2(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const lI=()=>({...Eh(),attrs:{}});function R2(e,t,n,r){const a=T.useMemo(()=>{const s=lI();return $A(s,t,GA(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};oI(s,e.style,e),a.style={...s,...a.style}}return a}const _2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Sh(e){return typeof e!="string"||e.includes("-")?!1:!!(_2.indexOf(e)>-1||/[A-Z]/u.test(e))}function O2(e,t,n,{latestValues:r},a,s=!1,o){const d=(o??Sh(e)?R2:C2)(t,r,a,e),f=k2(t,typeof e=="string",s),m=e!==T.Fragment?{...f,...d,ref:n}:{},{children:h}=t,b=T.useMemo(()=>Pt(h)?h.get():h,[h]);return T.createElement(e,{...m,children:b})}function L2({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:D2(n,r,a,e),renderState:t()}}function D2(e,t,n,r){const a={},s=r(e,{});for(const b in s)a[b]=zu(s[b]);let{initial:o,animate:c}=e;const d=Ic(e),f=_A(e);t&&f&&!d&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||o===!1;const h=m?c:o;if(h&&typeof h!="boolean"&&!Ac(h)){const b=Array.isArray(h)?h:[h];for(let y=0;y<b.length;y++){const E=uh(e,b[y]);if(E){const{transitionEnd:k,transition:w,...v}=E;for(const N in v){let A=v[N];if(Array.isArray(A)){const _=m?A.length-1:0;A=A[_]}A!==null&&(a[N]=A)}for(const N in k)a[N]=k[N]}}}return a}const uI=e=>(t,n)=>{const r=T.useContext(Cc),a=T.useContext(Tc),s=()=>L2(e,t,r,a);return n?s():ri(s)},M2=uI({scrapeMotionValuesFromProps:xh,createRenderState:Eh}),j2=uI({scrapeMotionValuesFromProps:HA,createRenderState:lI}),F2=Symbol.for("motionComponentSymbol");function P2(e,t,n){const r=T.useRef(n);T.useInsertionEffect(()=>{r.current=n});const a=T.useRef(null);return T.useCallback(s=>{var c;s&&((c=e.onMount)==null||c.call(e,s));const o=r.current;if(typeof o=="function")if(s){const d=o(s);typeof d=="function"&&(a.current=d)}else a.current?(a.current(),a.current=null):o(s);else o&&(o.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const cI=T.createContext({});function zi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function B2(e,t,n,r,a,s){var A,_;const{visualElement:o}=T.useContext(Cc),c=T.useContext(aI),d=T.useContext(Tc),f=T.useContext(Wo),m=f.reducedMotion,h=f.skipAnimations,b=T.useRef(null),y=T.useRef(!1);r=r||c.renderer,!b.current&&r&&(b.current=r(e,{visualState:t,parent:o,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:m,skipAnimations:h,isSVG:s}),y.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const E=b.current,k=T.useContext(cI);E&&!E.projection&&a&&(E.type==="html"||E.type==="svg")&&U2(b.current,n,a,k);const w=T.useRef(!1);T.useInsertionEffect(()=>{E&&w.current&&E.update(n,d)});const v=n[yA],N=T.useRef(!!v&&typeof window<"u"&&!((A=window.MotionHandoffIsComplete)!=null&&A.call(window,v))&&((_=window.MotionHasOptimisedAnimation)==null?void 0:_.call(window,v)));return Ym(()=>{y.current=!0,E&&(w.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),N.current&&E.animationState&&E.animationState.animateChanges())}),T.useEffect(()=>{E&&(!N.current&&E.animationState&&E.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{var M;(M=window.MotionHandoffMarkAsComplete)==null||M.call(window,v)}),N.current=!1),E.enteringChildren=void 0)}),E}function U2(e,t,n,r){const{layoutId:a,layout:s,drag:o,dragConstraints:c,layoutScroll:d,layoutRoot:f,layoutAnchor:m,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dI(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!o||c&&zi(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:d,layoutRoot:f,layoutAnchor:m})}function dI(e){if(e)return e.options.allowProjection!==!1?e.projection:dI(e.parent)}function af(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&S2(r);const s=n?n==="svg":Sh(e),o=s?j2:M2;function c(f,m){let h;const b={...T.useContext(Wo),...f,layoutId:$2(f)},{isStatic:y}=b,E=N2(f),k=o(f,y);if(!y&&typeof window<"u"){z2();const w=G2(b);h=w.MeasureLayout,E.visualElement=B2(e,k,b,a,w.ProjectionNode,s)}return u.jsxs(Cc.Provider,{value:E,children:[h&&E.visualElement?u.jsx(h,{visualElement:E.visualElement,...b}):null,O2(e,f,P2(k,E.visualElement,m),k,y,t,s)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const d=T.forwardRef(c);return d[F2]=e,d}function $2({layoutId:e}){const t=T.useContext(qm).id;return t&&e!==void 0?t+"-"+e:e}function z2(e,t){T.useContext(aI).strict}function G2(e){const t=iI(),{drag:n,layout:r}=t;if(!n&&!r)return{};const a={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function H2(e,t){if(typeof Proxy>"u")return af;const n=new Map,r=(s,o)=>af(s,o,e,t),a=(s,o)=>r(s,o);return new Proxy(a,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,af(o,void 0,e,t)),n.get(o))})}const V2=(e,t)=>t.isSVG??Sh(e)?new Sj(t):new hj(t,{allowProjection:e!==T.Fragment});class W2 extends Na{constructor(t){super(t),t.animationState||(t.animationState=Nj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ac(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let q2=0;class Y2 extends Na{constructor(){super(...arguments),this.id=q2++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:c}=this.node.getProps();if(typeof o=="string"){const d=ni(this.node,o,c);if(d){const{transition:f,transitionEnd:m,...h}=d;for(const b in h)(s=this.node.getValue(b))==null||s.jump(h[b])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const K2={animation:{Feature:W2},exit:{Feature:Y2}};function qo(e){return{point:{x:e.pageX,y:e.pageY}}}const X2=e=>t=>fh(t)&&e(t,qo(t));function go(e,t,n,r){return Io(e,t,X2(n),r)}const pI=({current:e})=>e?e.ownerDocument.defaultView:null,dk=(e,t)=>Math.abs(e-t);function Z2(e,t){const n=dk(e.x,t.x),r=dk(e.y,t.y);return Math.sqrt(n**2+r**2)}const pk=new Set(["auto","scroll"]);class fI{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Eu(this.lastRawMoveEventInfo,this.transformPagePoint));const y=sf(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,k=Z2(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!k)return;const{point:w}=y,{timestamp:v}=qt;this.history.push({...w,timestamp:v});const{onStart:N,onMove:A}=this.handlers;E||(N&&N(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,y)},this.handlePointerMove=(y,E)=>{this.lastMoveEvent=y,this.lastRawMoveEventInfo=E,this.lastMoveEventInfo=Eu(E,this.transformPagePoint),st.update(this.updatePoint,!0)},this.handlePointerUp=(y,E)=>{this.end();const{onEnd:k,onSessionEnd:w,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=sf(y.type==="pointercancel"?this.lastMoveEventInfo:Eu(E,this.transformPagePoint),this.history);this.startEvent&&k&&k(y,N),w&&w(y,N)},!fh(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=a||window;const d=qo(t),f=Eu(d,this.transformPagePoint),{point:m}=f,{timestamp:h}=qt;this.history=[{...m,timestamp:h}];const{onSessionStart:b}=n;b&&b(t,sf(f,this.history)),this.removeListeners=Go(go(this.contextWindow,"pointermove",this.handlePointerMove),go(this.contextWindow,"pointerup",this.handlePointerUp),go(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(pk.has(r.overflowX)||pk.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,a=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:a.x-n.x,y:a.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,a),st.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Vr(this.updatePoint)}}function Eu(e,t){return t?{point:t(e.point)}:e}function fk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sf({point:e},t){return{point:e,delta:fk(e,mI(t)),offset:fk(e,Q2(t)),velocity:J2(t,.1)}}function Q2(e){return e[0]}function mI(e){return e[e.length-1]}function J2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=mI(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Cn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>Cn(t)*2&&(r=e[1]);const s=Vn(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function eF(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ht(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ht(n,e,r.max):Math.min(e,n)),e}function mk(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function tF(e,{top:t,left:n,bottom:r,right:a}){return{x:mk(e.x,n,a),y:mk(e.y,t,r)}}function hk(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nF(e,t){return{x:hk(e.x,t.x),y:hk(e.y,t.y)}}function rF(e,t){let n=.5;const r=cn(e),a=cn(t);return a>r?n=ko(t.min,t.max-r,e.min):r>a&&(n=ko(e.min,e.max-a,t.min)),Cr(0,1,n)}function aF(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const cm=.35;function iF(e=cm){return e===!1?e=0:e===!0&&(e=cm),{x:gk(e,"left","right"),y:gk(e,"top","bottom")}}function gk(e,t,n){return{min:bk(e,t),max:bk(e,n)}}function bk(e,t){return typeof e=="number"?e:e[t]||0}const sF=new WeakMap;class oF{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=h=>{n&&this.snapToCursor(qo(h).point),this.stopAnimation()},o=(h,b)=>{const{drag:y,dragPropagation:E,onDragStart:k}=this.getProps();if(y&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=LM(y),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vr(v=>{let N=this.getAxisMotionValue(v).get()||0;if(Ir.test(N)){const{projection:A}=this.visualElement;if(A&&A.layout){const _=A.layout.layoutBox[v];_&&(N=cn(_)*(parseFloat(N)/100))}}this.originPoint[v]=N}),k&&st.update(()=>k(h,b),!1,!0),nm(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(h,b)=>{this.latestPointerEvent=h,this.latestPanInfo=b;const{dragPropagation:y,dragDirectionLock:E,onDirectionLock:k,onDrag:w}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:v}=b;if(E&&this.currentDirection===null){this.currentDirection=uF(v),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",b.point,v),this.updateAxis("y",b.point,v),this.visualElement.render(),w&&st.update(()=>w(h,b),!1,!0)},d=(h,b)=>{this.latestPointerEvent=h,this.latestPanInfo=b,this.stop(h,b),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new fI(t,{onSessionStart:s,onStart:o,onMove:c,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:pI(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:o}=a;this.startAnimation(o);const{onDragEnd:c}=this.getProps();c&&st.postRender(()=>c(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Su(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=eF(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,a=this.constraints;t&&zi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=tF(r.layoutBox,t):this.constraints=!1,this.elastic=iF(n),a!==this.constraints&&!zi(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&vr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=aF(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!zi(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=uj(r,a.root,this.visualElement.getTransformPagePoint());let o=nF(a.layout.layoutBox,s);if(n){const c=n(sj(o));this.hasMutatedConstraints=!!c,c&&(o=MA(c))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},f=vr(m=>{if(!Su(m,n,this.currentDirection))return;let h=d&&d[m]||{};(o===!0||o===m)&&(h={min:0,max:0});const b=a?200:1e6,y=a?40:1e7,E={type:"inertia",velocity:r?t[m]:0,bounceStiffness:b,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(m,E)});return Promise.all(f).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return nm(this.visualElement,t),r.start(lh(t,r,0,n,this.visualElement,!1))}stopAnimation(){vr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){vr(n=>{const{drag:r}=this.getProps();if(!Su(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:o,max:c}=a.layout.layoutBox[n],d=s.get()||0;s.set(t[n]-ht(o,c,.5)+d)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!zi(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};vr(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const d=c.get();a[o]=rF({min:d,max:d},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),vr(o=>{if(!Su(o,t,null))return;const c=this.getAxisMotionValue(o),{min:d,max:f}=this.constraints[o];c.set(ht(d,f,a[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;sF.set(this.visualElement,this);const t=this.visualElement.current,n=go(t,"pointerdown",f=>{const{drag:m,dragListener:h=!0}=this.getProps(),b=f.target,y=b!==t&&BM(b);m&&h&&!y&&this.start(f)});let r;const a=()=>{const{dragConstraints:f}=this.getProps();zi(f)&&f.current&&(this.constraints=this.resolveRefConstraints(),r||(r=lF(t,f.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",a);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),st.read(a);const c=Io(window,"resize",()=>this.scalePositionWithinConstraints()),d=s.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:m})=>{this.isDragging&&m&&(vr(h=>{const b=this.getAxisMotionValue(h);b&&(this.originPoint[h]+=f[h].translate,b.set(b.get()+f[h].translate))}),this.visualElement.render())}));return()=>{c(),n(),o(),d&&d(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:o=cm,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:o,dragMomentum:c}}}function yk(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function lF(e,t,n){const r=kw(e,yk(n)),a=kw(t,yk(n));return()=>{r(),a()}}function Su(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class cF extends Na{constructor(t){super(t),this.removeGroupControls=Kn,this.removeListeners=Kn,this.controls=new oF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const of=e=>(t,n)=>{e&&st.update(()=>e(t,n),!1,!0)};class dF extends Na{constructor(){super(...arguments),this.removePointerDownListener=Kn}onPointerDown(t){this.session=new fI(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pI(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:of(t),onStart:of(n),onMove:of(r),onEnd:(s,o)=>{delete this.session,a&&st.postRender(()=>a(s,o))}}}mount(){this.removePointerDownListener=go(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let lf=!1;class pF extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),lf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Gu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),lf=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||st.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),ph.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;lf=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function hI(e){const[t,n]=rI(),r=T.useContext(qm);return u.jsx(pF,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(cI),isPresent:t,safeToRemove:n})}const fF={pan:{Feature:dF},drag:{Feature:cF,ProjectionNode:nI,MeasureLayout:hI}};function xk(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&st.postRender(()=>s(t,qo(t)))}class mF extends Na{mount(){const{current:t}=this.node;t&&(this.unmount=MM(t,(n,r)=>(xk(this.node,r,"Start"),a=>xk(this.node,a,"End"))))}unmount(){}}class hF extends Na{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Go(Io(this.node.current,"focus",()=>this.onFocus()),Io(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ek(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&st.postRender(()=>s(t,qo(t)))}class gF extends Na{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=$M(t,(a,s)=>(Ek(this.node,s,"Start"),(o,{success:c})=>Ek(this.node,o,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const dm=new WeakMap,uf=new WeakMap,bF=e=>{const t=dm.get(e.target);t&&t(e)},yF=e=>{e.forEach(bF)};function xF({root:e,...t}){const n=e||document;uf.has(n)||uf.set(n,{});const r=uf.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(yF,{root:e,...t})),r[a]}function EF(e,t,n){const r=xF(t);return dm.set(e,n),r.observe(e),()=>{dm.delete(e),r.unobserve(e)}}const SF={some:0,all:1};class vF extends Na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var d;(d=this.stopObserver)==null||d.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:SF[a]},c=f=>{const{isIntersecting:m}=f;if(this.isInView===m||(this.isInView=m,s&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:h,onViewportLeave:b}=this.node.getProps(),y=m?h:b;y&&y(f)};this.stopObserver=EF(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wF(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function wF({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const kF={inView:{Feature:vF},tap:{Feature:gF},focus:{Feature:hF},hover:{Feature:mF}},TF={layout:{ProjectionNode:nI,MeasureLayout:hI}},NF={...K2,...kF,...fF,...TF},ee=H2(NF,V2);function sc(e){const t=ri(()=>ai(e)),{isStatic:n}=T.useContext(Wo);if(n){const[,r]=T.useState(e);T.useEffect(()=>t.on("change",r),[])}return t}function gI(e,t){const n=sc(t()),r=()=>n.set(t());return r(),Ym(()=>{const a=()=>st.preRender(r,!1,!0),s=e.map(o=>o.on("change",a));return()=>{s.forEach(o=>o()),Vr(r)}}),n}function AF(e){mo.current=[],e();const t=gI(mo.current,e);return mo.current=void 0,t}function ya(e,t,n,r){if(typeof e=="function")return AF(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return IF(e,t,n,r);const o=typeof t=="function"?t:ZM(t,n,r),c=Array.isArray(e)?Sk(e,o):Sk([e],([f])=>o(f)),d=Array.isArray(e)?void 0:e.accelerate;return d&&!d.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(c.accelerate={...d,times:t,keyframes:n,isTransformed:!0}),c}function Sk(e,t){const n=ri(()=>[]);return gI(e,()=>{n.length=0;const r=e.length;for(let a=0;a<r;a++)n[a]=e[a].get();return t(n)})}function IF(e,t,n,r){const a=ri(()=>Object.keys(n)),s=ri(()=>({}));for(const o of a)s[o]=ya(e,t,n[o],r);return s}function CF(e,t={}){const{isStatic:n}=T.useContext(Wo),r=()=>Pt(e)?e.get():e;if(n)return ya(r);const a=sc(r());return T.useInsertionEffect(()=>QM(a,e,t),[a,JSON.stringify(t)]),a}function oc(e,t={}){return CF(e,{type:"spring",...t})}function RF(){!bh.current&&OA();const[e]=T.useState(tc.current);return e}const vk=e=>{let t;const n=new Set,r=(f,m)=>{const h=typeof f=="function"?f(t):f;if(!Object.is(h,t)){const b=t;t=m??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(y=>y(t,b))}},a=()=>t,c={setState:r,getState:a,getInitialState:()=>d,subscribe:f=>(n.add(f),()=>n.delete(f))},d=t=e(r,a,c);return c},_F=(e=>e?vk(e):vk),OF=e=>e;function LF(e,t=OF){const n=me.useSyncExternalStore(e.subscribe,me.useCallback(()=>t(e.getState()),[e,t]),me.useCallback(()=>t(e.getInitialState()),[e,t]));return me.useDebugValue(n),n}const wk=e=>{const t=_F(e),n=r=>LF(t,r);return Object.assign(n,t),n},DF=(e=>e?wk(e):wk),pm="harness-last-thread-id";let kk=2;function MF(){var e;try{return((e=globalThis.localStorage)==null?void 0:e.getItem(pm))??null}catch{return null}}function jF(e){var t,n;try{e?(t=globalThis.localStorage)==null||t.setItem(pm,e):(n=globalThis.localStorage)==null||n.removeItem(pm)}catch{}}function FF(e){switch(e){case"chat":return"user";case"attention":return"alert";case"agent":return"organism";case"analysis":case"system":return"system"}}function PF(e){switch(e){case"attention":return"pending";default:return"active"}}function BF(e,t){switch(e){case"agent":return`agent:${t.issueId}`;case"attention":return`attn:${t.interactionId}`;case"chat":return`chat:${t.sessionId}`;default:return crypto.randomUUID()}}function UF(e,t){switch(e){case"chat":return t.command&&t.command.split(":").pop()||"New Chat";case"attention":return`Attention: ${t.issueId}`;case"analysis":return t.analysisTitle;case"agent":return t.issueTitle||t.identifier;case"system":return"System";default:return"Thread"}}function $F(e){const t=[],n=[],r=[],a=[];for(const s of e.values()){if(s.type==="system"){a.push(s);continue}if(s.type==="attention"&&s.status==="pending"){t.push(s);continue}if(s.status==="completed"||s.status==="dismissed"){r.push(s);continue}n.push(s)}return t.sort((s,o)=>o.createdAt-s.createdAt),n.sort((s,o)=>o.updatedAt-s.updatedAt),r.sort((s,o)=>o.updatedAt-s.updatedAt),{attention:t,active:n,recent:r,system:a}}function zF(e){return $F(e.threads)}const Ge=DF((e,t)=>({threads:new Map,activeThreadId:null,lastThreadId:MF(),hydrated:!1,messages:new Map,panelState:new Map,createThread(n,r){const a=BF(n,r),s=t().threads.get(a);if(s)return s;const o=Date.now(),c={id:a,type:n,title:UF(n,r),status:PF(n),createdAt:o,updatedAt:o,avatar:FF(n),unread:n==="attention",meta:r};return e(d=>{const f=new Map(d.threads);return f.set(c.id,c),{threads:f}}),c},closeThread(n){e(r=>{const a=new Map(r.threads);a.delete(n);const s=new Map(r.messages);s.delete(n);const o=new Map(r.panelState);o.delete(n);const c=r.activeThreadId===n?null:r.activeThreadId;return{threads:a,messages:s,panelState:o,activeThreadId:c}})},claimThread(n){e(r=>{const a=r.threads.get(n);if(!a)return r;const s={...a,status:"active",unread:!1,updatedAt:Date.now()},o=new Map(r.threads);return o.set(n,s),{threads:o}})},dismissThread(n){e(r=>{const a=r.threads.get(n);if(!a)return r;const s={...a,status:"dismissed",unread:!1,updatedAt:Date.now()},o=new Map(r.threads);return o.set(n,s),{threads:o}})},setActiveThread(n){e({activeThreadId:n}),n&&(jF(n),e({lastThreadId:n}))},updateThread(n,r){e(a=>{const s=a.threads.get(n);if(!s)return a;const o={...s,...r,updatedAt:Date.now()},c=new Map(a.threads);return c.set(n,o),{threads:c}})},markSourceHydrated(){kk--,kk<=0&&e({hydrated:!0})},setMessages(n,r){e(a=>{const s=new Map(a.messages);return s.set(n,r),{messages:s}})},appendMessage(n,r){e(a=>{const s=new Map(a.messages),o=s.get(n)??[];return s.set(n,[...o,r]),{messages:s}})},updateLastMessage(n,r){e(a=>{const s=new Map(a.messages),o=s.get(n);if(!o||o.length===0)return a;const c=[...o];return c[c.length-1]=r(c[c.length-1]),s.set(n,c),{messages:s}})},updatePanelState(n,r){e(a=>{const s=new Map(a.panelState),o=s.get(n)??{todos:[],phase:null,skill:null,startedAt:null,artifacts:[],contextSources:[]};return s.set(n,{...o,...r}),{panelState:s}})}}));function bI(e){for(const t of Ge.getState().threads.values())if(t.type==="agent"&&t.meta.issueId===e)return t;return null}async function GF(){try{const e=await fetch("/api/streams");if(!e.ok)return;const t=await e.json(),n=Ge.getState();for(const r of t){if(bI(r.issueId))continue;const a=r.attempts.at(-1);if(a&&!a.endedAt)continue;const o=n.createThread("agent",{issueId:r.issueId,identifier:r.identifier,phase:"completed",issueTitle:r.title??r.identifier,issueDescription:null,startedAt:(a==null?void 0:a.startedAt)??new Date().toISOString(),backendName:null});n.updateThread(o.id,{status:"completed"})}}finally{Ge.getState().markSourceHydrated()}}function HF(e,t,n){var s,o,c;const r=Ge.getState(),a=bI(e);if(n.has(e)){if(a){const d=a.meta;(d.phase!==t.phase||d.backendName!==(((s=t.session)==null?void 0:s.backendName)??null))&&r.updateThread(a.id,{meta:{...d,phase:t.phase,backendName:((o=t.session)==null?void 0:o.backendName)??null}})}return}n.add(e),a||r.createThread("agent",{issueId:e,identifier:t.identifier,phase:t.phase,issueTitle:t.issue.title,issueDescription:t.issue.description,startedAt:t.startedAt,backendName:((c=t.session)==null?void 0:c.backendName)??null})}function VF(e){const t=Ge.getState();for(const n of t.threads.values())n.type==="agent"&&n.status==="active"&&(e.has(n.meta.issueId)||t.updateThread(n.id,{status:"completed"}))}function WF(e){const t=T.useRef(new Set),n=T.useRef(!1);T.useEffect(()=>{n.current||(n.current=!0,GF())},[]),T.useEffect(()=>{if(!e.snapshot)return;const r=new Set;for(const[a,s]of e.snapshot.running)r.add(a),HF(a,s,t.current);VF(r)},[e.snapshot])}function qF(e){const t=Ge.getState().threads;for(const n of t.values())if(n.type==="attention"&&n.meta.interactionId===e)return!0;return!1}function Tk(e){Ge.getState().createThread("attention",{interactionId:e.id,issueId:e.issueId,reasons:e.reasons,context:e.context})}function YF(e){const t=T.useRef(new Set),n=T.useRef(!1);T.useEffect(()=>{n.current||(n.current=!0,fetch("/api/interactions").then(r=>r.ok?r.json():[]).then(r=>{for(const a of r)a.status!=="resolved"&&(t.current.has(a.id)||(t.current.add(a.id),qF(a.id)||Tk(a)))}).catch(()=>{}).finally(()=>Ge.getState().markSourceHydrated()))},[]),T.useEffect(()=>{for(const r of e.interactions)t.current.has(r.id)||(t.current.add(r.id),Tk(r))},[e.interactions])}function KF(e){return typeof e.content=="string"?e.content:e.content==null?"":typeof e.content=="object"?JSON.stringify(e.content):String(e.content)}function XF(e,t){const n=e[e.length-1];(n==null?void 0:n.kind)==="text"?e[e.length-1]={kind:"text",text:n.text+t}:((n==null?void 0:n.kind)==="status"&&e.pop(),e.push({kind:"text",text:t}))}function ZF(e,t){const n=e[e.length-1];(n==null?void 0:n.kind)==="thinking"?e[e.length-1]={kind:"thinking",text:n.text+t}:e.push({kind:"thinking",text:t})}function QF(e,t){const n=t.match(/^Calling (\S+)\(([\s\S]*)\)$/);n?e.push({kind:"tool_use",tool:n[1],...n[2]!=null?{args:n[2]}:{}}):e.push({kind:"tool_use",tool:t})}function JF(e,t){const n=e[e.length-1];(n==null?void 0:n.kind)==="status"?e[e.length-1]={kind:"status",text:t}:e.push({kind:"status",text:t})}function yI(e,t){const n=KF(t);switch(t.type){case"text":XF(e,n);break;case"thought":ZF(e,n);break;case"call":QF(e,n);break;case"result":n&&e.push({kind:"text",text:n});break;case"rate_limit":e.push({kind:"status",text:"Rate limit — cooling down..."});break;case"status":JF(e,n);break;case"turn_start":break;default:n&&e.push({kind:"status",text:n});break}}const eP=1e3,tP=3e4,Nk=500;function nP(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}function rP(e,t){const{issueId:n,event:r}=t;if(!n||!r)return e;const a=[...e[n]??[]];yI(a,r);const s=a.length>Nk?a.slice(a.length-Nk):a;return{...e,[n]:s}}function aP(e,t){const n=Object.keys(e).filter(a=>!t.has(a));if(n.length===0)return e;const r={...e};for(const a of n)delete r[a];return r}function iP(e,t){return e.some(n=>n.id===t.id)?e:[...e,t]}function sP(e,t,n,r,a){switch(e.type){case"state_change":t(e.data);break;case"interaction_new":n(s=>iP(s,e.data));break;case"agent_event":r(s=>rP(s,e.data));break;case"maintenance:started":a({type:"maintenance:started",data:e.data});break;case"maintenance:error":a({type:"maintenance:error",data:e.data});break;case"maintenance:completed":a({type:"maintenance:completed",data:e.data});break}}function xI(e,t,n,r,a,s,o,c){const d=new WebSocket(nP());return d.onopen=()=>{e.current&&(n.current=0,r(!0))},d.onmessage=f=>{if(e.current)try{const m=JSON.parse(f.data);if(typeof m!="object"||m===null||!("type"in m))return;sP(m,a,s,o,c)}catch{}},d.onclose=()=>{if(!e.current)return;r(!1);const f=Math.min(eP*2**n.current,tP);n.current+=1,t.current=setTimeout(()=>xI(e,t,n,r,a,s,o,c),f)},d.onerror=()=>{},d}function Yo(){const[e,t]=T.useState(null),[n,r]=T.useState([]),[a,s]=T.useState({}),[o,c]=T.useState(null),[d,f]=T.useState(!1),m=T.useRef(null),h=T.useRef(0),b=T.useCallback(y=>{r(E=>E.filter(k=>k.id!==y))},[]);return T.useEffect(()=>{const y={current:!0},E=xI(y,m,h,f,t,r,s,c);return()=>{y.current=!1,E.close(),m.current&&clearTimeout(m.current)}},[]),T.useEffect(()=>{if(!e)return;const y=new Set(e.running.map(([E])=>E));s(E=>aP(E,y))},[e]),{snapshot:e,interactions:n,agentEvents:a,maintenanceEvent:o,connected:d,removeInteraction:b,setInteractions:r}}const EI=T.createContext({pulse:{stressLevel:0,isHealthy:!0,totalIssues:0},setPulse:()=>{}});function oP({children:e}){const[t,n]=T.useState({stressLevel:0,isHealthy:!0,totalIssues:0});return u.jsx(EI.Provider,{value:{pulse:t,setPulse:n},children:e})}const lP=()=>T.useContext(EI),Ak=["rgba(12, 106, 158, 0.4)","rgba(14, 143, 160, 0.35)","rgba(10, 80, 120, 0.3)","rgba(16, 185, 129, 0.25)","rgba(8, 104, 120, 0.3)"];function uP(e){return Array.from({length:e},(t,n)=>({id:n,left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,size:2.5+Math.random()*6,color:Ak[n%Ak.length],driftX:`${(Math.random()-.5)*200}px`,driftY:`${(Math.random()-.5)*150-50}px`,driftScale:.7+Math.random()*.9,duration:`${15+Math.random()*25}s`,delay:`${Math.random()*-20}s`}))}function cP({mouseX:e,mouseY:t}){const{pulse:n}=lP(),r=T.useMemo(()=>uP(85),[]),a={damping:50,stiffness:100},s=oc(0,a),o=oc(0,a);T.useEffect(()=>{s.set(e),o.set(t)},[e,t,s,o]);const c=ya(s,[0,2e3],[20,-20]),d=ya(o,[0,1200],[20,-20]),f=ya(s,[0,2e3],[40,-40]),m=ya(o,[0,1200],[40,-40]),h=ya(s,[0,2e3],[10,-10]),b=ya(o,[0,1200],[10,-10]),y=n.stressLevel>.5;return u.jsxs("div",{className:"pointer-events-none fixed inset-0 -z-10 overflow-hidden transition-colors duration-1000",style:{background:"linear-gradient(180deg, #010408 0%, #020a14 30%, #030e1c 60%, #010610 100%)"},children:[u.jsx(ee.div,{style:{x:c,y:d,background:y?"radial-gradient(circle at center, rgba(180, 80, 20, 0.12) 0%, rgba(120, 40, 10, 0.04) 40%, transparent 80%)":"radial-gradient(circle at center, rgba(12, 106, 158, 0.12) 0%, rgba(8, 104, 120, 0.04) 40%, transparent 80%)",transform:"translate3d(0,0,0)"},animate:{scale:[1,1.12,.95,1.05,1],opacity:[.5,.7,.4,.65,.5],x:[0,30,-20,15,0],y:[0,-25,10,-15,0]},transition:{duration:25,repeat:1/0,ease:"easeInOut"},className:"absolute -left-[10%] -top-[10%] h-[65%] w-[65%] rounded-full transition-all duration-[2s]"}),u.jsx(ee.div,{style:{x:f,y:m,background:y?"radial-gradient(circle at center, rgba(120, 40, 10, 0.08) 0%, rgba(180, 80, 20, 0.02) 40%, transparent 80%)":"radial-gradient(circle at center, rgba(8, 104, 120, 0.08) 0%, rgba(10, 80, 60, 0.02) 40%, transparent 80%)",transform:"translate3d(0,0,0)"},animate:{scale:[1.1,.9,1.15,.95,1.1],opacity:[.3,.5,.25,.45,.3],x:[0,-40,20,-10,0],y:[0,20,-30,15,0]},transition:{duration:32,repeat:1/0,ease:"easeInOut"},className:"absolute -bottom-[15%] -right-[10%] h-[70%] w-[70%] rounded-full transition-all duration-[2s]"}),u.jsx(ee.div,{style:{x:h,y:b,background:"radial-gradient(circle at center, rgba(12, 106, 158, 0.06) 0%, rgba(8, 68, 80, 0.02) 40%, transparent 80%)",transform:"translate3d(0,0,0)"},animate:{scale:[1,1.3,.85,1.15,1],opacity:[.2,.4,.15,.35,.2],x:[0,50,-30,20,0],y:[0,-40,30,-20,0]},transition:{duration:40,repeat:1/0,ease:"easeInOut"},className:"absolute left-[15%] top-[25%] h-[55%] w-[55%] rounded-full"}),u.jsx(ee.div,{animate:{x:[0,80,-60,40,0],y:[0,-50,30,-20,0],scale:[1,1.2,.9,1.1,1],opacity:[.15,.25,.1,.2,.15]},transition:{duration:50,repeat:1/0,ease:"easeInOut"},className:"absolute left-[40%] top-[50%] h-[40%] w-[50%] rounded-full",style:{background:"radial-gradient(circle at center, rgba(2, 8, 20, 0.7) 0%, rgba(1, 4, 8, 0.35) 40%, transparent 80%)",transform:"translate3d(0,0,0)"}}),u.jsx(ee.div,{animate:{x:[0,-70,50,-30,0],y:[0,40,-50,25,0],scale:[1.1,.85,1.2,.95,1.1],opacity:[.1,.2,.08,.18,.1]},transition:{duration:38,repeat:1/0,ease:"easeInOut",delay:8},className:"absolute left-[-5%] top-[10%] h-[50%] w-[45%] rounded-full",style:{background:"radial-gradient(circle at center, rgba(2, 12, 24, 0.6) 0%, rgba(1, 6, 12, 0.25) 40%, transparent 80%)",transform:"translate3d(0,0,0)"}}),u.jsx(ee.div,{animate:{backgroundPosition:["0% 0%","50% 100%","100% 0%"],opacity:[.015,.03,.015]},transition:{duration:20,repeat:1/0,ease:"easeInOut"},className:"absolute inset-0",style:{backgroundImage:`
|
|
60
|
-
radial-gradient(ellipse 400px 120px at 25% 8%, rgba(12, 106, 158, 0.15), transparent),
|
|
61
|
-
radial-gradient(ellipse 300px 90px at 55% 4%, rgba(8, 104, 120, 0.1), transparent),
|
|
62
|
-
radial-gradient(ellipse 350px 100px at 75% 12%, rgba(12, 106, 158, 0.08), transparent)
|
|
63
|
-
`,backgroundSize:"200% 200%",transform:"translate3d(0,0,0)"}}),u.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, transparent 0%, transparent 40%, rgba(1, 4, 8, 0.5) 100%)",transform:"translate3d(0,0,0)"}}),r.map(E=>u.jsx("div",{className:"plankton",style:{left:E.left,top:E.top,width:E.size,height:E.size,backgroundColor:E.color,"--drift-x":E.driftX,"--drift-y":E.driftY,"--drift-scale":E.driftScale,"--drift-duration":E.duration,"--drift-delay":E.delay,transform:"translate3d(0,0,0)"}},E.id)),n.stressLevel>.7&&u.jsx(ee.div,{animate:{opacity:[0,.04,0]},transition:{duration:3,repeat:1/0},className:"absolute inset-0 bg-red-500/10 pointer-events-none"})]})}function ye(e,t){return e+(Math.random()-.5)*2*t}function Ik(e,t){return e.replace(/Q\s+([\d.]+)\s+([\d.]+)/,(n,r,a)=>{const s=parseFloat(r)+(Math.random()-.5)*2*t,o=parseFloat(a)+(Math.random()-.5)*2*t;return`Q ${s.toFixed(1)} ${o.toFixed(1)}`})}function cf(e,t,n,r){const a=[];for(let o=0;o<t;o++){const c=o/t*Math.PI*2,d=n+(Math.random()-.5)*r;a.push({x:e+Math.cos(c)*d,y:e+Math.sin(c)*d})}let s=`M ${a[0].x.toFixed(1)} ${a[0].y.toFixed(1)}`;for(let o=0;o<t;o++){const c=a[(o+1)%t],d=a[o],f=(d.x+c.x)/2,m=(d.y+c.y)/2;s+=` Q ${d.x.toFixed(1)} ${d.y.toFixed(1)}, ${f.toFixed(1)} ${m.toFixed(1)}`}return s+=" Z",s}function Za(e,t,n){return Math.min(Math.max((e-t)/n,0),1)}function qi(e,t){return e.replace(/,\s*[\d.]+\)$/,`, ${t})`)}function dP(){const e=Math.random()*360,t=(e+140+Math.random()*40)%360,n=Math.random()*Math.PI*2,r=Math.random(),a=r<.3?null:r<.39?"medusa":r<.48?"lurker":r<.57?"radiant":r<.65?"bristle":r<.73?"tendril":r<.81?"nebula":r<.89?"wraith":"coral";let s,o,c,d,f,m,h,b,y=.8+Math.random()*.4,E=3+Math.floor(Math.random()*2),k,w;switch(a){case"medusa":{s=5+Math.floor(Math.random()*3);const v=Math.PI*1.3;o=Array.from({length:s},(N,A)=>n+Math.PI*.5+A/(s-1||1)*v-v/2+ye(0,.15)),c=o.map(()=>.85+Math.random()*.45),d=o.map(()=>(Math.random()-.3)*2.5),f=o.map(()=>Math.random()<.25),m=16+Math.floor(Math.random()*5),h=.25+Math.random()*.3,b=.95+Math.random()*.2,y=.9+Math.random()*.3,E=3,k="stripes",w={twinCore:!1,rings:Math.random()<.3,cometTail:!1,ghostMembrane:!1};break}case"lurker":{s=3+Math.floor(Math.random()*3);const v=Math.PI*2/s;o=Array.from({length:s},(N,A)=>n+A*v+ye(0,v*.2)),c=Array.from({length:s},(N,A)=>A===0?1.2+Math.random()*.25:.3+Math.random()*.2),d=Array.from({length:s},(N,A)=>A===0?(Math.random()-.5)*2:(Math.random()-.5)*.5),f=o.map(()=>!1),m=8+Math.floor(Math.random()*3),h=1.5+Math.random()*.5,b=.75+Math.random()*.1,y=.7+Math.random()*.15,k="none",w={twinCore:!1,rings:!1,cometTail:!1,ghostMembrane:!1};break}case"radiant":{s=5,o=Array.from({length:5},(v,N)=>n+N/5*Math.PI*2),c=Array.from({length:5},()=>.5+Math.random()*.15),d=Array.from({length:5},()=>(Math.random()-.5)*.5),f=Array.from({length:5},()=>!0),m=12+Math.floor(Math.random()*4),h=.35+Math.random()*.25,b=1+Math.random()*.2,y=1+Math.random()*.2,E=3,k="spots",w={twinCore:!1,rings:!1,cometTail:!1,ghostMembrane:Math.random()<.25};break}case"bristle":{s=8+Math.floor(Math.random()*2);const v=Math.PI*2/s;o=Array.from({length:s},(N,A)=>n+A*v+ye(0,v*.08)),c=Array.from({length:s},()=>.35+Math.random()*.15),d=Array.from({length:s},()=>(Math.random()-.5)*.25),f=o.map(()=>!1),m=8+Math.floor(Math.random()*3),h=.3+Math.random()*.25,b=.8+Math.random()*.15,y=.8+Math.random()*.15,k="rings",w={twinCore:!1,rings:!1,cometTail:!1,ghostMembrane:!1};break}case"tendril":{s=6+Math.floor(Math.random()*3);const v=Math.PI*.65;o=Array.from({length:s},(N,A)=>n+A/(s-1||1)*v-v/2+ye(0,.1)),c=Array.from({length:s},()=>.7+Math.random()*.55),d=Array.from({length:s},()=>(Math.random()-.5)*2),f=o.map(()=>Math.random()<.35),m=10+Math.floor(Math.random()*4),h=1.2+Math.random()*.8,b=.8+Math.random()*.15,y=.8+Math.random()*.15,k="veins",w={twinCore:!1,rings:!1,cometTail:Math.random()<.4,ghostMembrane:!1};break}case"nebula":{s=Math.floor(Math.random()*3),o=Array.from({length:s},(v,N)=>n+N*Math.PI+ye(0,.5)),c=Array.from({length:s},()=>.25+Math.random()*.2),d=Array.from({length:s},()=>(Math.random()-.5)*.8),f=o.map(()=>!1),m=6+Math.floor(Math.random()*3),h=.15+Math.random()*.15,b=1.1+Math.random()*.15,y=1.15+Math.random()*.25,E=4,k="rings",w={twinCore:!1,rings:Math.random()<.35,cometTail:!1,ghostMembrane:Math.random()<.4};break}case"wraith":{s=6+Math.floor(Math.random()*2);const v=Math.PI*2/s;o=Array.from({length:s},(N,A)=>n+A*v+ye(0,v*.25)),c=Array.from({length:s},()=>.7+Math.random()*.5),d=Array.from({length:s},()=>(Math.random()-.5)*3.5),f=o.map(()=>Math.random()<.25),m=10+Math.floor(Math.random()*5),h=1.5+Math.random()*.5,b=.85+Math.random()*.2,y=.85+Math.random()*.15,k="veins",w={twinCore:!0,rings:!0,cometTail:!1,ghostMembrane:Math.random()<.3};break}case"coral":{s=4+Math.floor(Math.random()*2);const v=Math.PI*2/s;o=Array.from({length:s},(N,A)=>n+A*v+ye(0,v*.15)),c=Array.from({length:s},()=>.9+Math.random()*.4),d=Array.from({length:s},()=>(Math.random()-.5)*1.2),f=o.map(()=>!0),m=10+Math.floor(Math.random()*3),h=.2+Math.random()*.2,b=.9+Math.random()*.15,y=.9+Math.random()*.2,E=3,k="spots",w={twinCore:!1,rings:!1,cometTail:!1,ghostMembrane:Math.random()<.2};break}default:{s=4+Math.floor(Math.random()*6);const v=Math.PI*2/s;o=Array.from({length:s},(A,_)=>n+_*v+ye(0,v*.35)),c=Array.from({length:s},()=>.6+Math.random()*.7),d=Array.from({length:s},()=>(Math.random()-.5)*3),f=o.map(()=>Math.random()<.55),m=8+Math.floor(Math.random()*11),h=.5+Math.random()*1.5,b=.75+Math.random()*.45,E=3+Math.floor(Math.random()*2);const N=["spots","stripes","rings","veins","none","none"];k=N[Math.floor(Math.random()*N.length)],w={twinCore:Math.random()<.12,rings:Math.random()<.1,cometTail:Math.random()<.1,ghostMembrane:Math.random()<.1}}}return{hue:e,accentHue:t,eggAspect:.6+Math.random()*.25,coreScale:y,growthOffset:(Math.random()-.5)*.1,clusterAngle:Math.random()*Math.PI*2,clusterSpread:4+Math.random()*3.5,divisionRounds:E,membraneLobes:m,sparkRate:h,armCount:s,armAngles:o,armLengths:c,armCurves:d,connectorMask:f,bodyRadius:b,pattern:k,species:a,mutation:w}}function pP(e){const a=[];for(let o=0;o<e.armCount;o++){const c=e.armAngles[o],d=e.armLengths[o],f=e.armCurves[o],m=Math.min(22*d,24),h=28+Math.cos(c)*m,b=28+Math.sin(c)*m,y=(28+h)/2,E=(28+b)/2,k=c+Math.PI/2,w=f*m*.35,v=y+Math.cos(k)*w,N=E+Math.sin(k)*w,A=`M 28 28 Q ${v.toFixed(1)} ${N.toFixed(1)} ${h.toFixed(1)} ${b.toFixed(1)}`,_=Math.sqrt((h-28)**2+(b-28)**2)*1.15;a.push({d:A,baselen:_,weight:.7+Math.random()*.25,endX:h,endY:b})}const s=[];for(let o=0;o<e.armCount;o++){if(!e.connectorMask[o])continue;const c=a[o],d=a[(o+1)%e.armCount],f=(c.endX+d.endX)/2,m=(c.endY+d.endY)/2,h=28-f,b=28-m,y=Math.sqrt(h**2+b**2)||1,E=y*.4,k=f-h/y*E,w=m-b/y*E,v=`M ${c.endX.toFixed(1)} ${c.endY.toFixed(1)} Q ${k.toFixed(1)} ${w.toFixed(1)} ${d.endX.toFixed(1)} ${d.endY.toFixed(1)}`,N=Math.sqrt((d.endX-c.endX)**2+(d.endY-c.endY)**2)*1.1;s.push({d:v,baselen:N,weight:.3+Math.random()*.15,endX:d.endX,endY:d.endY})}return{arms:a,connectors:s}}function Ck(e,t){const n=(t+20)%360;return{primary:`hsla(${e}, 68%, 73%, 1)`,primarySoft:`hsla(${e}, 55%, 82%, 1)`,primaryDeep:`hsla(${e}, 75%, 50%, 1)`,accent:`hsla(${t}, 62%, 58%, 1)`,accentAlt:`hsla(${n}, 55%, 55%, 1)`,core:`hsla(${e}, 60%, 80%, 1)`,sparkColors:[`hsla(${(e+45)%360}, 85%, 56%, 0.95)`,`hsla(${t}, 70%, 55%, 0.9)`,`hsla(${(e-25+360)%360}, 65%, 62%, 0.85)`,`hsla(${(e+90)%360}, 60%, 60%, 0.9)`,`hsla(${e}, 70%, 73%, 1)`,`hsla(${n}, 60%, 58%, 1)`],planktonColors:[`hsla(${e}, 55%, 73%, 1)`,`hsla(${e}, 68%, 55%, 1)`,`hsla(${t}, 62%, 58%, 1)`,`hsla(${n}, 55%, 55%, 1)`,`hsla(${e}, 55%, 82%, 1)`]}}const Wn=[.4,0,.2,1],Rk=[.7,0,.3,1];function fP({d:e,len:t,delay:n,duration:r,color:a,repeatDelay:s,weight:o,hitCount:c}){const d=.03+o*.06,f=.4+o*.35,m=.6+o*.5;return u.jsxs(u.Fragment,{children:[u.jsx("path",{d:e,stroke:a,strokeWidth:f,opacity:d,fill:"none",strokeLinecap:"round"}),c>0&&u.jsxs(u.Fragment,{children:[u.jsx(ee.path,{d:e,stroke:a,strokeWidth:f+.8,fill:"none",strokeLinecap:"round",strokeDasharray:"3 5",initial:{strokeDashoffset:0,opacity:.25},animate:{strokeDashoffset:[0,-(t+10)],opacity:[.25,.18,.06,0]},transition:{duration:.5,ease:"easeOut"},style:{strokeOpacity:.15}},`whip-a-${c}`),u.jsx(ee.path,{d:e,stroke:a,strokeWidth:f+3,fill:"none",strokeLinecap:"round",strokeDasharray:"4 6",initial:{strokeDashoffset:2,opacity:.12},animate:{strokeDashoffset:[2,-(t+8)],opacity:[.12,.08,.03,0]},transition:{duration:.7,ease:"easeOut",delay:.08},style:{strokeOpacity:.05}},`whip-b-${c}`)]}),u.jsx(ee.path,{d:e,stroke:a,strokeWidth:m+4,fill:"none",strokeLinecap:"round",strokeDasharray:`6 ${t+6}`,animate:{strokeDashoffset:[8,-(t+8)]},transition:{duration:r,delay:n,repeat:1/0,ease:Rk,repeatDelay:s},style:{opacity:.04}}),u.jsx(ee.path,{d:e,stroke:a,strokeWidth:m,fill:"none",strokeLinecap:"round",strokeDasharray:`3.5 ${t+8}`,animate:{strokeDashoffset:[8,-(t+8)]},transition:{duration:r,delay:n,repeat:1/0,ease:Rk,repeatDelay:s},style:{opacity:.4}})]})}function mP({cx:e,cy:t,r:n,delay:r,color:a}){const s=T.useMemo(()=>({x:[0,ye(0,2),ye(0,1.5),ye(0,2.5),0],y:[0,ye(0,1.5),ye(0,2.5),ye(0,2),0],dur:ye(8,3)}),[]),o=T.useMemo(()=>ye(3.5,1.5),[]);return u.jsxs(ee.g,{animate:{x:s.x,y:s.y},transition:{duration:s.dur,repeat:1/0,ease:"easeInOut"},children:[u.jsx(ee.circle,{cx:e,cy:t,r:n+2.5,fill:a,animate:{opacity:[0,ye(.07,.03),0],r:[n+1,n+ye(4,1),n+1]},transition:{duration:o*1.3,delay:r,repeat:1/0,ease:Wn}}),u.jsx(ee.circle,{cx:e,cy:t,r:n,fill:a,animate:{opacity:[.2,.65,.2],r:[n*.9,n*ye(1.06,.06),n*.9]},transition:{duration:o,delay:r,repeat:1/0,ease:Wn}})]})}function hP({d:e,len:t,color:n,speed:r,intensity:a}){const s=.8+a*1;return u.jsxs(u.Fragment,{children:[u.jsx(ee.path,{d:e,stroke:n,strokeWidth:s+2,fill:"none",strokeLinecap:"round",strokeDasharray:`5 ${t+4}`,initial:{strokeDashoffset:6,opacity:0},animate:{strokeDashoffset:-(t+4),opacity:[0,a*.2,0]},transition:{duration:r*1.5,ease:"easeOut"},style:{filter:"blur(2px)"}}),u.jsx(ee.path,{d:e,stroke:n,strokeWidth:s,fill:"none",strokeLinecap:"round",strokeDasharray:`3 ${t+5}`,initial:{strokeDashoffset:5,opacity:0},animate:{strokeDashoffset:-(t+5),opacity:[0,a*.6,a*.35,0]},transition:{duration:r*1.2,ease:"easeOut"}})]})}function gP({primary:e,accent:t}){const n=T.useMemo(()=>ye(6,1.5),[]);return u.jsxs(u.Fragment,{children:[u.jsx(ee.circle,{cx:"28",cy:"28",r:"3",fill:"none",stroke:e,strokeWidth:"0.8",animate:{r:[4,18,26],opacity:[0,.2,0],strokeWidth:[.6,.35,.1]},transition:{duration:n,repeat:1/0,ease:[.25,.1,.25,1]}}),u.jsx(ee.circle,{cx:"28",cy:"28",r:"3",fill:"none",stroke:t,strokeWidth:"0.5",animate:{r:[5,15,22],opacity:[0,.12,0],strokeWidth:[.4,.25,.06]},transition:{duration:n*.85,repeat:1/0,delay:n*.35,ease:[.25,.1,.25,1]}})]})}function bP({count:e,pool:t,colors:n}){const r=T.useMemo(()=>Array.from({length:t},()=>{const a=Math.random()*Math.PI*2,s=12+Math.random()*18,o=28+Math.cos(a)*s,c=28+Math.sin(a)*s,d=Math.random()>.8,f=d?.5+Math.random()*.4:.15+Math.random()*.35,m=d?.6:1,h=[0,ye(0,4*m),ye(0,3*m),ye(0,5*m),0],b=[0,ye(0,5*m),ye(0,3*m),ye(0,4*m),0],y=d?ye(28,10):ye(16,6),E=d?ye(5,2):ye(2.5,1),k=d?ye(.35,.15):ye(.5,.2),w=Math.random()*6,v=n[Math.floor(Math.random()*n.length)];return{cx:o,cy:c,r:f,driftX:h,driftY:b,driftDur:y,blinkDur:E,blinkPeak:k,blinkDelay:w,color:v}}),[t,n]);return u.jsx(u.Fragment,{children:r.slice(0,e).map((a,s)=>u.jsx(ee.circle,{cx:a.cx,cy:a.cy,r:a.r,fill:a.color,animate:{x:a.driftX,y:a.driftY,opacity:[0,a.blinkPeak,.05,a.blinkPeak*.6,0]},transition:{x:{duration:a.driftDur,repeat:1/0,ease:"easeInOut"},y:{duration:a.driftDur*1.1,repeat:1/0,ease:"easeInOut"},opacity:{duration:a.blinkDur,delay:a.blinkDelay,repeat:1/0,ease:"easeInOut"}}},`plankton-${s}`))})}function _k({color:e,tier:t,points:n=14,scale:r=1}){const s=n,o=T.useMemo(()=>Array.from({length:8},()=>cf(28,s,18*r,5*r)),[r]),c=T.useMemo(()=>Array.from({length:8},()=>cf(28,s,24*r,7*r)),[r]),d=T.useMemo(()=>Array.from({length:8},()=>cf(28,s,27*r,9*r)),[r]),f=T.useMemo(()=>ye(12,2),[]),m=T.useMemo(()=>ye(15,2),[]),h=T.useMemo(()=>ye(18,3),[]);return u.jsxs(u.Fragment,{children:[t==="full"&&u.jsx(ee.path,{d:d[0],animate:{d},transition:{duration:h,repeat:1/0,ease:"easeInOut",repeatType:"reverse"},fill:e.replace("1)","0.012)"),stroke:e,strokeWidth:"0.15",strokeOpacity:"0.04",style:{filter:"blur(3px)"}}),t!=="compact"&&u.jsx(ee.path,{d:c[0],animate:{d:c},transition:{duration:m,repeat:1/0,ease:"easeInOut",repeatType:"reverse"},fill:e.replace("1)","0.02)"),stroke:e,strokeWidth:"0.3",strokeOpacity:"0.07",style:{filter:"blur(2px)"}}),u.jsx(ee.path,{d:o[0],animate:{d:o},transition:{duration:f,repeat:1/0,ease:"easeInOut",repeatType:"reverse"},fill:e.replace("1)","0.035)"),stroke:e,strokeWidth:t==="compact"?"0.4":"0.5",strokeOpacity:t==="compact"?"0.12":"0.14",style:{filter:t==="compact"?"blur(1px)":"blur(1.5px)"}})]})}function yP({type:e,color:t,accentColor:n,radius:r}){var f,m,h,b;const a=T.useMemo(()=>ye(9,3),[]),s=28,o=28,c=T.useMemo(()=>{switch(e){case"spots":return{circles:Array.from({length:6+Math.floor(Math.random()*4)},()=>{const y=Math.random()*Math.PI*2,E=2+Math.random()*r*.7;return{x:s+Math.cos(y)*E,y:o+Math.sin(y)*E,r:1.2+Math.random()*2}})};case"stripes":{const y=5+Math.floor(Math.random()*4);return{lines:Array.from({length:y},(E,k)=>{const w=k/y*Math.PI*2+Math.random()*.3,v=r*(.5+Math.random()*.5);return{x1:s+Math.cos(w)*3,y1:o+Math.sin(w)*3,x2:s+Math.cos(w)*v,y2:o+Math.sin(w)*v}})}}case"rings":return{rings:[.35,.55,.75,.9].filter(()=>Math.random()>.15).map(y=>r*y)};case"veins":return{paths:Array.from({length:4+Math.floor(Math.random()*3)},()=>{const y=Math.random()*Math.PI*2,E=r*(.5+Math.random()*.5),k=s+Math.cos(y)*E,w=o+Math.sin(y)*E,v=y+(Math.random()-.5)*1,N=E*(.3+Math.random()*.4),A=s+Math.cos(v)*N,_=o+Math.sin(v)*N;return`M ${s} ${o} Q ${A.toFixed(1)} ${_.toFixed(1)} ${k.toFixed(1)} ${w.toFixed(1)}`})};default:return null}},[e,r]);if(!c)return null;const d=e==="spots"?n:t;return u.jsxs(ee.g,{animate:{opacity:[.5,.85,.5]},transition:{duration:a,repeat:1/0,ease:Wn},children:[(f=c.circles)==null?void 0:f.map((y,E)=>u.jsx("circle",{cx:y.x,cy:y.y,r:y.r,fill:d,opacity:.3,style:{filter:"blur(0.5px)"}},`s${E}`)),(m=c.lines)==null?void 0:m.map((y,E)=>u.jsx("line",{x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2,stroke:d,strokeWidth:.8,opacity:.25,strokeLinecap:"round"},`l${E}`)),(h=c.rings)==null?void 0:h.map((y,E)=>u.jsx("circle",{cx:s,cy:o,r:y,fill:"none",stroke:d,strokeWidth:.6,opacity:.2},`r${E}`)),(b=c.paths)==null?void 0:b.map((y,E)=>u.jsx("path",{d:y,fill:"none",stroke:d,strokeWidth:.6,opacity:.2,strokeLinecap:"round"},`p${E}`))]})}function xP({growth:e,color:t,aspect:n}){const o=7*n,c=T.useMemo(()=>ye(3.5,.5),[]),d=Za(e,.12,.1);return u.jsxs(ee.g,{initial:{scale:.2,opacity:0},animate:{scale:1,opacity:1,rotate:d>0?[0,-3*d,2.5*d,-4*d,3*d,0]:0},transition:{scale:{duration:1.2,ease:[.16,1,.3,1]},opacity:{duration:.8,ease:"easeOut"},rotate:{duration:1.5,repeat:1/0,ease:"easeInOut"}},style:{transformOrigin:"28px 28px"},children:[u.jsx(ee.ellipse,{cx:28,cy:28,rx:o+6,ry:13,fill:qi(t,.06),animate:{rx:[o+4,o+9,o+4],ry:[11,16,11],opacity:[.03,.1,.03]},transition:{duration:4,repeat:1/0,ease:Wn},style:{filter:"blur(4px)"}}),u.jsx(ee.ellipse,{cx:28,cy:28,rx:o+2,ry:9,fill:qi(t,.12),animate:{rx:[o+1,o+4,o+1],ry:[8,11,8],opacity:[.06,.18,.06]},transition:{duration:c,repeat:1/0,ease:Wn},style:{filter:"blur(2.5px)"}}),u.jsx(ee.ellipse,{cx:28,cy:28,rx:o,ry:7,fill:qi(t,.65),stroke:qi(t,.25),strokeWidth:.5,animate:{scaleX:[1,.94,1.05,.97,1],scaleY:[1,1.07,.95,1.04,1],opacity:[.55,.8,.6,.75,.55]},transition:{duration:c,repeat:1/0,ease:Wn},style:{transformOrigin:"28px 28px"}}),u.jsx(ee.ellipse,{cx:28,cy:28,rx:o*.4,ry:7*.45,fill:"rgba(255,255,255,0.45)",animate:{opacity:[.12,.4,.18,.32,.12],rx:[o*.3,o*.5,o*.35,o*.45,o*.3],ry:[7*.35,7*.55,7*.4,7*.5,7*.35]},transition:{duration:c*.7,repeat:1/0,ease:Wn}})]})}function Ok({growth:e,baseR:t,color:n,divisionRounds:r,clusterAngle:a,clusterSpread:s,growthOffset:o}){const c=T.useMemo(()=>`goo-${Math.random().toString(36).slice(2,8)}`,[]),d=T.useMemo(()=>ye(8,2.5),[]),f=T.useMemo(()=>({x:[0,ye(0,1.2),ye(0,.8),ye(0,1),0],y:[0,ye(0,.8),ye(0,1.2),ye(0,1),0]}),[]),m=T.useMemo(()=>{const B=[a];for(let O=1;O<r;O++)B.push(B[O-1]+Math.PI*(.4+Math.random()*.2));return B},[a,r]),h=1<<r,b=T.useMemo(()=>Array.from({length:h},()=>({dx:[0,ye(0,.6),ye(0,.4),ye(0,.5),0],dy:[0,ye(0,.4),ye(0,.6),ye(0,.5),0],dur:ye(14,5)})),[h]),y=o,E=Za(e,.15+y,.12);if(E<=0)return null;const k=.28,w=.12,v=[];for(let B=0;B<r;B++)v.push(Za(e,k+B*w+y,.1));const N=[];let A=s;for(let B=0;B<r;B++)N.push(A),A*=.6;const _=v.reduce((B,O)=>B+O,0),M=t*Math.pow(.85,_),D=(.8+M*.25).toFixed(1),R=28,P=[];for(let B=0;B<h;B++){let O=R,$=R;for(let H=0;H<r;H++){const q=B>>H&1?1:-1,Y=N[H]*v[H]*.5;O+=q*Math.cos(m[H])*Y,$+=q*Math.sin(m[H])*Y}P.push({x:O,y:$,r:M})}return u.jsxs(ee.g,{animate:{x:f.x,y:f.y},transition:{duration:12,repeat:1/0,ease:"easeInOut"},style:{opacity:E,transition:"opacity 0.5s ease-out"},children:[u.jsx("defs",{children:u.jsxs("filter",{id:c,children:[u.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:D,result:"blur"}),u.jsx("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 24 -9"})]})}),u.jsx(ee.g,{filter:`url(#${c})`,animate:{scaleX:[1,1.015,.985,1.01,.99,1],scaleY:[1,.99,1.02,.985,1.01,1]},transition:{duration:d,repeat:1/0,ease:Wn},style:{transformOrigin:"28px 28px"},children:P.map((B,O)=>u.jsx(ee.circle,{cx:B.x,cy:B.y,r:B.r,animate:{cx:B.x,cy:B.y,r:B.r},transition:{duration:.25,ease:"easeOut"},fill:n},O))}),P.slice(0,6).map((B,O)=>{const $=b[O];return u.jsx(ee.g,{animate:{x:B.x-R+$.dx[0],y:B.y-R+$.dy[0]},transition:{duration:.25,ease:"easeOut"},children:u.jsxs(ee.g,{animate:{x:$.dx,y:$.dy},transition:{duration:$.dur,repeat:1/0,ease:"easeInOut"},children:[u.jsx(ee.circle,{cx:R,cy:R,r:B.r+2,fill:n,animate:{opacity:[0,.08,.02,.06,0]},transition:{duration:d*1.1,repeat:1/0,ease:Wn,delay:O*.37%d},style:{filter:"blur(1.5px)"}}),u.jsx(ee.circle,{cx:R,cy:R,r:B.r*.25,fill:"rgba(255,255,255,1)",animate:{opacity:[.04,.18,.06,.14,.04]},transition:{duration:d*.8,repeat:1/0,ease:Wn,delay:O*.29%d}})]})},`ov-${O}`)})]})}function ur({size:e=56,growthDuration:t=20}){const n=e<=40?"compact":e<=80?"standard":"full",{genome:r,palette:a,armData:s}=T.useMemo(()=>{const F=dP(),K=Ck(F.hue,F.accentHue),j=pP(F);return{genome:F,palette:K,armData:j}},[]),[o,c]=T.useState(0),[d,f]=T.useState(0);T.useEffect(()=>{const F=performance.now(),K=setInterval(()=>{const fe=(performance.now()-F)/1e3,Ne=Math.min(fe/t,1),be=1-(1-Ne)*(1-Ne);if(c(be),f(fe),Ne>=1&&fe>t+1){clearInterval(K);const De=setInterval(()=>{f((performance.now()-F)/1e3)},2e3);j.current=De}},100),j={current:K};return()=>clearInterval(j.current)},[t]);const m=T.useRef(o);m.current=o;const h=r.growthOffset,b=(F,K)=>Za(o,F+h,K),y=1-b(.2,.12),E=b(.22,.18),k=n==="compact"||o<.5+h?"compact":o<.75+h||n!=="full"?"standard":"full",w=n==="full"?14:n==="standard"?6:0,v=w+4,N=o>=1?Math.floor(Math.sin(d*.03)*2+2):0,A=Math.floor((w+N)*b(.65,.25)),_=o>=.85+h&&n==="full",M=o>=1?Math.sin(d*.005)*8:0,D=T.useMemo(()=>{if(M===0)return a;const F=r.hue+M;return Ck(F,r.accentHue+M*.5)},[Math.round(M*2),r.hue,r.accentHue,a]),R=T.useMemo(()=>({driftDir:Math.random()>.5?360:-360,driftDur:ye(200,80),wobbleAngles:[0,ye(8,5),ye(-5,4),ye(25,15),ye(-6,5),ye(10,6),ye(-20,12),ye(6,4),0],wobbleDur:ye(40,15)}),[]),P=T.useRef(s);P.current=s;const B=T.useMemo(()=>{if(n==="compact")return[];const F=[...s.arms,...s.connectors],K=s.arms.length;return F.map((j,fe)=>{const Ne=fe>=K;return{origIdx:fe,d:Ik(j.d,4),len:j.baselen,delay:Math.random()*4,duration:ye(1.4,.6),color:Ne?fe%2===0?D.accent:D.accentAlt:j.weight>.75?D.primary:D.primaryDeep,repeatDelay:ye(2.5,1.5),weight:j.weight}})},[n,s,D]),O=T.useMemo(()=>{if(n==="compact")return[];const F=qi(D.primary,.9),K=qi(D.primaryDeep,.9);return s.arms.map((j,fe)=>({cx:ye(j.endX,1.5),cy:ye(j.endY,1.5),r:ye(1.6,.3),color:fe%3===2?K:F,delay:Math.random()*2}))},[n,s,D]),[$,H]=T.useState([]),[Z,q]=T.useState(!1),[Y,ae]=T.useState(()=>Array(20).fill(0)),J=T.useRef(0),W=T.useRef(!1);T.useEffect(()=>{if(n==="compact")return;W.current=!1;const F=()=>{if(W.current)return;const j=P.current,fe=[...j.arms,...j.connectors];if(m.current<.55+r.growthOffset||fe.length===0){setTimeout(F,300+Math.random()*700);return}q(!0),setTimeout(()=>{if(W.current)return;q(!1);const De=Math.floor(Math.random()*fe.length),ne=fe[De],xe=++J.current,je=ye(.5,.2),ze=ye(.8,.2);ae(qe=>{const Je=[...qe];return Je[De]=(Je[De]??0)+1,Je}),H(qe=>[...qe,{id:xe,d:Ik(ne.d,6),len:ne.baselen,color:D.sparkColors[Math.floor(Math.random()*D.sparkColors.length)],speed:je,intensity:ze}]),setTimeout(()=>{H(qe=>qe.filter(Je=>Je.id!==xe))},je*1.3*1e3+400)},180);const be=(n==="full"?1200+Math.random()*4e3:2500+Math.random()*6e3)/r.sparkRate;setTimeout(F,be)},K=setTimeout(F,400+Math.random()*1500);return()=>{W.current=!0,clearTimeout(K)}},[n,r,D]);const re=T.useMemo(()=>ye(3.8,.3)*r.coreScale,[r.coreScale]),C=1+b(.7,.2)*.6;return u.jsxs("svg",{width:e,height:e,viewBox:"0 0 56 56",fill:"none",className:"flex-shrink-0 overflow-visible",style:{filter:e>=80?"drop-shadow(0 2px 6px rgba(0,0,0,0.4))":void 0},children:[e>=80&&u.jsx("defs",{children:u.jsxs("radialGradient",{id:"depth-glow",cx:"0.4",cy:"0.35",r:"0.6",children:[u.jsx("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.06)"}),u.jsx("stop",{offset:"100%",stopColor:"rgba(0,0,0,0)"})]})}),e>=80&&u.jsx("circle",{cx:"28",cy:"28",r:"22",fill:"url(#depth-glow)",opacity:o>.3?.7:0,style:{transition:"opacity 1s"}}),v>0&&A>0&&u.jsx(bP,{count:A,pool:v,colors:D.planktonColors}),u.jsx(ee.g,{animate:{rotate:[0,R.driftDir]},transition:{duration:R.driftDur,repeat:1/0,ease:"linear"},style:{transformOrigin:"28px 28px"},children:u.jsxs(ee.g,{animate:{rotate:R.wobbleAngles},transition:{duration:R.wobbleDur,repeat:1/0,ease:"easeInOut"},style:{transformOrigin:"28px 28px"},children:[y>0&&u.jsx("g",{style:{opacity:y,transition:"opacity 0.5s ease-out"},children:u.jsx(xP,{growth:o,color:D.primary,aspect:r.eggAspect})}),E>0&&u.jsx("g",{style:{opacity:E,transition:"opacity 0.5s ease-out"},children:u.jsx(_k,{color:D.primary,tier:k,points:r.membraneLobes,scale:r.bodyRadius})}),E>0&&r.pattern!=="none"&&u.jsx("g",{style:{opacity:E,transition:"opacity 0.5s ease-out"},children:u.jsx(yP,{type:r.pattern,color:D.primary,accentColor:D.accent,radius:18*r.bodyRadius})}),_&&u.jsx(gP,{primary:D.primary,accent:D.accent}),B.map((F,K)=>{const j=.3+h+K/Math.max(B.length-1,1)*.3,fe=Za(o,j,.1);return fe<=0?null:u.jsx("g",{style:{opacity:fe,transition:"opacity 0.5s ease-out"},children:u.jsx(fP,{d:F.d,len:F.len,delay:F.delay,duration:F.duration,color:F.color,repeatDelay:F.repeatDelay,weight:F.weight,hitCount:Y[F.origIdx]??0})},F.origIdx)}),o>=.55+h&&$.map(F=>u.jsx(hP,{d:F.d,len:F.len,color:F.color,speed:F.speed,intensity:F.intensity},F.id)),O.map((F,K)=>{const j=.5+h+K/Math.max(O.length-1,1)*.2,fe=Za(o,j,.1);return fe<=0?null:u.jsx("g",{style:{opacity:fe,transition:"opacity 0.5s ease-out"},children:u.jsx(mP,{cx:F.cx,cy:F.cy,r:F.r*C,delay:F.delay,color:F.color})},K)}),u.jsx(Ok,{growth:o,baseR:re,color:D.core,divisionRounds:r.divisionRounds,clusterAngle:r.clusterAngle,clusterSpread:r.clusterSpread,growthOffset:h}),r.mutation.twinCore&&o>.5&&u.jsx(ee.g,{animate:{rotate:[0,360]},transition:{duration:30,repeat:1/0,ease:"linear"},style:{transformOrigin:"28px 28px",opacity:Za(o,.5,.15)},children:u.jsx("g",{transform:"translate(7, 0)",children:u.jsx(Ok,{growth:o,baseR:re*.55,color:D.accent,divisionRounds:Math.max(2,r.divisionRounds-1),clusterAngle:r.clusterAngle+Math.PI*.7,clusterSpread:r.clusterSpread*.5,growthOffset:h+.1})})}),u.jsx(xn,{children:Z&&o>=.55+h&&n!=="compact"&&u.jsx(ee.circle,{cx:"28",cy:"28",r:re+2,fill:"rgba(255,255,255,1)",initial:{opacity:0},animate:{opacity:.08},exit:{opacity:0},transition:{duration:.4,ease:"easeOut"},style:{filter:"blur(2px)"}},"anticipation")}),r.mutation.rings&&o>.7&&u.jsxs(u.Fragment,{children:[u.jsx(ee.circle,{cx:"28",cy:"28",r:"12",fill:"none",stroke:D.primary,strokeWidth:"0.3",animate:{r:[10,14,10],opacity:[0,.12,0],strokeWidth:[.2,.4,.2]},transition:{duration:7,repeat:1/0,ease:Wn}}),u.jsx(ee.circle,{cx:"28",cy:"28",r:"20",fill:"none",stroke:D.accent,strokeWidth:"0.2",animate:{r:[17,22,17],opacity:[0,.08,0],strokeWidth:[.15,.3,.15]},transition:{duration:9.5,repeat:1/0,ease:Wn,delay:2}})]}),r.mutation.ghostMembrane&&o>.6&&u.jsx(ee.g,{animate:{x:[0,2.5,-1.5,3,0],y:[0,-2,3,-1,0]},transition:{duration:20,repeat:1/0,ease:"easeInOut"},style:{opacity:.3},children:u.jsx(_k,{color:D.accent,tier:"compact",points:Math.max(6,r.membraneLobes-3),scale:r.bodyRadius*.85})}),r.mutation.cometTail&&o>.5&&u.jsx(u.Fragment,{children:[0,1,2,3,4].map(F=>u.jsx(ee.circle,{cx:"28",cy:"28",r:.5+F*.15,fill:D.primary,animate:{x:[0,-(4+F*3),-(2+F*2),-(5+F*2.5),0],y:[0,2+F*1.5,-(1+F),3+F*.8,0],opacity:[0,.2-F*.03,.05,.15-F*.02,0]},transition:{duration:12+F*2,repeat:1/0,ease:"easeInOut",delay:F*.8},style:{filter:"blur(1px)"}},`tail-${F}`))})]})})]})}/**
|
|
64
|
-
* @license lucide-react v1.8.0 - ISC
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the ISC license.
|
|
67
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/const SI=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
69
|
-
* @license lucide-react v1.8.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const EP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
74
|
-
* @license lucide-react v1.8.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const SP=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
79
|
-
* @license lucide-react v1.8.0 - ISC
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the ISC license.
|
|
82
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const Lk=e=>{const t=SP(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
84
|
-
* @license lucide-react v1.8.0 - ISC
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the ISC license.
|
|
87
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/var df={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
89
|
-
* @license lucide-react v1.8.0 - ISC
|
|
90
|
-
*
|
|
91
|
-
* This source code is licensed under the ISC license.
|
|
92
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const vP=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},wP=T.createContext({}),kP=()=>T.useContext(wP),TP=T.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:a="",children:s,iconNode:o,...c},d)=>{const{size:f=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,color:b="currentColor",className:y=""}=kP()??{},E=r??h?Number(n??m)*24/Number(t??f):n??m;return T.createElement("svg",{ref:d,...df,width:t??f??df.width,height:t??f??df.height,stroke:e??b,strokeWidth:E,className:SI("lucide",y,a),...!s&&!vP(c)&&{"aria-hidden":"true"},...c},[...o.map(([k,w])=>T.createElement(k,w)),...Array.isArray(s)?s:[s]])});/**
|
|
94
|
-
* @license lucide-react v1.8.0 - ISC
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the ISC license.
|
|
97
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const Le=(e,t)=>{const n=T.forwardRef(({className:r,...a},s)=>T.createElement(TP,{ref:s,iconNode:t,className:SI(`lucide-${EP(Lk(e))}`,`lucide-${e}`,r),...a}));return n.displayName=Lk(e),n};/**
|
|
99
|
-
* @license lucide-react v1.8.0 - ISC
|
|
100
|
-
*
|
|
101
|
-
* This source code is licensed under the ISC license.
|
|
102
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const NP=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Ko=Le("activity",NP);/**
|
|
104
|
-
* @license lucide-react v1.8.0 - ISC
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the ISC license.
|
|
107
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const AP=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],IP=Le("arrow-up-down",AP);/**
|
|
109
|
-
* @license lucide-react v1.8.0 - ISC
|
|
110
|
-
*
|
|
111
|
-
* This source code is licensed under the ISC license.
|
|
112
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const CP=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],vh=Le("bot",CP);/**
|
|
114
|
-
* @license lucide-react v1.8.0 - ISC
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the ISC license.
|
|
117
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const RP=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],_P=Le("chart-column",RP);/**
|
|
119
|
-
* @license lucide-react v1.8.0 - ISC
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the ISC license.
|
|
122
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const OP=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],wh=Le("check",OP);/**
|
|
124
|
-
* @license lucide-react v1.8.0 - ISC
|
|
125
|
-
*
|
|
126
|
-
* This source code is licensed under the ISC license.
|
|
127
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const LP=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Rc=Le("chevron-down",LP);/**
|
|
129
|
-
* @license lucide-react v1.8.0 - ISC
|
|
130
|
-
*
|
|
131
|
-
* This source code is licensed under the ISC license.
|
|
132
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const DP=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],MP=Le("chevron-right",DP);/**
|
|
134
|
-
* @license lucide-react v1.8.0 - ISC
|
|
135
|
-
*
|
|
136
|
-
* This source code is licensed under the ISC license.
|
|
137
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/const jP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],FP=Le("chevron-up",jP);/**
|
|
139
|
-
* @license lucide-react v1.8.0 - ISC
|
|
140
|
-
*
|
|
141
|
-
* This source code is licensed under the ISC license.
|
|
142
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
-
*/const PP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],vI=Le("circle-alert",PP);/**
|
|
144
|
-
* @license lucide-react v1.8.0 - ISC
|
|
145
|
-
*
|
|
146
|
-
* This source code is licensed under the ISC license.
|
|
147
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/const BP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],wI=Le("circle-check",BP);/**
|
|
149
|
-
* @license lucide-react v1.8.0 - ISC
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the ISC license.
|
|
152
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/const UP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],$P=Le("circle-x",UP);/**
|
|
154
|
-
* @license lucide-react v1.8.0 - ISC
|
|
155
|
-
*
|
|
156
|
-
* This source code is licensed under the ISC license.
|
|
157
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/const zP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],GP=Le("circle",zP);/**
|
|
159
|
-
* @license lucide-react v1.8.0 - ISC
|
|
160
|
-
*
|
|
161
|
-
* This source code is licensed under the ISC license.
|
|
162
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/const HP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],kI=Le("clock",HP);/**
|
|
164
|
-
* @license lucide-react v1.8.0 - ISC
|
|
165
|
-
*
|
|
166
|
-
* This source code is licensed under the ISC license.
|
|
167
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
-
*/const VP=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],TI=Le("code",VP);/**
|
|
169
|
-
* @license lucide-react v1.8.0 - ISC
|
|
170
|
-
*
|
|
171
|
-
* This source code is licensed under the ISC license.
|
|
172
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
-
*/const WP=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],qP=Le("cpu",WP);/**
|
|
174
|
-
* @license lucide-react v1.8.0 - ISC
|
|
175
|
-
*
|
|
176
|
-
* This source code is licensed under the ISC license.
|
|
177
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
-
*/const YP=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],KP=Le("database",YP);/**
|
|
179
|
-
* @license lucide-react v1.8.0 - ISC
|
|
180
|
-
*
|
|
181
|
-
* This source code is licensed under the ISC license.
|
|
182
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
-
*/const XP=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],NI=Le("download",XP);/**
|
|
184
|
-
* @license lucide-react v1.8.0 - ISC
|
|
185
|
-
*
|
|
186
|
-
* This source code is licensed under the ISC license.
|
|
187
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
-
*/const ZP=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],QP=Le("external-link",ZP);/**
|
|
189
|
-
* @license lucide-react v1.8.0 - ISC
|
|
190
|
-
*
|
|
191
|
-
* This source code is licensed under the ISC license.
|
|
192
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/const JP=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],eB=Le("file-code-corner",JP);/**
|
|
194
|
-
* @license lucide-react v1.8.0 - ISC
|
|
195
|
-
*
|
|
196
|
-
* This source code is licensed under the ISC license.
|
|
197
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/const tB=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],kh=Le("flask-conical",tB);/**
|
|
199
|
-
* @license lucide-react v1.8.0 - ISC
|
|
200
|
-
*
|
|
201
|
-
* This source code is licensed under the ISC license.
|
|
202
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
-
*/const nB=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],rB=Le("git-pull-request",nB);/**
|
|
204
|
-
* @license lucide-react v1.8.0 - ISC
|
|
205
|
-
*
|
|
206
|
-
* This source code is licensed under the ISC license.
|
|
207
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
-
*/const aB=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],AI=Le("heart",aB);/**
|
|
209
|
-
* @license lucide-react v1.8.0 - ISC
|
|
210
|
-
*
|
|
211
|
-
* This source code is licensed under the ISC license.
|
|
212
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
-
*/const iB=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],II=Le("layers",iB);/**
|
|
214
|
-
* @license lucide-react v1.8.0 - ISC
|
|
215
|
-
*
|
|
216
|
-
* This source code is licensed under the ISC license.
|
|
217
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
-
*/const sB=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],oB=Le("link-2",sB);/**
|
|
219
|
-
* @license lucide-react v1.8.0 - ISC
|
|
220
|
-
*
|
|
221
|
-
* This source code is licensed under the ISC license.
|
|
222
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/const lB=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],uB=Le("list-todo",lB);/**
|
|
224
|
-
* @license lucide-react v1.8.0 - ISC
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the ISC license.
|
|
227
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/const cB=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],_c=Le("loader-circle",cB);/**
|
|
229
|
-
* @license lucide-react v1.8.0 - ISC
|
|
230
|
-
*
|
|
231
|
-
* This source code is licensed under the ISC license.
|
|
232
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/const dB=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],CI=Le("map-pin",dB);/**
|
|
234
|
-
* @license lucide-react v1.8.0 - ISC
|
|
235
|
-
*
|
|
236
|
-
* This source code is licensed under the ISC license.
|
|
237
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/const pB=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],fB=Le("map",pB);/**
|
|
239
|
-
* @license lucide-react v1.8.0 - ISC
|
|
240
|
-
*
|
|
241
|
-
* This source code is licensed under the ISC license.
|
|
242
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
-
*/const mB=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],hB=Le("message-square",mB);/**
|
|
244
|
-
* @license lucide-react v1.8.0 - ISC
|
|
245
|
-
*
|
|
246
|
-
* This source code is licensed under the ISC license.
|
|
247
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
-
*/const gB=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],bB=Le("panel-right-close",gB);/**
|
|
249
|
-
* @license lucide-react v1.8.0 - ISC
|
|
250
|
-
*
|
|
251
|
-
* This source code is licensed under the ISC license.
|
|
252
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/const yB=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],xB=Le("pen-line",yB);/**
|
|
254
|
-
* @license lucide-react v1.8.0 - ISC
|
|
255
|
-
*
|
|
256
|
-
* This source code is licensed under the ISC license.
|
|
257
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
-
*/const EB=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],SB=Le("play",EB);/**
|
|
259
|
-
* @license lucide-react v1.8.0 - ISC
|
|
260
|
-
*
|
|
261
|
-
* This source code is licensed under the ISC license.
|
|
262
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
-
*/const vB=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Th=Le("plus",vB);/**
|
|
264
|
-
* @license lucide-react v1.8.0 - ISC
|
|
265
|
-
*
|
|
266
|
-
* This source code is licensed under the ISC license.
|
|
267
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
-
*/const wB=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],kB=Le("radio",wB);/**
|
|
269
|
-
* @license lucide-react v1.8.0 - ISC
|
|
270
|
-
*
|
|
271
|
-
* This source code is licensed under the ISC license.
|
|
272
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
-
*/const TB=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],NB=Le("refresh-cw",TB);/**
|
|
274
|
-
* @license lucide-react v1.8.0 - ISC
|
|
275
|
-
*
|
|
276
|
-
* This source code is licensed under the ISC license.
|
|
277
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
278
|
-
*/const AB=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],IB=Le("rotate-cw",AB);/**
|
|
279
|
-
* @license lucide-react v1.8.0 - ISC
|
|
280
|
-
*
|
|
281
|
-
* This source code is licensed under the ISC license.
|
|
282
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
283
|
-
*/const CB=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],fm=Le("search",CB);/**
|
|
284
|
-
* @license lucide-react v1.8.0 - ISC
|
|
285
|
-
*
|
|
286
|
-
* This source code is licensed under the ISC license.
|
|
287
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
288
|
-
*/const RB=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Nh=Le("send",RB);/**
|
|
289
|
-
* @license lucide-react v1.8.0 - ISC
|
|
290
|
-
*
|
|
291
|
-
* This source code is licensed under the ISC license.
|
|
292
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
-
*/const _B=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],OB=Le("settings",_B);/**
|
|
294
|
-
* @license lucide-react v1.8.0 - ISC
|
|
295
|
-
*
|
|
296
|
-
* This source code is licensed under the ISC license.
|
|
297
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
298
|
-
*/const LB=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],DB=Le("share-2",LB);/**
|
|
299
|
-
* @license lucide-react v1.8.0 - ISC
|
|
300
|
-
*
|
|
301
|
-
* This source code is licensed under the ISC license.
|
|
302
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
303
|
-
*/const MB=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],RI=Le("shield",MB);/**
|
|
304
|
-
* @license lucide-react v1.8.0 - ISC
|
|
305
|
-
*
|
|
306
|
-
* This source code is licensed under the ISC license.
|
|
307
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
-
*/const jB=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],lc=Le("sparkles",jB);/**
|
|
309
|
-
* @license lucide-react v1.8.0 - ISC
|
|
310
|
-
*
|
|
311
|
-
* This source code is licensed under the ISC license.
|
|
312
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
313
|
-
*/const FB=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],PB=Le("terminal",FB);/**
|
|
314
|
-
* @license lucide-react v1.8.0 - ISC
|
|
315
|
-
*
|
|
316
|
-
* This source code is licensed under the ISC license.
|
|
317
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
318
|
-
*/const BB=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],UB=Le("trending-down",BB);/**
|
|
319
|
-
* @license lucide-react v1.8.0 - ISC
|
|
320
|
-
*
|
|
321
|
-
* This source code is licensed under the ISC license.
|
|
322
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
323
|
-
*/const $B=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_I=Le("triangle-alert",$B);/**
|
|
324
|
-
* @license lucide-react v1.8.0 - ISC
|
|
325
|
-
*
|
|
326
|
-
* This source code is licensed under the ISC license.
|
|
327
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
328
|
-
*/const zB=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],GB=Le("wrench",zB);/**
|
|
329
|
-
* @license lucide-react v1.8.0 - ISC
|
|
330
|
-
*
|
|
331
|
-
* This source code is licensed under the ISC license.
|
|
332
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
-
*/const HB=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ah=Le("x",HB);/**
|
|
334
|
-
* @license lucide-react v1.8.0 - ISC
|
|
335
|
-
*
|
|
336
|
-
* This source code is licensed under the ISC license.
|
|
337
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
-
*/const VB=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],li=Le("zap",VB);function pf(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function ff(e){const t=Math.floor(e/1e3);if(t<60)return`${t}s`;const n=Math.floor(t/60),r=t%60;return n<60?`${n}m ${r}s`:`${Math.floor(n/60)}h ${n%60}m`}function WB({stats:e}){const[t,n]=T.useState(0);return T.useEffect(()=>{if(!e.startedAt||!e.isRunning)return;n(Date.now()-e.startedAt);const r=setInterval(()=>{n(Date.now()-e.startedAt)},1e3);return()=>clearInterval(r)},[e.startedAt,e.isRunning]),u.jsxs("div",{className:"border-b border-white/[0.06] pb-3",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(qP,{size:12,className:"text-semantic-success"}),u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:"Agent Details"})]}),u.jsxs("div",{className:"flex flex-col gap-1.5 mb-3",children:[u.jsxs("div",{className:"flex justify-between text-xs",children:[u.jsx("span",{className:"text-neutral-muted",children:"Identifier"}),u.jsx("span",{className:"font-mono text-neutral-text truncate ml-3 text-right max-w-[160px]",children:e.identifier})]}),u.jsxs("div",{className:"flex justify-between text-xs",children:[u.jsx("span",{className:"text-neutral-muted",children:"Phase"}),u.jsx("span",{className:"text-semantic-success font-medium",children:e.phase})]}),e.backendName&&u.jsxs("div",{className:"flex justify-between text-xs",children:[u.jsx("span",{className:"text-neutral-muted",children:"Backend"}),u.jsx("span",{className:"text-primary-500 font-mono",children:e.backendName})]}),e.pr&&u.jsxs("div",{className:"flex justify-between text-xs",children:[u.jsx("span",{className:"text-neutral-muted",children:"PR"}),u.jsxs("span",{className:"flex items-center gap-1 text-primary-500",children:[u.jsx(rB,{size:10}),"#",e.pr.number,u.jsx("span",{className:"text-neutral-muted text-[10px]",children:e.pr.status})]})]})]}),e.totalTokens>0&&u.jsxs("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.02] p-3 mb-3",children:[u.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[u.jsx(li,{size:10,className:"text-neutral-muted"}),u.jsx("span",{className:"text-[9px] font-black uppercase tracking-[0.15em] text-neutral-muted",children:"Session Stats"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-sm font-bold text-neutral-text",children:e.turnCount}),u.jsx("span",{className:"text-[8px] uppercase tracking-widest text-neutral-muted",children:"Turns"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-sm font-bold text-neutral-text",children:pf(e.totalTokens)}),u.jsx("span",{className:"text-[8px] uppercase tracking-widest text-neutral-muted",children:"Tokens"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-sm font-bold text-semantic-success",children:pf(e.inputTokens)}),u.jsx("span",{className:"text-[8px] uppercase tracking-widest text-neutral-muted",children:"Input"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-sm font-bold text-primary-500",children:pf(e.outputTokens)}),u.jsx("span",{className:"text-[8px] uppercase tracking-widest text-neutral-muted",children:"Output"})]})]})]}),u.jsx("div",{className:"flex items-center gap-2 text-xs text-neutral-muted",children:e.isRunning?u.jsxs(u.Fragment,{children:[u.jsx(IB,{size:10,className:"animate-spin"}),u.jsxs("span",{children:["Running for ",ff(t)]})]}):e.durationMs?u.jsxs(u.Fragment,{children:[u.jsx(kI,{size:10}),u.jsxs("span",{children:["Duration: ",ff(e.durationMs)]})]}):e.startedAt?u.jsxs(u.Fragment,{children:[u.jsx(IP,{size:10}),u.jsx("span",{children:ff(Date.now()-e.startedAt)})]}):null})]})}function qB({todos:e}){if(e.length===0)return null;const t=e.filter(n=>n.completed).length;return u.jsxs("div",{className:"border-b border-white/[0.06] pb-3",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(uB,{size:12,className:"text-neutral-muted"}),u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:"Tasks"}),u.jsxs("span",{className:"text-[9px] text-neutral-muted/60 tabular-nums",children:[t,"/",e.length]}),u.jsx("div",{className:"flex-1 h-1 rounded-full bg-white/[0.06] overflow-hidden",children:u.jsx(ee.div,{className:"h-full rounded-full bg-semantic-success",initial:{width:0},animate:{width:`${t/e.length*100}%`},transition:{duration:.3}})})]}),u.jsx(xn,{mode:"popLayout",children:e.map(n=>u.jsxs(ee.div,{layout:!0,initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:8},className:"flex items-start gap-2 py-0.5",children:[n.completed?u.jsx(wI,{size:14,className:"text-semantic-success flex-shrink-0 mt-0.5"}):u.jsx(GP,{size:14,className:"text-neutral-muted/40 flex-shrink-0 mt-0.5"}),u.jsx("span",{className:["text-xs leading-relaxed",n.completed?"text-neutral-muted/50 line-through":"text-neutral-text"].join(" "),children:n.text})]},n.id))})]})}function YB(e){const t=Math.floor(e/1e3);if(t<60)return`${t}s`;const n=Math.floor(t/60),r=t%60;return`${n}m ${r}s`}function KB({phase:e,skill:t,startedAt:n}){const[r,a]=T.useState(0);return T.useEffect(()=>{if(!n)return;const s=setInterval(()=>{a(Date.now()-n)},1e3);return()=>clearInterval(s)},[n]),!e&&!t?null:u.jsxs("div",{className:"border-b border-white/[0.06] pb-3",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(Ko,{size:12,className:"text-neutral-muted"}),u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:"Status"})]}),u.jsxs("div",{className:"flex flex-col gap-1.5",children:[e&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(li,{size:12,className:"text-primary-500"}),u.jsx("span",{className:"text-xs text-neutral-text",children:e})]}),t&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-[10px] text-neutral-muted",children:"Skill:"}),u.jsx("span",{className:"text-xs text-neutral-text font-mono",children:t})]}),n&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(kI,{size:12,className:"text-neutral-muted"}),u.jsx("span",{className:"text-xs text-neutral-muted tabular-nums",children:YB(r)})]})]})]})}const XB={created:"text-semantic-success",modified:"text-semantic-warning",deleted:"text-semantic-error"},ZB={created:"+",modified:"~",deleted:"-"};function QB({artifacts:e}){return e.length===0?null:u.jsxs("div",{className:"border-b border-white/[0.06] pb-3",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(eB,{size:12,className:"text-neutral-muted"}),u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:"Artifacts"}),u.jsx("span",{className:"text-[9px] text-neutral-muted/60 tabular-nums",children:e.length})]}),u.jsx(xn,{mode:"popLayout",children:e.map(t=>u.jsxs(ee.div,{layout:!0,initial:{opacity:0,x:-8},animate:{opacity:1,x:0},className:"flex items-center gap-2 py-0.5 group",children:[u.jsx("span",{className:`text-[10px] font-bold ${XB[t.action]}`,children:ZB[t.action]}),u.jsx("span",{className:"text-xs text-neutral-text font-mono truncate flex-1",children:t.path.split("/").pop()}),u.jsx("span",{className:"hidden group-hover:block",children:u.jsx(QP,{size:10,className:"text-neutral-muted"})})]},t.path))})]})}function JB({status:e}){switch(e){case"loaded":return u.jsx(wI,{size:10,className:"text-semantic-success"});case"loading":return u.jsx(_c,{size:10,className:"text-primary-500 animate-spin"});case"error":return u.jsx($P,{size:10,className:"text-semantic-error"})}}function eU({sources:e}){return e.length===0?null:u.jsxs("div",{className:"pb-3",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(KP,{size:12,className:"text-neutral-muted"}),u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:"Context Sources"})]}),u.jsx("div",{className:"flex flex-col gap-1",children:e.map(t=>u.jsxs("div",{className:"flex items-center gap-2 py-0.5",children:[u.jsx(JB,{status:t.status}),u.jsx("span",{className:"text-xs text-neutral-muted",children:t.name})]},t.name))})]})}const tU={todos:[],phase:null,skill:null,startedAt:null,artifacts:[],contextSources:[]};function nU(e){return e.todos.length>0||e.phase!==null||e.skill!==null||e.artifacts.length>0||e.contextSources.length>0||e.agentStats!=null}function rU({state:e,onClose:t}){const n=e??tU,r=nU(n);return u.jsx(xn,{children:r&&u.jsx(ee.aside,{initial:{width:0,opacity:0},animate:{width:320,opacity:1},exit:{width:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"flex-shrink-0 border-l border-white/[0.06] bg-neutral-surface/10 backdrop-blur-xl overflow-hidden",children:u.jsxs("div",{className:"w-[320px] h-screen flex flex-col",children:[u.jsxs("div",{className:"flex items-center justify-between border-b border-white/[0.06] px-4 py-3",children:[u.jsx("h3",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:"Context"}),t&&u.jsx("button",{onClick:t,className:"text-neutral-muted hover:text-white transition-colors",children:u.jsx(bB,{size:14})})]}),u.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-3 no-scrollbar flex flex-col gap-3",children:[n.agentStats&&u.jsx(WB,{stats:n.agentStats}),u.jsx(qB,{todos:n.todos}),!n.agentStats&&u.jsx(KB,{phase:n.phase,skill:n.skill,startedAt:n.startedAt}),u.jsx(QB,{artifacts:n.artifacts}),u.jsx(eU,{sources:n.contextSources})]})]})})})}const aU=[{page:"health",label:"Health",route:"/s/health"},{page:"graph",label:"Graph",route:"/s/graph"},{page:"impact",label:"Impact",route:"/s/impact"},{page:"decay",label:"Decay Trends",route:"/s/decay"},{page:"traceability",label:"Traceability",route:"/s/traceability"},{page:"orchestrator",label:"Orchestrator",route:"/s/orchestrator"},{page:"maintenance",label:"Maintenance",route:"/s/maintenance"},{page:"streams",label:"Streams",route:"/s/streams"},{page:"roadmap",label:"Roadmap",route:"/s/roadmap"},{page:"adoption",label:"Adoption",route:"/s/adoption"}];function iU({size:e=32}){const n=!RF(),r=T.useMemo(()=>185+Math.floor(Math.random()*12)-6,[]);return u.jsxs("div",{className:"relative flex items-center justify-center shrink-0 mr-3",style:{width:e,height:e},children:[u.jsx(ee.div,{className:"absolute inset-[-4px] rounded-full",style:{background:`radial-gradient(circle, hsla(${r}, 95%, 60%, 0.2) 0%, hsla(${r}, 90%, 45%, 0.1) 50%, transparent 75%)`},...n?{animate:{scale:[1,1.15,1],opacity:[.4,.7,.4]},transition:{duration:4,repeat:1/0,ease:"easeInOut"}}:{}}),n&&u.jsx(ee.div,{className:"absolute inset-[-8px] rounded-full",style:{background:`radial-gradient(circle, hsla(${r}, 100%, 75%, 0.3) 0%, transparent 60%)`},animate:{scale:[.9,1.4,.9],opacity:[0,.4,0]},transition:{duration:6,repeat:1/0,ease:"easeInOut",times:[0,.3,1]}}),u.jsxs("svg",{viewBox:"0 0 100 100",className:"w-full h-full overflow-visible relative z-10",children:[u.jsxs("defs",{children:[u.jsxs("radialGradient",{id:"sigil-bio-core",children:[u.jsx("stop",{offset:"0%",stopColor:`hsl(${r+10}, 100%, 95%)`}),u.jsx("stop",{offset:"25%",stopColor:`hsl(${r}, 100%, 72%)`}),u.jsx("stop",{offset:"55%",stopColor:`hsl(${r-5}, 90%, 50%)`}),u.jsx("stop",{offset:"100%",stopColor:`hsl(${r-15}, 80%, 22%)`})]}),u.jsx("filter",{id:"sig-glow",children:u.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"2"})})]}),u.jsxs(ee.g,{...n?{animate:{rotate:360},transition:{duration:45,repeat:1/0,ease:"linear"}}:{},style:{transformOrigin:"50px 50px"},children:[u.jsx("circle",{cx:"50",cy:"50",r:"42",fill:"none",stroke:`hsla(${r}, 90%, 65%, 0.15)`,strokeWidth:"3",strokeDasharray:"10 5",filter:"url(#sig-glow)"}),u.jsx("circle",{cx:"50",cy:"50",r:"42",fill:"none",stroke:`hsla(${r}, 85%, 72%, 0.6)`,strokeWidth:"1.6",strokeDasharray:"10 5"})]}),u.jsxs(ee.g,{...n?{animate:{rotate:-360},transition:{duration:28,repeat:1/0,ease:"linear"}}:{},style:{transformOrigin:"50px 50px"},children:[u.jsx("circle",{cx:"50",cy:"50",r:"28",fill:"none",stroke:`hsla(${r+20}, 80%, 68%, 0.15)`,strokeWidth:"2.5",strokeDasharray:"6 8",filter:"url(#sig-glow)"}),u.jsx("circle",{cx:"50",cy:"50",r:"28",fill:"none",stroke:`hsla(${r+20}, 80%, 74%, 0.5)`,strokeWidth:"1.2",strokeDasharray:"6 8"})]}),u.jsx(ee.circle,{cx:"50",cy:"50",r:"18",fill:"url(#sigil-bio-core)",filter:"url(#sig-glow)",...n?{animate:{r:[16,20,16],opacity:[.5,.8,.5]},transition:{duration:4,repeat:1/0,ease:"easeInOut"}}:{},opacity:.6}),u.jsx(ee.circle,{cx:"50",cy:"50",r:"14",fill:"url(#sigil-bio-core)",...n?{animate:{r:[13,15,13]},transition:{duration:3,repeat:1/0,ease:"easeInOut"}}:{}}),u.jsx(ee.circle,{cx:"50",cy:"50",r:"6",fill:`hsl(${r+10}, 100%, 90%)`,...n?{animate:{r:[5,7,5],opacity:[.9,1,.9]},transition:{duration:2.5,repeat:1/0,ease:"easeInOut"}}:{}}),u.jsx("circle",{cx:"50",cy:"50",r:"2.5",fill:"white"}),n&&[0,120,240].map((a,s)=>u.jsx(ee.g,{animate:{rotate:s%2===0?360:-360},transition:{duration:8+s*4,repeat:1/0,ease:"linear"},style:{transformOrigin:"50px 50px"},children:u.jsx(ee.circle,{cx:86,cy:"50",r:2.5-s*.3,fill:`hsla(${r+s*40}, 95%, 78%, 1)`,animate:{opacity:[.5,1,.5]},transition:{duration:1.8,delay:s*.4,repeat:1/0,ease:"easeInOut"},style:{transform:`rotate(${a}deg)`,transformOrigin:"50px 50px"}})},a))]})]})}function vu({label:e,count:t,defaultOpen:n=!0,children:r}){const[a,s]=T.useState(n);return u.jsxs("div",{className:"mb-1",children:[u.jsxs("button",{onClick:()=>s(!a),className:"flex w-full items-center gap-2 px-3 py-2 text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted hover:text-neutral-text transition-colors",children:[u.jsx(ee.div,{animate:{rotate:a?0:-90},transition:{duration:.2},children:u.jsx(Rc,{size:12})}),u.jsx("span",{className:"flex-1 text-left",children:e}),t!==void 0&&t>0&&u.jsx("span",{className:"rounded-full bg-primary-500/20 px-1.5 py-0.5 text-[8px] font-bold text-primary-500 tabular-nums",children:t})]}),u.jsx(xn,{initial:!1,children:a&&u.jsx(ee.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:r})})]})}const sU={health:Ko,graph:DB,impact:li,decay:UB,traceability:oB,orchestrator:vh,maintenance:GB,streams:kB,roadmap:fB,adoption:_P};function oU({page:e,label:t,route:n}){const r=sU[e]??Ko;return u.jsxs(IN,{to:n,className:({isActive:a})=>["flex items-center gap-2.5 rounded-lg px-3 py-1.5 text-xs font-medium transition-all duration-200",a?"bg-white/[0.08] text-white shadow-[inset_0_1px_0_rgba(255,255,255,0.06)]":"text-neutral-muted hover:text-neutral-text hover:bg-white/[0.04]"].join(" "),children:[u.jsx(r,{size:14,className:"flex-shrink-0 opacity-60"}),u.jsx("span",{children:t})]})}function lU({thread:e}){const t="h-5 w-5 flex-shrink-0 rounded-md flex items-center justify-center";switch(e.avatar){case"organism":return u.jsx("div",{className:`${t} bg-secondary-400/15`,children:u.jsx(vh,{size:12,className:"text-secondary-400"})});case"alert":return u.jsx("div",{className:`${t} bg-semantic-warning/15`,children:u.jsx(_I,{size:12,className:"text-semantic-warning"})});case"user":return u.jsx("div",{className:`${t} bg-primary-500/15`,children:u.jsx(hB,{size:12,className:"text-primary-500"})});default:return u.jsx("div",{className:`${t} bg-white/[0.06]`,children:u.jsx(OB,{size:12,className:"text-neutral-muted"})})}}function uU({thread:e}){return e.status==="pending"?u.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-semantic-warning animate-pulse flex-shrink-0"}):e.status==="active"?u.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-semantic-success flex-shrink-0"}):null}function mf({thread:e,dimmed:t}){const n=Ln(),a=Ge(s=>s.activeThreadId)===e.id;return u.jsxs("button",{onClick:()=>{Ge.getState().setActiveThread(e.id),n(`/t/${e.id}`)},className:["group flex w-full items-center gap-2 rounded-lg px-3 py-1.5 text-xs transition-all duration-150",a?"bg-white/[0.08] text-white":t?"text-neutral-muted/60 hover:text-neutral-muted hover:bg-white/[0.03]":"text-neutral-text hover:bg-white/[0.04]"].join(" "),children:[u.jsx(lU,{thread:e}),u.jsx("span",{className:"flex-1 truncate text-left",children:e.title}),u.jsx(uU,{thread:e}),e.unread&&u.jsx("div",{className:"h-2 w-2 rounded-full bg-primary-500 flex-shrink-0"}),e.type!=="attention"&&u.jsx("span",{onClick:s=>{s.stopPropagation(),Ge.getState().closeThread(e.id),a&&n("/")},className:"hidden group-hover:flex h-4 w-4 items-center justify-center rounded text-neutral-muted hover:text-white hover:bg-white/[0.08]",children:u.jsx(Ah,{size:10})})]})}function cU(){const e=Ln(),t=Ge(s=>s.threads),n=T.useMemo(()=>zF({threads:t}),[t]),r=()=>{const s=Ge.getState(),o=s.createThread("chat",{sessionId:crypto.randomUUID(),command:null});s.setActiveThread(o.id),e(`/t/${o.id}`)},a=()=>{const s=Ge.getState(),o=s.createThread("analysis",{analysisTitle:"New Analysis",description:"",labels:[]});s.setActiveThread(o.id),e(`/t/${o.id}`)};return u.jsxs("aside",{className:"flex h-screen w-[280px] flex-shrink-0 flex-col border-r border-white/[0.06]",children:[u.jsxs("div",{className:"flex items-center border-b border-white/[0.06] px-4 py-3",children:[u.jsx(iU,{size:32}),u.jsxs("div",{className:"flex flex-col flex-1",children:[u.jsx("span",{className:"text-[11px] font-black tracking-tight text-neutral-text",children:"Harness"}),u.jsx("span",{className:"text-[8px] font-bold uppercase tracking-[0.2em] text-primary-500/70",children:"Engineering"})]})]}),u.jsxs("div",{className:"flex-1 flex flex-col bg-neutral-surface/20 backdrop-blur-xl overflow-hidden",children:[u.jsxs("div",{className:"flex items-center gap-2 border-b border-white/[0.06] px-3 py-2.5",children:[u.jsxs("button",{onClick:r,className:"flex flex-1 items-center justify-center gap-1.5 rounded-lg bg-primary-500/10 border border-primary-500/20 px-3 py-1.5 text-[10px] font-bold uppercase tracking-widest text-primary-500 hover:bg-primary-500/20 transition-colors",children:[u.jsx(Th,{size:12}),"New Chat"]}),u.jsxs("button",{onClick:a,className:"flex items-center justify-center gap-1.5 rounded-lg bg-white/[0.04] border border-white/[0.08] px-3 py-1.5 text-[10px] font-bold uppercase tracking-widest text-neutral-muted hover:text-neutral-text hover:bg-white/[0.08] transition-colors",children:[u.jsx(kh,{size:12}),"Analyze"]})]}),u.jsxs("div",{className:"flex-1 overflow-y-auto py-2 no-scrollbar",children:[u.jsx(vu,{label:"Active",count:n.active.length,children:n.active.length===0?u.jsx("p",{className:"px-3 py-2 text-[10px] text-neutral-muted/50 italic",children:"No active threads"}):n.active.map(s=>u.jsx(mf,{thread:s},s.id))}),u.jsx(vu,{label:"Attention",count:n.attention.length,defaultOpen:!1,children:n.attention.length===0?u.jsx("p",{className:"px-3 py-2 text-[10px] text-neutral-muted/50 italic",children:"No pending items"}):n.attention.map(s=>u.jsx(mf,{thread:s},s.id))}),u.jsx(vu,{label:"Recent",count:n.recent.length,defaultOpen:!1,children:n.recent.length===0?u.jsx("p",{className:"px-3 py-2 text-[10px] text-neutral-muted/50 italic",children:"No recent threads"}):n.recent.map(s=>u.jsx(mf,{thread:s,dimmed:!0},s.id))}),u.jsx(vu,{label:"System",children:u.jsx("div",{className:"flex flex-col gap-0.5 px-1",children:aU.map(s=>u.jsx(oU,{page:s.page,label:s.label,route:s.route},s.page))})})]})]})]})}const OI=T.createContext({});function dU({children:e}){const t=hr(),[n,r]=T.useState({x:0,y:0}),[a,s]=T.useState(!1),o=Ge(b=>b.activeThreadId),c=t.pathname.startsWith("/s/"),d=Yo();YF(d),WF(d);const f=Ge(b=>o?b.panelState.get(o)??null:null),m=c?null:f;T.useEffect(()=>{s(!0);const b=setTimeout(()=>s(!1),800);return()=>clearTimeout(b)},[t.pathname]);const h=b=>{r({x:b.clientX,y:b.clientY})};return u.jsxs("div",{className:"h-screen flex text-neutral-text selection:bg-primary-500/30 overflow-hidden relative",onMouseMove:h,children:[u.jsx("div",{className:"neural-noise"}),u.jsx(cP,{mouseX:n.x,mouseY:n.y}),u.jsx("div",{className:"organism-float",style:{left:200,top:10},children:u.jsx(ur,{size:50,growthDuration:18})}),u.jsx("div",{className:"organism-float organism-float-2",style:{left:"60%",top:"70%"},children:u.jsx(ur,{size:80,growthDuration:25})}),u.jsx("div",{className:"organism-float organism-float-3",style:{left:"30%",top:"40%"},children:u.jsx(ur,{size:60,growthDuration:30})}),u.jsx(cU,{}),u.jsxs("main",{className:"flex-1 flex flex-col relative min-w-0 overflow-y-auto",children:[u.jsx(xn,{children:a&&u.jsx(ee.div,{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1},exit:{opacity:0},transition:{duration:.8,ease:"circOut"},className:"absolute top-0 left-0 right-0 h-[2px] bg-gradient-to-r from-primary-500 via-secondary-400 to-primary-500 z-50 origin-left shadow-[0_0_15px_var(--color-primary-500)]"})}),u.jsx(OI.Provider,{value:d.agentEvents,children:u.jsx(xn,{mode:"wait",children:u.jsx(ee.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.15,ease:"easeInOut"},className:"flex-1 flex flex-col",children:e},t.pathname)})})]}),u.jsx(rU,{state:m})]})}const ii=[{id:"harness:validate",name:"Validate Project",description:"Run comprehensive project health checks and dependency validation.",category:"health",slashCommand:"/harness:validate"},{id:"harness:verify",name:"Verify Implementation",description:"Deep audit of implemented artifacts against their specs and plans.",category:"health",slashCommand:"/harness:verify"},{id:"harness:integrity",name:"Check Integrity",description:"Verify codebase integrity and find missing or orphaned files.",category:"health",slashCommand:"/harness:integrity"},{id:"harness:security-scan",name:"Security Scan",description:"Scan codebase for secrets, vulnerabilities, and misconfigurations.",category:"security",slashCommand:"/harness:security-scan",contextSources:["/api/checks"]},{id:"harness:supply-chain-audit",name:"Supply Chain Audit",description:"Analyze dependency tree for security risks and license compliance.",category:"security",slashCommand:"/harness:supply-chain-audit"},{id:"harness:perf",name:"Performance Audit",description:"Analyze performance bottlenecks and resource utilization.",category:"performance",slashCommand:"/harness:perf",contextSources:["/api/checks"]},{id:"harness:enforce-architecture",name:"Enforce Architecture",description:"Check for architectural violations and boundary drift.",category:"architecture",slashCommand:"/harness:enforce-architecture",contextSources:["/api/checks"]},{id:"harness:dependency-health",name:"Dependency Health",description:"Evaluate dependency graph for cycles and outdated packages.",category:"architecture",slashCommand:"/harness:dependency-health"},{id:"harness:code-review",name:"Code Review",description:"Perform an automated deep-context code review of recent changes.",category:"code-quality",slashCommand:"/harness:code-review"},{id:"harness:codebase-cleanup",name:"Codebase Cleanup",description:"Identify and remove redundant or unreachable code.",category:"code-quality",slashCommand:"/harness:codebase-cleanup"},{id:"harness:cleanup-dead-code",name:"Cleanup Dead Code",description:"Specifically target and remove exported symbols with no consumers.",category:"code-quality",slashCommand:"/harness:cleanup-dead-code"},{id:"harness:detect-doc-drift",name:"Detect Doc Drift",description:"Find mismatches between implementation and documentation.",category:"code-quality",slashCommand:"/harness:detect-doc-drift"},{id:"harness:knowledge-pipeline",name:"Knowledge Pipeline",description:"Extract business knowledge, detect drift, materialize docs, and report coverage gaps.",category:"code-quality",slashCommand:"/harness:knowledge-pipeline"},{id:"harness:brainstorming",name:"Brainstorm",description:"Explore ideas, architectural patterns, and implementation strategies.",category:"workflow",slashCommand:"/harness:brainstorming"},{id:"harness:planning",name:"Plan Feature",description:"Generate a detailed implementation plan with atomic tasks.",category:"workflow",slashCommand:"/harness:planning"},{id:"harness:execution",name:"Execute Plan",description:"Implement a feature or fix task-by-task with atomic commits.",category:"workflow",slashCommand:"/harness:execution"},{id:"harness:tdd",name:"TDD Loop",description:"Execute a test-driven development cycle for a specific unit.",category:"workflow",slashCommand:"/harness:tdd"},{id:"harness:debugging",name:"Debug Issue",description:"Analyze logs, traces, and code to find and fix the root cause.",category:"workflow",slashCommand:"/harness:debugging"},{id:"harness:refactoring",name:"Refactor Code",description:"Safely reorganize code for better maintainability without changing behavior.",category:"workflow",slashCommand:"/harness:refactoring"},{id:"harness:onboarding",name:"Codebase Onboarding",description:"Get a high-level overview of the project structure and patterns.",category:"workflow",slashCommand:"/harness:onboarding"},{id:"harness:autopilot",name:"Autopilot",description:"Run an autonomous agent loop to solve a complex issue.",category:"workflow",slashCommand:"/harness:autopilot"},{id:"harness:roadmap-pilot",name:"Roadmap Pilot",description:"Autonomously execute the next logical item on the roadmap.",category:"workflow",slashCommand:"/harness:roadmap-pilot"},{id:"harness:roadmap-sync",name:"Roadmap Sync",description:"Update existing roadmap feature statuses based on current codebase state.",category:"workflow",slashCommand:"/harness:roadmap --sync"},{id:"harness:roadmap-add",name:"Add to Roadmap",description:"Interactively add a new feature to the roadmap.",category:"workflow",slashCommand:"/harness:roadmap --add"}],pU={health:AI,security:RI,performance:Ko,architecture:II,"code-quality":TI,workflow:li},fU={health:"text-emerald-400 bg-emerald-400/10 border-emerald-400/20",security:"text-red-400 bg-red-400/10 border-red-400/20",performance:"text-amber-400 bg-amber-400/10 border-amber-400/20",architecture:"text-blue-400 bg-blue-400/10 border-blue-400/20","code-quality":"text-purple-400 bg-purple-400/10 border-purple-400/20",workflow:"text-secondary-400 bg-secondary-400/10 border-secondary-400/20"};function mU({skill:e,onClick:t}){const n=pU[e.category],r=fU[e.category];return u.jsxs("button",{onClick:t,className:"group flex items-center gap-3 w-full px-3 py-2.5 rounded-lg border border-white/5 bg-white/[0.02] hover:bg-white/[0.06] hover:border-white/10 transition-all text-left",children:[u.jsx("div",{className:`flex-shrink-0 p-1.5 rounded-md border ${r}`,children:u.jsx(n,{size:14})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-baseline gap-2",children:[u.jsx("h4",{className:"text-xs font-semibold text-white group-hover:text-primary-300 transition-colors",children:e.name}),u.jsx("span",{className:"text-[9px] font-mono text-neutral-muted/30 hidden sm:inline",children:e.slashCommand})]}),u.jsx("p",{className:"text-[10px] leading-snug text-neutral-muted truncate",children:e.description})]}),u.jsx(MP,{size:14,className:"flex-shrink-0 text-neutral-muted/20 group-hover:text-primary-400 transition-colors"})]})}const hU=[{id:"workflow",label:"Workflow"},{id:"health",label:"Health"},{id:"security",label:"Security"},{id:"architecture",label:"Architecture"},{id:"code-quality",label:"Code Quality"},{id:"performance",label:"Performance"}];function LI({onSelect:e}){const[t,n]=T.useState(""),r=T.useMemo(()=>{const s=t.toLowerCase();return s?ii.filter(o=>o.name.toLowerCase().includes(s)||o.id.toLowerCase().includes(s)||o.description.toLowerCase().includes(s)||o.slashCommand.toLowerCase().includes(s)):ii},[t]),a=T.useMemo(()=>{const s={};for(const o of r)s[o.category]||(s[o.category]=[]),s[o.category].push(o);return s},[r]);return u.jsxs("div",{className:"flex flex-col gap-4 h-full",children:[u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none text-neutral-muted",children:u.jsx(fm,{size:15})}),u.jsx("input",{type:"text",value:t,onChange:s=>n(s.target.value),placeholder:"Search skills, commands, or categories...",className:"w-full bg-white/5 border border-white/10 rounded-xl py-2.5 pl-10 pr-4 text-sm text-white placeholder-neutral-muted focus:outline-none focus:ring-2 focus:ring-primary-500/20 focus:border-primary-500/40 transition-all",autoFocus:!0})]}),u.jsx("div",{className:"flex-1 overflow-y-auto pr-1 no-scrollbar",children:u.jsx(xn,{mode:"popLayout",children:r.length>0?u.jsx("div",{className:"flex flex-col gap-5 pb-4",children:hU.map(s=>{const o=a[s.id];return o?u.jsxs(ee.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},transition:{duration:.3},children:[u.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[u.jsx("h3",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:s.label}),u.jsx("div",{className:"flex-1 h-px bg-white/5"})]}),u.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-1.5",children:o.map(c=>u.jsx(mU,{skill:c,onClick:()=>e(c)},c.id))})]},s.id):null})}):u.jsxs(ee.div,{initial:{opacity:0},animate:{opacity:1},className:"flex flex-col items-center justify-center py-16 text-center",children:[u.jsx("div",{className:"mb-3 rounded-full bg-white/5 p-3 text-neutral-muted",children:u.jsx(fm,{size:24})}),u.jsx("h4",{className:"text-sm font-bold text-white mb-1",children:"No skills match"}),u.jsx("p",{className:"text-xs text-neutral-muted",children:"Try different keywords."})]})})})]})}function DI(){const e=Ln(),t=()=>{const a=Ge.getState(),s=a.createThread("chat",{sessionId:crypto.randomUUID(),command:null});a.setActiveThread(s.id),e(`/t/${s.id}`)},n=()=>{const a=Ge.getState(),s=a.createThread("analysis",{analysisTitle:"New Analysis",description:"",labels:[]});a.setActiveThread(s.id),e(`/t/${s.id}`)},r=a=>{const s=Ge.getState(),o=s.createThread("chat",{sessionId:crypto.randomUUID(),command:a.slashCommand});s.setActiveThread(o.id),e(`/t/${o.id}`)};return u.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center px-8 py-12",children:[u.jsx(ee.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.6,ease:[.16,1,.3,1]},className:"mb-8",children:u.jsx(ur,{size:80})}),u.jsx(ee.h2,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1,duration:.4},className:"text-2xl font-black tracking-tight text-white mb-2",children:"What would you like to do?"}),u.jsx(ee.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.15,duration:.4},className:"text-sm text-neutral-muted mb-8",children:"Start a chat, run an analysis, or select a skill below."}),u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2,duration:.4},className:"flex items-center gap-3 mb-10",children:[u.jsxs("button",{onClick:t,className:"flex items-center gap-2 rounded-xl bg-primary-500/10 border border-primary-500/20 px-5 py-2.5 text-sm font-bold text-primary-500 hover:bg-primary-500/20 transition-colors",children:[u.jsx(Th,{size:16}),"New Chat"]}),u.jsxs("button",{onClick:n,className:"flex items-center gap-2 rounded-xl bg-white/[0.04] border border-white/[0.08] px-5 py-2.5 text-sm font-bold text-neutral-text hover:bg-white/[0.08] transition-colors",children:[u.jsx(kh,{size:16}),"New Analysis"]})]}),u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.25,duration:.4},className:"w-full max-w-2xl",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[u.jsx(PB,{size:14,className:"text-neutral-muted"}),u.jsx("h3",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:"Skills & Commands"}),u.jsx("div",{className:"flex-1 h-px bg-white/5"})]}),u.jsx("div",{className:"max-h-[50vh] overflow-y-auto rounded-xl border border-white/[0.06] bg-neutral-surface/30 p-4 backdrop-blur-sm",children:u.jsx(LI,{onSelect:r})})]})]})}var gU=uN();const bU=Sc(gU),Oc=0,Aa=1,ss=2,MI=4;function Dk(e){return()=>e}function yU(e){e()}function jI(e,t){return n=>e(t(n))}function Mk(e,t){return()=>e(t)}function xU(e,t){return n=>e(t,n)}function Ih(e){return e!==void 0}function EU(...e){return()=>{e.map(yU)}}function os(){}function Lc(e,t){return t(e),e}function SU(e,t){return t(e)}function bt(...e){return e}function rt(e,t){return e(Aa,t)}function Ue(e,t){e(Oc,t)}function Ch(e){e(ss)}function Et(e){return e(MI)}function Te(e,t){return rt(e,xU(t,Oc))}function cr(e,t){const n=e(Aa,r=>{n(),t(r)});return n}function jk(e){let t,n;return r=>a=>{t=a,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function FI(e,t){return e===t}function gt(e=FI){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function Oe(e){return t=>n=>{e(n)&&t(n)}}function ge(e){return t=>jI(t,e)}function Tr(e){return t=>()=>{t(e)}}function oe(e,...t){const n=vU(...t);return((r,a)=>{switch(r){case ss:Ch(e);return;case Aa:return rt(e,n(a))}})}function Nr(e,t){return n=>r=>{n(t=e(t,r))}}function si(e){return t=>n=>{e>0?e--:t(n)}}function zr(e){let t=null,n;return r=>a=>{t=a,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function $e(...e){const t=new Array(e.length);let n=0,r=null;const a=2**e.length-1;return e.forEach((s,o)=>{const c=2**o;rt(s,d=>{const f=n;n|=c,t[o]=d,f!==a&&n===a&&r&&(r(),r=null)})}),s=>o=>{const c=()=>{s([o].concat(t))};n===a?c():r=c}}function vU(...e){return t=>e.reduceRight(SU,t)}function wU(e){let t,n;const r=()=>t==null?void 0:t();return function(a,s){switch(a){case Aa:return s?n===s?void 0:(r(),n=s,t=rt(e,s),t):(r(),os);case ss:r(),n=null;return}}}function ce(e){let t=e;const n=Ke();return((r,a)=>{switch(r){case Oc:t=a;break;case Aa:{a(t);break}case MI:return t}return n(r,a)})}function en(e,t){return Lc(ce(t),n=>Te(e,n))}function Ke(){const e=[];return((t,n)=>{switch(t){case Oc:e.slice().forEach(r=>{r(n)});return;case ss:e.splice(0,e.length);return;case Aa:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}})}function Rn(e){return Lc(Ke(),t=>Te(e,t))}function nt(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:kU(),singleton:n}}const kU=()=>Symbol();function TU(e){const t=new Map,n=({constructor:r,dependencies:a,id:s,singleton:o})=>{if(o&&t.has(s))return t.get(s);const c=r(a.map(d=>n(d)));return o&&t.set(s,c),c};return n(e)}function Lt(...e){const t=Ke(),n=new Array(e.length);let r=0;const a=2**e.length-1;return e.forEach((s,o)=>{const c=2**o;rt(s,d=>{n[o]=d,r|=c,r===a&&Ue(t,n)})}),function(s,o){switch(s){case ss:{Ch(t);return}case Aa:return r===a&&o(n),rt(t,o)}}}function _e(e,t=FI){return oe(e,gt(t))}function mm(...e){return function(t,n){switch(t){case ss:return;case Aa:return EU(...e.map(r=>rt(r,n)))}}}const Bt={DEBUG:0,INFO:1,WARN:2,ERROR:3},NU={[Bt.DEBUG]:"debug",[Bt.ERROR]:"error",[Bt.INFO]:"log",[Bt.WARN]:"warn"},AU=()=>typeof globalThis>"u"?window:globalThis,Ia=nt(()=>{const e=ce(Bt.ERROR);return{log:ce((t,n,r=Bt.INFO)=>{const a=AU().VIRTUOSO_LOG_LEVEL??Et(e);r>=a&&console[NU[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0});function ui(e,t,n){return Rh(e,t,n).callbackRef}function Rh(e,t,n){const r=me.useRef(null);let a=o=>{};const s=me.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(o=>{const c=()=>{const d=o[0].target;d.offsetParent!==null&&e(d)};n?c():requestAnimationFrame(c)}):null,[e,n]);return a=o=>{o&&t?(s==null||s.observe(o),r.current=o):(r.current&&(s==null||s.unobserve(r.current)),r.current=null)},{callbackRef:a,ref:r}}function IU(e,t,n,r,a,s,o,c,d){const f=me.useCallback(m=>{const h=CU(m.children,t,c?"offsetWidth":"offsetHeight",a);let b=m.parentElement;for(;b.dataset.virtuosoScroller===void 0;)b=b.parentElement;const y=b.lastElementChild.dataset.viewportType==="window";let E;y&&(E=b.ownerDocument.defaultView);const k=o?c?o.scrollLeft:o.scrollTop:y?c?E.scrollX||E.document.documentElement.scrollLeft:E.scrollY||E.document.documentElement.scrollTop:c?b.scrollLeft:b.scrollTop,w=o?c?o.scrollWidth:o.scrollHeight:y?c?E.document.documentElement.scrollWidth:E.document.documentElement.scrollHeight:c?b.scrollWidth:b.scrollHeight,v=o?c?o.offsetWidth:o.offsetHeight:y?c?E.innerWidth:E.innerHeight:c?b.offsetWidth:b.offsetHeight;r({scrollHeight:w,scrollTop:Math.max(k,0),viewportHeight:v}),s==null||s(c?Fk("column-gap",getComputedStyle(m).columnGap,a):Fk("row-gap",getComputedStyle(m).rowGap,a)),h!==null&&e(h)},[e,t,a,s,o,r,c]);return Rh(f,n,d)}function CU(e,t,n,r){const a=e.length;if(a===0)return null;const s=[];for(let o=0;o<a;o++){const c=e.item(o);if(c.dataset.index===void 0)continue;const d=parseInt(c.dataset.index),f=parseFloat(c.dataset.knownSize),m=t(c,n);if(m===0&&r("Zero-sized element, this should not happen",{child:c},Bt.ERROR),m===f)continue;const h=s[s.length-1];s.length===0||h.size!==m||h.endIndex!==d-1?s.push({endIndex:d,size:m,startIndex:d}):s[s.length-1].endIndex++}return s}function Fk(e,t,n){return t!=="normal"&&(t==null?void 0:t.endsWith("px"))!==!0&&n(`${e} was not resolved to pixel value correctly`,t,Bt.WARN),t==="normal"?0:parseInt(t??"0",10)}function PI(e,t,n){const r=me.useRef(null),a=me.useCallback(d=>{if(!(d!=null&&d.offsetParent))return;const f=d.getBoundingClientRect(),m=f.width;let h,b;if(t){const y=t.getBoundingClientRect(),E=f.top-y.top;b=y.height-Math.max(0,E),h=E+t.scrollTop}else{const y=o.current.ownerDocument.defaultView;b=y.innerHeight-Math.max(0,f.top),h=f.top+y.scrollY}r.current={listHeight:f.height,offsetTop:h,visibleHeight:b,visibleWidth:m},e(r.current)},[e,t]),{callbackRef:s,ref:o}=Rh(a,!0,n),c=me.useCallback(()=>{a(o.current)},[a,o]);return me.useEffect(()=>{var f;if(t){t.addEventListener("scroll",c);const m=new ResizeObserver(()=>{requestAnimationFrame(c)});return m.observe(t),()=>{t.removeEventListener("scroll",c),m.unobserve(t)}}const d=(f=o.current)==null?void 0:f.ownerDocument.defaultView;return d==null||d.addEventListener("scroll",c),d==null||d.addEventListener("resize",c),()=>{d==null||d.removeEventListener("scroll",c),d==null||d.removeEventListener("resize",c)}},[c,t,o]),s}const dn=nt(()=>{const e=Ke(),t=Ke(),n=ce(0),r=Ke(),a=ce(0),s=Ke(),o=Ke(),c=ce(0),d=ce(0),f=ce(0),m=ce(0),h=Ke(),b=Ke(),y=ce(!1),E=ce(!1),k=ce(!1);return Te(oe(e,ge(({scrollTop:w})=>w)),t),Te(oe(e,ge(({scrollHeight:w})=>w)),o),Te(t,a),{deviation:n,fixedFooterHeight:f,fixedHeaderHeight:d,footerHeight:m,headerHeight:c,horizontalDirection:E,scrollBy:b,scrollContainerState:e,scrollHeight:o,scrollingInProgress:y,scrollTo:h,scrollTop:t,skipAnimationFrameInResizeObserver:k,smoothScrollTargetReached:r,statefulScrollTop:a,viewportHeight:s}},[],{singleton:!0}),Co={lvl:0};function BI(e,t){const n=e.length;if(n===0)return[];let{index:r,value:a}=t(e[0]);const s=[];for(let o=1;o<n;o++){const{index:c,value:d}=t(e[o]);s.push({end:c-1,start:r,value:a}),r=c,a=d}return s.push({end:1/0,start:r,value:a}),s}function ot(e){return e===Co}function Ro(e,t){if(!ot(e))return t===e.k?e.v:t<e.k?Ro(e.l,t):Ro(e.r,t)}function fr(e,t,n="k"){if(ot(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=fr(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return fr(e.l,t,n)}function In(e,t,n){return ot(e)?zI(t,n,1):t===e.k?Ft(e,{k:t,v:n}):t<e.k?Pk(Ft(e,{l:In(e.l,t,n)})):Pk(Ft(e,{r:In(e.r,t,n)}))}function Ki(){return Co}function Xi(e,t,n){if(ot(e))return[];const r=fr(e,t)[0];return RU(gm(e,r,n))}function hm(e,t){if(ot(e))return Co;const{k:n,l:r,r:a}=e;if(t===n){if(ot(r))return a;if(ot(a))return r;const[s,o]=$I(r);return Hu(Ft(e,{k:s,l:UI(r),v:o}))}return t<n?Hu(Ft(e,{l:hm(r,t)})):Hu(Ft(e,{r:hm(a,t)}))}function Qa(e){return ot(e)?[]:[...Qa(e.l),{k:e.k,v:e.v},...Qa(e.r)]}function gm(e,t,n){if(ot(e))return[];const{k:r,l:a,r:s,v:o}=e;let c=[];return r>t&&(c=c.concat(gm(a,t,n))),r>=t&&r<=n&&c.push({k:r,v:o}),r<=n&&(c=c.concat(gm(s,t,n))),c}function Hu(e){const{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(hf(t))return GI(Ft(e,{lvl:n-1}));if(!ot(t)&&!ot(t.r))return Ft(t.r,{l:Ft(t,{r:t.r.l}),lvl:n,r:Ft(e,{l:t.r.r,lvl:n-1})});throw new Error("Unexpected empty nodes")}if(hf(e))return bm(Ft(e,{lvl:n-1}));if(!ot(r)&&!ot(r.l)){const a=r.l,s=hf(a)?r.lvl-1:r.lvl;return Ft(a,{l:Ft(e,{lvl:n-1,r:a.l}),lvl:a.lvl+1,r:bm(Ft(r,{l:a.r,lvl:s}))})}throw new Error("Unexpected empty nodes")}function Ft(e,t){return zI(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function UI(e){return ot(e.r)?e.l:Hu(Ft(e,{r:UI(e.r)}))}function hf(e){return ot(e)||e.lvl>e.r.lvl}function $I(e){return ot(e.r)?[e.k,e.v]:$I(e.r)}function zI(e,t,n,r=Co,a=Co){return{k:e,l:r,lvl:n,r:a,v:t}}function Pk(e){return bm(GI(e))}function GI(e){const{l:t}=e;return!ot(t)&&t.lvl===e.lvl?Ft(t,{r:Ft(e,{l:t.r})}):e}function bm(e){const{lvl:t,r:n}=e;return!ot(n)&&!ot(n.r)&&n.lvl===t&&n.r.lvl===t?Ft(n,{l:Ft(e,{r:n.l}),lvl:t+1}):e}function RU(e){return BI(e,({k:t,v:n})=>({index:t,value:n}))}function HI(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function _o(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}const _h=nt(()=>({recalcInProgress:ce(!1)}),[],{singleton:!0});function VI(e,t,n){return e[uc(e,t,n)]}function uc(e,t,n,r=0){let a=e.length-1;for(;r<=a;){const s=Math.floor((r+a)/2),o=e[s],c=n(o,t);if(c===0)return s;if(c===-1){if(a-r<2)return s-1;a=s-1}else{if(a===r)return s;r=s+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function _U(e,t,n,r){const a=uc(e,t,r),s=uc(e,n,r,a);return e.slice(a,s+1)}function wa(e,t){return Math.round(e.getBoundingClientRect()[t])}function Dc(e){return!ot(e.groupOffsetTree)}function Oh({index:e},t){return t===e?0:t<e?-1:1}function OU(){return{groupIndices:[],groupOffsetTree:Ki(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:Ki()}}function LU(e,t){let n=ot(e)?0:1/0;for(const r of t){const{endIndex:a,size:s,startIndex:o}=r;if(n=Math.min(n,o),ot(e)){e=In(e,0,s);continue}const c=Xi(e,o-1,a+1);if(c.some(UU(r)))continue;let d=!1,f=!1;for(const{end:m,start:h,value:b}of c)d?(a>=h||s===b)&&(e=hm(e,h)):(f=b!==s,d=!0),m>a&&a>=h&&b!==s&&(e=In(e,a+1,b));f&&(e=In(e,o,s))}return[e,n]}function DU(e){return typeof e.groupIndex<"u"}function MU({offset:e},t){return t===e?0:t<e?-1:1}function Oo(e,t,n){if(t.length===0)return 0;const{index:r,offset:a,size:s}=VI(t,e,Oh),o=e-r,c=s*o+(o-1)*n+a;return c>0?c+n:c}function WI(e,t){if(!Dc(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function qI(e,t,n){if(DU(e))return t.groupIndices[e.groupIndex]+1;const r=e.index==="LAST"?n:e.index;let a=WI(r,t);return a=Math.max(0,a,Math.min(n,a)),a}function jU(e,t,n,r=0){return r>0&&(t=Math.max(t,VI(e,r,Oh).offset)),BI(_U(e,t,n,MU),BU)}function FU(e,[t,n,r,a]){t.length>0&&r("received item sizes",t,Bt.DEBUG);const s=e.sizeTree;let o=s,c=0;if(n.length>0&&ot(s)&&t.length===2){const b=t[0].size,y=t[1].size;o=n.reduce((E,k)=>In(In(E,k,b),k+1,y),o)}else[o,c]=LU(o,t);if(o===s)return e;const{lastIndex:d,lastOffset:f,lastSize:m,offsetTree:h}=ym(e.offsetTree,c,o,a);return{groupIndices:n,groupOffsetTree:n.reduce((b,y)=>In(b,y,Oo(y,h,a)),Ki()),lastIndex:d,lastOffset:f,lastSize:m,offsetTree:h,sizeTree:o}}function PU(e){return Qa(e).map(({k:t,v:n},r,a)=>{const s=a[r+1];return{endIndex:s!==void 0?s.k-1:1/0,size:n,startIndex:t}})}function Bk(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function ym(e,t,n,r){let a=e,s=0,o=0,c=0,d=0;if(t!==0){d=uc(a,t-1,Oh),c=a[d].offset;const f=fr(n,t-1);s=f[0],o=f[1],a.length&&a[d].size===fr(n,t)[1]&&(d-=1),a=a.slice(0,d+1)}else a=[];for(const{start:f,value:m}of Xi(n,t,1/0)){const h=f-s,b=h*o+c+h*r;a.push({index:f,offset:b,size:m}),s=f,c=b,o=m}return{lastIndex:s,lastOffset:c,lastSize:o,offsetTree:a}}function BU(e){return{index:e.index,value:e}}function UU(e){const{endIndex:t,size:n,startIndex:r}=e;return a=>a.start===r&&(a.end===t||a.end===1/0)&&a.value===n}const $U={offsetHeight:"height",offsetWidth:"width"},Rr=nt(([{log:e},{recalcInProgress:t}])=>{const n=Ke(),r=Ke(),a=en(r,0),s=Ke(),o=Ke(),c=ce(0),d=ce([]),f=ce(void 0),m=ce(void 0),h=ce(void 0),b=ce(void 0),y=ce((R,P)=>wa(R,$U[P])),E=ce(void 0),k=ce(0),w=OU(),v=en(oe(n,$e(d,e,k),Nr(FU,w),gt()),w),N=en(oe(d,gt(),Nr((R,P)=>({current:P,prev:R.current}),{current:[],prev:[]}),ge(({prev:R})=>R)),[]);Te(oe(d,Oe(R=>R.length>0),$e(v,k),ge(([R,P,B])=>{const O=R.reduce(($,H,Z)=>In($,H,Oo(H,P.offsetTree,B)||Z),Ki());return{...P,groupIndices:R,groupOffsetTree:O}})),v),Te(oe(r,$e(v),Oe(([R,{lastIndex:P}])=>R<P),ge(([R,{lastIndex:P,lastSize:B}])=>[{endIndex:P,size:B,startIndex:R}])),n),Te(f,m);const A=en(oe(f,ge(R=>R===void 0)),!0);Te(oe(m,Oe(R=>R!==void 0&&ot(Et(v).sizeTree)),ge(R=>{const P=Et(h),B=Et(d).length>0;return P!==void 0&&P!==0?B?[{endIndex:0,size:P,startIndex:0},{endIndex:1,size:R,startIndex:1}]:[]:[{endIndex:0,size:R,startIndex:0}]})),n),Te(oe(b,Oe(R=>R!==void 0&&R.length>0&&ot(Et(v).sizeTree)),ge(R=>{const P=[];let B=R[0],O=0;for(let $=1;$<R.length;$++){const H=R[$];H!==B&&(P.push({endIndex:$-1,size:B,startIndex:O}),B=H,O=$)}return P.push({endIndex:R.length-1,size:B,startIndex:O}),P})),n),Te(oe(d,$e(h,m),Oe(([,R,P])=>R!==void 0&&P!==void 0),ge(([R,P,B])=>{const O=[];for(let $=0;$<R.length;$++){const H=R[$],Z=R[$+1];O.push({startIndex:H,endIndex:H,size:P}),Z!==void 0&&O.push({startIndex:H+1,endIndex:Z-1,size:B})}return O})),n);const _=Rn(oe(n,$e(v),Nr(({sizes:R},[P,B])=>({changed:B!==R,sizes:B}),{changed:!1,sizes:w}),ge(R=>R.changed)));rt(oe(c,Nr((R,P)=>({diff:R.prev-P,prev:P}),{diff:0,prev:0}),ge(R=>R.diff)),R=>{const{groupIndices:P}=Et(v);if(R>0)Ue(t,!0),Ue(s,R+Bk(R,P));else if(R<0){const B=Et(N);B.length>0&&(R-=Bk(-R,B)),Ue(o,R)}}),rt(oe(c,$e(e)),([R,P])=>{R<0&&P("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:c},Bt.ERROR)});const M=Rn(s);Te(oe(s,$e(v),ge(([R,P])=>{const B=P.groupIndices.length>0,O=[],$=P.lastSize;if(B){const H=Ro(P.sizeTree,0);let Z=0,q=0;for(;Z<R;){const ae=P.groupIndices[q],J=P.groupIndices.length===q+1?1/0:P.groupIndices[q+1]-ae-1;O.push({endIndex:ae,size:H,startIndex:ae}),O.push({endIndex:ae+1+J-1,size:$,startIndex:ae+1}),q++,Z+=J+1}const Y=Qa(P.sizeTree);return Z!==R&&Y.shift(),Y.reduce((ae,{k:J,v:W})=>{let re=ae.ranges;return ae.prevSize!==0&&(re=[...ae.ranges,{endIndex:J+R-1,size:ae.prevSize,startIndex:ae.prevIndex}]),{prevIndex:J+R,prevSize:W,ranges:re}},{prevIndex:R,prevSize:0,ranges:O}).ranges}return Qa(P.sizeTree).reduce((H,{k:Z,v:q})=>({prevIndex:Z+R,prevSize:q,ranges:[...H.ranges,{endIndex:Z+R-1,size:H.prevSize,startIndex:H.prevIndex}]}),{prevIndex:0,prevSize:$,ranges:[]}).ranges})),n);const D=Rn(oe(o,$e(v,k),ge(([R,{offsetTree:P},B])=>{const O=-R;return Oo(O,P,B)})));return Te(oe(o,$e(v,k),ge(([R,P,B])=>{if(P.groupIndices.length>0){if(ot(P.sizeTree))return P;let $=Ki();const H=Et(N);let Z=0,q=0,Y=0;for(;Z<-R;){Y=H[q];const ae=H[q+1]-Y-1;q++,Z+=ae+1}if($=Qa(P.sizeTree).reduce((ae,{k:J,v:W})=>In(ae,Math.max(0,J+R),W),$),Z!==-R){const ae=Ro(P.sizeTree,Y);$=In($,0,ae);const J=fr(P.sizeTree,-R+1)[1];$=In($,1,J)}return{...P,sizeTree:$,...ym(P.offsetTree,0,$,B)}}const O=Qa(P.sizeTree).reduce(($,{k:H,v:Z})=>In($,Math.max(0,H+R),Z),Ki());return{...P,sizeTree:O,...ym(P.offsetTree,0,O,B)}})),v),{beforeUnshiftWith:M,data:E,defaultItemSize:m,firstItemIndex:c,fixedItemSize:f,fixedGroupSize:h,gap:k,groupIndices:d,heightEstimates:b,itemSize:y,listRefresh:_,shiftWith:o,shiftWithOffset:D,sizeRanges:n,sizes:v,statefulTotalCount:a,totalCount:r,trackItemSizes:A,unshiftWith:s}},bt(Ia,_h),{singleton:!0});function zU(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{groupIndices:[],totalCount:0})}const YI=nt(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:a}])=>{const s=Ke(),o=Ke(),c=Rn(oe(s,ge(zU)));return Te(oe(c,ge(d=>d.totalCount)),n),Te(oe(c,ge(d=>d.groupIndices)),e),Te(oe(Lt(a,t,r),Oe(([d,f])=>Dc(f)),ge(([d,f,m])=>fr(f.groupOffsetTree,Math.max(d-m,0),"v")[0]),gt(),ge(d=>[d])),o),{groupCounts:s,topItemsIndexes:o}},bt(Rr,dn)),Ca=nt(([{log:e}])=>{const t=ce(!1),n=Rn(oe(t,Oe(r=>r),gt()));return rt(t,r=>{r&&Et(e)("props updated",{},Bt.DEBUG)}),{didMount:n,propsReady:t}},bt(Ia),{singleton:!0}),GU=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function KI(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!GU)&&(t.behavior="auto"),t.offset===void 0&&(t.offset=0),t}const Xo=nt(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:a,fixedHeaderHeight:s,footerHeight:o,headerHeight:c,scrollingInProgress:d,scrollTo:f,smoothScrollTargetReached:m,viewportHeight:h},{log:b}])=>{const y=Ke(),E=Ke(),k=ce(0);let w=null,v=null,N=null;function A(){w!==null&&(w(),w=null),N!==null&&(N(),N=null),v&&(clearTimeout(v),v=null),Ue(d,!1)}return Te(oe(y,$e(n,h,r,k,c,o,b),$e(e,s,a),ge(([[_,M,D,R,P,B,O,$],H,Z,q])=>{const Y=KI(_),{align:ae,behavior:J,offset:W}=Y,re=R-1,C=qI(Y,M,re);let F=Oo(C,M.offsetTree,H)+B;ae==="end"?(F+=Z+fr(M.sizeTree,C)[1]-D+q,C===re&&(F+=O)):ae==="center"?F+=(Z+fr(M.sizeTree,C)[1]-D+q)/2:F-=P,W!==void 0&&W!==0&&(F+=W);const K=j=>{A(),j?($("retrying to scroll to",{location:_},Bt.DEBUG),Ue(y,_)):(Ue(E,!0),$("list did not change, scroll successful",{},Bt.DEBUG))};if(A(),J==="smooth"){let j=!1;N=rt(t,fe=>{j=j||fe}),w=cr(m,()=>{K(j)})}else w=cr(oe(t,HU(150)),K);return v=setTimeout(()=>{A()},1200),Ue(d,!0),$("scrolling from index to",{behavior:J,index:C,top:F},Bt.DEBUG),{behavior:J,top:F}})),f),{scrollTargetReached:E,scrollToIndex:y,topListHeight:k}},bt(Rr,dn,Ia),{singleton:!0});function HU(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}function Lh(e,t){e===0?t():requestAnimationFrame(()=>{Lh(e-1,t)})}function Dh(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const Zo=nt(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:a,scrollToIndex:s},{didMount:o}])=>{const c=ce(!0),d=ce(0),f=ce(!0);return Te(oe(o,$e(d),Oe(([m,h])=>h!==0),Tr(!1)),c),Te(oe(o,$e(d),Oe(([m,h])=>h!==0),Tr(!1)),f),rt(oe(Lt(t,o),$e(c,n,e,f),Oe(([[,m],h,{sizeTree:b},y,E])=>m&&(!ot(b)||Ih(y))&&!h&&!E),$e(d)),([,m])=>{cr(a,()=>{Ue(f,!0)}),Lh(4,()=>{cr(r,()=>{Ue(c,!0)}),Ue(s,m)})}),{initialItemFinalLocationReached:f,initialTopMostItemIndex:d,scrolledToInitialItem:c}},bt(Rr,dn,Xo,Ca),{singleton:!0});function XI(e,t){return Math.abs(e-t)<1.01}const Lo="up",bo="down",VU="none",WU={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},qU=0,Qo=nt(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:a,viewportHeight:s}])=>{const o=ce(!1),c=ce(!0),d=Ke(),f=Ke(),m=ce(4),h=ce(qU),b=en(oe(mm(oe(_e(a),si(1),Tr(!0)),oe(_e(a),si(1),Tr(!1),jk(100))),gt()),!1),y=en(oe(mm(oe(n,Tr(!0)),oe(n,Tr(!1),jk(200))),gt()),!1);Te(oe(Lt(_e(a),_e(h)),ge(([N,A])=>N<=A),gt()),c),Te(oe(c,zr(50)),f);const E=Rn(oe(Lt(r,_e(s),_e(t),_e(e),_e(m)),Nr((N,[{scrollHeight:A,scrollTop:_},M,D,R,P])=>{const B=_+M-A>-P,O={scrollHeight:A,scrollTop:_,viewportHeight:M};if(B){let H,Z;return _>N.state.scrollTop?(H="SCROLLED_DOWN",Z=N.state.scrollTop-_):(H="SIZE_DECREASED",Z=N.state.scrollTop-_||N.scrollTopDelta),{atBottom:!0,atBottomBecause:H,scrollTopDelta:Z,state:O}}let $;return O.scrollHeight>N.state.scrollHeight?$="SIZE_INCREASED":M<N.state.viewportHeight?$="VIEWPORT_HEIGHT_DECREASING":_<N.state.scrollTop?$="SCROLLING_UPWARDS":$="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:$,state:O}},WU),gt((N,A)=>N!==void 0&&N.atBottom===A.atBottom))),k=en(oe(r,Nr((N,{scrollHeight:A,scrollTop:_,viewportHeight:M})=>{if(!XI(N.scrollHeight,A)){const D=A-(_+M)<1;return N.scrollTop!==_&&D?{changed:!0,jump:N.scrollTop-_,scrollHeight:A,scrollTop:_}:{changed:!0,jump:0,scrollHeight:A,scrollTop:_}}return{changed:!1,jump:0,scrollHeight:A,scrollTop:_}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),Oe(N=>N.changed),ge(N=>N.jump)),0);Te(oe(E,ge(N=>N.atBottom)),o),Te(oe(o,zr(50)),d);const w=ce(bo);Te(oe(r,ge(({scrollTop:N})=>N),gt(),Nr((N,A)=>Et(y)?{direction:N.direction,prevScrollTop:A}:{direction:A<N.prevScrollTop?Lo:bo,prevScrollTop:A},{direction:bo,prevScrollTop:0}),ge(N=>N.direction)),w),Te(oe(r,zr(50),Tr(VU)),w);const v=ce(0);return Te(oe(b,Oe(N=>!N),Tr(0)),v),Te(oe(a,zr(100),$e(b),Oe(([N,A])=>A),Nr(([N,A],[_])=>[A,_],[0,0]),ge(([N,A])=>A-N)),v),{atBottomState:E,atBottomStateChange:d,atBottomThreshold:m,atTopStateChange:f,atTopThreshold:h,isAtBottom:o,isAtTop:c,isScrolling:b,lastJumpDueToItemResize:k,scrollDirection:w,scrollVelocity:v}},bt(dn)),Do="top",Mo="bottom",Uk="none";function $k(e,t,n){return typeof e=="number"?n===Lo&&t===Do||n===bo&&t===Mo?e:0:n===Lo?t===Do?e.main:e.reverse:t===Mo?e.main:e.reverse}function zk(e,t){return typeof e=="number"?e:e[t]??0}const Mh=nt(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:a}])=>{const s=Ke(),o=ce(0),c=ce(0),d=ce(0),f=en(oe(Lt(_e(r),_e(a),_e(n),_e(s,_o),_e(d),_e(o),_e(t),_e(e),_e(c)),ge(([m,h,b,[y,E],k,w,v,N,A])=>{const _=m-N,M=w+v,D=Math.max(b-_,0);let R=Uk;const P=zk(A,Do),B=zk(A,Mo);return y-=N,y+=b+v,E+=b+v,E-=N,y>m+M-P&&(R=Lo),E<m-D+h+B&&(R=bo),R!==Uk?[Math.max(_-b-$k(k,Do,R)-P,0),_-D-v+h+$k(k,Mo,R)+B]:null}),Oe(m=>m!==null),gt(_o)),[0,0]);return{increaseViewportBy:c,listBoundary:s,overscan:d,topListHeight:o,visibleRange:f}},bt(dn),{singleton:!0});function YU(e,t,n){if(Dc(t)){const r=WI(e,t);return[{index:fr(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n==null?void 0:n[0],index:r,offset:0,size:0}]}return[{data:n==null?void 0:n[0],index:e,offset:0,size:0}]}const gf={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function Vu(e,t,n,r,a,s){const{lastIndex:o,lastOffset:c,lastSize:d}=a;let f=0,m=0;if(e.length>0){f=e[0].offset;const k=e[e.length-1];m=k.offset+k.size}const h=n-o,b=c+h*d+(h-1)*r,y=f,E=b-m;return{bottom:m,firstItemIndex:s,items:Gk(e,a,s),offsetBottom:E,offsetTop:f,top:y,topItems:Gk(t,a,s),topListHeight:t.reduce((k,w)=>w.size+k,0),totalCount:n}}function ZI(e,t,n,r,a,s){let o=0;if(n.groupIndices.length>0)for(const m of n.groupIndices){if(m-o>=e)break;o++}const c=e+o,d=Dh(t,c),f=Array.from({length:c}).map((m,h)=>({data:s[h+d],index:h+d,offset:0,size:0}));return Vu(f,[],c,a,n,r)}function Gk(e,t,n){if(e.length===0)return[];if(!Dc(t))return e.map(f=>({...f,index:f.index+n,originalIndex:f.index}));const r=e[0].index,a=e[e.length-1].index,s=[],o=Xi(t.groupOffsetTree,r,a);let c,d=0;for(const f of e){(!c||c.end<f.index)&&(c=o.shift(),d=t.groupIndices.indexOf(c.start));let m;f.index===c.start?m={index:d,type:"group"}:m={groupIndex:d,index:f.index-(d+1)+n},s.push({...m,data:f.data,offset:f.offset,originalIndex:f.index,size:f.size})}return s}function Hk(e,t){return e===void 0?0:typeof e=="number"?e:e[t]??0}const ci=nt(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:a},s,{listBoundary:o,topListHeight:c,visibleRange:d},{initialTopMostItemIndex:f,scrolledToInitialItem:m},{topListHeight:h},b,{didMount:y},{recalcInProgress:E}])=>{const k=ce([]),w=ce(0),v=Ke(),N=ce(0);Te(s.topItemsIndexes,k);const A=en(oe(Lt(y,E,_e(d,_o),_e(a),_e(r),_e(f),m,_e(k),_e(t),_e(n),_e(N),e),Oe(([R,P,,B,,,,,,,,O])=>{const $=O!==void 0&&O.length!==B;return R&&!P&&!$}),ge(([,,[R,P],B,O,$,H,Z,q,Y,ae,J])=>{var xe,je;const W=O,{offsetTree:re,sizeTree:C}=W,F=Et(w);if(B===0)return{...gf,totalCount:B};if(R===0&&P===0)return F===0?{...gf,totalCount:B}:ZI(F,$,O,q,Y,J||[]);if(ot(C))return F>0?null:Vu(YU(Dh($,B),W,J),[],B,Y,W,q);const K=[];if(Z.length>0){const ze=Z[0],qe=Z[Z.length-1];let Je=0;for(const lt of Xi(C,ze,qe)){const et=lt.value,at=Math.max(lt.start,ze),kt=Math.min(lt.end,qe);for(let ct=at;ct<=kt;ct++)K.push({data:J==null?void 0:J[ct],index:ct,offset:Je,size:et}),Je+=et}}if(!H)return Vu([],K,B,Y,W,q);const j=Z.length>0?Z[Z.length-1]+1:0,fe=jU(re,R,P,j);if(fe.length===0)return null;const Ne=B-1,be=Lc([],ze=>{for(const qe of fe){const Je=qe.value;let lt=Je.offset,et=qe.start;const at=Je.size;if(Je.offset<R){et+=Math.floor((R-Je.offset+Y)/(at+Y));const ct=et-qe.start;lt+=ct*at+ct*Y}et<j&&(lt+=(j-et)*at,et=j);const kt=Math.min(qe.end,Ne);for(let ct=et;ct<=kt&&!(lt>=P);ct++)ze.push({data:J==null?void 0:J[ct],index:ct,offset:lt,size:at}),lt+=at+Y}}),De=Hk(ae,Do),ne=Hk(ae,Mo);if(be.length>0&&(De>0||ne>0)){const ze=be[0],qe=be[be.length-1];if(De>0&&ze.index>j){const Je=Math.min(De,ze.index-j),lt=[];let et=ze.offset;for(let at=ze.index-1;at>=ze.index-Je;at--){const kt=((xe=Xi(C,at,at)[0])==null?void 0:xe.value)??ze.size;et-=kt+Y,lt.unshift({data:J==null?void 0:J[at],index:at,offset:et,size:kt})}be.unshift(...lt)}if(ne>0&&qe.index<Ne){const Je=Math.min(ne,Ne-qe.index);let lt=qe.offset+qe.size+Y;for(let et=qe.index+1;et<=qe.index+Je;et++){const at=((je=Xi(C,et,et)[0])==null?void 0:je.value)??qe.size;be.push({data:J==null?void 0:J[et],index:et,offset:lt,size:at}),lt+=at+Y}}}return Vu(be,K,B,Y,W,q)}),Oe(R=>R!==null),gt()),gf);Te(oe(e,Oe(Ih),ge(R=>R==null?void 0:R.length)),a),Te(oe(A,ge(R=>R.topListHeight)),h),Te(h,c),Te(oe(A,ge(R=>[R.top,R.bottom])),o),Te(oe(A,ge(R=>R.items)),v);const _=Rn(oe(A,Oe(({items:R})=>R.length>0),$e(a,e),Oe(([{items:R},P])=>R[R.length-1].originalIndex===P-1),ge(([,R,P])=>[R-1,P]),gt(_o),ge(([R])=>R))),M=Rn(oe(A,zr(200),Oe(({items:R,topItems:P})=>R.length>0&&R[0].originalIndex===P.length),ge(({items:R})=>R[0].index),gt())),D=Rn(oe(A,Oe(({items:R})=>R.length>0),ge(({items:R})=>{let P=0,B=R.length-1;for(;R[P].type==="group"&&P<B;)P++;for(;R[B].type==="group"&&B>P;)B--;return{endIndex:R[B].index,startIndex:R[P].index}}),gt(HI)));return{endReached:_,initialItemCount:w,itemsRendered:v,listState:A,minOverscanItemCount:N,rangeChanged:D,startReached:M,topItemsIndexes:k,...b}},bt(Rr,YI,Mh,Zo,Xo,Qo,Ca,_h),{singleton:!0}),QI=nt(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:a}])=>{const s=Ke(),o=en(oe(Lt(n,e,r,t,a),ge(([c,d,f,m,h])=>c+d+f+m+h.offsetBottom+h.bottom)),0);return Te(_e(o),s),{totalListHeight:o,totalListHeightChanged:s}},bt(dn,ci),{singleton:!0}),KU=nt(([{viewportHeight:e},{totalListHeight:t}])=>{const n=ce(!1),r=en(oe(Lt(n,e,t),Oe(([a])=>a),ge(([,a,s])=>Math.max(0,a-s)),zr(0),gt()),0);return{alignToBottom:n,paddingTopAddition:r}},bt(dn,QI),{singleton:!0}),JI=nt(()=>({context:ce(null)})),XU=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...a},viewportBottom:s,viewportTop:o})=>t<o?{...a,align:n??"start",...r!==void 0?{behavior:r}:{}}:e>s?{...a,align:n??"end",...r!==void 0?{behavior:r}:{}}:null,eC=nt(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:a,headerHeight:s,scrollingInProgress:o,scrollTop:c,viewportHeight:d},{scrollToIndex:f}])=>{const m=Ke();return Te(oe(m,$e(t,d,n,s,a,r,c),$e(e),ge(([[h,b,y,E,k,w,v,N],A])=>{const{calculateViewLocation:_=XU,done:M,...D}=h,R=qI(h,b,E-1),P=Oo(R,b.offsetTree,A)+k+w,B=P+fr(b.sizeTree,R)[1],O=N+w,$=N+y-v,H=_({itemBottom:B,itemTop:P,locationParams:D,viewportBottom:$,viewportTop:O});return H!==null?M&&cr(oe(o,Oe(Z=>!Z),si(Et(o)?1:2)),M):M==null||M(),H}),Oe(h=>h!==null)),f),{scrollIntoView:m}},bt(Rr,dn,Xo,ci,Ia),{singleton:!0});function Vk(e){return e===!1?!1:e==="smooth"?"smooth":"auto"}const ZU=(e,t)=>typeof e=="function"?Vk(e(t)):t&&Vk(e),QU=nt(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:a,isAtBottom:s},{scrollToIndex:o},{scrolledToInitialItem:c},{didMount:d,propsReady:f},{log:m},{scrollingInProgress:h},{context:b},{scrollIntoView:y}])=>{const E=ce(!1),k=Ke();let w=null;function v(M){Ue(o,{align:"end",behavior:M,index:"LAST"})}rt(oe(Lt(oe(_e(t),si(1)),d),$e(_e(E),s,c,h),ge(([[M,D],R,P,B,O])=>{let $=D&&B,H="auto";return $&&(H=ZU(R,P||O),$=$&&H!==!1),{followOutputBehavior:H,shouldFollow:$,totalCount:M}}),Oe(({shouldFollow:M})=>M)),({followOutputBehavior:M,totalCount:D})=>{w!==null&&(w(),w=null),Et(n)!==void 0?requestAnimationFrame(()=>{Et(m)("following output to ",{totalCount:D},Bt.DEBUG),v(M)}):w=cr(e,()=>{Et(m)("following output to ",{totalCount:D},Bt.DEBUG),v(M),w=null})});function N(M){const D=cr(a,R=>{M&&!R.atBottom&&R.notAtBottomBecause==="SIZE_INCREASED"&&w===null&&(Et(m)("scrolling to bottom due to increased size",{},Bt.DEBUG),v("auto"))});setTimeout(D,100)}rt(oe(Lt(_e(E),t,f),Oe(([M,,D])=>M!==!1&&D),Nr(({value:M},[,D])=>({refreshed:M===D,value:D}),{refreshed:!1,value:0}),Oe(({refreshed:M})=>M),$e(E,t)),([,M])=>{Et(c)&&N(M!==!1)}),rt(k,()=>{N(Et(E)!==!1)}),rt(Lt(_e(E),a),([M,D])=>{M!==!1&&!D.atBottom&&D.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&v("auto")});const A=ce(null),_=Ke();return Te(mm(oe(_e(r),ge(M=>(M==null?void 0:M.length)??0)),oe(_e(t))),_),rt(oe(Lt(oe(_,si(1)),d),$e(_e(A),c,h,b),ge(([[M,D],R,P,B,O])=>D&&P&&(R==null?void 0:R({context:O,totalCount:M,scrollingInProgress:B}))),Oe(M=>!!M),zr(0)),M=>{w!==null&&(w(),w=null),Et(n)!==void 0?requestAnimationFrame(()=>{Et(m)("scrolling into view",{}),Ue(y,M)}):w=cr(e,()=>{Et(m)("scrolling into view",{}),Ue(y,M),w=null})}),{autoscrollToBottom:k,followOutput:E,scrollIntoViewOnChange:A}},bt(Rr,Qo,Xo,Zo,Ca,Ia,dn,JI,eC)),JU=nt(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:a},{initialItemCount:s,listState:o},{didMount:c}])=>(Te(oe(c,$e(s),Oe(([,d])=>d!==0),$e(a,r,t,n,e),ge(([[,d],f,m,h,b,y=[]])=>ZI(d,f,m,h,b,y))),o),{}),bt(Rr,Zo,ci,Ca),{singleton:!0}),e5=nt(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=ce(0);return rt(oe(e,$e(r),Oe(([,a])=>a!==0),ge(([,a])=>({top:a}))),a=>{cr(oe(n,si(1),Oe(s=>s.items.length>1)),()=>{requestAnimationFrame(()=>{Ue(t,a)})})}),{initialScrollTop:r}},bt(Ca,dn,ci),{singleton:!0}),tC=nt(([{scrollVelocity:e}])=>{const t=ce(!1),n=Ke(),r=ce(!1);return Te(oe(e,$e(r,t,n),Oe(([a,s])=>s!==!1&&s!==void 0),ge(([a,s,o,c])=>{const{enter:d,exit:f}=s;if(o){if(f(a,c))return!1}else if(d(a,c))return!0;return o}),gt()),t),rt(oe(Lt(t,e,n),$e(r)),([[a,s,o],c])=>{a&&c!==!1&&c!==void 0&&c.change&&c.change(s,o)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},bt(Qo),{singleton:!0}),jh=nt(([{scrollContainerState:e,scrollTo:t}])=>{const n=Ke(),r=Ke(),a=Ke(),s=ce(!1),o=ce(void 0);return Te(oe(Lt(n,r),ge(([{scrollTop:c,viewportHeight:d},{offsetTop:f,listHeight:m}])=>({scrollHeight:m,scrollTop:Math.max(0,c-f),viewportHeight:d}))),e),Te(oe(t,$e(r),ge(([c,{offsetTop:d}])=>({...c,top:c.top+d}))),a),{customScrollParent:o,useWindowScroll:s,windowScrollContainerState:n,windowScrollTo:a,windowViewportRect:r}},bt(dn)),t5=nt(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:a},{didMount:s},{useWindowScroll:o,windowScrollContainerState:c,windowViewportRect:d}])=>{const f=Ke(),m=ce(void 0),h=ce(null),b=ce(null);return Te(c,h),Te(d,b),rt(oe(f,$e(t,r,o,h,b,n)),([y,E,k,w,v,N,A])=>{const _=PU(E.sizeTree);w&&v!==null&&N!==null&&(k=v.scrollTop-N.offsetTop),k-=A,y({ranges:_,scrollTop:k})}),Te(oe(m,Oe(Ih),ge(n5)),a),Te(oe(s,$e(m),Oe(([,y])=>y!==void 0),gt(),ge(([,y])=>y.ranges)),e),{getState:f,restoreStateFrom:m}},bt(Rr,dn,Zo,Ca,jh));function n5(e){return{align:"start",index:0,offset:e.scrollTop}}const r5=nt(([{topItemsIndexes:e}])=>{const t=ce(0);return Te(oe(t,Oe(n=>n>=0),ge(n=>Array.from({length:n}).map((r,a)=>a))),e),{topItemCount:t}},bt(ci));function nC(e){let t=!1,n;return(()=>(t||(t=!0,n=e()),n))}const a5=nC(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),i5=nt(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:a,isScrolling:s,lastJumpDueToItemResize:o,scrollDirection:c},{listState:d},{beforeUnshiftWith:f,gap:m,shiftWithOffset:h,sizes:b},{log:y},{recalcInProgress:E}])=>{const k=Rn(oe(d,$e(o),Nr(([,v,N,A],[{bottom:_,items:M,offsetBottom:D,totalCount:R},P])=>{const B=_+D;let O=0;return N===R&&v.length>0&&M.length>0&&(M[0].originalIndex===0&&v[0].originalIndex===0||(O=B-A,O!==0&&(O+=P))),[O,M,R,B]},[0,[],0,0]),Oe(([v])=>v!==0),$e(r,c,n,a,y,E),Oe(([,v,N,A,,,_])=>!_&&!A&&v!==0&&N===Lo),ge(([[v],,,,,N])=>(N("Upward scrolling compensation",{amount:v},Bt.DEBUG),v))));function w(v){v>0?(Ue(t,{behavior:"auto",top:-v}),Ue(e,0)):(Ue(e,0),Ue(t,{behavior:"auto",top:-v}))}return rt(oe(k,$e(e,s)),([v,N,A])=>{A&&a5()?Ue(e,N-v):w(-v)}),rt(oe(Lt(en(s,!1),e,E),Oe(([v,N,A])=>!v&&!A&&N!==0),ge(([v,N])=>N),zr(1)),w),Te(oe(h,ge(v=>({top:-v}))),t),rt(oe(f,$e(b,m),ge(([v,{groupIndices:N,lastSize:A,sizeTree:_},M])=>{function D($){return $*(A+M)}if(N.length===0)return D(v);let R=0;const P=Ro(_,0);let B=0,O=0;for(;B<v;){B++,R+=P;let $=N.length===O+1?1/0:N[O+1]-N[O]-1;B+$>v&&(R-=P,$=v-B+1),B+=$,R+=D($),O++}return R})),v=>{Ue(e,v),requestAnimationFrame(()=>{Ue(t,{top:v}),requestAnimationFrame(()=>{Ue(e,0),Ue(E,!1)})})}),{deviation:e}},bt(dn,Qo,ci,Rr,Ia,_h)),s5=nt(([e,t,n,r,a,s,o,c,d,f,m])=>({...e,...t,...n,...r,...a,...s,...o,...c,...d,...f,...m}),bt(Mh,JU,Ca,tC,QI,e5,KU,jh,eC,Ia,JI)),rC=nt(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:a,gap:s,groupIndices:o,heightEstimates:c,itemSize:d,sizeRanges:f,sizes:m,statefulTotalCount:h,totalCount:b,trackItemSizes:y},{initialItemFinalLocationReached:E,initialTopMostItemIndex:k,scrolledToInitialItem:w},v,N,A,_,{scrollToIndex:M},D,{topItemCount:R},{groupCounts:P},B])=>{const{listState:O,minOverscanItemCount:$,topItemsIndexes:H,rangeChanged:Z,...q}=_;return Te(Z,B.scrollSeekRangeChanged),Te(oe(B.windowViewportRect,ge(Y=>Y.visibleHeight)),v.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:a,gap:s,groupCounts:P,heightEstimates:c,initialItemFinalLocationReached:E,initialTopMostItemIndex:k,scrolledToInitialItem:w,sizeRanges:f,topItemCount:R,topItemsIndexes:H,totalCount:b,...A,groupIndices:o,itemSize:d,listState:O,minOverscanItemCount:$,scrollToIndex:M,statefulTotalCount:h,trackItemSizes:y,rangeChanged:Z,...q,...B,...v,sizes:m,...N}},bt(Rr,Zo,dn,t5,QU,ci,Xo,i5,r5,YI,s5));function o5(e,t){const n={},r={};let a=0;const s=e.length;for(;a<s;)r[e[a]]=1,a+=1;for(const o in t)Object.hasOwn(r,o)||(n[o]=t[o]);return n}const wu=typeof document<"u"?me.useLayoutEffect:me.useEffect;function aC(e,t,n){const r=Object.keys(t.required||{}),a=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),c=me.createContext({});function d(w,v){w.propsReady!==void 0&&Ue(w.propsReady,!1);for(const N of r){const A=w[t.required[N]];Ue(A,v[N])}for(const N of a)if(N in v){const A=w[t.optional[N]];Ue(A,v[N])}w.propsReady!==void 0&&Ue(w.propsReady,!0)}function f(w){return s.reduce((v,N)=>(v[N]=A=>{const _=w[t.methods[N]];Ue(_,A)},v),{})}function m(w){return o.reduce((v,N)=>(v[N]=wU(w[t.events[N]]),v),{})}const h=me.forwardRef(function(w,v){const{children:N,...A}=w,[_]=me.useState(()=>Lc(TU(e),R=>{d(R,A)})),[M]=me.useState(Mk(m,_));wu(()=>{for(const R of o)R in A&&rt(M[R],A[R]);return()=>{Object.values(M).map(Ch)}},[A,M,_]),wu(()=>{d(_,A)}),me.useImperativeHandle(v,Dk(f(_)));const D=n;return u.jsx(c.Provider,{value:_,children:n!==void 0?u.jsx(D,{...o5([...r,...a,...o],A),children:N}):N})}),b=w=>{const v=me.useContext(c);return me.useCallback(N=>{Ue(v[w],N)},[v,w])},y=w=>{const v=me.useContext(c)[w],N=me.useCallback(A=>rt(v,A),[v]);return me.useSyncExternalStore(N,()=>Et(v),()=>Et(v))},E=w=>{const v=me.useContext(c)[w],[N,A]=me.useState(Mk(Et,v));return wu(()=>rt(v,_=>{_!==N&&A(Dk(_))}),[v,N]),N},k=parseInt(me.version)>=18?y:E;return{Component:h,useEmitter:(w,v)=>{const N=me.useContext(c)[w];wu(()=>rt(N,v),[v,N])},useEmitterValue:k,usePublisher:b}}const iC=me.createContext(void 0),sC=me.createContext(void 0),bf="-webkit-sticky",Wk="sticky",Fh=nC(()=>{if(typeof document>"u")return Wk;const e=document.createElement("div");return e.style.position=bf,e.style.position===bf?bf:Wk}),oC=typeof document<"u"?me.useLayoutEffect:me.useEffect;function yf(e){return"self"in e}function l5(e){return"body"in e}function lC(e,t,n,r=os,a,s){const o=me.useRef(null),c=me.useRef(null),d=me.useRef(null),f=me.useCallback(b=>{let y,E,k;const w=b.target;if(l5(w)||yf(w)){const N=yf(w)?w:w.defaultView;k=s===!0?N.scrollX:N.scrollY,y=s===!0?N.document.documentElement.scrollWidth:N.document.documentElement.scrollHeight,E=s===!0?N.innerWidth:N.innerHeight}else k=s===!0?w.scrollLeft:w.scrollTop,y=s===!0?w.scrollWidth:w.scrollHeight,E=s===!0?w.offsetWidth:w.offsetHeight;const v=()=>{e({scrollHeight:y,scrollTop:Math.max(k,0),viewportHeight:E})};b.suppressFlushSync===!0?v():bU.flushSync(v),c.current!==null&&(k===c.current||k<=0||k===y-E)&&(c.current=null,t(!0),d.current&&(clearTimeout(d.current),d.current=null))},[e,t,s]);me.useEffect(()=>{const b=a||o.current;return r(a||o.current),f({suppressFlushSync:!0,target:b}),b.addEventListener("scroll",f,{passive:!0}),()=>{r(null),b.removeEventListener("scroll",f)}},[o,f,n,r,a]);function m(b){const y=o.current;if(!y||(s===!0?"offsetWidth"in y&&y.offsetWidth===0:"offsetHeight"in y&&y.offsetHeight===0))return;const E=b.behavior==="smooth";let k,w,v;yf(y)?(w=Math.max(wa(y.document.documentElement,s===!0?"width":"height"),s===!0?y.document.documentElement.scrollWidth:y.document.documentElement.scrollHeight),k=s===!0?y.innerWidth:y.innerHeight,v=s===!0?window.scrollX:window.scrollY):(w=y[s===!0?"scrollWidth":"scrollHeight"],k=wa(y,s===!0?"width":"height"),v=y[s===!0?"scrollLeft":"scrollTop"]);const N=w-k;if(b.top=Math.ceil(Math.max(Math.min(N,b.top),0)),XI(k,w)||b.top===v){e({scrollHeight:w,scrollTop:v,viewportHeight:k}),E&&t(!0);return}E?(c.current=b.top,d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{d.current=null,c.current=null,t(!0)},1e3)):c.current=null,s===!0&&(b={...b.behavior!==void 0?{behavior:b.behavior}:{},left:b.top}),y.scrollTo(b)}function h(b){s===!0&&(b={...b.behavior!==void 0?{behavior:b.behavior}:{},...b.top!==void 0?{left:b.top}:{}}),o.current.scrollBy(b)}return{scrollByCallback:h,scrollerRef:o,scrollToCallback:m}}function Ph(e){return e}const u5=nt(()=>{const e=ce(c=>`Item ${c}`),t=ce(c=>`Group ${c}`),n=ce({}),r=ce(Ph),a=ce("div"),s=ce(os),o=(c,d=null)=>en(oe(n,ge(f=>f[c]),gt()),d);return{components:n,computeItemKey:r,EmptyPlaceholder:o("EmptyPlaceholder"),FooterComponent:o("Footer"),GroupComponent:o("Group","div"),groupContent:t,HeaderComponent:o("Header"),HeaderFooterTag:a,ItemComponent:o("Item","div"),itemContent:e,ListComponent:o("List","div"),ScrollerComponent:o("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:o("ScrollSeekPlaceholder"),TopItemListComponent:o("TopItemList")}}),c5=nt(([e,t])=>({...e,...t}),bt(rC,u5)),d5=({height:e})=>u.jsx("div",{style:{height:e}}),p5={overflowAnchor:"none",position:Fh(),zIndex:1},uC={overflowAnchor:"none"},f5={...uC,display:"inline-block",height:"100%"},qk=me.memo(function({showTopList:e=!1}){const t=Fe("listState"),n=qn("sizeRanges"),r=Fe("useWindowScroll"),a=Fe("customScrollParent"),s=qn("windowScrollContainerState"),o=qn("scrollContainerState"),c=a||r?s:o,d=Fe("itemContent"),f=Fe("context"),m=Fe("groupContent"),h=Fe("trackItemSizes"),b=Fe("itemSize"),y=Fe("log"),E=qn("gap"),k=Fe("horizontalDirection"),{callbackRef:w}=IU(n,b,h,e?os:c,y,E,a,k,Fe("skipAnimationFrameInResizeObserver")),[v,N]=me.useState(0);Bh("deviation",q=>{v!==q&&N(q)});const A=Fe("EmptyPlaceholder"),_=Fe("ScrollSeekPlaceholder")??d5,M=Fe("ListComponent"),D=Fe("ItemComponent"),R=Fe("GroupComponent"),P=Fe("computeItemKey"),B=Fe("isSeeking"),O=Fe("groupIndices").length>0,$=Fe("alignToBottom"),H=Fe("initialItemFinalLocationReached"),Z=e?{}:{boxSizing:"border-box",...k?{display:"inline-block",height:"100%",marginLeft:v!==0?v:$?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:v!==0?v:$?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...H?{}:{visibility:"hidden"}};return!e&&t.totalCount===0&&A!==null&&A!==void 0?u.jsx(A,{...Jt(A,f)}):u.jsx(M,{...Jt(M,f),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:w,style:Z,children:(e?t.topItems:t.items).map(q=>{const Y=q.originalIndex,ae=P(Y+t.firstItemIndex,q.data,f);return B?T.createElement(_,{...Jt(_,f),height:q.size,index:q.index,key:ae,type:q.type||"item",...q.type==="group"?{}:{groupIndex:q.groupIndex}}):q.type==="group"?T.createElement(R,{...Jt(R,f),"data-index":Y,"data-item-index":q.index,"data-known-size":q.size,key:ae,style:p5},m(q.index,f)):T.createElement(D,{...Jt(D,f),...b5(D,q.data),"data-index":Y,"data-item-group-index":q.groupIndex,"data-item-index":q.index,"data-known-size":q.size,key:ae,style:k?f5:uC},O?d(q.index,q.groupIndex,q.data,f):d(q.index,q.data,f))})})}),m5={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},h5={outline:"none",overflowX:"auto",position:"relative"},Mc=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:void 0}),g5={position:Fh(),top:0,width:"100%",zIndex:1};function Jt(e,t){if(typeof e!="string")return{context:t}}function b5(e,t){return{item:typeof e=="string"?void 0:t}}const y5=me.memo(function(){const e=Fe("HeaderComponent"),t=qn("headerHeight"),n=Fe("HeaderFooterTag"),r=ui(me.useMemo(()=>s=>{t(wa(s,"height"))},[t]),!0,Fe("skipAnimationFrameInResizeObserver")),a=Fe("context");return e!=null?u.jsx(n,{ref:r,children:u.jsx(e,{...Jt(e,a)})}):null}),x5=me.memo(function(){const e=Fe("FooterComponent"),t=qn("footerHeight"),n=Fe("HeaderFooterTag"),r=ui(me.useMemo(()=>s=>{t(wa(s,"height"))},[t]),!0,Fe("skipAnimationFrameInResizeObserver")),a=Fe("context");return e!=null?u.jsx(n,{ref:r,children:u.jsx(e,{...Jt(e,a)})}):null});function cC({useEmitter:e,useEmitterValue:t,usePublisher:n}){return me.memo(function({children:r,style:a,context:s,...o}){const c=n("scrollContainerState"),d=t("ScrollerComponent"),f=n("smoothScrollTargetReached"),m=t("scrollerRef"),h=t("horizontalDirection")||!1,{scrollByCallback:b,scrollerRef:y,scrollToCallback:E}=lC(c,f,d,m,void 0,h);return e("scrollTo",E),e("scrollBy",b),u.jsx(d,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:y,style:{...h?h5:m5,...a},tabIndex:0,...o,...Jt(d,s),children:r})})}function dC({useEmitter:e,useEmitterValue:t,usePublisher:n}){return me.memo(function({children:r,style:a,context:s,...o}){const c=n("windowScrollContainerState"),d=t("ScrollerComponent"),f=n("smoothScrollTargetReached"),m=t("totalListHeight"),h=t("deviation"),b=t("customScrollParent"),y=me.useRef(null),E=t("scrollerRef"),{scrollByCallback:k,scrollerRef:w,scrollToCallback:v}=lC(c,f,d,E,b);return oC(()=>{var N;return w.current=b||((N=y.current)==null?void 0:N.ownerDocument.defaultView),()=>{w.current=null}},[w,b]),e("windowScrollTo",v),e("scrollBy",k),u.jsx(d,{ref:y,"data-virtuoso-scroller":!0,style:{position:"relative",...a,...m!==0?{height:m+h}:void 0},...o,...Jt(d,s),children:r})})}const E5=({children:e})=>{const t=me.useContext(iC),n=qn("viewportHeight"),r=qn("fixedItemHeight"),a=Fe("alignToBottom"),s=Fe("horizontalDirection"),o=me.useMemo(()=>jI(n,d=>wa(d,s?"width":"height")),[n,s]),c=ui(o,!0,Fe("skipAnimationFrameInResizeObserver"));return me.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),u.jsx("div",{"data-viewport-type":"element",ref:c,style:Mc(a),children:e})},S5=({children:e})=>{const t=me.useContext(iC),n=qn("windowViewportRect"),r=qn("fixedItemHeight"),a=Fe("customScrollParent"),s=PI(n,a,Fe("skipAnimationFrameInResizeObserver")),o=Fe("alignToBottom");return me.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),u.jsx("div",{"data-viewport-type":"window",ref:s,style:Mc(o),children:e})},v5=({children:e})=>{const t=Fe("TopItemListComponent")??"div",n=Fe("headerHeight"),r={...g5,marginTop:`${n}px`},a=Fe("context");return u.jsx(t,{style:r,...Jt(t,a),children:e})},w5=me.memo(function(e){const t=Fe("useWindowScroll"),n=Fe("topItemsIndexes").length>0,r=Fe("customScrollParent"),a=Fe("context");return u.jsxs(r||t?N5:T5,{...e,context:a,children:[n&&u.jsx(v5,{children:u.jsx(qk,{showTopList:!0})}),u.jsxs(r||t?S5:E5,{children:[u.jsx(y5,{}),u.jsx(qk,{}),u.jsx(x5,{})]})]})}),{Component:k5,useEmitter:Bh,useEmitterValue:Fe,usePublisher:qn}=aC(c5,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},w5),T5=cC({useEmitter:Bh,useEmitterValue:Fe,usePublisher:qn}),N5=dC({useEmitter:Bh,useEmitterValue:Fe,usePublisher:qn}),pC=k5,A5=nt(()=>{const e=ce(f=>u.jsxs("td",{children:["Item $",f]})),t=ce(null),n=ce(f=>u.jsxs("td",{colSpan:1e3,children:["Group ",f]})),r=ce(null),a=ce(null),s=ce({}),o=ce(Ph),c=ce(os),d=(f,m=null)=>en(oe(s,ge(h=>h[f]),gt()),m);return{components:s,computeItemKey:o,context:t,EmptyPlaceholder:d("EmptyPlaceholder"),FillerRow:d("FillerRow"),fixedFooterContent:a,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:d("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder"),TableBodyComponent:d("TableBody","tbody"),TableComponent:d("Table","table"),TableFooterComponent:d("TableFoot","tfoot"),TableHeadComponent:d("TableHead","thead"),TableRowComponent:d("TableRow","tr"),GroupComponent:d("Group","tr")}});bt(rC,A5);Fh();const Yk={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},I5={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:Kk,floor:cc,max:yo,min:xf,round:Xk}=Math;function Zk(e,t,n){return Array.from({length:t-e+1}).map((r,a)=>({data:n===null?null:n[a+e],index:a+e}))}function C5(e){return{...I5,items:e}}function ku(e,t){return e!==void 0&&e.width===t.width&&e.height===t.height}function R5(e,t){return e!==void 0&&e.column===t.column&&e.row===t.row}const _5=nt(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:a,headerHeight:s,scrollBy:o,scrollContainerState:c,scrollTo:d,scrollTop:f,smoothScrollTargetReached:m,viewportHeight:h},b,y,{didMount:E,propsReady:k},{customScrollParent:w,useWindowScroll:v,windowScrollContainerState:N,windowScrollTo:A,windowViewportRect:_},M])=>{const D=ce(0),R=ce(0),P=ce(Yk),B=ce({height:0,width:0}),O=ce({height:0,width:0}),$=Ke(),H=Ke(),Z=ce(0),q=ce(null),Y=ce({column:0,row:0}),ae=Ke(),J=Ke(),W=ce(!1),re=ce(0),C=ce(!0),F=ce(!1),K=ce(!1);rt(oe(E,$e(re),Oe(([ne,xe])=>xe!==0)),()=>{Ue(C,!1)}),rt(oe(Lt(E,C,O,B,re,F),Oe(([ne,xe,je,ze,,qe])=>ne&&!xe&&je.height!==0&&ze.height!==0&&!qe)),([,,,,ne])=>{Ue(F,!0),Lh(1,()=>{Ue($,ne)}),cr(oe(f),()=>{Ue(t,[0,0]),Ue(C,!0)})}),Te(oe(J,Oe(ne=>ne!=null&&ne.scrollTop>0),Tr(0)),R),rt(oe(E,$e(J),Oe(([,ne])=>ne!=null)),([,ne])=>{ne&&(Ue(B,ne.viewport),Ue(O,ne.item),Ue(Y,ne.gap),ne.scrollTop>0&&(Ue(W,!0),cr(oe(f,si(1)),xe=>{Ue(W,!1)}),Ue(d,{top:ne.scrollTop})))}),Te(oe(B,ge(({height:ne})=>ne)),h),Te(oe(Lt(_e(B,ku),_e(O,ku),_e(Y,(ne,xe)=>ne!==void 0&&ne.column===xe.column&&ne.row===xe.row),_e(f)),ge(([ne,xe,je,ze])=>({gap:je,item:xe,scrollTop:ze,viewport:ne}))),ae),Te(oe(Lt(_e(D),r,_e(Y,R5),_e(O,ku),_e(B,ku),_e(q),_e(R),_e(W),_e(C),_e(re)),Oe(([,,,,,,,ne])=>!ne),ge(([ne,[xe,je],ze,qe,Je,lt,et,,at,kt])=>{const{column:ct,row:Dn}=ze,{height:Sn,width:Mn}=qe,{width:qr}=Je;if(et===0&&(ne===0||qr===0))return Yk;if(Mn===0){const Ct=Dh(kt,ne),Zn=Ct+Math.max(et-1,0);return C5(Zk(Ct,Zn,lt))}const Lr=fC(qr,Mn,ct);let Xn,jn;at?xe===0&&je===0&&et>0?(Xn=0,jn=et-1):(Xn=Lr*cc((xe+Dn)/(Sn+Dn)),jn=Lr*Kk((je+Dn)/(Sn+Dn))-1,jn=xf(ne-1,yo(jn,Lr-1)),Xn=xf(jn,yo(0,Xn))):(Xn=0,jn=-1);const te=Zk(Xn,jn,lt),{bottom:pe,top:Re}=Qk(Je,ze,qe,te),Pe=Kk(ne/Lr),Ye=Pe*Sn+(Pe-1)*Dn-pe;return{bottom:pe,itemHeight:Sn,items:te,itemWidth:Mn,offsetBottom:Ye,offsetTop:Re,top:Re}})),P),Te(oe(q,Oe(ne=>ne!==null),ge(ne=>ne.length)),D),Te(oe(Lt(B,O,P,Y),Oe(([ne,xe,{items:je}])=>je.length>0&&xe.height!==0&&ne.height!==0),ge(([ne,xe,{items:je},ze])=>{const{bottom:qe,top:Je}=Qk(ne,ze,xe,je);return[Je,qe]}),gt(_o)),t);const j=ce(!1);Te(oe(f,$e(j),ge(([ne,xe])=>xe||ne!==0)),j);const fe=Rn(oe(Lt(P,D),Oe(([{items:ne}])=>ne.length>0),$e(j),Oe(([[ne,xe],je])=>{const ze=ne.items[ne.items.length-1].index===xe-1;return(je||ne.bottom>0&&ne.itemHeight>0&&ne.offsetBottom===0&&ne.items.length===xe)&&ze}),ge(([[,ne]])=>ne-1),gt())),Ne=Rn(oe(_e(P),Oe(({items:ne})=>ne.length>0&&ne[0].index===0),Tr(0),gt())),be=Rn(oe(_e(P),$e(W),Oe(([{items:ne},xe])=>ne.length>0&&!xe),ge(([{items:ne}])=>({endIndex:ne[ne.length-1].index,startIndex:ne[0].index})),gt(HI),zr(0)));Te(be,y.scrollSeekRangeChanged),Te(oe($,$e(B,O,D,Y),ge(([ne,xe,je,ze,qe])=>{const Je=KI(ne),{align:lt,behavior:et,offset:at}=Je;let kt=Je.index;kt==="LAST"&&(kt=ze-1),kt=yo(0,kt,xf(ze-1,kt));let ct=xm(xe,qe,je,kt);return lt==="end"?ct=Xk(ct-xe.height+je.height):lt==="center"&&(ct=Xk(ct-xe.height/2+je.height/2)),at!==void 0&&at!==0&&(ct+=at),{behavior:et,top:ct}})),d);const De=en(oe(P,ge(ne=>ne.offsetBottom+ne.bottom)),0);return Te(oe(_,ge(ne=>({height:ne.visibleHeight,width:ne.visibleWidth}))),B),{customScrollParent:w,data:q,deviation:Z,footerHeight:a,gap:Y,headerHeight:s,increaseViewportBy:e,initialItemCount:R,itemDimensions:O,overscan:n,restoreStateFrom:J,scrollBy:o,scrollContainerState:c,scrollHeight:H,scrollTo:d,scrollToIndex:$,scrollTop:f,smoothScrollTargetReached:m,totalCount:D,useWindowScroll:v,viewportDimensions:B,windowScrollContainerState:N,windowScrollTo:A,windowViewportRect:_,...y,gridState:P,horizontalDirection:K,initialTopMostItemIndex:re,totalListHeight:De,...b,endReached:fe,propsReady:k,rangeChanged:be,startReached:Ne,stateChanged:ae,stateRestoreInProgress:W,...M}},bt(Mh,dn,Qo,tC,Ca,jh,Ia));function fC(e,t,n){return yo(1,cc((e+n)/(cc(t)+n)))}function Qk(e,t,n,r){const{height:a}=n;if(a===void 0||r.length===0)return{bottom:0,top:0};const s=xm(e,t,n,r[0].index);return{bottom:xm(e,t,n,r[r.length-1].index)+a,top:s}}function xm(e,t,n,r){const a=fC(e.width,n.width,t.column),s=cc(r/a),o=s*n.height+yo(0,s-1)*t.row;return o>0?o+t.row:o}const O5=nt(()=>{const e=ce(h=>`Item ${h}`),t=ce({}),n=ce(null),r=ce("virtuoso-grid-item"),a=ce("virtuoso-grid-list"),s=ce(Ph),o=ce("div"),c=ce(os),d=(h,b=null)=>en(oe(t,ge(y=>y[h]),gt()),b),f=ce(!1),m=ce(!1);return Te(_e(m),f),{components:t,computeItemKey:s,context:n,FooterComponent:d("Footer"),HeaderComponent:d("Header"),headerFooterTag:o,itemClassName:r,ItemComponent:d("Item","div"),itemContent:e,listClassName:a,ListComponent:d("List","div"),readyStateChanged:f,reportReadyState:m,ScrollerComponent:d("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder","div")}}),L5=nt(([e,t])=>({...e,...t}),bt(_5,O5)),D5=me.memo(function(){const e=xt("gridState"),t=xt("listClassName"),n=xt("itemClassName"),r=xt("itemContent"),a=xt("computeItemKey"),s=xt("isSeeking"),o=Yn("scrollHeight"),c=xt("ItemComponent"),d=xt("ListComponent"),f=xt("ScrollSeekPlaceholder"),m=xt("context"),h=Yn("itemDimensions"),b=Yn("gap"),y=xt("log"),E=xt("stateRestoreInProgress"),k=Yn("reportReadyState"),w=ui(me.useMemo(()=>v=>{const N=v.parentElement.parentElement.scrollHeight;o(N);const A=v.firstChild;if(A!==null){const{height:_,width:M}=A.getBoundingClientRect();h({height:_,width:M})}b({column:Jk("column-gap",getComputedStyle(v).columnGap,y),row:Jk("row-gap",getComputedStyle(v).rowGap,y)})},[o,h,b,y]),!0,!1);return oC(()=>{e.itemHeight>0&&e.itemWidth>0&&k(!0)},[e]),E?null:u.jsx(d,{className:t,ref:w,...Jt(d,m),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(v=>{const N=a(v.index,v.data,m);return s?u.jsx(f,{...Jt(f,m),height:e.itemHeight,index:v.index,width:e.itemWidth},N):T.createElement(c,{...Jt(c,m),className:n,"data-index":v.index,key:N},r(v.index,v.data,m))})})}),M5=me.memo(function(){const e=xt("HeaderComponent"),t=Yn("headerHeight"),n=xt("headerFooterTag"),r=ui(me.useMemo(()=>s=>{t(wa(s,"height"))},[t]),!0,!1),a=xt("context");return e!=null?u.jsx(n,{ref:r,children:u.jsx(e,{...Jt(e,a)})}):null}),j5=me.memo(function(){const e=xt("FooterComponent"),t=Yn("footerHeight"),n=xt("headerFooterTag"),r=ui(me.useMemo(()=>s=>{t(wa(s,"height"))},[t]),!0,!1),a=xt("context");return e!=null?u.jsx(n,{ref:r,children:u.jsx(e,{...Jt(e,a)})}):null}),F5=({children:e})=>{const t=me.useContext(sC),n=Yn("itemDimensions"),r=Yn("viewportDimensions"),a=ui(me.useMemo(()=>s=>{r(s.getBoundingClientRect())},[r]),!0,!1);return me.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),u.jsx("div",{ref:a,style:Mc(!1),children:e})},P5=({children:e})=>{const t=me.useContext(sC),n=Yn("windowViewportRect"),r=Yn("itemDimensions"),a=xt("customScrollParent"),s=PI(n,a,!1);return me.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),u.jsx("div",{ref:s,style:Mc(!1),children:e})},B5=me.memo(function({...e}){const t=xt("useWindowScroll"),n=xt("customScrollParent"),r=n||t?$5:U5,a=n||t?P5:F5,s=xt("context");return u.jsx(r,{...e,...Jt(r,s),children:u.jsxs(a,{children:[u.jsx(M5,{}),u.jsx(D5,{}),u.jsx(j5,{})]})})}),{useEmitter:mC,useEmitterValue:xt,usePublisher:Yn}=aC(L5,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},B5),U5=cC({useEmitter:mC,useEmitterValue:xt,usePublisher:Yn}),$5=dC({useEmitter:mC,useEmitterValue:xt,usePublisher:Yn});function Jk(e,t,n){return t!=="normal"&&(t==null?void 0:t.endsWith("px"))!==!0&&n(`${e} was not resolved to pixel value correctly`,t,Bt.WARN),t==="normal"?0:parseInt(t??"0",10)}function eT(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const o=n.slice(a,r).trim();(o||!s)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function z5(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const G5=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,H5=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,V5={};function tT(e,t){return(V5.jsx?H5:G5).test(e)}const W5=/[ \t\n\f\r]/g;function q5(e){return typeof e=="object"?e.type==="text"?nT(e.value):!1:nT(e)}function nT(e){return e.replace(W5,"")===""}class Jo{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Jo.prototype.normal={};Jo.prototype.property={};Jo.prototype.space=void 0;function hC(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Jo(n,r,t)}function jo(e){return e.toLowerCase()}class En{constructor(t,n){this.attribute=n,this.property=t}}En.prototype.attribute="";En.prototype.booleanish=!1;En.prototype.boolean=!1;En.prototype.commaOrSpaceSeparated=!1;En.prototype.commaSeparated=!1;En.prototype.defined=!1;En.prototype.mustUseProperty=!1;En.prototype.number=!1;En.prototype.overloadedBoolean=!1;En.prototype.property="";En.prototype.spaceSeparated=!1;En.prototype.space=void 0;let Y5=0;const Be=di(),_t=di(),Em=di(),ue=di(),pt=di(),Zi=di(),An=di();function di(){return 2**++Y5}const Sm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Be,booleanish:_t,commaOrSpaceSeparated:An,commaSeparated:Zi,number:ue,overloadedBoolean:Em,spaceSeparated:pt},Symbol.toStringTag,{value:"Module"})),Ef=Object.keys(Sm);class Uh extends En{constructor(t,n,r,a){let s=-1;if(super(t,n),rT(this,"space",a),typeof r=="number")for(;++s<Ef.length;){const o=Ef[s];rT(this,Ef[s],(r&Sm[o])===Sm[o])}}}Uh.prototype.defined=!0;function rT(e,t,n){n&&(e[t]=n)}function ls(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new Uh(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[jo(r)]=r,n[jo(s.attribute)]=r}return new Jo(t,n,e.space)}const gC=ls({properties:{ariaActiveDescendant:null,ariaAtomic:_t,ariaAutoComplete:null,ariaBusy:_t,ariaChecked:_t,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:pt,ariaCurrent:null,ariaDescribedBy:pt,ariaDetails:null,ariaDisabled:_t,ariaDropEffect:pt,ariaErrorMessage:null,ariaExpanded:_t,ariaFlowTo:pt,ariaGrabbed:_t,ariaHasPopup:null,ariaHidden:_t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pt,ariaLevel:ue,ariaLive:null,ariaModal:_t,ariaMultiLine:_t,ariaMultiSelectable:_t,ariaOrientation:null,ariaOwns:pt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:_t,ariaReadOnly:_t,ariaRelevant:null,ariaRequired:_t,ariaRoleDescription:pt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:_t,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bC(e,t){return t in e?e[t]:t}function yC(e,t){return bC(e,t.toLowerCase())}const K5=ls({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zi,acceptCharset:pt,accessKey:pt,action:null,allow:null,allowFullScreen:Be,allowPaymentRequest:Be,allowUserMedia:Be,alt:null,as:null,async:Be,autoCapitalize:null,autoComplete:pt,autoFocus:Be,autoPlay:Be,blocking:pt,capture:null,charSet:null,checked:Be,cite:null,className:pt,cols:ue,colSpan:null,content:null,contentEditable:_t,controls:Be,controlsList:pt,coords:ue|Zi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Be,defer:Be,dir:null,dirName:null,disabled:Be,download:Em,draggable:_t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Be,formTarget:null,headers:pt,height:ue,hidden:Em,high:ue,href:null,hrefLang:null,htmlFor:pt,httpEquiv:pt,id:null,imageSizes:null,imageSrcSet:null,inert:Be,inputMode:null,integrity:null,is:null,isMap:Be,itemId:null,itemProp:pt,itemRef:pt,itemScope:Be,itemType:pt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Be,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Be,muted:Be,name:null,nonce:null,noModule:Be,noValidate:Be,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:Be,optimum:ue,pattern:null,ping:pt,placeholder:null,playsInline:Be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Be,referrerPolicy:null,rel:pt,required:Be,reversed:Be,rows:ue,rowSpan:ue,sandbox:pt,scope:null,scoped:Be,seamless:Be,selected:Be,shadowRootClonable:Be,shadowRootDelegatesFocus:Be,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:_t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Be,useMap:null,value:_t,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Be,declare:Be,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Be,noHref:Be,noShade:Be,noWrap:Be,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:_t,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Be,disableRemotePlayback:Be,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:yC}),X5=ls({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:An,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:pt,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Be,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:Zi,g2:Zi,glyphName:Zi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:An,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:An,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:An,rev:An,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:An,requiredFeatures:An,requiredFonts:An,requiredFormats:An,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:An,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:An,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:An,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bC}),xC=ls({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),EC=ls({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yC}),SC=ls({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Z5={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"},Q5=/[A-Z]/g,aT=/-[a-z]/g,J5=/^data[-\w.:]+$/i;function vC(e,t){const n=jo(t);let r=t,a=En;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&J5.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(aT,t4);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!aT.test(s)){let o=s.replace(Q5,e4);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Uh}return new a(r,t)}function e4(e){return"-"+e.toLowerCase()}function t4(e){return e.charAt(1).toUpperCase()}const wC=hC([gC,K5,xC,EC,SC],"html"),jc=hC([gC,X5,xC,EC,SC],"svg");function iT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function n4(e){return e.join(" ").trim()}var Fi={},Sf,sT;function r4(){if(sT)return Sf;sT=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
339
|
-
`,f="/",m="*",h="",b="comment",y="declaration";function E(w,v){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];v=v||{};var N=1,A=1;function _(q){var Y=q.match(t);Y&&(N+=Y.length);var ae=q.lastIndexOf(d);A=~ae?q.length-ae:A+q.length}function M(){var q={line:N,column:A};return function(Y){return Y.position=new D(q),B(),Y}}function D(q){this.start=q,this.end={line:N,column:A},this.source=v.source}D.prototype.content=w;function R(q){var Y=new Error(v.source+":"+N+":"+A+": "+q);if(Y.reason=q,Y.filename=v.source,Y.line=N,Y.column=A,Y.source=w,!v.silent)throw Y}function P(q){var Y=q.exec(w);if(Y){var ae=Y[0];return _(ae),w=w.slice(ae.length),Y}}function B(){P(n)}function O(q){var Y;for(q=q||[];Y=$();)Y!==!1&&q.push(Y);return q}function $(){var q=M();if(!(f!=w.charAt(0)||m!=w.charAt(1))){for(var Y=2;h!=w.charAt(Y)&&(m!=w.charAt(Y)||f!=w.charAt(Y+1));)++Y;if(Y+=2,h===w.charAt(Y-1))return R("End of comment missing");var ae=w.slice(2,Y-2);return A+=2,_(ae),w=w.slice(Y),A+=2,q({type:b,comment:ae})}}function H(){var q=M(),Y=P(r);if(Y){if($(),!P(a))return R("property missing ':'");var ae=P(s),J=q({type:y,property:k(Y[0].replace(e,h)),value:ae?k(ae[0].replace(e,h)):h});return P(o),J}}function Z(){var q=[];O(q);for(var Y;Y=H();)Y!==!1&&(q.push(Y),O(q));return q}return B(),Z()}function k(w){return w?w.replace(c,h):h}return Sf=E,Sf}var oT;function a4(){if(oT)return Fi;oT=1;var e=Fi&&Fi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=n;const t=e(r4());function n(r,a){let s=null;if(!r||typeof r!="string")return s;const o=(0,t.default)(r),c=typeof a=="function";return o.forEach(d=>{if(d.type!=="declaration")return;const{property:f,value:m}=d;c?a(f,m,d):m&&(s=s||{},s[f]=m)}),s}return Fi}var to={},lT;function i4(){if(lT)return to;lT=1,Object.defineProperty(to,"__esModule",{value:!0}),to.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(f){return!f||n.test(f)||e.test(f)},o=function(f,m){return m.toUpperCase()},c=function(f,m){return"".concat(m,"-")},d=function(f,m){return m===void 0&&(m={}),s(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(a,c):f=f.replace(r,c),f.replace(t,o))};return to.camelCase=d,to}var no,uT;function s4(){if(uT)return no;uT=1;var e=no&&no.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(a4()),n=i4();function r(a,s){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(c,d){c&&d&&(o[(0,n.camelCase)(c,s)]=d)}),o}return r.default=r,no=r,no}var o4=s4();const l4=Sc(o4),kC=TC("end"),$h=TC("start");function TC(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function u4(e){const t=$h(e),n=kC(e);if(t&&n)return{start:t,end:n}}function xo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cT(e.position):"start"in e||"end"in e?cT(e):"line"in e||"column"in e?vm(e):""}function vm(e){return dT(e&&e.line)+":"+dT(e&&e.column)}function cT(e){return vm(e&&e.start)+"-"+vm(e&&e.end)}function dT(e){return e&&typeof e=="number"?e:1}class nn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?a=t:!s.cause&&t&&(o=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?s.ruleId=r:(s.source=r.slice(0,d),s.ruleId=r.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=xo(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}nn.prototype.file="";nn.prototype.name="";nn.prototype.reason="";nn.prototype.message="";nn.prototype.stack="";nn.prototype.column=void 0;nn.prototype.line=void 0;nn.prototype.ancestors=void 0;nn.prototype.cause=void 0;nn.prototype.fatal=void 0;nn.prototype.place=void 0;nn.prototype.ruleId=void 0;nn.prototype.source=void 0;const zh={}.hasOwnProperty,c4=new Map,d4=/[A-Z]/g,p4=new Set(["table","tbody","thead","tfoot","tr"]),f4=new Set(["td","th"]),NC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function m4(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=v4(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=S4(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?jc:wC,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=AC(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function AC(e,t,n){if(t.type==="element")return h4(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return g4(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return y4(e,t,n);if(t.type==="mdxjsEsm")return b4(e,t);if(t.type==="root")return x4(e,t,n);if(t.type==="text")return E4(e,t)}function h4(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=jc,e.schema=a),e.ancestors.push(t);const s=CC(e,t.tagName,!1),o=w4(e,t);let c=Hh(e,t);return p4.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!q5(d):!0})),IC(e,o,s,t),Gh(o,c),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function g4(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Fo(e,t.position)}function b4(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Fo(e,t.position)}function y4(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=jc,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:CC(e,t.name,!0),o=k4(e,t),c=Hh(e,t);return IC(e,o,s,t),Gh(o,c),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function x4(e,t,n){const r={};return Gh(r,Hh(e,t)),e.create(t,e.Fragment,r,n)}function E4(e,t){return t.value}function IC(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Gh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function S4(e,t,n){return r;function r(a,s,o,c){const f=Array.isArray(o.children)?n:t;return c?f(s,o,c):f(s,o)}}function v4(e,t){return n;function n(r,a,s,o){const c=Array.isArray(s.children),d=$h(r);return t(a,s,o,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function w4(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&zh.call(t.properties,a)){const s=T4(e,a,t.properties[a]);if(s){const[o,c]=s;e.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&f4.has(t.tagName)?r=c:n[o]=c}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function k4(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const c=o.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Fo(e,t.position);else{const a=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,s=e.evaluater.evaluateExpression(c.expression)}else Fo(e,t.position);else s=r.value===null?!0:r.value;n[a]=s}return n}function Hh(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:c4;for(;++r<t.children.length;){const s=t.children[r];let o;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const f=a.get(d)||0;o=d+"-"+f,a.set(d,f+1)}}const c=AC(e,s,o);c!==void 0&&n.push(c)}return n}function T4(e,t,n){const r=vC(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?z5(n):n4(n)),r.property==="style"){let a=typeof n=="object"?n:N4(e,String(n));return e.stylePropertyNameCase==="css"&&(a=A4(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Z5[r.property]||r.property:r.attribute,n]}}function N4(e,t){try{return l4(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new nn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=NC+"#cannot-parse-style-attribute",a}}function CC(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,o;for(;++s<a.length;){const c=tT(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}r=o}else r=tT(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return zh.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Fo(e)}function Fo(e,t){const n=new nn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=NC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function A4(e){const t={};let n;for(n in e)zh.call(e,n)&&(t[I4(n)]=e[n]);return t}function I4(e){let t=e.replace(d4,C4);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function C4(e){return"-"+e.toLowerCase()}const vf={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"]},R4={};function Vh(e,t){const n=R4,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return RC(e,r,a)}function RC(e,t,n){if(_4(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return pT(e.children,t,n)}return Array.isArray(e)?pT(e,t,n):""}function pT(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=RC(e[a],t,n);return r.join("")}function _4(e){return!!(e&&typeof e=="object")}const fT=document.createElement("i");function Po(e){const t="&"+e+";";fT.innerHTML=t;const n=fT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function _n(e,t,n,r){const a=e.length;let s=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Hn(e,t){return e.length>0?(_n(e,e.length,0,t),e):t}const mT={}.hasOwnProperty;function _C(e){const t={};let n=-1;for(;++n<e.length;)O4(t,e[n]);return t}function O4(e,t){let n;for(n in t){const a=(mT.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){mT.call(a,o)||(a[o]=[]);const c=s[o];L4(a[o],Array.isArray(c)?c:c?[c]:[])}}}function L4(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);_n(e,0,0,r)}function OC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function dr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ln=Ra(/[A-Za-z]/),tn=Ra(/[\dA-Za-z]/),D4=Ra(/[#-'*+\--9=?A-Z^-~]/);function dc(e){return e!==null&&(e<32||e===127)}const wm=Ra(/\d/),M4=Ra(/[\dA-Fa-f]/),j4=Ra(/[!-/:-@[-`{-~]/);function Ce(e){return e!==null&&e<-2}function ut(e){return e!==null&&(e<0||e===32)}function Ve(e){return e===-2||e===-1||e===32}const Fc=Ra(new RegExp("\\p{P}|\\p{S}","u")),oi=Ra(/\s/);function Ra(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function us(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&tn(e.charCodeAt(n+1))&&tn(e.charCodeAt(n+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const c=e.charCodeAt(n+1);s<56320&&c>56319&&c<57344?(o=String.fromCharCode(s,c),a=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Xe(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(d){return Ve(d)?(e.enter(n),c(d)):t(d)}function c(d){return Ve(d)&&s++<a?(e.consume(d),c):(e.exit(n),t(d))}}const F4={tokenize:P4};function P4(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Xe(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),s(c)}function s(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,o(c)}function o(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ce(c)?(e.consume(c),e.exit("chunkText"),s):(e.consume(c),o)}}const B4={tokenize:U4},hT={tokenize:$4};function U4(e){const t=this,n=[];let r=0,a,s,o;return c;function c(A){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,d,f)(A)}return f(A)}function d(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&N();const _=t.events.length;let M=_,D;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){D=t.events[M][1].end;break}v(r);let R=_;for(;R<t.events.length;)t.events[R][1].end={...D},R++;return _n(t.events,M+1,0,t.events.slice(_)),t.events.length=R,f(A)}return c(A)}function f(A){if(r===n.length){if(!a)return b(A);if(a.currentConstruct&&a.currentConstruct.concrete)return E(A);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(hT,m,h)(A)}function m(A){return a&&N(),v(r),b(A)}function h(A){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,E(A)}function b(A){return t.containerState={},e.attempt(hT,y,E)(A)}function y(A){return r++,n.push([t.currentConstruct,t.containerState]),b(A)}function E(A){if(A===null){a&&N(),v(0),e.consume(A);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),k(A)}function k(A){if(A===null){w(e.exit("chunkFlow"),!0),v(0),e.consume(A);return}return Ce(A)?(e.consume(A),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(A),k)}function w(A,_){const M=t.sliceStream(A);if(_&&M.push(null),A.previous=s,s&&(s.next=A),s=A,a.defineSkip(A.start),a.write(M),t.parser.lazy[A.start.line]){let D=a.events.length;for(;D--;)if(a.events[D][1].start.offset<o&&(!a.events[D][1].end||a.events[D][1].end.offset>o))return;const R=t.events.length;let P=R,B,O;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(B){O=t.events[P][1].end;break}B=!0}for(v(r),D=R;D<t.events.length;)t.events[D][1].end={...O},D++;_n(t.events,P+1,0,t.events.slice(R)),t.events.length=D}}function v(A){let _=n.length;for(;_-- >A;){const M=n[_];t.containerState=M[1],M[0].exit.call(t,e)}n.length=A}function N(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function $4(e,t,n){return Xe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ji(e){if(e===null||ut(e)||oi(e))return 1;if(Fc(e))return 2}function Pc(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const km={name:"attention",resolveAll:z4,tokenize:G4};function z4(e,t){let n=-1,r,a,s,o,c,d,f,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},b={...e[n][1].start};gT(h,-d),gT(b,d),o={type:d>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},s={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},e[r][1].end={...o.start},e[n][1].start={...c.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=Hn(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=Hn(f,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",s,t]]),f=Hn(f,Pc(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=Hn(f,[["exit",s,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,f=Hn(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,_n(e,r-1,n-r+3,f),n=r+f.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function G4(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Ji(r);let s;return o;function o(d){return s=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===s)return e.consume(d),c;const f=e.exit("attentionSequence"),m=Ji(d),h=!m||m===2&&a||n.includes(d),b=!a||a===2&&m||n.includes(r);return f._open=!!(s===42?h:h&&(a||!b)),f._close=!!(s===42?b:b&&(m||!h)),t(d)}}function gT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const H4={name:"autolink",tokenize:V4};function V4(e,t,n){let r=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(y){return ln(y)?(e.consume(y),o):y===64?n(y):f(y)}function o(y){return y===43||y===45||y===46||tn(y)?(r=1,c(y)):f(y)}function c(y){return y===58?(e.consume(y),r=0,d):(y===43||y===45||y===46||tn(y))&&r++<32?(e.consume(y),c):(r=0,f(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||dc(y)?n(y):(e.consume(y),d)}function f(y){return y===64?(e.consume(y),m):D4(y)?(e.consume(y),f):n(y)}function m(y){return tn(y)?h(y):n(y)}function h(y){return y===46?(e.consume(y),r=0,m):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):b(y)}function b(y){if((y===45||tn(y))&&r++<63){const E=y===45?b:h;return e.consume(y),E}return n(y)}}const el={partial:!0,tokenize:W4};function W4(e,t,n){return r;function r(s){return Ve(s)?Xe(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||Ce(s)?t(s):n(s)}}const LC={continuation:{tokenize:Y4},exit:K4,name:"blockQuote",tokenize:q4};function q4(e,t,n){const r=this;return a;function a(o){if(o===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return Ve(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Y4(e,t,n){const r=this;return a;function a(o){return Ve(o)?Xe(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(LC,t,n)(o)}}function K4(e){e.exit("blockQuote")}const DC={name:"characterEscape",tokenize:X4};function X4(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return j4(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const MC={name:"characterReference",tokenize:Z4};function Z4(e,t,n){const r=this;let a=0,s,o;return c;function c(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),d}function d(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),s=31,o=tn,m(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=M4,m):(e.enter("characterReferenceValue"),s=7,o=wm,m(h))}function m(h){if(h===59&&a){const b=e.exit("characterReferenceValue");return o===tn&&!Po(r.sliceSerialize(b))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&a++<s?(e.consume(h),m):n(h)}}const bT={partial:!0,tokenize:J4},yT={concrete:!0,name:"codeFenced",tokenize:Q4};function Q4(e,t,n){const r=this,a={partial:!0,tokenize:M};let s=0,o=0,c;return d;function d(D){return f(D)}function f(D){const R=r.events[r.events.length-1];return s=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,c=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(D)}function m(D){return D===c?(o++,e.consume(D),m):o<3?n(D):(e.exit("codeFencedFenceSequence"),Ve(D)?Xe(e,h,"whitespace")(D):h(D))}function h(D){return D===null||Ce(D)?(e.exit("codeFencedFence"),r.interrupt?t(D):e.check(bT,k,_)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(D))}function b(D){return D===null||Ce(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(D)):Ve(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Xe(e,y,"whitespace")(D)):D===96&&D===c?n(D):(e.consume(D),b)}function y(D){return D===null||Ce(D)?h(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(D))}function E(D){return D===null||Ce(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(D)):D===96&&D===c?n(D):(e.consume(D),E)}function k(D){return e.attempt(a,_,w)(D)}function w(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),v}function v(D){return s>0&&Ve(D)?Xe(e,N,"linePrefix",s+1)(D):N(D)}function N(D){return D===null||Ce(D)?e.check(bT,k,_)(D):(e.enter("codeFlowValue"),A(D))}function A(D){return D===null||Ce(D)?(e.exit("codeFlowValue"),N(D)):(e.consume(D),A)}function _(D){return e.exit("codeFenced"),t(D)}function M(D,R,P){let B=0;return O;function O(Y){return D.enter("lineEnding"),D.consume(Y),D.exit("lineEnding"),$}function $(Y){return D.enter("codeFencedFence"),Ve(Y)?Xe(D,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):H(Y)}function H(Y){return Y===c?(D.enter("codeFencedFenceSequence"),Z(Y)):P(Y)}function Z(Y){return Y===c?(B++,D.consume(Y),Z):B>=o?(D.exit("codeFencedFenceSequence"),Ve(Y)?Xe(D,q,"whitespace")(Y):q(Y)):P(Y)}function q(Y){return Y===null||Ce(Y)?(D.exit("codeFencedFence"),R(Y)):P(Y)}}}function J4(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const wf={name:"codeIndented",tokenize:t$},e$={partial:!0,tokenize:n$};function t$(e,t,n){const r=this;return a;function a(f){return e.enter("codeIndented"),Xe(e,s,"linePrefix",5)(f)}function s(f){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?o(f):n(f)}function o(f){return f===null?d(f):Ce(f)?e.attempt(e$,o,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||Ce(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),t(f)}}function n$(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Ce(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):Xe(e,s,"linePrefix",5)(o)}function s(o){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):Ce(o)?a(o):n(o)}}const r$={name:"codeText",previous:i$,resolve:a$,tokenize:s$};function a$(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function i$(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function s$(e,t,n){let r=0,a,s;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),c(h)}function c(h){return h===96?(e.consume(h),r++,c):(e.exit("codeTextSequence"),d(h))}function d(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),d):h===96?(s=e.enter("codeTextSequence"),a=0,m(h)):Ce(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||Ce(h)?(e.exit("codeTextData"),d(h)):(e.consume(h),f)}function m(h){return h===96?(e.consume(h),a++,m):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",f(h))}}class o${constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ro(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ro(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ro(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ro(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ro(this.left,n.reverse())}}}function ro(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function jC(e){const t={};let n=-1,r,a,s,o,c,d,f;const m=new o$(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,l$(m,n)),n=t[n],f=!0);else if(r[1]._container){for(s=n,a=void 0;s--;)if(o=m.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(m.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...m.get(a)[1].start},c=m.slice(a,n),c.unshift(r),m.splice(a,n-a+1,c))}}return _n(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!f}function l$(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,d=[],f={};let m,h,b=-1,y=n,E=0,k=0;const w=[k];for(;y;){for(;e.get(++a)[1]!==y;);s.push(a),y._tokenizer||(m=r.sliceStream(y),y.next||m.push(null),h&&o.defineSkip(y.start),y._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(m),y._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=y,y=y.next}for(y=n;++b<c.length;)c[b][0]==="exit"&&c[b-1][0]==="enter"&&c[b][1].type===c[b-1][1].type&&c[b][1].start.line!==c[b][1].end.line&&(k=b+1,w.push(k),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(o.events=[],y?(y._tokenizer=void 0,y.previous=void 0):w.pop(),b=w.length;b--;){const v=c.slice(w[b],w[b+1]),N=s.pop();d.push([N,N+v.length-1]),e.splice(N,2,v)}for(d.reverse(),b=-1;++b<d.length;)f[E+d[b][0]]=E+d[b][1],E+=d[b][1]-d[b][0]-1;return f}const u$={resolve:d$,tokenize:p$},c$={partial:!0,tokenize:f$};function d$(e){return jC(e),e}function p$(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?s(c):Ce(c)?e.check(c$,o,s)(c):(e.consume(c),a)}function s(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function o(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function f$(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Xe(e,s,"linePrefix")}function s(o){if(o===null||Ce(o))return n(o);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function FC(e,t,n,r,a,s,o,c,d){const f=d||Number.POSITIVE_INFINITY;let m=0;return h;function h(v){return v===60?(e.enter(r),e.enter(a),e.enter(s),e.consume(v),e.exit(s),b):v===null||v===32||v===41||dc(v)?n(v):(e.enter(r),e.enter(o),e.enter(c),e.enter("chunkString",{contentType:"string"}),k(v))}function b(v){return v===62?(e.enter(s),e.consume(v),e.exit(s),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===62?(e.exit("chunkString"),e.exit(c),b(v)):v===null||v===60||Ce(v)?n(v):(e.consume(v),v===92?E:y)}function E(v){return v===60||v===62||v===92?(e.consume(v),y):y(v)}function k(v){return!m&&(v===null||v===41||ut(v))?(e.exit("chunkString"),e.exit(c),e.exit(o),e.exit(r),t(v)):m<f&&v===40?(e.consume(v),m++,k):v===41?(e.consume(v),m--,k):v===null||v===32||v===40||dc(v)?n(v):(e.consume(v),v===92?w:k)}function w(v){return v===40||v===41||v===92?(e.consume(v),k):k(v)}}function PC(e,t,n,r,a,s){const o=this;let c=0,d;return f;function f(y){return e.enter(r),e.enter(a),e.consume(y),e.exit(a),e.enter(s),m}function m(y){return c>999||y===null||y===91||y===93&&!d||y===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?n(y):y===93?(e.exit(s),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):Ce(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||Ce(y)||c++>999?(e.exit("chunkString"),m(y)):(e.consume(y),d||(d=!Ve(y)),y===92?b:h)}function b(y){return y===91||y===92||y===93?(e.consume(y),c++,h):h(y)}}function BC(e,t,n,r,a,s){let o;return c;function c(b){return b===34||b===39||b===40?(e.enter(r),e.enter(a),e.consume(b),e.exit(a),o=b===40?41:b,d):n(b)}function d(b){return b===o?(e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):(e.enter(s),f(b))}function f(b){return b===o?(e.exit(s),d(o)):b===null?n(b):Ce(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Xe(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===o||b===null||Ce(b)?(e.exit("chunkString"),f(b)):(e.consume(b),b===92?h:m)}function h(b){return b===o||b===92?(e.consume(b),m):m(b)}}function Eo(e,t){let n;return r;function r(a){return Ce(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Ve(a)?Xe(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const m$={name:"definition",tokenize:g$},h$={partial:!0,tokenize:b$};function g$(e,t,n){const r=this;let a;return s;function s(y){return e.enter("definition"),o(y)}function o(y){return PC.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return a=dr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return ut(y)?Eo(e,f)(y):f(y)}function f(y){return FC(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function m(y){return e.attempt(h$,h,h)(y)}function h(y){return Ve(y)?Xe(e,b,"whitespace")(y):b(y)}function b(y){return y===null||Ce(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function b$(e,t,n){return r;function r(c){return ut(c)?Eo(e,a)(c):n(c)}function a(c){return BC(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return Ve(c)?Xe(e,o,"whitespace")(c):o(c)}function o(c){return c===null||Ce(c)?t(c):n(c)}}const y$={name:"hardBreakEscape",tokenize:x$};function x$(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return Ce(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const E$={name:"headingAtx",resolve:S$,tokenize:v$};function S$(e,t){let n=e.length-2,r=3,a,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},_n(e,r,n-r+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]])),e}function v$(e,t,n){let r=0;return a;function a(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),o(m)}function o(m){return m===35&&r++<6?(e.consume(m),o):m===null||ut(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Ce(m)?(e.exit("atxHeading"),t(m)):Ve(m)?Xe(e,c,"whitespace")(m):(e.enter("atxHeadingText"),f(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function f(m){return m===null||m===35||ut(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),f)}}const w$=["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"],xT=["pre","script","style","textarea"],k$={concrete:!0,name:"htmlFlow",resolveTo:A$,tokenize:I$},T$={partial:!0,tokenize:R$},N$={partial:!0,tokenize:C$};function A$(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function I$(e,t,n){const r=this;let a,s,o,c,d;return f;function f(j){return m(j)}function m(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),h}function h(j){return j===33?(e.consume(j),b):j===47?(e.consume(j),s=!0,k):j===63?(e.consume(j),a=3,r.interrupt?t:C):ln(j)?(e.consume(j),o=String.fromCharCode(j),w):n(j)}function b(j){return j===45?(e.consume(j),a=2,y):j===91?(e.consume(j),a=5,c=0,E):ln(j)?(e.consume(j),a=4,r.interrupt?t:C):n(j)}function y(j){return j===45?(e.consume(j),r.interrupt?t:C):n(j)}function E(j){const fe="CDATA[";return j===fe.charCodeAt(c++)?(e.consume(j),c===fe.length?r.interrupt?t:H:E):n(j)}function k(j){return ln(j)?(e.consume(j),o=String.fromCharCode(j),w):n(j)}function w(j){if(j===null||j===47||j===62||ut(j)){const fe=j===47,Ne=o.toLowerCase();return!fe&&!s&&xT.includes(Ne)?(a=1,r.interrupt?t(j):H(j)):w$.includes(o.toLowerCase())?(a=6,fe?(e.consume(j),v):r.interrupt?t(j):H(j)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(j):s?N(j):A(j))}return j===45||tn(j)?(e.consume(j),o+=String.fromCharCode(j),w):n(j)}function v(j){return j===62?(e.consume(j),r.interrupt?t:H):n(j)}function N(j){return Ve(j)?(e.consume(j),N):O(j)}function A(j){return j===47?(e.consume(j),O):j===58||j===95||ln(j)?(e.consume(j),_):Ve(j)?(e.consume(j),A):O(j)}function _(j){return j===45||j===46||j===58||j===95||tn(j)?(e.consume(j),_):M(j)}function M(j){return j===61?(e.consume(j),D):Ve(j)?(e.consume(j),M):A(j)}function D(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),d=j,R):Ve(j)?(e.consume(j),D):P(j)}function R(j){return j===d?(e.consume(j),d=null,B):j===null||Ce(j)?n(j):(e.consume(j),R)}function P(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||ut(j)?M(j):(e.consume(j),P)}function B(j){return j===47||j===62||Ve(j)?A(j):n(j)}function O(j){return j===62?(e.consume(j),$):n(j)}function $(j){return j===null||Ce(j)?H(j):Ve(j)?(e.consume(j),$):n(j)}function H(j){return j===45&&a===2?(e.consume(j),ae):j===60&&a===1?(e.consume(j),J):j===62&&a===4?(e.consume(j),F):j===63&&a===3?(e.consume(j),C):j===93&&a===5?(e.consume(j),re):Ce(j)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(T$,K,Z)(j)):j===null||Ce(j)?(e.exit("htmlFlowData"),Z(j)):(e.consume(j),H)}function Z(j){return e.check(N$,q,K)(j)}function q(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),Y}function Y(j){return j===null||Ce(j)?Z(j):(e.enter("htmlFlowData"),H(j))}function ae(j){return j===45?(e.consume(j),C):H(j)}function J(j){return j===47?(e.consume(j),o="",W):H(j)}function W(j){if(j===62){const fe=o.toLowerCase();return xT.includes(fe)?(e.consume(j),F):H(j)}return ln(j)&&o.length<8?(e.consume(j),o+=String.fromCharCode(j),W):H(j)}function re(j){return j===93?(e.consume(j),C):H(j)}function C(j){return j===62?(e.consume(j),F):j===45&&a===2?(e.consume(j),C):H(j)}function F(j){return j===null||Ce(j)?(e.exit("htmlFlowData"),K(j)):(e.consume(j),F)}function K(j){return e.exit("htmlFlow"),t(j)}}function C$(e,t,n){const r=this;return a;function a(o){return Ce(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function R$(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(el,t,n)}}const _$={name:"htmlText",tokenize:O$};function O$(e,t,n){const r=this;let a,s,o;return c;function c(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),d}function d(C){return C===33?(e.consume(C),f):C===47?(e.consume(C),M):C===63?(e.consume(C),A):ln(C)?(e.consume(C),P):n(C)}function f(C){return C===45?(e.consume(C),m):C===91?(e.consume(C),s=0,E):ln(C)?(e.consume(C),N):n(C)}function m(C){return C===45?(e.consume(C),y):n(C)}function h(C){return C===null?n(C):C===45?(e.consume(C),b):Ce(C)?(o=h,J(C)):(e.consume(C),h)}function b(C){return C===45?(e.consume(C),y):h(C)}function y(C){return C===62?ae(C):C===45?b(C):h(C)}function E(C){const F="CDATA[";return C===F.charCodeAt(s++)?(e.consume(C),s===F.length?k:E):n(C)}function k(C){return C===null?n(C):C===93?(e.consume(C),w):Ce(C)?(o=k,J(C)):(e.consume(C),k)}function w(C){return C===93?(e.consume(C),v):k(C)}function v(C){return C===62?ae(C):C===93?(e.consume(C),v):k(C)}function N(C){return C===null||C===62?ae(C):Ce(C)?(o=N,J(C)):(e.consume(C),N)}function A(C){return C===null?n(C):C===63?(e.consume(C),_):Ce(C)?(o=A,J(C)):(e.consume(C),A)}function _(C){return C===62?ae(C):A(C)}function M(C){return ln(C)?(e.consume(C),D):n(C)}function D(C){return C===45||tn(C)?(e.consume(C),D):R(C)}function R(C){return Ce(C)?(o=R,J(C)):Ve(C)?(e.consume(C),R):ae(C)}function P(C){return C===45||tn(C)?(e.consume(C),P):C===47||C===62||ut(C)?B(C):n(C)}function B(C){return C===47?(e.consume(C),ae):C===58||C===95||ln(C)?(e.consume(C),O):Ce(C)?(o=B,J(C)):Ve(C)?(e.consume(C),B):ae(C)}function O(C){return C===45||C===46||C===58||C===95||tn(C)?(e.consume(C),O):$(C)}function $(C){return C===61?(e.consume(C),H):Ce(C)?(o=$,J(C)):Ve(C)?(e.consume(C),$):B(C)}function H(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),a=C,Z):Ce(C)?(o=H,J(C)):Ve(C)?(e.consume(C),H):(e.consume(C),q)}function Z(C){return C===a?(e.consume(C),a=void 0,Y):C===null?n(C):Ce(C)?(o=Z,J(C)):(e.consume(C),Z)}function q(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||ut(C)?B(C):(e.consume(C),q)}function Y(C){return C===47||C===62||ut(C)?B(C):n(C)}function ae(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function J(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),W}function W(C){return Ve(C)?Xe(e,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):re(C)}function re(C){return e.enter("htmlTextData"),o(C)}}const Wh={name:"labelEnd",resolveAll:j$,resolveTo:F$,tokenize:P$},L$={tokenize:B$},D$={tokenize:U$},M$={tokenize:$$};function j$(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&_n(e,0,e.length,n),e}function F$(e,t){let n=e.length,r=0,a,s,o,c;for(;n--;)if(a=e[n][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},m={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[o-2][1].start}};return c=[["enter",d,t],["enter",f,t]],c=Hn(c,e.slice(s+1,s+r+3)),c=Hn(c,[["enter",m,t]]),c=Hn(c,Pc(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),c=Hn(c,[["exit",m,t],e[o-2],e[o-1],["exit",f,t]]),c=Hn(c,e.slice(o+1)),c=Hn(c,[["exit",d,t]]),_n(e,s,e.length,c),e}function P$(e,t,n){const r=this;let a=r.events.length,s,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){s=r.events[a][1];break}return c;function c(b){return s?s._inactive?h(b):(o=r.parser.defined.includes(dr(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(L$,m,o?m:h)(b):b===91?e.attempt(D$,m,o?f:h)(b):o?m(b):h(b)}function f(b){return e.attempt(M$,m,h)(b)}function m(b){return t(b)}function h(b){return s._balanced=!0,n(b)}}function B$(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return ut(h)?Eo(e,s)(h):s(h)}function s(h){return h===41?m(h):FC(e,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return ut(h)?Eo(e,d)(h):m(h)}function c(h){return n(h)}function d(h){return h===34||h===39||h===40?BC(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):m(h)}function f(h){return ut(h)?Eo(e,m)(h):m(h)}function m(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function U$(e,t,n){const r=this;return a;function a(c){return PC.call(r,e,s,o,"reference","referenceMarker","referenceString")(c)}function s(c){return r.parser.defined.includes(dr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function o(c){return n(c)}}function $$(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const z$={name:"labelStartImage",resolveAll:Wh.resolveAll,tokenize:G$};function G$(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),s}function s(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),o):n(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const H$={name:"labelStartLink",resolveAll:Wh.resolveAll,tokenize:V$};function V$(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const kf={name:"lineEnding",tokenize:W$};function W$(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Xe(e,t,"linePrefix")}}const Wu={name:"thematicBreak",tokenize:q$};function q$(e,t,n){let r=0,a;return s;function s(f){return e.enter("thematicBreak"),o(f)}function o(f){return a=f,c(f)}function c(f){return f===a?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||Ce(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===a?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),Ve(f)?Xe(e,c,"whitespace")(f):c(f))}}const yn={continuation:{tokenize:Z$},exit:J$,name:"list",tokenize:X$},Y$={partial:!0,tokenize:e3},K$={partial:!0,tokenize:Q$};function X$(e,t,n){const r=this,a=r.events[r.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return c;function c(y){const E=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:wm(y)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Wu,n,f)(y):f(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return wm(y)&&++o<10?(e.consume(y),d):(!r.interrupt||o<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),f(y)):n(y)}function f(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(el,r.interrupt?n:m,e.attempt(Y$,b,h))}function m(y){return r.containerState.initialBlankLine=!0,s++,b(y)}function h(y){return Ve(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):n(y)}function b(y){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Z$(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(el,a,s);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Xe(e,t,"listItemIndent",r.containerState.size+1)(c)}function s(c){return r.containerState.furtherBlankLines||!Ve(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(K$,t,o)(c))}function o(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,Xe(e,e.attempt(yn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function Q$(e,t,n){const r=this;return Xe(e,a,"listItemIndent",r.containerState.size+1);function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function J$(e){e.exit(this.containerState.type)}function e3(e,t,n){const r=this;return Xe(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const o=r.events[r.events.length-1];return!Ve(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const ET={name:"setextUnderline",resolveTo:t3,tokenize:n3};function t3(e,t){let n=e.length,r,a,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function n3(e,t,n){const r=this;let a;return s;function s(f){let m=r.events.length,h;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){h=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),a=f,o(f)):n(f)}function o(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===a?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),Ve(f)?Xe(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||Ce(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const r3={tokenize:a3};function a3(e){const t=this,n=e.attempt(el,r,e.attempt(this.parser.constructs.flowInitial,a,Xe(e,e.attempt(this.parser.constructs.flow,a,e.attempt(u$,a)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const i3={resolveAll:$C()},s3=UC("string"),o3=UC("text");function UC(e){return{resolveAll:$C(e==="text"?l3:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],s=n.attempt(a,o,c);return o;function o(m){return f(m)?s(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return f(m)?(n.exit("data"),s(m)):(n.consume(m),d)}function f(m){if(m===null)return!0;const h=a[m];let b=-1;if(h)for(;++b<h.length;){const y=h[b];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function $C(e){return t;function t(n,r){let a=-1,s;for(;++a<=n.length;)s===void 0?n[a]&&n[a][1].type==="data"&&(s=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==s+2&&(n[s][1].end=n[a-1][1].end,n.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(n,r):n}}function l3(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let s=a.length,o=-1,c=0,d;for(;s--;){const f=a[s];if(typeof f=="string"){for(o=f.length;f.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(f===-2)d=!0,c++;else if(f!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const u3={42:yn,43:yn,45:yn,48:yn,49:yn,50:yn,51:yn,52:yn,53:yn,54:yn,55:yn,56:yn,57:yn,62:LC},c3={91:m$},d3={[-2]:wf,[-1]:wf,32:wf},p3={35:E$,42:Wu,45:[ET,Wu],60:k$,61:ET,95:Wu,96:yT,126:yT},f3={38:MC,92:DC},m3={[-5]:kf,[-4]:kf,[-3]:kf,33:z$,38:MC,42:km,60:[H4,_$],91:H$,92:[y$,DC],93:Wh,95:km,96:r$},h3={null:[km,i3]},g3={null:[42,95]},b3={null:[]},y3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:g3,contentInitial:c3,disable:b3,document:u3,flow:p3,flowInitial:d3,insideSpan:h3,string:f3,text:m3},Symbol.toStringTag,{value:"Module"}));function x3(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},s=[];let o=[],c=[];const d={attempt:R(M),check:R(D),consume:N,enter:A,exit:_,interrupt:R(D,{interrupt:!0})},f={code:null,containerState:{},defineSkip:k,events:[],now:E,parser:e,previous:null,sliceSerialize:b,sliceStream:y,write:h};let m=t.tokenize.call(f,d);return t.resolveAll&&s.push(t),f;function h($){return o=Hn(o,$),w(),o[o.length-1]!==null?[]:(P(t,0),f.events=Pc(s,f.events,f),f.events)}function b($,H){return S3(y($),H)}function y($){return E3(o,$)}function E(){const{_bufferIndex:$,_index:H,line:Z,column:q,offset:Y}=r;return{_bufferIndex:$,_index:H,line:Z,column:q,offset:Y}}function k($){a[$.line]=$.column,O()}function w(){let $;for(;r._index<o.length;){const H=o[r._index];if(typeof H=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<H.length;)v(H.charCodeAt(r._bufferIndex));else v(H)}}function v($){m=m($)}function N($){Ce($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,O()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=$}function A($,H){const Z=H||{};return Z.type=$,Z.start=E(),f.events.push(["enter",Z,f]),c.push(Z),Z}function _($){const H=c.pop();return H.end=E(),f.events.push(["exit",H,f]),H}function M($,H){P($,H.from)}function D($,H){H.restore()}function R($,H){return Z;function Z(q,Y,ae){let J,W,re,C;return Array.isArray(q)?K(q):"tokenize"in q?K([q]):F(q);function F(be){return De;function De(ne){const xe=ne!==null&&be[ne],je=ne!==null&&be.null,ze=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(je)?je:je?[je]:[]];return K(ze)(ne)}}function K(be){return J=be,W=0,be.length===0?ae:j(be[W])}function j(be){return De;function De(ne){return C=B(),re=be,be.partial||(f.currentConstruct=be),be.name&&f.parser.constructs.disable.null.includes(be.name)?Ne():be.tokenize.call(H?Object.assign(Object.create(f),H):f,d,fe,Ne)(ne)}}function fe(be){return $(re,C),Y}function Ne(be){return C.restore(),++W<J.length?j(J[W]):ae}}}function P($,H){$.resolveAll&&!s.includes($)&&s.push($),$.resolve&&_n(f.events,H,f.events.length-H,$.resolve(f.events.slice(H),f)),$.resolveTo&&(f.events=$.resolveTo(f.events,f))}function B(){const $=E(),H=f.previous,Z=f.currentConstruct,q=f.events.length,Y=Array.from(c);return{from:q,restore:ae};function ae(){r=$,f.previous=H,f.currentConstruct=Z,f.events.length=q,c=Y,O()}}function O(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function E3(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,s)];else{if(o=e.slice(n,a),r>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(r):o.shift()}s>0&&o.push(e[a].slice(0,s))}return o}function S3(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
340
|
-
`;break}case-3:{o=`\r
|
|
341
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(s)}a=s===-2,r.push(o)}return r.join("")}function v3(e){const r={constructs:_C([y3,...(e||{}).extensions||[]]),content:a(F4),defined:[],document:a(B4),flow:a(r3),lazy:{},string:a(s3),text:a(o3)};return r;function a(s){return o;function o(c){return x3(r,s,c)}}}function w3(e){for(;!jC(e););return e}const ST=/[\0\t\n\r]/g;function k3(){let e=1,t="",n=!0,r;return a;function a(s,o,c){const d=[];let f,m,h,b,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),h=0,t="",n&&(s.charCodeAt(0)===65279&&h++,n=void 0);h<s.length;){if(ST.lastIndex=h,f=ST.exec(s),b=f&&f.index!==void 0?f.index:s.length,y=s.charCodeAt(b),!f){t=s.slice(h);break}if(y===10&&h===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),h<b&&(d.push(s.slice(h,b)),e+=b-h),y){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}h=b+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const T3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function N3(e){return e.replace(T3,A3)}function A3(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),s=a===120||a===88;return OC(n.slice(s?2:1),s?16:10)}return Po(n)||e}const zC={}.hasOwnProperty;function I3(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),C3(n)(w3(v3(n).document().write(k3()(e,t,!0))))}function C3(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Dn),autolinkProtocol:B,autolinkEmail:B,atxHeading:s(et),blockQuote:s(je),characterEscape:B,characterReference:B,codeFenced:s(ze),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(ze,o),codeText:s(qe,o),codeTextData:B,data:B,codeFlowValue:B,definition:s(Je),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(lt),hardBreakEscape:s(at),hardBreakTrailing:s(at),htmlFlow:s(kt,o),htmlFlowData:B,htmlText:s(kt,o),htmlTextData:B,image:s(ct),label:o,link:s(Dn),listItem:s(Mn),listItemValue:b,listOrdered:s(Sn,h),listUnordered:s(Sn),paragraph:s(qr),reference:j,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(et),strong:s(Lr),thematicBreak:s(jn)},exit:{atxHeading:d(),atxHeadingSequence:M,autolink:d(),autolinkEmail:xe,autolinkProtocol:ne,blockQuote:d(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:be,characterReference:De,codeFenced:d(w),codeFencedFence:k,codeFencedFenceInfo:y,codeFencedFenceMeta:E,codeFlowValue:O,codeIndented:d(v),codeText:d(Y),codeTextData:O,data:O,definition:d(),definitionDestinationString:_,definitionLabelString:N,definitionTitleString:A,emphasis:d(),hardBreakEscape:d(H),hardBreakTrailing:d(H),htmlFlow:d(Z),htmlFlowData:O,htmlText:d(q),htmlTextData:O,image:d(J),label:re,labelText:W,lineEnding:$,link:d(ae),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:fe,resourceDestinationString:C,resourceTitleString:F,resource:K,setextHeading:d(P),setextHeadingLineSequence:R,setextHeadingText:D,strong:d(),thematicBreak:d()}};GC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(te){let pe={type:"root",children:[]};const Re={stack:[pe],tokenStack:[],config:t,enter:c,exit:f,buffer:o,resume:m,data:n},Pe=[];let Ye=-1;for(;++Ye<te.length;)if(te[Ye][1].type==="listOrdered"||te[Ye][1].type==="listUnordered")if(te[Ye][0]==="enter")Pe.push(Ye);else{const Ct=Pe.pop();Ye=a(te,Ct,Ye)}for(Ye=-1;++Ye<te.length;){const Ct=t[te[Ye][0]];zC.call(Ct,te[Ye][1].type)&&Ct[te[Ye][1].type].call(Object.assign({sliceSerialize:te[Ye][2].sliceSerialize},Re),te[Ye][1])}if(Re.tokenStack.length>0){const Ct=Re.tokenStack[Re.tokenStack.length-1];(Ct[1]||vT).call(Re,void 0,Ct[0])}for(pe.position={start:ma(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:ma(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<t.transforms.length;)pe=t.transforms[Ye](pe)||pe;return pe}function a(te,pe,Re){let Pe=pe-1,Ye=-1,Ct=!1,Zn,Fn,Yr,_a;for(;++Pe<=Re;){const Ht=te[Pe];switch(Ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ht[0]==="enter"?Ye++:Ye--,_a=void 0;break}case"lineEndingBlank":{Ht[0]==="enter"&&(Zn&&!_a&&!Ye&&!Yr&&(Yr=Pe),_a=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_a=void 0}if(!Ye&&Ht[0]==="enter"&&Ht[1].type==="listItemPrefix"||Ye===-1&&Ht[0]==="exit"&&(Ht[1].type==="listUnordered"||Ht[1].type==="listOrdered")){if(Zn){let gr=Pe;for(Fn=void 0;gr--;){const vn=te[gr];if(vn[1].type==="lineEnding"||vn[1].type==="lineEndingBlank"){if(vn[0]==="exit")continue;Fn&&(te[Fn][1].type="lineEndingBlank",Ct=!0),vn[1].type="lineEnding",Fn=gr}else if(!(vn[1].type==="linePrefix"||vn[1].type==="blockQuotePrefix"||vn[1].type==="blockQuotePrefixWhitespace"||vn[1].type==="blockQuoteMarker"||vn[1].type==="listItemIndent"))break}Yr&&(!Fn||Yr<Fn)&&(Zn._spread=!0),Zn.end=Object.assign({},Fn?te[Fn][1].start:Ht[1].end),te.splice(Fn||Pe,0,["exit",Zn,Ht[2]]),Pe++,Re++}if(Ht[1].type==="listItemPrefix"){const gr={type:"listItem",_spread:!1,start:Object.assign({},Ht[1].start),end:void 0};Zn=gr,te.splice(Pe,0,["enter",gr,Ht[2]]),Pe++,Re++,Yr=void 0,_a=!0}}}return te[pe][1]._spread=Ct,Re}function s(te,pe){return Re;function Re(Pe){c.call(this,te(Pe),Pe),pe&&pe.call(this,Pe)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(te,pe,Re){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([pe,Re||void 0]),te.position={start:ma(pe.start),end:void 0}}function d(te){return pe;function pe(Re){te&&te.call(this,Re),f.call(this,Re)}}function f(te,pe){const Re=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==te.type&&(pe?pe.call(this,te,Pe[0]):(Pe[1]||vT).call(this,te,Pe[0]));else throw new Error("Cannot close `"+te.type+"` ("+xo({start:te.start,end:te.end})+"): it’s not open");Re.position.end=ma(te.end)}function m(){return Vh(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function b(te){if(this.data.expectingFirstListItemValue){const pe=this.stack[this.stack.length-2];pe.start=Number.parseInt(this.sliceSerialize(te),10),this.data.expectingFirstListItemValue=void 0}}function y(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.lang=te}function E(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.meta=te}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.value=te.replace(/(\r?\n|\r)$/g,"")}function N(te){const pe=this.resume(),Re=this.stack[this.stack.length-1];Re.label=pe,Re.identifier=dr(this.sliceSerialize(te)).toLowerCase()}function A(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.title=te}function _(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.url=te}function M(te){const pe=this.stack[this.stack.length-1];if(!pe.depth){const Re=this.sliceSerialize(te).length;pe.depth=Re}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function R(te){const pe=this.stack[this.stack.length-1];pe.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function B(te){const Re=this.stack[this.stack.length-1].children;let Pe=Re[Re.length-1];(!Pe||Pe.type!=="text")&&(Pe=Xn(),Pe.position={start:ma(te.start),end:void 0},Re.push(Pe)),this.stack.push(Pe)}function O(te){const pe=this.stack.pop();pe.value+=this.sliceSerialize(te),pe.position.end=ma(te.end)}function $(te){const pe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Re=pe.children[pe.children.length-1];Re.position.end=ma(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(pe.type)&&(B.call(this,te),O.call(this,te))}function H(){this.data.atHardBreak=!0}function Z(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.value=te}function q(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.value=te}function Y(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.value=te}function ae(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const pe=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=pe,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function J(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const pe=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=pe,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function W(te){const pe=this.sliceSerialize(te),Re=this.stack[this.stack.length-2];Re.label=N3(pe),Re.identifier=dr(pe).toLowerCase()}function re(){const te=this.stack[this.stack.length-1],pe=this.resume(),Re=this.stack[this.stack.length-1];if(this.data.inReference=!0,Re.type==="link"){const Pe=te.children;Re.children=Pe}else Re.alt=pe}function C(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.url=te}function F(){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.title=te}function K(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function fe(te){const pe=this.resume(),Re=this.stack[this.stack.length-1];Re.label=pe,Re.identifier=dr(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function Ne(te){this.data.characterReferenceType=te.type}function be(te){const pe=this.sliceSerialize(te),Re=this.data.characterReferenceType;let Pe;Re?(Pe=OC(pe,Re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=Po(pe);const Ye=this.stack[this.stack.length-1];Ye.value+=Pe}function De(te){const pe=this.stack.pop();pe.position.end=ma(te.end)}function ne(te){O.call(this,te);const pe=this.stack[this.stack.length-1];pe.url=this.sliceSerialize(te)}function xe(te){O.call(this,te);const pe=this.stack[this.stack.length-1];pe.url="mailto:"+this.sliceSerialize(te)}function je(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function qe(){return{type:"inlineCode",value:""}}function Je(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function lt(){return{type:"emphasis",children:[]}}function et(){return{type:"heading",depth:0,children:[]}}function at(){return{type:"break"}}function kt(){return{type:"html",value:""}}function ct(){return{type:"image",title:null,url:"",alt:null}}function Dn(){return{type:"link",title:null,url:"",children:[]}}function Sn(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function Mn(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function qr(){return{type:"paragraph",children:[]}}function Lr(){return{type:"strong",children:[]}}function Xn(){return{type:"text",value:""}}function jn(){return{type:"thematicBreak"}}}function ma(e){return{line:e.line,column:e.column,offset:e.offset}}function GC(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?GC(e,r):R3(e,r)}}function R3(e,t){let n;for(n in t)if(zC.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function vT(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+xo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+xo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+xo({start:t.start,end:t.end})+") is still open")}function _3(e){const t=this;t.parser=n;function n(r){return I3(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function O3(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function L3(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
342
|
-
`}]}function D3(e,t){const n=t.value?t.value+`
|
|
343
|
-
`:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function M3(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function j3(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function F3(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=us(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let o,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=s+1,c+=1,e.footnoteCounts.set(r,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function P3(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function B3(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function HC(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function U3(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return HC(e,t);const a={src:us(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function $3(e,t){const n={src:us(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function z3(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function G3(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return HC(e,t);const a={href:us(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function H3(e,t){const n={href:us(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function V3(e,t,n){const r=e.all(t),a=n?W3(n):VC(t),s={},o=[];if(typeof t.checked=="boolean"){const m=r[0];let h;m&&m.type==="element"&&m.tagName==="p"?h=m:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const m=r[c];(a||c!==0||m.type!=="element"||m.tagName!=="p")&&o.push({type:"text",value:`
|
|
344
|
-
`}),m.type==="element"&&m.tagName==="p"&&!a?o.push(...m.children):o.push(m)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
345
|
-
`});const f={type:"element",tagName:"li",properties:s,children:o};return e.patch(t,f),e.applyData(t,f)}function W3(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=VC(n[r])}return t}function VC(e){const t=e.spread;return t??e.children.length>1}function q3(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const o=r[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function Y3(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function K3(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function X3(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Z3(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),a.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=$h(t.children[1]),d=kC(t.children[t.children.length-1]);c&&d&&(o.position={start:c,end:d}),a.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function Q3(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,c=o?o.length:t.children.length;let d=-1;const f=[];for(;++d<c;){const h=t.children[d],b={},y=o?o[d]:void 0;y&&(b.align=y);let E={type:"element",tagName:s,properties:b,children:[]};h&&(E.children=e.all(h),e.patch(h,E),E=e.applyData(h,E)),f.push(E)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,m),e.applyData(t,m)}function J3(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const wT=9,kT=32;function ez(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const s=[];for(;r;)s.push(TT(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return s.push(TT(t.slice(a),a>0,!1)),s.join("")}function TT(e,t,n){let r=0,a=e.length;if(t){let s=e.codePointAt(r);for(;s===wT||s===kT;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(a-1);for(;s===wT||s===kT;)a--,s=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function tz(e,t){const n={type:"text",value:ez(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function nz(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const rz={blockquote:O3,break:L3,code:D3,delete:M3,emphasis:j3,footnoteReference:F3,heading:P3,html:B3,imageReference:U3,image:$3,inlineCode:z3,linkReference:G3,link:H3,listItem:V3,list:q3,paragraph:Y3,root:K3,strong:X3,table:Z3,tableCell:J3,tableRow:Q3,text:tz,thematicBreak:nz,toml:Tu,yaml:Tu,definition:Tu,footnoteDefinition:Tu};function Tu(){}const WC=-1,Bc=0,So=1,pc=2,qh=3,Yh=4,Kh=5,Xh=6,qC=7,YC=8,NT=typeof self=="object"?self:globalThis,az=(e,t)=>{const n=(a,s)=>(e.set(s,a),a),r=a=>{if(e.has(a))return e.get(a);const[s,o]=t[a];switch(s){case Bc:case WC:return n(o,a);case So:{const c=n([],a);for(const d of o)c.push(r(d));return c}case pc:{const c=n({},a);for(const[d,f]of o)c[r(d)]=r(f);return c}case qh:return n(new Date(o),a);case Yh:{const{source:c,flags:d}=o;return n(new RegExp(c,d),a)}case Kh:{const c=n(new Map,a);for(const[d,f]of o)c.set(r(d),r(f));return c}case Xh:{const c=n(new Set,a);for(const d of o)c.add(r(d));return c}case qC:{const{name:c,message:d}=o;return n(new NT[c](d),a)}case YC:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return n(new DataView(c),o)}}return n(new NT[s](o),a)};return r},AT=e=>az(new Map,e)(0),Pi="",{toString:iz}={},{keys:sz}=Object,ao=e=>{const t=typeof e;if(t!=="object"||!e)return[Bc,t];const n=iz.call(e).slice(8,-1);switch(n){case"Array":return[So,Pi];case"Object":return[pc,Pi];case"Date":return[qh,Pi];case"RegExp":return[Yh,Pi];case"Map":return[Kh,Pi];case"Set":return[Xh,Pi];case"DataView":return[So,n]}return n.includes("Array")?[So,n]:n.includes("Error")?[qC,n]:[pc,n]},Nu=([e,t])=>e===Bc&&(t==="function"||t==="symbol"),oz=(e,t,n,r)=>{const a=(o,c)=>{const d=r.push(o)-1;return n.set(c,d),d},s=o=>{if(n.has(o))return n.get(o);let[c,d]=ao(o);switch(c){case Bc:{let m=o;switch(d){case"bigint":c=YC,m=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return a([WC],o)}return a([c,m],o)}case So:{if(d){let b=o;return d==="DataView"?b=new Uint8Array(o.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(o)),a([d,[...b]],o)}const m=[],h=a([c,m],o);for(const b of o)m.push(s(b));return h}case pc:{if(d)switch(d){case"BigInt":return a([d,o.toString()],o);case"Boolean":case"Number":case"String":return a([d,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const m=[],h=a([c,m],o);for(const b of sz(o))(e||!Nu(ao(o[b])))&&m.push([s(b),s(o[b])]);return h}case qh:return a([c,o.toISOString()],o);case Yh:{const{source:m,flags:h}=o;return a([c,{source:m,flags:h}],o)}case Kh:{const m=[],h=a([c,m],o);for(const[b,y]of o)(e||!(Nu(ao(b))||Nu(ao(y))))&&m.push([s(b),s(y)]);return h}case Xh:{const m=[],h=a([c,m],o);for(const b of o)(e||!Nu(ao(b)))&&m.push(s(b));return h}}const{message:f}=o;return a([c,{name:d,message:f}],o)};return s},IT=(e,{json:t,lossy:n}={})=>{const r=[];return oz(!(t||n),!!t,new Map,r)(e),r},fc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?AT(IT(e,t)):structuredClone(e):(e,t)=>AT(IT(e,t));function lz(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function uz(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function cz(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lz,r=e.options.footnoteBackLabel||uz,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const m=e.all(f),h=String(f.identifier).toUpperCase(),b=us(h.toLowerCase());let y=0;const E=[],k=e.footnoteCounts.get(h);for(;k!==void 0&&++y<=k;){E.length>0&&E.push({type:"text",value:" "});let N=typeof n=="string"?n:n(d,y);typeof N=="string"&&(N={type:"text",value:N}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,y),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const w=m[m.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const N=w.children[w.children.length-1];N&&N.type==="text"?N.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...E)}else m.push(...E);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(m,!0)};e.patch(f,v),c.push(v)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...fc(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
346
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
347
|
-
`}]}}const Uc=(function(e){if(e==null)return mz;if(typeof e=="function")return $c(e);if(typeof e=="object")return Array.isArray(e)?dz(e):pz(e);if(typeof e=="string")return fz(e);throw new Error("Expected function, string, or object as test")});function dz(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Uc(e[n]);return $c(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function pz(e){const t=e;return $c(n);function n(r){const a=r;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function fz(e){return $c(t);function t(n){return n&&n.type===e}}function $c(e){return t;function t(n,r,a){return!!(hz(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function mz(){return!0}function hz(e){return e!==null&&typeof e=="object"&&"type"in e}const KC=[],gz=!0,Tm=!1,bz="skip";function XC(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const s=Uc(a),o=r?-1:1;c(e,void 0,[])();function c(d,f,m){const h=d&&typeof d=="object"?d:{};if(typeof h.type=="string"){const y=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=KC,E,k,w;if((!t||s(d,f,m[m.length-1]||void 0))&&(y=yz(n(d,m)),y[0]===Tm))return y;if("children"in d&&d.children){const v=d;if(v.children&&y[0]!==bz)for(k=(r?v.children.length:-1)+o,w=m.concat(v);k>-1&&k<v.children.length;){const N=v.children[k];if(E=c(N,k,w)(),E[0]===Tm)return E;k=typeof E[1]=="number"?E[1]:k+o}}return y}}}function yz(e){return Array.isArray(e)?e:typeof e=="number"?[gz,e]:e==null?KC:[e]}function Zh(e,t,n,r){let a,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,a=n):(s=t,o=n,a=r),XC(e,s,c,a);function c(d,f){const m=f[f.length-1],h=m?m.children.indexOf(d):void 0;return o(d,h,m)}}const Nm={}.hasOwnProperty,xz={};function Ez(e,t){const n=t||xz,r=new Map,a=new Map,s=new Map,o={...rz,...n.handlers},c={all:f,applyData:vz,definitionById:r,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:o,one:d,options:n,patch:Sz,wrap:kz};return Zh(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const h=m.type==="definition"?r:a,b=String(m.identifier).toUpperCase();h.has(b)||h.set(b,m)}}),c;function d(m,h){const b=m.type,y=c.handlers[b];if(Nm.call(c.handlers,b)&&y)return y(c,m,h);if(c.options.passThrough&&c.options.passThrough.includes(b)){if("children"in m){const{children:k,...w}=m,v=fc(w);return v.children=c.all(m),v}return fc(m)}return(c.options.unknownHandler||wz)(c,m,h)}function f(m){const h=[];if("children"in m){const b=m.children;let y=-1;for(;++y<b.length;){const E=c.one(b[y],m);if(E){if(y&&b[y-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=CT(E.value)),!Array.isArray(E)&&E.type==="element")){const k=E.children[0];k&&k.type==="text"&&(k.value=CT(k.value))}Array.isArray(E)?h.push(...E):h.push(E)}}}return h}}function Sz(e,t){e.position&&(t.position=u4(e))}function vz(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,fc(s)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function wz(e,t){const n=t.data||{},r="value"in t&&!(Nm.call(n,"hProperties")||Nm.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function kz(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
348
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
349
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
350
|
-
`}),n}function CT(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function RT(e,t){const n=Ez(e,t),r=n.one(e,void 0),a=cz(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&s.children.push({type:"text",value:`
|
|
351
|
-
`},a),s}function Tz(e,t){return e&&"run"in e?async function(n,r){const a=RT(n,{file:r,...t});await e.run(a,r)}:function(n,r){return RT(n,{file:r,...e||t})}}function _T(e){if(e)throw e}var Tf,OT;function Nz(){if(OT)return Tf;OT=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},s=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var m=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!h)return!1;var b;for(b in f);return typeof b>"u"||e.call(f,b)},o=function(f,m){n&&m.name==="__proto__"?n(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},c=function(f,m){if(m==="__proto__")if(e.call(f,m)){if(r)return r(f,m).value}else return;return f[m]};return Tf=function d(){var f,m,h,b,y,E,k=arguments[0],w=1,v=arguments.length,N=!1;for(typeof k=="boolean"&&(N=k,k=arguments[1]||{},w=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});w<v;++w)if(f=arguments[w],f!=null)for(m in f)h=c(k,m),b=c(f,m),k!==b&&(N&&b&&(s(b)||(y=a(b)))?(y?(y=!1,E=h&&a(h)?h:[]):E=h&&s(h)?h:{},o(k,{name:m,newValue:d(N,E,b)})):typeof b<"u"&&o(k,{name:m,newValue:b}));return k},Tf}var Az=Nz();const Nf=Sc(Az);function Am(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Iz(){const e=[],t={run:n,use:r};return t;function n(...a){let s=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...a);function c(d,...f){const m=e[++s];let h=-1;if(d){o(d);return}for(;++h<a.length;)(f[h]===null||f[h]===void 0)&&(f[h]=a[h]);a=f,m?Cz(m,c)(...f):o(null,...f)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Cz(e,t){let n;return r;function r(...o){const c=e.length>o.length;let d;c&&o.push(a);try{d=e.apply(this,o)}catch(f){const m=f;if(c&&n)throw m;return a(m)}c||(d&&d.then&&typeof d.then=="function"?d.then(s,a):d instanceof Error?a(d):s(d))}function a(o,...c){n||(n=!0,t(o,...c))}function s(o){a(null,o)}}const wr={basename:Rz,dirname:_z,extname:Oz,join:Lz,sep:"/"};function Rz(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');tl(e);let n=0,r=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else r<0&&(s=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else o<0&&(s=!0,o=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function _z(e){if(tl(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Oz(e){tl(e);let t=e.length,n=-1,r=0,a=-1,s=0,o;for(;t--;){const c=e.codePointAt(t);if(c===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),c===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||n<0||s===0||s===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Lz(...e){let t=-1,n;for(;++t<e.length;)tl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Dz(n)}function Dz(e){tl(e);const t=e.codePointAt(0)===47;let n=Mz(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Mz(e,t){let n="",r=0,a=-1,s=0,o=-1,c,d;for(;++o<=e.length;){if(o<e.length)c=e.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(a===o-1||s===1))if(a!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=o,s=0;continue}}else if(n.length>0){n="",r=0,a=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,s=0}else c===46&&s>-1?s++:s=-1}return n}function tl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const jz={cwd:Fz};function Fz(){return"/"}function Im(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Pz(e){if(typeof e=="string")e=new URL(e);else if(!Im(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Bz(e)}function Bz(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Af=["history","path","basename","stem","extname","dirname"];class ZC{constructor(t){let n;t?Im(t)?n={path:t}:typeof t=="string"||Uz(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":jz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Af.length;){const s=Af[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let a;for(a in n)Af.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?wr.basename(this.path):void 0}set basename(t){Cf(t,"basename"),If(t,"basename"),this.path=wr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?wr.dirname(this.path):void 0}set dirname(t){LT(this.basename,"dirname"),this.path=wr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?wr.extname(this.path):void 0}set extname(t){if(If(t,"extname"),LT(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Im(t)&&(t=Pz(t)),Cf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?wr.basename(this.path,this.extname):void 0}set stem(t){Cf(t,"stem"),If(t,"stem"),this.path=wr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new nn(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function If(e,t){if(e&&e.includes(wr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wr.sep+"`")}function Cf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function LT(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Uz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $z=(function(e){const r=this.constructor.prototype,a=r[e],s=function(){return a.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),zz={}.hasOwnProperty;class Qh extends $z{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=Iz()}copy(){const t=new Qh;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Nf(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Of("data",this.frozen),this.namespace[t]=n,this):zz.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Of("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Au(t),r=this.parser||this.Parser;return Rf("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Rf("process",this.parser||this.Parser),_f("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(s,o){const c=Au(t),d=r.parse(c);r.run(d,c,function(m,h,b){if(m||!h||!b)return f(m);const y=h,E=r.stringify(y,b);Vz(E)?b.value=E:b.result=E,f(m,b)});function f(m,h){m||!h?o(m):s?s(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),Rf("processSync",this.parser||this.Parser),_f("processSync",this.compiler||this.Compiler),this.process(t,a),MT("processSync","process",n),r;function a(s,o){n=!0,_T(s),r=o}}run(t,n,r){DT(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(o,c){const d=Au(n);a.run(t,d,f);function f(m,h,b){const y=h||t;m?c(m):o?o(y):r(void 0,y,b)}}}runSync(t,n){let r=!1,a;return this.run(t,n,s),MT("runSync","run",r),a;function s(o,c){_T(o),a=c,r=!0}}stringify(t,n){this.freeze();const r=Au(n),a=this.compiler||this.Compiler;return _f("stringify",a),DT(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Of("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[m,...h]=f;d(m,h)}else o(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function o(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");c(f.plugins),f.settings&&(a.settings=Nf(!0,a.settings,f.settings))}function c(f){let m=-1;if(f!=null)if(Array.isArray(f))for(;++m<f.length;){const h=f[m];s(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,m){let h=-1,b=-1;for(;++h<r.length;)if(r[h][0]===f){b=h;break}if(b===-1)r.push([f,...m]);else if(m.length>0){let[y,...E]=m;const k=r[b][1];Am(k)&&Am(y)&&(y=Nf(!0,k,y)),r[b]=[f,y,...E]}}}}const Gz=new Qh().freeze();function Rf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _f(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Of(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function DT(e){if(!Am(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function MT(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Au(e){return Hz(e)?e:new ZC(e)}function Hz(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Vz(e){return typeof e=="string"||Wz(e)}function Wz(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jT=[],FT={allowDangerousHtml:!0},Yz=/^(https?|ircs?|mailto|xmpp)$/i,Kz=[{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 ka(e){const t=Xz(e),n=Zz(e);return Qz(t.runSync(t.parse(n),n),e)}function Xz(e){const t=e.rehypePlugins||jT,n=e.remarkPlugins||jT,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...FT}:FT;return Gz().use(_3).use(n).use(Tz,r).use(t)}function Zz(e){const t=e.children||"",n=new ZC;return typeof t=="string"&&(n.value=t),n}function Qz(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,s=t.disallowedElements,o=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||Jz;for(const m of Kz)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+qz+m.id,void 0);return Zh(e,f),m4(e,{Fragment:u.Fragment,components:a,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0});function f(m,h,b){if(m.type==="raw"&&b&&typeof h=="number")return o?b.children.splice(h,1):b.children[h]={type:"text",value:m.value},h;if(m.type==="element"){let y;for(y in vf)if(Object.hasOwn(vf,y)&&Object.hasOwn(m.properties,y)){const E=m.properties[y],k=vf[y];(k===null||k.includes(m.tagName))&&(m.properties[y]=d(String(E||""),y,m))}}if(m.type==="element"){let y=n?!n.includes(m.tagName):s?s.includes(m.tagName):!1;if(!y&&r&&typeof h=="number"&&(y=!r(m,h,b)),y&&b&&typeof h=="number")return c&&m.children?b.children.splice(h,1,...m.children):b.children.splice(h,1),h}}}function Jz(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||Yz.test(e.slice(0,t))?e:""}function eG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tG(e,t){if(e==null)return{};var n,r,a=eG(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Cm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nG(e){if(Array.isArray(e))return Cm(e)}function rG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aG(e,t){if(e){if(typeof e=="string")return Cm(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cm(e,t):void 0}}function iG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
352
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rm(e){return nG(e)||rG(e)||aG(e)||iG()}function Bo(e){"@babel/helpers - typeof";return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(e)}function sG(e,t){if(Bo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oG(e){var t=sG(e,"string");return Bo(t)=="symbol"?t:t+""}function QC(e,t,n){return(t=oG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _m(){return _m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_m.apply(null,arguments)}function PT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(n),!0).forEach(function(r){QC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lG(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===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(t>=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 Lf={};function uG(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Lf[t]||(Lf[t]=lG(e)),Lf[t]}function cG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(s){return s!=="token"}),a=uG(r);return a.reduce(function(s,o){return Yi(Yi({},s),n[o])},t)}function BT(e){return e.join(" ")}function dG(e,t){var n=0;return function(r){return n+=1,r.map(function(a,s){return JC({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(s)})})}}function JC(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,s=e.useInlineStyles,o=e.key,c=t.properties,d=t.type,f=t.tagName,m=t.value;if(d==="text")return m;if(f){var h=dG(n,s),b;if(!s)b=Yi(Yi({},c),{},{className:BT(c.className)});else{var y=Object.keys(n).reduce(function(v,N){return N.split(".").forEach(function(A){v.includes(A)||v.push(A)}),v},[]),E=c.className&&c.className.includes("token")?["token"]:[],k=c.className&&E.concat(c.className.filter(function(v){return!y.includes(v)}));b=Yi(Yi({},c),{},{className:BT(k)||void 0,style:cG(c.className,Object.assign({},c.style,a),n)})}var w=h(t.children);return me.createElement(f,_m({key:o},b),w)}}const pG=(function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1});var fG=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function UT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UT(Object(n),!0).forEach(function(r){QC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mG=/\n/g;function hG(e){return e.match(mG)}function gG(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(a,s){var o=s+n;return me.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(o):r},"".concat(o,`
|
|
353
|
-
`))})}function bG(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,a=r===void 0?{float:"left",paddingRight:"10px"}:r,s=e.numberStyle,o=s===void 0?{}:s,c=e.startingLineNumber;return me.createElement("code",{style:Object.assign({},n,a)},gG({lines:t.replace(/\n$/,"").split(`
|
|
354
|
-
`),style:o,startingLineNumber:c}))}function yG(e){return"".concat(e.toString().length,".25em")}function eR(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function tR(e,t,n){var r={display:"inline-block",minWidth:yG(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,s=Sa(Sa({},r),a);return s}function qu(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,s=e.showInlineLineNumbers,o=e.lineProps,c=o===void 0?{}:o,d=e.className,f=d===void 0?[]:d,m=e.showLineNumbers,h=e.wrapLongLines,b=e.wrapLines,y=b===void 0?!1:b,E=y?Sa({},typeof c=="function"?c(n):c):{};if(E.className=E.className?[].concat(Rm(E.className.trim().split(/\s+/)),Rm(f)):f,n&&s){var k=tR(r,n,a);t.unshift(eR(n,k))}return h&m&&(E.style=Sa({display:"flex"},E.style)),{type:"element",tagName:"span",properties:E,children:t}}function nR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var r=0;r<e.length;r++){var a=e[r];if(a.type==="text")n.push(qu({children:[a],className:Rm(new Set(t))}));else if(a.children){var s,o=t.concat(((s=a.properties)===null||s===void 0?void 0:s.className)||[]);nR(a.children,o).forEach(function(c){return n.push(c)})}}return n}function xG(e,t,n,r,a,s,o,c,d){var f,m=nR(e.value),h=[],b=-1,y=0;function E(M,D){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return qu({children:M,lineNumber:D,lineNumberStyle:c,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:R,showLineNumbers:r,wrapLongLines:d,wrapLines:t})}function k(M,D){if(r&&D&&a){var R=tR(c,D,o);M.unshift(eR(D,R))}return M}function w(M,D){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||R.length>0?E(M,D,R):k(M,D)}for(var v=function(){var D=m[y],R=D.children[0].value,P=hG(R);if(P){var B=R.split(`
|
|
355
|
-
`);B.forEach(function(O,$){var H=r&&h.length+s,Z={type:"text",value:"".concat(O,`
|
|
356
|
-
`)};if($===0){var q=m.slice(b+1,y).concat(qu({children:[Z],className:D.properties.className})),Y=w(q,H);h.push(Y)}else if($===B.length-1){var ae=m[y+1]&&m[y+1].children&&m[y+1].children[0],J={type:"text",value:"".concat(O)};if(ae){var W=qu({children:[J],className:D.properties.className});m.splice(y+1,0,W)}else{var re=[J],C=w(re,H,D.properties.className);h.push(C)}}else{var F=[Z],K=w(F,H,D.properties.className);h.push(K)}}),b=y}y++};y<m.length;)v();if(b!==m.length-1){var N=m.slice(b+1,m.length);if(N&&N.length){var A=r&&h.length+s,_=w(N,A);h.push(_)}}return t?h:(f=[]).concat.apply(f,h)}function EG(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(a,s){return JC({node:a,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(s)})})}function rR(e){return e&&typeof e.highlightAuto<"u"}function SG(e){var t=e.astGenerator,n=e.language,r=e.code,a=e.defaultCodeValue;if(rR(t)){var s=pG(t,n);return n==="text"?{value:a,language:"text"}:s?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:a}}catch{return{value:a}}}function vG(e,t){return function(r){var a,s,o=r.language,c=r.children,d=r.style,f=d===void 0?t:d,m=r.customStyle,h=m===void 0?{}:m,b=r.codeTagProps,y=b===void 0?{className:o?"language-".concat(o):void 0,style:Sa(Sa({},f['code[class*="language-"]']),f['code[class*="language-'.concat(o,'"]')])}:b,E=r.useInlineStyles,k=E===void 0?!0:E,w=r.showLineNumbers,v=w===void 0?!1:w,N=r.showInlineLineNumbers,A=N===void 0?!0:N,_=r.startingLineNumber,M=_===void 0?1:_,D=r.lineNumberContainerStyle,R=r.lineNumberStyle,P=R===void 0?{}:R,B=r.wrapLines,O=r.wrapLongLines,$=O===void 0?!1:O,H=r.lineProps,Z=H===void 0?{}:H,q=r.renderer,Y=r.PreTag,ae=Y===void 0?"pre":Y,J=r.CodeTag,W=J===void 0?"code":J,re=r.code,C=re===void 0?(Array.isArray(c)?c[0]:c)||"":re,F=r.astGenerator,K=tG(r,fG);F=F||e;var j=v?me.createElement(bG,{containerStyle:D,codeStyle:y.style||{},numberStyle:P,startingLineNumber:M,codeString:C}):null,fe=f.hljs||f['pre[class*="language-"]']||{backgroundColor:"#fff"},Ne=rR(F)?"hljs":"prismjs",be=k?Object.assign({},K,{style:Object.assign({},fe,h)}):Object.assign({},K,{className:K.className?"".concat(Ne," ").concat(K.className):Ne,style:Object.assign({},h)});if($?y.style=Sa({whiteSpace:"pre-wrap"},y.style):y.style=Sa({whiteSpace:"pre"},y.style),!F)return me.createElement(ae,be,j,me.createElement(W,y,C));(B===void 0&&q||$)&&(B=!0),q=q||EG;var De=[{type:"text",value:C}],ne=SG({astGenerator:F,language:o,code:C,defaultCodeValue:De});ne.language===null&&(ne.value=De);var xe=(a=(s=C.match(/\n/g))===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0,je=M+xe,ze=xG(ne,B,Z,v,A,M,je,P,$);return me.createElement(ae,be,me.createElement(W,y,!A&&j,q({rows:ze,stylesheet:f,useInlineStyles:k})))}}const wG=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","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","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","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","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","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","rescript","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","stata","stylus","supercollider","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","wgsl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],$T=/[#.]/g;function kG(e,t){const n=e||"",r={};let a=0,s,o;for(;a<n.length;){$T.lastIndex=a;const c=$T.exec(n),d=n.slice(a,c?c.index:n.length);d&&(s?s==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:o=d,a+=d.length),c&&(s=c[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function aR(e,t,n){const r=n?IG(n):void 0;function a(s,o,...c){let d;if(s==null){d={type:"root",children:[]};const f=o;c.unshift(f)}else{d=kG(s,t);const f=d.tagName.toLowerCase(),m=r?r.get(f):void 0;if(d.tagName=m||f,TG(o))c.unshift(o);else for(const[h,b]of Object.entries(o))NG(e,d.properties,h,b)}for(const f of c)Om(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function TG(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const s=a;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function NG(e,t,n,r){const a=vC(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=iT(r):a.commaSeparated?s=eT(r):a.commaOrSpaceSeparated?s=iT(eT(r).join(" ")):s=zT(a,a.property,r):Array.isArray(r)?s=[...r]:s=a.property==="style"?AG(r):String(r);if(Array.isArray(s)){const o=[];for(const c of s)o.push(zT(a,a.property,c));s=o}a.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function Om(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Om(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Om(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function zT(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||jo(n)===jo(t)))return!0}return n}function AG(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function IG(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const CG=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],RG=aR(wC,"div");aR(jc,"g",CG);const _G=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],GT={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:"Ÿ"};function iR(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function OG(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function LG(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function HT(e){return LG(e)||iR(e)}const DG=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function MG(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,a=[];let s=0,o=-1,c="",d,f;n.position&&("start"in n.position||"indent"in n.position?(f=n.position.indent,d=n.position.start):d=n.position);let m=(d?d.line:0)||1,h=(d?d.column:0)||1,b=E(),y;for(s--;++s<=e.length;)if(y===10&&(h=(f?f[o]:0)||1),y=e.charCodeAt(s),y===38){const v=e.charCodeAt(s+1);if(v===9||v===10||v===12||v===32||v===38||v===60||Number.isNaN(v)||r&&v===r){c+=String.fromCharCode(y),h++;continue}const N=s+1;let A=N,_=N,M;if(v===35){_=++A;const Z=e.charCodeAt(_);Z===88||Z===120?(M="hexadecimal",_=++A):M="decimal"}else M="named";let D="",R="",P="";const B=M==="named"?HT:M==="decimal"?iR:OG;for(_--;++_<=e.length;){const Z=e.charCodeAt(_);if(!B(Z))break;P+=String.fromCharCode(Z),M==="named"&&_G.includes(P)&&(D=P,R=Po(P))}let O=e.charCodeAt(_)===59;if(O){_++;const Z=M==="named"?Po(P):!1;Z&&(D=P,R=Z)}let $=1+_-N,H="";if(!(!O&&n.nonTerminated===!1))if(!P)M!=="named"&&k(4,$);else if(M==="named"){if(O&&!R)k(5,1);else if(D!==P&&(_=A+D.length,$=1+_-A,O=!1),!O){const Z=D?1:3;if(n.attribute){const q=e.charCodeAt(_);q===61?(k(Z,$),R=""):HT(q)?R="":k(Z,$)}else k(Z,$)}H=R}else{O||k(2,$);let Z=Number.parseInt(P,M==="hexadecimal"?16:10);if(jG(Z))k(7,$),H="�";else if(Z in GT)k(6,$),H=GT[Z];else{let q="";FG(Z)&&k(6,$),Z>65535&&(Z-=65536,q+=String.fromCharCode(Z>>>10|55296),Z=56320|Z&1023),H=q+String.fromCharCode(Z)}}if(H){w(),b=E(),s=_-1,h+=_-N+1,a.push(H);const Z=E();Z.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,H,{start:b,end:Z},e.slice(N-1,_)),b=Z}else P=e.slice(N-1,_),c+=P,h+=P.length,s=_-1}else y===10&&(m++,o++,h=0),Number.isNaN(y)?w():(c+=String.fromCharCode(y),h++);return a.join("");function E(){return{line:m,column:h,offset:s+((d?d.offset:0)||0)}}function k(v,N){let A;n.warning&&(A=E(),A.column+=N,A.offset+=N,n.warning.call(n.warningContext||void 0,DG[v],A,v))}function w(){c&&(a.push(c),n.text&&n.text.call(n.textContext||void 0,c,{start:b,end:E()}),c="")}}function jG(e){return e>=55296&&e<=57343||e>1114111}function FG(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var PG=0,Iu={},Gt={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++PG}),e.__id},clone:function e(t,n){n=n||{};var r,a;switch(Gt.util.type(t)){case"Object":if(a=Gt.util.objId(t),n[a])return n[a];r={},n[a]=r;for(var s in t)t.hasOwnProperty(s)&&(r[s]=e(t[s],n));return r;case"Array":return a=Gt.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(o,c){r[c]=e(o,n)}),r);default:return t}}},languages:{plain:Iu,plaintext:Iu,text:Iu,txt:Iu,extend:function(e,t){var n=Gt.util.clone(Gt.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Gt.languages;var a=r[e],s={};for(var o in a)if(a.hasOwnProperty(o)){if(o==t)for(var c in n)n.hasOwnProperty(c)&&(s[c]=n[c]);n.hasOwnProperty(o)||(s[o]=a[o])}var d=r[e];return r[e]=s,Gt.languages.DFS(Gt.languages,function(f,m){m===d&&f!=e&&(this[f]=s)}),s},DFS:function e(t,n,r,a){a=a||{};var s=Gt.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var c=t[o],d=Gt.util.type(c);d==="Object"&&!a[s(c)]?(a[s(c)]=!0,e(c,n,null,a)):d==="Array"&&!a[s(c)]&&(a[s(c)]=!0,e(c,n,o,a))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Gt.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Gt.tokenize(r.code,r.grammar),Gt.hooks.run("after-tokenize",r),vo.stringify(Gt.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new BG;return Yu(a,a.head,e),sR(e,a,t,a.head,0),$G(a)},hooks:{all:{},add:function(e,t){var n=Gt.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Gt.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:vo};function vo(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function VT(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var s=a[1].length;a.index+=s,a[0]=a[0].slice(s)}return a}function sR(e,t,n,r,a,s){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var c=n[o];c=Array.isArray(c)?c:[c];for(var d=0;d<c.length;++d){if(s&&s.cause==o+","+d)return;var f=c[d],m=f.inside,h=!!f.lookbehind,b=!!f.greedy,y=f.alias;if(b&&!f.pattern.global){var E=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,E+"g")}for(var k=f.pattern||f,w=r.next,v=a;w!==t.tail&&!(s&&v>=s.reach);v+=w.value.length,w=w.next){var N=w.value;if(t.length>e.length)return;if(!(N instanceof vo)){var A=1,_;if(b){if(_=VT(k,v,e,h),!_||_.index>=e.length)break;var P=_.index,M=_.index+_[0].length,D=v;for(D+=w.value.length;P>=D;)w=w.next,D+=w.value.length;if(D-=w.value.length,v=D,w.value instanceof vo)continue;for(var R=w;R!==t.tail&&(D<M||typeof R.value=="string");R=R.next)A++,D+=R.value.length;A--,N=e.slice(v,D),_.index-=v}else if(_=VT(k,0,N,h),!_)continue;var P=_.index,B=_[0],O=N.slice(0,P),$=N.slice(P+B.length),H=v+N.length;s&&H>s.reach&&(s.reach=H);var Z=w.prev;O&&(Z=Yu(t,Z,O),v+=O.length),UG(t,Z,A);var q=new vo(o,m?Gt.tokenize(B,m):B,y,B);if(w=Yu(t,Z,q),$&&Yu(t,w,$),A>1){var Y={cause:o+","+d,reach:H};sR(e,t,n,w.prev,v,Y),s&&Y.reach>s.reach&&(s.reach=Y.reach)}}}}}}function BG(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Yu(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function UG(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}function $G(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const oR=Gt;function lR(){}lR.prototype=oR;const L=new lR;L.highlight=zG;L.register=GG;L.alias=HG;L.registered=VG;L.listLanguages=WG;L.util.encode=qG;L.Token.stringify=Lm;function zG(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t=="object")n=t;else{if(r=t,typeof r!="string")throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(Object.hasOwn(L.languages,r))n=L.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:oR.highlight.call(L,e,n,r)}}function GG(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(L.languages,e.displayName)||e(L)}function HG(e,t){const n=L.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let a;for(a in r)if(Object.hasOwn(r,a)){const s=r[a],o=typeof s=="string"?[s]:s;let c=-1;for(;++c<o.length;)n[o[c]]=n[a]}}function VG(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn(L.languages,e)}function WG(){const e=L.languages,t=[];let n;for(n in e)Object.hasOwn(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Lm(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const r=[];let a=-1;for(;++a<e.length;)e[a]!==null&&e[a]!==void 0&&e[a]!==""&&r.push(Lm(e[a],t));return r}const n={attributes:{},classes:["token",e.type],content:Lm(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),L.hooks.run("wrap",n),RG(n.tag+"."+n.classes.join("."),YG(n.attributes),n.content)}function qG(e){return e}function YG(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=MG(e[t]));return e}const KG={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"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"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};Yt.displayName="markup";Yt.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Yt(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};s["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:s},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}pi.displayName="css";pi.aliases=[];function pi(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}We.displayName="clike";We.aliases=[];function We(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Jh.displayName="regex";Jh.aliases=[];function Jh(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?: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]|.)/,a={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",c=RegExp(o+"-"+o),d={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.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:c,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":s,escape:r}},"special-escape":n,"char-set":a,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":d}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":d}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}rn.displayName="javascript";rn.aliases=["js"];function rn(e){e.register(We),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}eg.displayName="abap";eg.aliases=[];function eg(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}tg.displayName="abnf";tg.aliases=[];function tg(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}ng.displayName="actionscript";ng.aliases=[];function ng(e){e.register(rn),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}rg.displayName="ada";rg.aliases=[];function rg(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}ag.displayName="agda";ag.aliases=[];function ag(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}ig.displayName="al";ig.aliases=[];function ig(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}sg.displayName="antlr4";sg.aliases=["g4"];function sg(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}og.displayName="apacheconf";og.aliases=[];function og(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}nl.displayName="sql";nl.aliases=[];function nl(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}lg.displayName="apex";lg.aliases=[];function lg(e){e.register(We),e.register(nl),(function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return n.source});function a(o){return RegExp(o.replace(/<CLASS-NAME>/g,function(){return r}),"i")}var s={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:a(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:s},{pattern:a(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:a(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(e)}ug.displayName="apl";ug.aliases=[];function ug(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}cg.displayName="applescript";cg.aliases=[];function cg(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}dg.displayName="aql";dg.aliases=[];function dg(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}_r.displayName="c";_r.aliases=[];function _r(e){e.register(We),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}cs.displayName="cpp";cs.aliases=[];function cs(e){e.register(_r),(function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(e)}pg.displayName="arduino";pg.aliases=["ino"];function pg(e){e.register(cs),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}fg.displayName="arff";fg.aliases=[];function fg(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}mg.displayName="armasm";mg.aliases=["arm-asm"];function mg(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}zc.displayName="bash";zc.aliases=["sh","shell"];function zc(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=a.variable[1].inside,c=0;c<s.length;c++)o[s[c]]=t.languages.bash[s[c]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}Gc.displayName="yaml";Gc.aliases=["yml"];function Gc(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",s=/(?:[^\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}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(d,f){f=(f||"").replace(/m/g,"")+"m";var m=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return d});return RegExp(m,f)}t.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 a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\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:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(o),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}hg.displayName="markdown";hg.aliases=["md"];function hg(e){e.register(Yt),(function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(c){return c=c.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+c+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+o+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+o+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:t.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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<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:r(/!?\[(?:(?!\])<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(c){["url","bold","italic","strike","code-snippet"].forEach(function(d){c!==d&&(t.languages.markdown[c].inside.content.inside[d]=t.languages.markdown[d])})}),t.hooks.add("after-tokenize",function(c){if(c.language!=="markdown"&&c.language!=="md")return;function d(f){if(!(!f||typeof f=="string"))for(var m=0,h=f.length;m<h;m++){var b=f[m];if(b.type!=="code"){d(b.content);continue}var y=b.content[1],E=b.content[3];if(y&&E&&y.type==="code-language"&&E.type==="code-block"&&typeof y.content=="string"){var k=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");k=(/[a-z][\w-]*/i.exec(k)||[""])[0].toLowerCase();var w="language-"+k;E.alias?typeof E.alias=="string"?E.alias=[E.alias,w]:E.alias.push(w):E.alias=[w]}}}d(c.tokens)}),t.hooks.add("wrap",function(c){if(c.type==="code-block"){for(var d="",f=0,m=c.classes.length;f<m;f++){var h=c.classes[f],b=/language-(.+)/.exec(h);if(b){d=b[1];break}}var y=t.languages[d];if(y)c.content=t.highlight(c.content.value,y,d);else if(d&&d!=="none"&&t.plugins.autoloader){var E="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);c.attributes.id=E,t.plugins.autoloader.loadLanguages(d,function(){var k=document.getElementById(E);k&&(k.innerHTML=t.highlight(k.textContent,t.languages[d],d))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown})(e)}gg.displayName="arturo";gg.aliases=["art"];function gg(e){(function(t){var n=function(r,a){return{pattern:RegExp(/\{!/.source+"(?:"+(a||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}bg.displayName="asciidoc";bg.aliases=["adoc"];function bg(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function a(s){s=s.split(" ");for(var o={},c=0,d=s.length;c<d;c++)o[s[c]]=r[s[c]];return o}n.inside.interpreted.inside.rest=a("macro inline replacement entity"),r["passthrough-block"].inside.rest=a("macro"),r["literal-block"].inside.rest=a("callout"),r.table.inside.rest=a("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),r["other-block"].inside.rest=a("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),r.title.inside.rest=a("macro inline replacement entity"),t.hooks.add("wrap",function(s){s.type==="entity"&&(s.attributes.title=s.content.value.replace(/&/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}ds.displayName="csharp";ds.aliases=["cs","dotnet"];function ds(e){e.register(We),(function(t){function n(C,F){return C.replace(/<<(\d+)>>/g,function(K,j){return"(?:"+F[+j]+")"})}function r(C,F,K){return RegExp(n(C,F),"")}function a(C,F){for(var K=0;K<F;K++)C=C.replace(/<<self>>/g,function(){return"(?:"+C+")"});return C.replace(/<<self>>/g,"[^\\s\\S]")}var s={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(C){return"\\b(?:"+C.trim().replace(/ /g,"|")+")\\b"}var c=o(s.typeDeclaration),d=RegExp(o(s.type+" "+s.typeDeclaration+" "+s.contextual+" "+s.other)),f=o(s.typeDeclaration+" "+s.contextual+" "+s.other),m=o(s.type+" "+s.typeDeclaration+" "+s.other),h=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),b=a(/\((?:[^()]|<<self>>)*\)/.source,2),y=/@?\b[A-Za-z_]\w*\b/.source,E=n(/<<0>>(?:\s*<<1>>)?/.source,[y,h]),k=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,E]),w=/\[\s*(?:,\s*)*\]/.source,v=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[k,w]),N=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,b,w]),A=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[N]),_=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,k,w]),M={keyword:d,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,P=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[k]),lookbehind:!0,inside:M},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[y,_]),lookbehind:!0,inside:M},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[y]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[c,E]),lookbehind:!0,inside:M},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[k]),lookbehind:!0,inside:M},{pattern:r(/(\bwhere\s+)<<0>>/.source,[y]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:M},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_,m,y]),inside:M}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[y]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[y]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:M},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_,k]),inside:M,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_]),lookbehind:!0,inside:M,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[y,h]),inside:{function:r(/^<<0>>/.source,[y]),generic:{pattern:RegExp(h),alias:"class-name",inside:M}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,E,y,_,d.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[E,b]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:d,"class-name":{pattern:RegExp(_),greedy:!0,inside:M},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var B=R+"|"+D,O=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[B]),$=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),H=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Z=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[k,$]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[H,Z]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[H]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[$]),inside:t.languages.csharp},"class-name":{pattern:RegExp(k),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,Y=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),ae=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Y,q]),J=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[B]),2),W=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[J,q]);function re(C,F){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[C]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[F,q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ae]),lookbehind:!0,greedy:!0,inside:re(ae,Y)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:re(W,J)}],char:{pattern:RegExp(D),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp})(e)}yg.displayName="aspnet";yg.aliases=[];function yg(e){e.register(ds),e.register(Yt),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}xg.displayName="asm6502";xg.aliases=[];function xg(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}Eg.displayName="asmatmel";Eg.aliases=[];function Eg(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}Sg.displayName="autohotkey";Sg.aliases=[];function Sg(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}vg.displayName="autoit";vg.aliases=[];function vg(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}wg.displayName="avisynth";wg.aliases=["avs"];function wg(e){(function(t){function n(f,m){return f.replace(/<<(\d+)>>/g,function(h,b){return m[+b]})}function r(f,m,h){return RegExp(n(f,m),h)}var a=/bool|clip|float|int|string|val/.source,s=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),c=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),d=[s,o,c].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[d],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[a],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}kg.displayName="avro-idl";kg.aliases=["avdl"];function kg(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}Tg.displayName="awk";Tg.aliases=["gawk"];function Tg(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}Hc.displayName="basic";Hc.aliases=[];function Hc(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Ng.displayName="batch";Ng.aliases=[];function Ng(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,s=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:a,parameter:r,variable:n,number:s,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:a,parameter:r,variable:n,number:s,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:a,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:s,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:s,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}Ag.displayName="bbcode";Ag.aliases=["shortcode"];function Ag(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Ig.displayName="bbj";Ig.aliases=[];function Ig(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}Cg.displayName="bicep";Cg.aliases=[];function Cg(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}Rg.displayName="birb";Rg.aliases=[];function Rg(e){e.register(We),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}_g.displayName="bison";_g.aliases=[];function _g(e){e.register(_r),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Og.displayName="bnf";Og.aliases=["rbnf"];function Og(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}Lg.displayName="bqn";Lg.aliases=[];function Lg(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Dg.displayName="brainfuck";Dg.aliases=[];function Dg(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Mg.displayName="brightscript";Mg.aliases=[];function Mg(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}jg.displayName="bro";jg.aliases=[];function jg(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}Fg.displayName="bsl";Fg.aliases=["oscript"];function Fg(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}Pg.displayName="cfscript";Pg.aliases=["cfc"];function Pg(e){e.register(We),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}Bg.displayName="chaiscript";Bg.aliases=[];function Bg(e){e.register(We),e.register(cs),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Ug.displayName="cil";Ug.aliases=[];function Ug(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}$g.displayName="cilkc";$g.aliases=["cilk-c"];function $g(e){e.register(_r),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}zg.displayName="cilkcpp";zg.aliases=["cilk","cilk-cpp"];function zg(e){e.register(cs),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Gg.displayName="clojure";Gg.aliases=[];function Gg(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Hg.displayName="cmake";Hg.aliases=[];function Hg(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}Vg.displayName="cobol";Vg.aliases=[];function Vg(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Wg.displayName="coffeescript";Wg.aliases=["coffee"];function Wg(e){e.register(rn),(function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(e)}qg.displayName="concurnas";qg.aliases=["conc"];function qg(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Yg.displayName="csp";Yg.aliases=[];function Yg(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}Kg.displayName="cooklang";Kg.aliases=[];function Kg(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,a=/\{[^}#@]*\}/.source,s=r+a,o=/(?:h|hours|hrs|m|min|minutes)/.source,c={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+s+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+s+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":c}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Xg.displayName="coq";Xg.aliases=[];function Xg(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}ps.displayName="ruby";ps.aliases=["rb"];function ps(e){e.register(We),(function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby})(e)}Zg.displayName="crystal";Zg.aliases=[];function Zg(e){e.register(ps),(function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(e)}Qg.displayName="css-extras";Qg.aliases=[];function Qg(e){e.register(pi),(function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?: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|RebeccaPurple|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)(?![\w-])/i,lookbehind:!0},{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:a,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:s})})(e)}Jg.displayName="csv";Jg.aliases=[];function Jg(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}eb.displayName="cue";eb.aliases=[];function eb(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source,a="(?:"+r.replace(/<esc>/g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+a+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}tb.displayName="cypher";tb.aliases=[];function tb(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}nb.displayName="d";nb.aliases=[];function nb(e){e.register(We),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}rb.displayName="dart";rb.aliases=[];function rb(e){e.register(We),(function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(r+/[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:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[a,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(e)}ab.displayName="dataweave";ab.aliases=[];function ab(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}ib.displayName="dax";ib.aliases=[];function ib(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}sb.displayName="dhall";sb.aliases=[];function sb(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}ob.displayName="diff";ob.aliases=[];function ob(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var a=n[r],s=[];/^\w+$/.test(r)||s.push(/\w+/.exec(r)[0]),r==="diff"&&s.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+a+`].*(?:\r
|
|
357
|
-
?|
|
|
358
|
-
|(?![\\s\\S])))+`,"m"),alias:s,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}an.displayName="markup-templating";an.aliases=[];function an(e){e.register(Yt),(function(t){function n(r,a){return"___"+r.toUpperCase()+a+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,a,s,o){if(r.language===a){var c=r.tokenStack=[];r.code=r.code.replace(s,function(d){if(typeof o=="function"&&!o(d))return d;for(var f=c.length,m;r.code.indexOf(m=n(a,f))!==-1;)++f;return c[f]=d,m}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,a){if(r.language!==a||!r.tokenStack)return;r.grammar=t.languages[a];var s=0,o=Object.keys(r.tokenStack);function c(d){for(var f=0;f<d.length&&!(s>=o.length);f++){var m=d[f];if(typeof m=="string"||m.content&&typeof m.content=="string"){var h=o[s],b=r.tokenStack[h],y=typeof m=="string"?m:m.content,E=n(a,h),k=y.indexOf(E);if(k>-1){++s;var w=y.substring(0,k),v=new t.Token(a,t.tokenize(b,r.grammar),"language-"+a,b),N=y.substring(k+E.length),A=[];w&&A.push.apply(A,c([w])),A.push(v),N&&A.push.apply(A,c([N])),typeof m=="string"?d.splice.apply(d,[f,1].concat(A)):m.content=A}}else m.content&&c(m.content)}return d}c(r.tokens)}}})})(e)}lb.displayName="django";lb.aliases=["jinja2"];function lb(e){e.register(an),(function(t){t.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 n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"django",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"jinja2",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"jinja2")})})(e)}ub.displayName="dns-zone-file";ub.aliases=["dns-zone"];function ub(e){e.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:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}cb.displayName="docker";cb.aliases=["dockerfile"];function cb(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,s=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return a}),o={pattern:RegExp(a),greedy:!0},c={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function d(f,m){return f=f.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return r}),RegExp(f,m)}t.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:d(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:d(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:c,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:c},t.languages.dockerfile=t.languages.docker})(e)}db.displayName="dot";db.aliases=["gv"];function db(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function a(s,o){return RegExp(s.replace(/<ID>/g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:a(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:a(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:a(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},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:a(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}pb.displayName="ebnf";pb.aliases=[];function pb(e){e.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:/[-=|*/!]/}}fb.displayName="editorconfig";fb.aliases=[];function fb(e){e.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:/^=/}}}}mb.displayName="eiffel";mb.aliases=[];function mb(e){e.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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}hb.displayName="ejs";hb.aliases=["eta"];function hb(e){e.register(rn),e.register(an),(function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs})(e)}gb.displayName="elixir";gb.aliases=[];function gb(e){e.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:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}bb.displayName="elm";bb.aliases=[];function bb(e){e.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:/[{}[\]|(),.:]/}}Vc.displayName="lua";Vc.aliases=[];function Vc(e){e.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:/[\[\](){},;]|\.+|:+/}}yb.displayName="etlua";yb.aliases=[];function yb(e){e.register(Vc),e.register(an),(function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})})(e)}xb.displayName="erb";xb.aliases=[];function xb(e){e.register(an),e.register(ps),(function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})})(e)}Eb.displayName="erlang";Eb.aliases=[];function Eb(e){e.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|begin|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:/[()[\]{}:;,.#|]|<<|>>/}}Sb.displayName="excel-formula";Sb.aliases=["xls","xlsx"];function Sb(e){e.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:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",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:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}vb.displayName="fsharp";vb.aliases=[];function vb(e){e.register(We),e.languages.fsharp=e.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}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.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"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.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:e.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}})}wb.displayName="factor";wb.aliases=[];function wb(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},a={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],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:r.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:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"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:r}},s=function(f){return(f+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(f){return new RegExp("(^|\\s)(?:"+f.map(s).join("|")+")(?=\\s|$)")},c={"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(c).forEach(function(f){a[f].pattern=o(c[f])});var d=["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"];a.combinators.pattern=o(d),t.languages.factor=a})(e)}kb.displayName="false";kb.aliases=[];function kb(e){(function(t){t.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"}}})(e)}Tb.displayName="firestore-security-rules";Tb.aliases=[];function Tb(e){e.register(We),e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.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:/,/}}})}Nb.displayName="flow";Nb.aliases=[];function Nb(e){e.register(rn),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.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 t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.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})})(e)}Ab.displayName="fortran";Ab.aliases=[];function Ab(e){e.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:/\(\/|\/\)|[(),;:&]/}}Ib.displayName="ftl";Ib.aliases=[];function Ib(e){e.register(an),(function(t){for(var n=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var a={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return n})),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:/[,;.:()[\]{}]/};a.string[1].inside.interpolation.inside.rest=a,t.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:a}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}}},t.hooks.add("before-tokenize",function(s){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(s,"ftl",o)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})})(e)}Cb.displayName="gml";Cb.aliases=["gamemakerlanguage"];function Cb(e){e.register(We),e.languages.gamemakerlanguage=e.languages.gml=e.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/})}Rb.displayName="gap";Rb.aliases=[];function Rb(e){e.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:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}_b.displayName="gcode";_b.aliases=[];function _b(e){e.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:/[:*]/}}Ob.displayName="gdscript";Ob.aliases=[];function Ob(e){e.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:/[.:,;()[\]{}]/}}Lb.displayName="gedcom";Lb.aliases=[];function Lb(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}Db.displayName="gettext";Db.aliases=["po"];function Db(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}Mb.displayName="gherkin";Mb.aliases=[];function Mb(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.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("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),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"}}})(e)}jb.displayName="git";jb.aliases=[];function jb(e){e.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}}Fb.displayName="glsl";Fb.aliases=[];function Fb(e){e.register(_r),e.languages.glsl=e.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/})}Pb.displayName="gn";Pb.aliases=["gni"];function Pb(e){e.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:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}Bb.displayName="linker-script";Bb.aliases=["ld"];function Bb(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}Ub.displayName="go";Ub.aliases=[];function Ub(e){e.register(We),e.languages.go=e.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/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}$b.displayName="go-module";$b.aliases=["go-mod"];function $b(e){e.languages["go-mod"]=e.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:/[()[\],]/}}zb.displayName="gradle";zb.aliases=[];function zb(e){e.register(We),(function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle})(e)}Gb.displayName="graphql";Gb.aliases=[];function Gb(e){e.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:e.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+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),a=0;function s(w){return r[a+w]}function o(w,v){v=v||0;for(var N=0;N<w.length;N++){var A=s(N+v);if(!A||A.type!==w[N])return!1}return!0}function c(w,v){for(var N=1,A=a;A<r.length;A++){var _=r[A],M=_.content;if(_.type==="punctuation"&&typeof M=="string"){if(w.test(M))N++;else if(v.test(M)&&(N--,N===0))return A}}return-1}function d(w,v){var N=w.alias;N?Array.isArray(N)||(w.alias=N=[N]):w.alias=N=[],N.push(v)}for(;a<r.length;){var f=r[a++];if(f.type==="keyword"&&f.content==="mutation"){var m=[];if(o(["definition-mutation","punctuation"])&&s(1).content==="("){a+=2;var h=c(/^\($/,/^\)$/);if(h===-1)continue;for(;a<h;a++){var b=s(0);b.type==="variable"&&(d(b,"variable-input"),m.push(b.content))}a=h+1}if(o(["punctuation","property-query"])&&s(0).content==="{"&&(a++,d(s(0),"property-mutation"),m.length>0)){var y=c(/^\{$/,/^\}$/);if(y===-1)continue;for(var E=a;E<y;E++){var k=r[E];k.type==="variable"&&m.indexOf(k.content)>=0&&d(k,"variable-input")}}}}})}Hb.displayName="groovy";Hb.aliases=[];function Hb(e){e.register(We),(function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,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:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy})(e)}Vb.displayName="less";Vb.aliases=[];function Vb(e){e.register(pi),e.languages.less=e.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:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Wb.displayName="scss";Wb.aliases=[];function Wb(e){e.register(pi),e.languages.scss=e.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]+\}/}}}),e.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}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.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}}),e.languages.scss.atrule.inside.rest=e.languages.scss}qb.displayName="textile";qb.aliases=[];function qb(e){e.register(Yt),(function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function a(h,b){return RegExp(h.replace(/<MOD>/g,function(){return"(?:"+n+")"}).replace(/<PAR>/g,function(){return"(?:"+r+")"}),b||"")}var s={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:a(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:a(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:s},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:s},punctuation:/^[*#]+/}},table:{pattern:a(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:a(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:s},punctuation:/\||^\./}},inline:{pattern:a(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:a(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:a(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:a(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:a(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:a(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:a(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:a(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:a(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:s},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:a(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:a(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:a(/(^")<MOD>+/.source),lookbehind:!0,inside:s},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:a(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:a(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:a(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:s},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:/[()]/}}}}}),c=o.phrase.inside,d={inline:c.inline,link:c.link,image:c.image,footnote:c.footnote,acronym:c.acronym,mark:c.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var f=c.inline.inside;f.bold.inside=d,f.italic.inside=d,f.inserted.inside=d,f.deleted.inside=d,f.span.inside=d;var m=c.table.inside;m.inline=d.inline,m.link=d.link,m.image=d.image,m.footnote=d.footnote,m.acronym=d.acronym,m.mark=d.mark})(e)}Yb.displayName="haml";Yb.aliases=[];function Yb(e){e.register(ps),(function(t){t.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:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.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:t.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:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],a={},s=0,o=r.length;s<o;s++){var c=r[s];c=typeof c=="string"?{filter:c,language:c}:c,t.languages[c.language]&&(a["filter-"+c.filter]={pattern:RegExp(n.replace("{{filter_name}}",function(){return c.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[c.language,"language-"+c.language],inside:t.languages[c.language]}}})}t.languages.insertBefore("haml","filter",a)})(e)}Kb.displayName="handlebars";Kb.aliases=["hbs","mustache"];function Kb(e){e.register(an),(function(t){t.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]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars})(e)}rl.displayName="haskell";rl.aliases=["hs"];function rl(e){e.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:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Xb.displayName="haxe";Xb.aliases=[];function Xb(e){e.register(We),e.languages.haxe=e.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}|[-+*/%!=&|^])=?|[?:~]/}),e.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:e.languages.haxe}}},string:/[\s\S]+/}}}),e.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:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Zb.displayName="hcl";Zb.aliases=[];function Zb(e){e.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:/[=\[\]{}]/}}Qb.displayName="hlsl";Qb.aliases=[];function Qb(e){e.register(_r),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.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/})}Jb.displayName="hoon";Jb.aliases=[];function Jb(e){e.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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}ey.displayName="hpkp";ey.aliases=[];function ey(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}ty.displayName="hsts";ty.aliases=[];function ty(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}al.displayName="json";al.aliases=["webmanifest"];function al(e){e.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"}},e.languages.webmanifest=e.languages.json}ny.displayName="uri";ny.aliases=["url"];function ny(e){e.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":/\//}}},e.languages.url=e.languages.uri}ry.displayName="http";ry.aliases=[];function ry(e){(function(t){function n(m){return RegExp("(^(?:"+m+"):[ ]*(?![ ]))[^]+","i")}t.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:t.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:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,a={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},s={"application/json":!0,"application/xml":!0};function o(m){var h=m.replace(/^[a-z]+\//,""),b="\\w+/(?:[\\w.-]+\\+)+"+h+"(?![+\\w.-])";return"(?:"+m+"|"+b+")"}var c;for(var d in a)if(a[d]){c=c||{};var f=s[d]?o(d):d;c[d.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+f+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[d]}}c&&t.languages.insertBefore("http","header",c)})(e)}ay.displayName="ichigojam";ay.aliases=[];function ay(e){e.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:/[\[,;:()\]]/}}iy.displayName="icon";iy.aliases=[];function iy(e){e.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:/[\[\](){},;]/}}sy.displayName="icu-message-format";sy.aliases=[];function sy(e){(function(t){function n(d,f){return f<=0?/[]/.source:d.replace(/<SELF>/g,function(){return n(d,f-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},s={pattern:r,greedy:!0,inside:{escape:a}},o=n(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return r.source}),8),c={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),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":c,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":c,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+n(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:a,string:s},c.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}oy.displayName="idris";oy.aliases=["idr"];function oy(e){e.register(rl),e.languages.idris=e.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}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}ly.displayName="ignore";ly.aliases=["gitignore","hgignore","npmignore"];function ly(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}uy.displayName="inform7";uy.aliases=[];function uy(e){e.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:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}cy.displayName="ini";cy.aliases=[];function cy(e){e.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:/=/}}dy.displayName="io";dy.aliases=[];function dy(e){e.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:/[{}[\];(),.:]/}}py.displayName="j";py.aliases=[];function py(e){e.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:/[()]/}}fs.displayName="java";fs.aliases=[];function fs(e){e.register(We),(function(t){var n=/\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(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(/(^|[^\w.])/.source+r+/[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:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:a.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[t.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},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.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":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:a.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:a.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],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 n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}ms.displayName="php";ms.aliases=[];function ms(e){e.register(an),(function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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*\()/],a=/\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,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,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|never|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|never|new|or|parent|print|private|protected|public|readonly|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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:s,punctuation:o};var c={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},d=[{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:c}},{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:c}}];t.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:d,"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:r,number:a,operator:s,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(f){if(/<\?/.test(f.code)){var m=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(f,"php",m)}}),t.hooks.add("after-tokenize",function(f){t.languages["markup-templating"].tokenizePlaceholders(f,"php")})})(e)}hs.displayName="javadoclike";hs.aliases=[];function hs(e){(function(t){var n=t.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 r(s,o){var c="doc-comment",d=t.languages[s];if(d){var f=d[c];if(!f){var m={};m[c]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},d=t.languages.insertBefore(s,"comment",m),f=d[c]}if(f instanceof RegExp&&(f=d[c]={pattern:f}),Array.isArray(f))for(var h=0,b=f.length;h<b;h++)f[h]instanceof RegExp&&(f[h]={pattern:f[h]}),o(f[h]);else o(f)}}function a(s,o){typeof s=="string"&&(s=[s]),s.forEach(function(c){r(c,function(d){d.inside||(d.inside={}),d.inside.rest=o})})}Object.defineProperty(n,"addSupport",{value:a}),n.addSupport(["java","javascript","php"],n)})(e)}fy.displayName="scala";fy.aliases=[];function fy(e){e.register(fs),e.languages.scala=e.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|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|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*/}),e.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:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}my.displayName="javadoc";my.aliases=[];function my(e){e.register(fs),e.register(hs),e.register(Yt),(function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,a=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+a+")"),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:t.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:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)})(e)}hy.displayName="javastacktrace";hy.aliases=[];function hy(e){e.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/}}}}gy.displayName="jexl";gy.aliases=[];function gy(e){e.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:/[{}[\](),.]/}}by.displayName="jolie";by.aliases=[];function by(e){e.register(We),e.languages.jolie=e.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/}),e.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]*:)/}})}yy.displayName="jq";yy.aliases=[];function yy(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},s=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:r,lookbehind:!0,greedy:!0,inside:a},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"}};a.interpolation.inside.content.inside=s})(e)}xy.displayName="js-templates";xy.aliases=[];function xy(e){e.register(rn),(function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,a=n.inside.interpolation,s=a.inside["interpolation-punctuation"],o=a.pattern.source;function c(E,k){if(t.languages[E])return{pattern:RegExp("((?:"+k+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:E}}}}t.languages.javascript["template-string"]=[c("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),c("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),c("svg",/\bsvg/.source),c("markdown",/\b(?:markdown|md)/.source),c("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),c("sql",/\bsql/.source),n].filter(Boolean);function d(E,k){return"___"+k.toUpperCase()+"_"+E+"___"}function f(E,k,w){var v={code:E,grammar:k,language:w};return t.hooks.run("before-tokenize",v),v.tokens=t.tokenize(v.code,v.grammar),t.hooks.run("after-tokenize",v),v.tokens}function m(E){var k={};k["interpolation-punctuation"]=s;var w=t.tokenize(E,k);if(w.length===3){var v=[1,1];v.push.apply(v,f(w[1],t.languages.javascript,"javascript")),w.splice.apply(w,v)}return new t.Token("interpolation",w,a.alias,E)}function h(E,k,w){var v=t.tokenize(E,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),N=0,A={},_=v.map(function(P){if(typeof P=="string")return P;for(var B=P.content,O;E.indexOf(O=d(N++,w))!==-1;);return A[O]=B,O}).join(""),M=f(_,k,w),D=Object.keys(A);N=0;function R(P){for(var B=0;B<P.length;B++){if(N>=D.length)return;var O=P[B];if(typeof O=="string"||typeof O.content=="string"){var $=D[N],H=typeof O=="string"?O:O.content,Z=H.indexOf($);if(Z!==-1){++N;var q=H.substring(0,Z),Y=m(A[$]),ae=H.substring(Z+$.length),J=[];if(q&&J.push(q),J.push(Y),ae){var W=[ae];R(W),J.push.apply(J,W)}typeof O=="string"?(P.splice.apply(P,[B,1].concat(J)),B+=J.length-1):O.content=J}}else{var re=O.content;Array.isArray(re)?R(re):R([re])}}}return R(M),new t.Token(w,M,"language-"+w,E)}var b={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(E){if(!(E.language in b))return;function k(w){for(var v=0,N=w.length;v<N;v++){var A=w[v];if(typeof A!="string"){var _=A.content;if(!Array.isArray(_)){typeof _!="string"&&k([_]);continue}if(A.type==="template-string"){var M=_[1];if(_.length===3&&typeof M!="string"&&M.type==="embedded-code"){var D=y(M),R=M.alias,P=Array.isArray(R)?R[0]:R,B=t.languages[P];if(!B)continue;_[1]=h(D,B,P)}}else k(_)}}}k(E.tokens)});function y(E){return typeof E=="string"?E:Array.isArray(E)?E.map(y).join(""):y(E.content)}})(e)}il.displayName="typescript";il.aliases=["ts"];function il(e){e.register(rn),(function(t){t.languages.typescript=t.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/}),t.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 t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.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:n}}}}),t.languages.ts=t.languages.typescript})(e)}Ey.displayName="jsdoc";Ey.aliases=[];function Ey(e){e.register(hs),e.register(rn),e.register(il),(function(t){var n=t.languages.javascript,r=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+r+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\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:n,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 r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.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:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(e)}Sy.displayName="n4js";Sy.aliases=["n4jsd"];function Sy(e){e.register(rn),e.languages.n4js=e.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/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}vy.displayName="js-extras";vy.aliases=[];function vy(e){e.register(rn),(function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.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 n(d,f){return RegExp(d.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.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"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\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 r=["function","function-variable","method","method-variable","property-access"],a=0;a<r.length;a++){var s=r[a],o=t.languages.javascript[s];t.util.type(o)==="RegExp"&&(o=t.languages.javascript[s]={pattern:o});var c=o.inside||{};o.inside=c,c["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}wy.displayName="json5";wy.aliases=[];function wy(e){e.register(al),(function(t){var n=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(n.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:n,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(e)}ky.displayName="jsonp";ky.aliases=[];function ky(e){e.register(al),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}Ty.displayName="jsstacktrace";Ty.aliases=[];function Ty(e){e.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:/:/}}}}}}Ny.displayName="julia";Ny.aliases=[];function Ny(e){e.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|[πℯ]/}}Ay.displayName="keepalived";Ay.aliases=[];function Ay(e){e.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:/[\{\}]/}}Iy.displayName="keyman";Iy.aliases=[];function Iy(e){e.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|newcontext|nomatch|postkeystroke|readonly|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:/[()=,]/}}Cy.displayName="kotlin";Cy.aliases=["kt","kts"];function Cy(e){e.register(We),(function(t){t.languages.kotlin=t.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 t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(e)}Ry.displayName="kumir";Ry.aliases=["kum"];function Ry(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(a,s){return RegExp(a.replace(/<nonId>/g,n),s)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}_y.displayName="kusto";_y.aliases=[];function _y(e){e.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:/[()\[\]{},;.:]/}}Oy.displayName="latex";Oy.aliases=["context","tex"];function Oy(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.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:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,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:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}Ly.displayName="latte";Ly.aliases=[];function Ly(e){e.register(We),e.register(an),e.register(ms),(function(t){t.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:t.languages.php}};var n=t.languages.extend("markup",{});t.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:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var a=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",a),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})})(e)}sl.displayName="scheme";sl.aliases=[];function sl(e){(function(t){t.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(n({"<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 n(r){for(var a in r)r[a]=r[a].replace(/<[\w\s]+>/g,function(s){return"(?:"+r[s].trim()+")"});return r[a]}})(e)}Dy.displayName="lilypond";Dy.aliases=["ly"];function Dy(e){e.register(sl),(function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,r=5,a=0;a<r;a++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var s=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return n}),"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:t.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/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,t.languages.ly=s})(e)}My.displayName="liquid";My.aliases=[];function My(e){e.register(an),e.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"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(a){var s=/^\{%-?\s*(\w+)/.exec(a);if(s){var o=s[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}jy.displayName="lisp";jy.aliases=["elisp","emacs","emacs-lisp"];function jy(e){(function(t){function n(E){return RegExp(/(\()/.source+"(?:"+E+")"+/(?=[\s\)])/.source)}function r(E){return RegExp(/([\s([])/.source+"(?:"+E+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,s="&"+a,o="(\\()",c="(?=\\))",d="(?=\\s)",f=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,m={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+a+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+a),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+a),alias:"property"},splice:{pattern:RegExp(",@?"+a),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+d),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+d),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+a),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(a)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+a+/\s+\(/.source+f+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+a),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+a+"(?:\\s+&?"+a+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+a),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},h={"lisp-marker":RegExp(s),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+f+/\)/.source),inside:m},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:m},b="\\S+(?:\\s+\\S+)*",y={pattern:RegExp(o+f+c),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+b),inside:h},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+b),inside:h},keys:{pattern:RegExp("&key\\s+"+b+"(?:\\s+&allow-other-keys)?"),inside:h},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};m.lambda.inside.arguments=y,m.defun.inside.arguments=t.util.clone(y),m.defun.inside.arguments.inside.sublist=y,t.languages.lisp=m,t.languages.elisp=m,t.languages.emacs=m,t.languages["emacs-lisp"]=m})(e)}Fy.displayName="livescript";Fy.aliases=[];function Fy(e){e.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:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}Py.displayName="llvm";Py.aliases=[];function Py(e){(function(t){t.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:/[{}[\];(),.!*=<>]/}})(e)}By.displayName="log";By.aliases=[];function By(e){e.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:e.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:/[\[\].,]/}}Uy.displayName="lolcode";Uy.aliases=[];function Uy(e){e.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}|…|,|!/}}$y.displayName="magma";$y.aliases=[];function $y(e){e.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:/[()[\]{}<>,;.:]/}}zy.displayName="makefile";zy.aliases=[];function zy(e){e.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:/[:;(){}]/}}Wc.displayName="mata";Wc.aliases=[];function Wc(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b|<org>|\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*<org>)?/.source.replace(/<org>/g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}Gy.displayName="matlab";Gy.aliases=[];function Gy(e){e.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}|[.,;\[\](){}!]/}}Hy.displayName="maxscript";Hy.aliases=[];function Hy(e){(function(t){var n=/\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;t.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)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.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:n,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}})(e)}Vy.displayName="mel";Vy.aliases=[];function Vy(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},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:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}Wy.displayName="mermaid";Wy.aliases=[];function Wy(e){e.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:/[(){};]/}}qy.displayName="metafont";qy.aliases=[];function qy(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}Yy.displayName="mizar";Yy.aliases=[];function Yy(e){e.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:/\(#|#\)|[,:;\[\](){}]/}}Ky.displayName="mongodb";Ky.aliases=[];function Ky(e){e.register(rn),(function(t){var n=["$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"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(s){return s.replace("$","\\$")});var a="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.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(`^(['"])?`+a+"(?:\\1)?$")}}}),t.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}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})})(e)}Xy.displayName="monkey";Xy.aliases=[];function Xy(e){e.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:/[.,:;()\[\]]/}}Zy.displayName="moonscript";Zy.aliases=["moon"];function Zy(e){e.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:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}Qy.displayName="n1ql";Qy.aliases=[];function Qy(e){e.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:/[;[\](),.{}:]/}}Jy.displayName="nand2tetris-hdl";Jy.aliases=[];function Jy(e){e.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:/[{}[\];(),:]/}}ex.displayName="naniscript";ex.aliases=["nani"];function ex(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.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:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,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:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var c=o.tokens;c.forEach(function(d){if(typeof d!="string"&&d.type==="generic-text"){var f=s(d);a(f)||(d.type="bad-line",d.content=f)}})});function a(o){for(var c="[]{}",d=[],f=0;f<o.length;f++){var m=o[f],h=c.indexOf(m);if(h!==-1){if(h%2===0)d.push(h+1);else if(d.pop()!==h)return!1}}return d.length===0}function s(o){return typeof o=="string"?o:Array.isArray(o)?o.map(s).join(""):s(o.content)}})(e)}tx.displayName="nasm";tx.aliases=[];function tx(e){e.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:/[\[\]*+\-\/%<>=&|$!]/}}nx.displayName="neon";nx.aliases=[];function nx(e){e.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:"property"},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:/[,:=[\]{}()-]/}}rx.displayName="nevod";rx.aliases=[];function rx(e){e.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\-.]+/}}ax.displayName="nginx";ax.aliases=[];function ax(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.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:n}},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:n}},punctuation:/[{};]/}})(e)}ix.displayName="nim";ix.aliases=[];function ix(e){e.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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}sx.displayName="nix";sx.aliases=[];function sx(e){e.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:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}ox.displayName="nsis";ox.aliases=[];function ox(e){e.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|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|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|Target|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}}}lx.displayName="objectivec";lx.aliases=["objc"];function lx(e){e.register(_r),e.languages.objectivec=e.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 e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}ux.displayName="ocaml";ux.aliases=[];function ux(e){e.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/}}cx.displayName="odin";cx.aliases=[];function cx(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}dx.displayName="opencl";dx.aliases=[];function dx(e){e.register(_r),(function(t){t.languages.opencl=t.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"}}),t.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 n={"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"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["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"},t.languages.insertBefore("cpp","keyword",n))})(e)}px.displayName="openqasm";px.aliases=["qasm"];function px(e){e.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:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}fx.displayName="oz";fx.aliases=[];function fx(e){e.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:/[\[\](){}.:;?]/}}mx.displayName="parigp";mx.aliases=[];function mx(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var t=["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 t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}hx.displayName="parser";hx.aliases=[];function hx(e){e.register(Yt),(function(t){var n=t.languages.parser=t.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:/[\[\](){};]/});n=t.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:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])})(e)}gx.displayName="pascal";gx.aliases=["objectpascal"];function gx(e){e.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:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}bx.displayName="pascaligo";bx.aliases=[];function bx(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return n}),a=t.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 r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return r})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},s=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,c){return o[c]=a[c],o},{});a["class-name"].forEach(function(o){o.inside=s})})(e)}yx.displayName="psl";yx.aliases=[];function yx(e){e.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:/[(){}\[\];,]/}}xx.displayName="pcaxis";xx.aliases=["px"];function xx(e){e.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/},e.languages.px=e.languages.pcaxis}Ex.displayName="peoplecode";Ex.aliases=["pcode"];function Ex(e){e.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:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}Sx.displayName="perl";Sx.aliases=[];function Sx(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.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,n].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,n].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,n+/\s*/.source+n].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:/[{}[\];(),:]/}})(e)}vx.displayName="phpdoc";vx.aliases=[];function vx(e){e.register(hs),e.register(ms),(function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)})(e)}wx.displayName="php-extras";wx.aliases=[];function wx(e){e.register(ms),e.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:/::|\\/}}})}kx.displayName="plant-uml";kx.aliases=["plantuml"];function kx(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,a=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,s="(?:-+"+a+"-+|\\.+"+a+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,c=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,d=/[[?]?[ox]?/.source,f=/[ox]?[\]?]?/.source,m=d+"(?:"+s+c+"|"+o+s+"(?:"+c+")?)"+f;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+m+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}Tx.displayName="plsql";Tx.aliases=[];function Tx(e){e.register(nl),e.languages.plsql=e.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}Nx.displayName="powerquery";Nx.aliases=["mscript","pq"];function Nx(e){e.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:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}Ax.displayName="powershell";Ax.aliases=[];function Ax(e){(function(t){var n=t.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:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}Ix.displayName="processing";Ix.aliases=[];function Ix(e){e.register(We),e.languages.processing=e.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.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"}})}Cx.displayName="prolog";Cx.aliases=[];function Cx(e){e.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:/[(){}\[\],]/}}Rx.displayName="promql";Rx.aliases=[];function Rx(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],a=["offset"],s=n.concat(r,a);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.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(?:"+s.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:/[{};()`,.[\]]/}})(e)}_x.displayName="properties";_x.aliases=[];function _x(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}Ox.displayName="protobuf";Ox.aliases=[];function Ox(e){e.register(We),(function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.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}),t.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:n}},builtin:n,"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}})})(e)}Lx.displayName="stylus";Lx.aliases=[];function Lx(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a={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:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};a.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"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:a.interpolation}},rest:a}},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:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}Dx.displayName="twig";Dx.aliases=[];function Dx(e){e.register(an),e.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:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}Mx.displayName="pug";Mx.aliases=[];function Mx(e){e.register(rn),e.register(Yt),(function(t){t.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:t.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:t.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:t.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:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},s=0,o=r.length;s<o;s++){var c=r[s];c=typeof c=="string"?{filter:c,language:c}:c,t.languages[c.language]&&(a["filter-"+c.filter]={pattern:RegExp(n.replace("<filter_name>",function(){return c.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[c.language,"language-"+c.language],inside:t.languages[c.language]}}})}t.languages.insertBefore("pug","filter",a)})(e)}jx.displayName="puppet";jx.aliases=[];function jx(e){(function(t){t.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 n=[{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:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}Fx.displayName="pure";Fx.aliases=[];function Fx(e){(function(t){t.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 n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(a){var s=a;if(typeof a!="string"&&(s=a.alias,a=a.lang),t.languages[s]){var o={};o["inline-lang-"+s]={pattern:RegExp(r.replace("<lang>",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+s].inside.rest=t.util.clone(t.languages[s]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}Px.displayName="purebasic";Px.aliases=["pbfasm"];function Px(e){e.register(We),e.languages.purebasic=e.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+\$?|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.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 e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}Bx.displayName="purescript";Bx.aliases=["purs"];function Bx(e){e.register(rl),e.languages.purescript=e.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:[e.languages.haskell.operator[0],e.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]/]}),e.languages.purs=e.languages.purescript}qc.displayName="python";qc.aliases=["py"];function qc(e){e.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:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}Ux.displayName="qsharp";Ux.aliases=["qs"];function Ux(e){e.register(We),(function(t){function n(y,E){return y.replace(/<<(\d+)>>/g,function(k,w){return"(?:"+E[+w]+")"})}function r(y,E,k){return RegExp(n(y,E),"")}function a(y,E){for(var k=0;k<E;k++)y=y.replace(/<<self>>/g,function(){return"(?:"+y+")"});return y.replace(/<<self>>/g,"[^\\s\\S]")}var s={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 o(y){return"\\b(?:"+y.trim().replace(/ /g,"|")+")\\b"}var c=RegExp(o(s.type+" "+s.other)),d=/\b[A-Za-z_]\w*\b/.source,f=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[d]),m={keyword:c,punctuation:/[<>()?,.:[\]]/},h=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[h]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[f]),lookbehind:!0,inside:m},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[f]),lookbehind:!0,inside:m}],keyword:c,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:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var b=a(n(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[h]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[b]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[b]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})})(e),e.languages.qs=e.languages.qsharp}$x.displayName="q";$x.aliases=[];function $x(e){e.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:/[(){}\[\];.]/}}zx.displayName="qml";zx.aliases=[];function zx(e){e.register(rn),(function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return n}).replace(/<comment>/g,function(){return r}),s=0;s<2;s++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,"[^\\s\\S]"),t.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 a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.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 a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(e)}Gx.displayName="qore";Gx.aliases=[];function Gx(e){e.register(We),e.languages.qore=e.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/})}Hx.displayName="r";Hx.aliases=[];function Hx(e){e.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:/[(){}\[\],;]/}}Vx.displayName="racket";Vx.aliases=["rkt"];function Vx(e){e.register(sl),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}Wx.displayName="cshtml";Wx.aliases=["razor"];function Wx(e){e.register(ds),e.register(Yt),(function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(N,A){for(var _=0;_<A;_++)N=N.replace(/<self>/g,function(){return"(?:"+N+")"});return N.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+r+")").replace(/<comment>/g,"(?:"+n+")")}var s=a(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),o=a(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),c=a(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),d=a(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),f=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+s+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+d+")?"+s+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,m=/@(?![\w()])/.source+"|"+f,h="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+m+`)[^"'@]*)+["'])`,b=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,h),y=/(?!\d)[^\s>\/=$<%]+/.source+b+/\s*\/?>/.source,E=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+b+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|"+a(/<\1/.source+b+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+y+")";t.languages.cshtml=t.languages.extend("markup",{});var k=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(E),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),w={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:k},v={pattern:RegExp(/(^|[^@])/.source+f),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:w}};t.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+y),t.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+h),t.languages.insertBefore("inside","punctuation",{value:v},t.languages.cshtml.tag.inside["attr-value"]),t.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[c,/(?:code|functions)\s*/.source+c,/(?:for|foreach|lock|switch|using|while)\s*/.source+s+/\s*/.source+c,/do\s*/.source+c+/\s*while\s*/.source+s+/(?:\s*;)?/.source,/try\s*/.source+c+/\s*catch\s*/.source+s+/\s*/.source+c+/\s*finally\s*/.source+c,/if\s*/.source+s+/\s*/.source+c+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+s+")?"+/\s*/.source+c+")*",/helper\s+\w+\s*/.source+s+/\s*/.source+c].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:w}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:w}},value:v,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml})(e)}Yc.displayName="jsx";Yc.aliases=[];function Yc(e){e.register(rn),e.register(Yt),(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(f,m){return f=f.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return s}),RegExp(f,m)}s=o(s).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var c=function(f){return f?typeof f=="string"?f:typeof f.content=="string"?f.content:f.content.map(c).join(""):""},d=function(f){for(var m=[],h=0;h<f.length;h++){var b=f[h],y=!1;if(typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?m.length>0&&m[m.length-1].tagName===c(b.content[0].content[1])&&m.pop():b.content[b.content.length-1].content==="/>"||m.push({tagName:c(b.content[0].content[1]),openedBraces:0}):m.length>0&&b.type==="punctuation"&&b.content==="{"?m[m.length-1].openedBraces++:m.length>0&&m[m.length-1].openedBraces>0&&b.type==="punctuation"&&b.content==="}"?m[m.length-1].openedBraces--:y=!0),(y||typeof b=="string")&&m.length>0&&m[m.length-1].openedBraces===0){var E=c(b);h<f.length-1&&(typeof f[h+1]=="string"||f[h+1].type==="plain-text")&&(E+=c(f[h+1]),f.splice(h+1,1)),h>0&&(typeof f[h-1]=="string"||f[h-1].type==="plain-text")&&(E=c(f[h-1])+E,f.splice(h-1,1),h--),f[h]=new t.Token("plain-text",E,null,E)}b.content&&typeof b.content!="string"&&d(b.content)}};t.hooks.add("after-tokenize",function(f){f.language!=="jsx"&&f.language!=="tsx"||d(f.tokens)})})(e)}qx.displayName="tsx";qx.aliases=[];function qx(e){e.register(Yc),e.register(il),(function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(e)}Yx.displayName="reason";Yx.aliases=[];function Yx(e){e.register(We),e.languages.reason=e.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/}),e.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 e.languages.reason.function}Kx.displayName="rego";Kx.aliases=[];function Kx(e){e.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:/[,;.\[\]{}()]/}}Xx.displayName="renpy";Xx.aliases=["rpy"];function Xx(e){e.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:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}Zx.displayName="rescript";Zx.aliases=["res"];function Zx(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}Qx.displayName="rest";Qx.aliases=[];function Qx(e){e.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}}}Jx.displayName="rip";Jx.aliases=[];function Jx(e){e.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`'",.:;#\/\\()<>\[\]{}]*/}}e0.displayName="roboconf";e0.aliases=[];function e0(e){e.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:/[{},.;:=]/}}t0.displayName="robotframework";t0.aliases=["robot"];function t0(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(d,f){var m={};m["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var h in f)m[h]=f[h];return m.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},m.variable=r,m.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return d}),"im"),alias:"section",inside:m}}var s={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},c={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:a("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:a("Variables"),"test-cases":a("Test Cases",{"test-name":o,documentation:s,property:c}),keywords:a("Keywords",{"keyword-name":o,documentation:s,property:c}),tasks:a("Tasks",{"task-name":o,documentation:s,property:c}),comment:n},t.languages.robot=t.languages.robotframework})(e)}n0.displayName="rust";n0.aliases=[];function n0(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}r0.displayName="sas";r0.aliases=[];function r0(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,a={pattern:RegExp(n+"[bx]"),alias:"number"},s={pattern:/&[a-z_]\w*/i},o={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"},c={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},d=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],f={pattern:RegExp(n),greedy:!0},m=/[$%@.(){}\[\];,\\]/,h={pattern:/%?\b\w+(?=\()/,alias:"keyword"},b={function:h,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":s,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":a,punctuation:m,string:f},y={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},E={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},k={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"},w={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},v=/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 v}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return v}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:d,function:h,"arg-value":b["arg-value"],operator:b.operator,argument:b.arg,number:r,"numeric-constant":a,punctuation:m,string:f}},A={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};t.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 n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":k,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":a,punctuation:m,string:f}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:A,"submit-statement":w,"global-statements":k,number:r,"numeric-constant":a,punctuation:m,string:f}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:A,"submit-statement":w,"global-statements":k,number:r,"numeric-constant":a,punctuation:m,string:f}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:b}},"cas-actions":N,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:b},step:c,keyword:A,function:h,format:y,altformat:E,"global-statements":k,number:r,"numeric-constant":a,punctuation:m,string:f}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,inside:b},"macro-keyword":o,"macro-variable":s,"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":o,"macro-variable":s,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:m}},"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:d,number:r,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:b},"cas-actions":N,comment:d,function:h,format:y,altformat:E,"numeric-constant":a,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:f,step:c,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:m}})(e)}a0.displayName="sass";a0.aliases=[];function a0(e){e.register(pi),(function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.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}})})(e)}i0.displayName="shell-session";i0.aliases=["sh-session","shellsession"];function i0(e){e.register(zc),(function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.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 n}),"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:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]})(e)}s0.displayName="smali";s0.aliases=[];function s0(e){e.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:/[{}(),;:]/}}o0.displayName="smalltalk";o0.aliases=[];function o0(e){e.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:/[.;:?\[\](){}]/}}l0.displayName="smarty";l0.aliases=[];function l0(e){e.register(an),(function(t){t.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:t.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/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(a){var s="{literal}",o="{/literal}",c=!1;t.languages["markup-templating"].buildPlaceholders(a,"smarty",r,function(d){return d===o&&(c=!1),c?!1:(d===s&&(c=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"smarty")})})(e)}u0.displayName="sml";u0.aliases=["smlnj"];function u0(e){(function(t){var n=/\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;t.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 n.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:n,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:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}c0.displayName="solidity";c0.aliases=["sol"];function c0(e){e.register(We),e.languages.solidity=e.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.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/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}d0.displayName="solution-file";d0.aliases=["sln"];function d0(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},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:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}p0.displayName="soy";p0.aliases=[];function p0(e){e.register(an),(function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.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:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(a){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",c="{/literal}",d=!1;t.languages["markup-templating"].buildPlaceholders(a,"soy",s,function(f){return f===c&&(d=!1),d?!1:(f===o&&(d=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"soy")})})(e)}Kc.displayName="turtle";Kc.aliases=["trig"];function Kc(e){e.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:/@/}}},e.languages.trig=e.languages.turtle}f0.displayName="sparql";f0.aliases=["rq"];function f0(e){e.register(Kc),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.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]}),e.languages.rq=e.languages.sparql}m0.displayName="splunk-spl";m0.aliases=[];function m0(e){e.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:/[()[\],]/}}h0.displayName="sqf";h0.aliases=[];function h0(e){e.register(We),e.languages.sqf=e.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}),e.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:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}g0.displayName="squirrel";g0.aliases=[];function g0(e){e.register(We),e.languages.squirrel=e.languages.extend("clike",{comment:[e.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:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}b0.displayName="stan";b0.aliases=[];function b0(e){(function(t){var n=/\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/;t.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("("+n.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/,n],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:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}y0.displayName="stata";y0.aliases=[];function y0(e){e.register(fs),e.register(Wc),e.register(qc),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}x0.displayName="iecst";x0.aliases=[];function x0(e){e.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:/[()[\].,;]/}}E0.displayName="supercollider";E0.aliases=["sclang"];function E0(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}S0.displayName="swift";S0.aliases=[];function S0(e){e.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:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}v0.displayName="systemd";v0.aliases=[];function v0(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,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+"(?:"+r+`|(?=[^"\r
|
|
359
|
-
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}ol.displayName="t4-templating";ol.aliases=[];function ol(e){(function(t){function n(a,s,o){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:s,alias:o}}}}function r(a){var s=t.languages[a],o="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",s,o),"class-feature":n("\\+",s,o),standard:n("",s,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}w0.displayName="t4-cs";w0.aliases=["t4"];function w0(e){e.register(ds),e.register(ol),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}Xc.displayName="vbnet";Xc.aliases=[];function Xc(e){e.register(Hc),e.languages.vbnet=e.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:/[,;:(){}]/})}k0.displayName="t4-vb";k0.aliases=[];function k0(e){e.register(ol),e.register(Xc),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}T0.displayName="tap";T0.aliases=[];function T0(e){e.register(Gc),e.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:e.languages.yaml,alias:"language-yaml"}}}N0.displayName="tcl";N0.aliases=[];function N0(e){e.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:/[{}()\[\]]/}}A0.displayName="tt2";A0.aliases=[];function A0(e){e.register(We),e.register(an),(function(t){t.languages.tt2=t.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:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.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 t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})})(e)}I0.displayName="toml";I0.aliases=[];function I0(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(a){return a.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\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:/[.,=[\]{}]/}})(e)}C0.displayName="tremor";C0.aliases=["trickle","troy"];function C0(e){(function(t){t.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 n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}R0.displayName="typoscript";R0.aliases=["tsconfig"];function R0(e){(function(t){var n=/\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/;t.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:n}},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:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}_0.displayName="unrealscript";_0.aliases=["uc","uscript"];function _0(e){e.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:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}O0.displayName="uorazor";O0.aliases=[];function O0(e){e.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:/[()\[\]{}:.,]/}}L0.displayName="v";L0.aliases=[];function L0(e){e.register(We),(function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.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":n}}}},"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/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.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+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})})(e)}D0.displayName="vala";D0.aliases=[];function D0(e){e.register(We),e.languages.vala=e.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/}),e.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:e.languages.vala}},string:/[\s\S]+/}}}),e.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:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}M0.displayName="velocity";M0.aliases=[];function M0(e){e.register(Yt),(function(t){t.languages.velocity=t.languages.extend("markup",{});var n={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:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.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:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity})(e)}j0.displayName="verilog";j0.aliases=[];function j0(e){e.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:/[[\];(),.:]/}}F0.displayName="vhdl";F0.aliases=[];function F0(e){e.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]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?: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|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|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:/[{}[\];(),.:]/}}P0.displayName="vim";P0.aliases=[];function P0(e){e.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:/[{}[\](),;:]/}}B0.displayName="visual-basic";B0.aliases=["vb","vba"];function B0(e){e.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:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}U0.displayName="warpscript";U0.aliases=[];function U0(e){e.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/}}$0.displayName="wasm";$0.aliases=[];function $0(e){e.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:/[()]/}}z0.displayName="web-idl";z0.aliases=["webidl"];function z0(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,a={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:a}],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 s in t.languages["web-idl"])s!=="class-name"&&(a[s]=t.languages["web-idl"][s]);t.languages.webidl=t.languages["web-idl"]})(e)}G0.displayName="wgsl";G0.aliases=[];function G0(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}H0.displayName="wiki";H0.aliases=[];function H0(e){e.register(Yt),e.languages.wiki=e.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:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.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:e.languages.markup.tag.inside}}}})}V0.displayName="wolfram";V0.aliases=["mathematica","nb","wl"];function V0(e){e.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:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}W0.displayName="wren";W0.aliases=[];function W0(e){e.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:/[\[\](){}.,;]/},e.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:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}q0.displayName="xeora";q0.aliases=["xeoracube"];function q0(e){e.register(Yt),(function(t){t.languages.xeora=t.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"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora})(e)}Y0.displayName="xml-doc";Y0.aliases=[];function Y0(e){e.register(Yt),(function(t){function n(o,c){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":c})}var r=t.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},s={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",a),n("fsharp",a),n("vbnet",s)})(e)}K0.displayName="xojo";K0.aliases=[];function K0(e){e.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:/[.,;:()]/}}X0.displayName="xquery";X0.aliases=[];function X0(e){e.register(Yt),(function(t){t.languages.xquery=t.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:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(a){return typeof a=="string"?a:typeof a.content=="string"?a.content:a.content.map(n).join("")},r=function(a){for(var s=[],o=0;o<a.length;o++){var c=a[o],d=!1;if(typeof c!="string"&&(c.type==="tag"&&c.content[0]&&c.content[0].type==="tag"?c.content[0].content[0].content==="</"?s.length>0&&s[s.length-1].tagName===n(c.content[0].content[1])&&s.pop():c.content[c.content.length-1].content==="/>"||s.push({tagName:n(c.content[0].content[1]),openedBraces:0}):s.length>0&&c.type==="punctuation"&&c.content==="{"&&(!a[o+1]||a[o+1].type!=="punctuation"||a[o+1].content!=="{")&&(!a[o-1]||a[o-1].type!=="plain-text"||a[o-1].content!=="{")?s[s.length-1].openedBraces++:s.length>0&&s[s.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?s[s.length-1].openedBraces--:c.type!=="comment"&&(d=!0)),(d||typeof c=="string")&&s.length>0&&s[s.length-1].openedBraces===0){var f=n(c);o<a.length-1&&(typeof a[o+1]=="string"||a[o+1].type==="plain-text")&&(f+=n(a[o+1]),a.splice(o+1,1)),o>0&&(typeof a[o-1]=="string"||a[o-1].type==="plain-text")&&(f=n(a[o-1])+f,a.splice(o-1,1),o--),/^\s+$/.test(f)?a[o]=f:a[o]=new t.Token("plain-text",f,null,f)}c.content&&typeof c.content!="string"&&r(c.content)}};t.hooks.add("after-tokenize",function(a){a.language==="xquery"&&r(a.tokens)})})(e)}Z0.displayName="yang";Z0.aliases=[];function Z0(e){e.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:/[{};:]/}}Q0.displayName="zig";Q0.aliases=[];function Q0(e){(function(t){function n(f){return function(){return f}}var r=/\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/,a="\\b(?!"+r.source+")(?!\\d)\\w+\\b",s=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,n(s)),c=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,n(a)),d="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+c+")+";t.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,n(d)).replace(/<ALIGN>/g,n(s))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,n(d)).replace(/<ALIGN>/g,n(s))),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:r,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:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(f){f.inside===null&&(f.inside=t.languages.zig)})})(e)}L.register(Yt);L.register(pi);L.register(We);L.register(Jh);L.register(rn);L.register(eg);L.register(tg);L.register(ng);L.register(rg);L.register(ag);L.register(ig);L.register(sg);L.register(og);L.register(nl);L.register(lg);L.register(ug);L.register(cg);L.register(dg);L.register(_r);L.register(cs);L.register(pg);L.register(fg);L.register(mg);L.register(zc);L.register(Gc);L.register(hg);L.register(gg);L.register(bg);L.register(ds);L.register(yg);L.register(xg);L.register(Eg);L.register(Sg);L.register(vg);L.register(wg);L.register(kg);L.register(Tg);L.register(Hc);L.register(Ng);L.register(Ag);L.register(Ig);L.register(Cg);L.register(Rg);L.register(_g);L.register(Og);L.register(Lg);L.register(Dg);L.register(Mg);L.register(jg);L.register(Fg);L.register(Pg);L.register(Bg);L.register(Ug);L.register($g);L.register(zg);L.register(Gg);L.register(Hg);L.register(Vg);L.register(Wg);L.register(qg);L.register(Yg);L.register(Kg);L.register(Xg);L.register(ps);L.register(Zg);L.register(Qg);L.register(Jg);L.register(eb);L.register(tb);L.register(nb);L.register(rb);L.register(ab);L.register(ib);L.register(sb);L.register(ob);L.register(an);L.register(lb);L.register(ub);L.register(cb);L.register(db);L.register(pb);L.register(fb);L.register(mb);L.register(hb);L.register(gb);L.register(bb);L.register(Vc);L.register(yb);L.register(xb);L.register(Eb);L.register(Sb);L.register(vb);L.register(wb);L.register(kb);L.register(Tb);L.register(Nb);L.register(Ab);L.register(Ib);L.register(Cb);L.register(Rb);L.register(_b);L.register(Ob);L.register(Lb);L.register(Db);L.register(Mb);L.register(jb);L.register(Fb);L.register(Pb);L.register(Bb);L.register(Ub);L.register($b);L.register(zb);L.register(Gb);L.register(Hb);L.register(Vb);L.register(Wb);L.register(qb);L.register(Yb);L.register(Kb);L.register(rl);L.register(Xb);L.register(Zb);L.register(Qb);L.register(Jb);L.register(ey);L.register(ty);L.register(al);L.register(ny);L.register(ry);L.register(ay);L.register(iy);L.register(sy);L.register(oy);L.register(ly);L.register(uy);L.register(cy);L.register(dy);L.register(py);L.register(fs);L.register(ms);L.register(hs);L.register(fy);L.register(my);L.register(hy);L.register(gy);L.register(by);L.register(yy);L.register(xy);L.register(il);L.register(Ey);L.register(Sy);L.register(vy);L.register(wy);L.register(ky);L.register(Ty);L.register(Ny);L.register(Ay);L.register(Iy);L.register(Cy);L.register(Ry);L.register(_y);L.register(Oy);L.register(Ly);L.register(sl);L.register(Dy);L.register(My);L.register(jy);L.register(Fy);L.register(Py);L.register(By);L.register(Uy);L.register($y);L.register(zy);L.register(Wc);L.register(Gy);L.register(Hy);L.register(Vy);L.register(Wy);L.register(qy);L.register(Yy);L.register(Ky);L.register(Xy);L.register(Zy);L.register(Qy);L.register(Jy);L.register(ex);L.register(tx);L.register(nx);L.register(rx);L.register(ax);L.register(ix);L.register(sx);L.register(ox);L.register(lx);L.register(ux);L.register(cx);L.register(dx);L.register(px);L.register(fx);L.register(mx);L.register(hx);L.register(gx);L.register(bx);L.register(yx);L.register(xx);L.register(Ex);L.register(Sx);L.register(vx);L.register(wx);L.register(kx);L.register(Tx);L.register(Nx);L.register(Ax);L.register(Ix);L.register(Cx);L.register(Rx);L.register(_x);L.register(Ox);L.register(Lx);L.register(Dx);L.register(Mx);L.register(jx);L.register(Fx);L.register(Px);L.register(Bx);L.register(qc);L.register(Ux);L.register($x);L.register(zx);L.register(Gx);L.register(Hx);L.register(Vx);L.register(Wx);L.register(Yc);L.register(qx);L.register(Yx);L.register(Kx);L.register(Xx);L.register(Zx);L.register(Qx);L.register(Jx);L.register(e0);L.register(t0);L.register(n0);L.register(r0);L.register(a0);L.register(i0);L.register(s0);L.register(o0);L.register(l0);L.register(u0);L.register(c0);L.register(d0);L.register(p0);L.register(Kc);L.register(f0);L.register(m0);L.register(h0);L.register(g0);L.register(b0);L.register(y0);L.register(x0);L.register(E0);L.register(S0);L.register(v0);L.register(ol);L.register(w0);L.register(Xc);L.register(k0);L.register(T0);L.register(N0);L.register(A0);L.register(I0);L.register(C0);L.register(R0);L.register(_0);L.register(O0);L.register(L0);L.register(D0);L.register(M0);L.register(j0);L.register(F0);L.register(P0);L.register(B0);L.register(U0);L.register($0);L.register(z0);L.register(G0);L.register(H0);L.register(V0);L.register(W0);L.register(q0);L.register(Y0);L.register(K0);L.register(X0);L.register(Z0);L.register(Q0);var uR=vG(L,KG);uR.supportedLanguages=wG;const XG={'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 WT(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function ZG(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function QG(e,t,n){const a=Uc((n||{}).ignore||[]),s=JG(t);let o=-1;for(;++o<s.length;)XC(e,"text",c);function c(f,m){let h=-1,b;for(;++h<m.length;){const y=m[h],E=b?b.children:void 0;if(a(y,E?E.indexOf(y):void 0,b))return;b=y}if(b)return d(f,m)}function d(f,m){const h=m[m.length-1],b=s[o][0],y=s[o][1];let E=0;const w=h.children.indexOf(f);let v=!1,N=[];b.lastIndex=0;let A=b.exec(f.value);for(;A;){const _=A.index,M={index:A.index,input:A.input,stack:[...m,f]};let D=y(...A,M);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?b.lastIndex=_+1:(E!==_&&N.push({type:"text",value:f.value.slice(E,_)}),Array.isArray(D)?N.push(...D):D&&N.push(D),E=_+A[0].length,v=!0),!b.global)break;A=b.exec(f.value)}return v?(E<f.value.length&&N.push({type:"text",value:f.value.slice(E)}),h.children.splice(w,1,...N)):N=[f],w+N.length}}function JG(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([eH(a[0]),tH(a[1])])}return t}function eH(e){return typeof e=="string"?new RegExp(ZG(e),"g"):e}function tH(e){return typeof e=="function"?e:function(){return e}}const Df="phrasing",Mf=["autolink","link","image","label"];function nH(){return{transforms:[uH],enter:{literalAutolink:aH,literalAutolinkEmail:jf,literalAutolinkHttp:jf,literalAutolinkWww:jf},exit:{literalAutolink:lH,literalAutolinkEmail:oH,literalAutolinkHttp:iH,literalAutolinkWww:sH}}}function rH(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Df,notInConstruct:Mf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Df,notInConstruct:Mf},{character:":",before:"[ps]",after:"\\/",inConstruct:Df,notInConstruct:Mf}]}}function aH(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function jf(e){this.config.enter.autolinkProtocol.call(this,e)}function iH(e){this.config.exit.autolinkProtocol.call(this,e)}function sH(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function oH(e){this.config.exit.autolinkEmail.call(this,e)}function lH(e){this.exit(e)}function uH(e){QG(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,cH],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),dH]],{ignore:["link","linkReference"]})}function cH(e,t,n,r,a){let s="";if(!cR(a)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!pH(n)))return!1;const o=fH(n+r);if(!o[0])return!1;const c={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[c,{type:"text",value:o[1]}]:c}function dH(e,t,n,r){return!cR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function pH(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function fH(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=WT(e,"(");let s=WT(e,")");for(;r!==-1&&a>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function cR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||oi(n)||Fc(n))&&(!t||n!==47)}dR.peek=vH;function mH(){this.buffer()}function hH(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function gH(){this.buffer()}function bH(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function yH(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xH(e){this.exit(e)}function EH(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function SH(e){this.exit(e)}function vH(){return"["}function dR(e,t,n,r){const a=n.createTracker(r);let s=a.move("[^");const o=n.enter("footnoteReference"),c=n.enter("reference");return s+=a.move(n.safe(n.associationId(e),{after:"]",before:s})),c(),o(),s+=a.move("]"),s}function wH(){return{enter:{gfmFootnoteCallString:mH,gfmFootnoteCall:hH,gfmFootnoteDefinitionLabelString:gH,gfmFootnoteDefinition:bH},exit:{gfmFootnoteCallString:yH,gfmFootnoteCall:xH,gfmFootnoteDefinitionLabelString:EH,gfmFootnoteDefinition:SH}}}function kH(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:dR},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,s,o){const c=s.createTracker(o);let d=c.move("[^");const f=s.enter("footnoteDefinition"),m=s.enter("label");return d+=c.move(s.safe(s.associationId(r),{before:d,after:"]"})),m(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
360
|
-
`:" ")+s.indentLines(s.containerFlow(r,c.current()),t?pR:TH))),f(),d}}function TH(e,t,n){return t===0?e:pR(e,t,n)}function pR(e,t,n){return(n?"":" ")+e}const NH=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];fR.peek=_H;function AH(){return{canContainEols:["delete"],enter:{strikethrough:CH},exit:{strikethrough:RH}}}function IH(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:NH}],handlers:{delete:fR}}}function CH(e){this.enter({type:"delete",children:[]},e)}function RH(e){this.exit(e)}function fR(e,t,n,r){const a=n.createTracker(r),s=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),s(),o}function _H(){return"~"}function OH(e){return e.length}function LH(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||OH,s=[],o=[],c=[],d=[];let f=0,m=-1;for(;++m<e.length;){const k=[],w=[];let v=-1;for(e[m].length>f&&(f=e[m].length);++v<e[m].length;){const N=DH(e[m][v]);if(n.alignDelimiters!==!1){const A=a(N);w[v]=A,(d[v]===void 0||A>d[v])&&(d[v]=A)}k.push(N)}o[m]=k,c[m]=w}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<f;)s[h]=qT(r[h]);else{const k=qT(r);for(;++h<f;)s[h]=k}h=-1;const b=[],y=[];for(;++h<f;){const k=s[h];let w="",v="";k===99?(w=":",v=":"):k===108?w=":":k===114&&(v=":");let N=n.alignDelimiters===!1?1:Math.max(1,d[h]-w.length-v.length);const A=w+"-".repeat(N)+v;n.alignDelimiters!==!1&&(N=w.length+N+v.length,N>d[h]&&(d[h]=N),y[h]=N),b[h]=A}o.splice(1,0,b),c.splice(1,0,y),m=-1;const E=[];for(;++m<o.length;){const k=o[m],w=c[m];h=-1;const v=[];for(;++h<f;){const N=k[h]||"";let A="",_="";if(n.alignDelimiters!==!1){const M=d[h]-(w[h]||0),D=s[h];D===114?A=" ".repeat(M):D===99?M%2?(A=" ".repeat(M/2+.5),_=" ".repeat(M/2-.5)):(A=" ".repeat(M/2),_=A):_=" ".repeat(M)}n.delimiterStart!==!1&&!h&&v.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&N==="")&&(n.delimiterStart!==!1||h)&&v.push(" "),n.alignDelimiters!==!1&&v.push(A),v.push(N),n.alignDelimiters!==!1&&v.push(_),n.padding!==!1&&v.push(" "),(n.delimiterEnd!==!1||h!==f-1)&&v.push("|")}E.push(n.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return E.join(`
|
|
361
|
-
`)}function DH(e){return e==null?"":String(e)}function qT(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function MH(e,t,n,r){const a=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),jH);return a(),o}function jH(e,t,n){return">"+(n?"":" ")+e}function FH(e,t){return YT(e,t.inConstruct,!0)&&!YT(e,t.notInConstruct,!1)}function YT(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function KT(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
362
|
-
`&&FH(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
363
|
-
`}function PH(e,t){const n=String(e);let r=n.indexOf(t),a=r,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++s>o&&(o=s):s=1,a=r+t.length,r=n.indexOf(t,a);return o}function BH(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function UH(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function $H(e,t,n,r){const a=UH(n),s=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(BH(e,n)){const h=n.enter("codeIndented"),b=n.indentLines(s,zH);return h(),b}const c=n.createTracker(r),d=a.repeat(Math.max(PH(s,a)+1,3)),f=n.enter("codeFenced");let m=c.move(d);if(e.lang){const h=n.enter(`codeFencedLang${o}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${o}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
|
|
364
|
-
`,encode:["`"],...c.current()})),h()}return m+=c.move(`
|
|
365
|
-
`),s&&(m+=c.move(s+`
|
|
366
|
-
`)),m+=c.move(d),f(),m}function zH(e,t,n){return(n?"":" ")+e}function J0(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function GH(e,t,n,r){const a=J0(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("[");return f+=d.move(n.safe(n.associationId(e),{before:f,after:"]",...d.current()})),f+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
367
|
-
`,...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),o(),f}function HH(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Uo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mc(e,t,n){const r=Ji(e),a=Ji(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}mR.peek=VH;function mR(e,t,n,r){const a=HH(n),s=n.enter("emphasis"),o=n.createTracker(r),c=o.move(a);let d=o.move(n.containerPhrasing(e,{after:a,before:c,...o.current()}));const f=d.charCodeAt(0),m=mc(r.before.charCodeAt(r.before.length-1),f,a);m.inside&&(d=Uo(f)+d.slice(1));const h=d.charCodeAt(d.length-1),b=mc(r.after.charCodeAt(0),h,a);b.inside&&(d=d.slice(0,-1)+Uo(h));const y=o.move(a);return s(),n.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},c+d+y}function VH(e,t,n){return n.options.emphasis||"*"}function WH(e,t){let n=!1;return Zh(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Tm}),!!((!e.depth||e.depth<3)&&Vh(e)&&(t.options.setext||n))}function qH(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(WH(e,n)){const m=n.enter("headingSetext"),h=n.enter("phrasing"),b=n.containerPhrasing(e,{...s.current(),before:`
|
|
368
|
-
`,after:`
|
|
369
|
-
`});return h(),m(),b+`
|
|
370
|
-
`+(a===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
371
|
-
`))+1))}const o="#".repeat(a),c=n.enter("headingAtx"),d=n.enter("phrasing");s.move(o+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
372
|
-
`,...s.current()});return/^[\t ]/.test(f)&&(f=Uo(f.charCodeAt(0))+f.slice(1)),f=f?o+" "+f:o,n.options.closeAtx&&(f+=" "+o),d(),c(),f}hR.peek=YH;function hR(e){return e.value||""}function YH(){return"<"}gR.peek=KH;function gR(e,t,n,r){const a=J0(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("![");return f+=d.move(n.safe(e.alt,{before:f,after:"]",...d.current()})),f+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),f+=d.move(")"),o(),f}function KH(){return"!"}bR.peek=XH;function bR(e,t,n,r){const a=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const f=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return o(),n.stack=m,s(),a==="full"||!f||f!==h?d+=c.move(h+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function XH(){return"!"}yR.peek=ZH;function yR(e,t,n){let r=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],c=n.compilePattern(o);let d;if(o.atBreak)for(;d=c.exec(r);){let f=d.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(d.index+1)}}return a+r+a}function ZH(){return"`"}function xR(e,t){const n=Vh(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ER.peek=QH;function ER(e,t,n,r){const a=J0(n),s=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let c,d;if(xR(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let h=o.move("<");return h+=o.move(n.containerPhrasing(e,{before:h,after:">",...o.current()})),h+=o.move(">"),c(),n.stack=m,h}c=n.enter("link"),d=n.enter("label");let f=o.move("[");return f+=o.move(n.containerPhrasing(e,{before:f,after:"](",...o.current()})),f+=o.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),f+=o.move("<"),f+=o.move(n.safe(e.url,{before:f,after:">",...o.current()})),f+=o.move(">")):(d=n.enter("destinationRaw"),f+=o.move(n.safe(e.url,{before:f,after:e.title?" ":")",...o.current()}))),d(),e.title&&(d=n.enter(`title${s}`),f+=o.move(" "+a),f+=o.move(n.safe(e.title,{before:f,after:a,...o.current()})),f+=o.move(a),d()),f+=o.move(")"),c(),f}function QH(e,t,n){return xR(e,n)?"<":"["}SR.peek=JH;function SR(e,t,n,r){const a=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const f=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const h=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return o(),n.stack=m,s(),a==="full"||!f||f!==h?d+=c.move(h+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function JH(){return"["}function eE(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function eV(e){const t=eE(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function tV(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function vR(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function nV(e,t,n,r){const a=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?tV(n):eE(n);const c=e.ordered?o==="."?")":".":eV(n);let d=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),vR(n)===o&&m){let h=-1;for(;++h<e.children.length;){const b=e.children[h];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(o=c),n.bulletCurrent=o;const f=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,a(),f}function rV(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function aV(e,t,n,r){const a=rV(n);let s=n.bulletCurrent||eE(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const c=n.createTracker(r);c.move(s+" ".repeat(o-s.length)),c.shift(o);const d=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,c.current()),m);return d(),f;function m(h,b,y){return b?(y?"":" ".repeat(o))+h:(y?s:s+" ".repeat(o-s.length))+h}}function iV(e,t,n,r){const a=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),a(),o}const sV=Uc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function oV(e,t,n,r){return(e.children.some(function(o){return sV(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function lV(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}wR.peek=uV;function wR(e,t,n,r){const a=lV(n),s=n.enter("strong"),o=n.createTracker(r),c=o.move(a+a);let d=o.move(n.containerPhrasing(e,{after:a,before:c,...o.current()}));const f=d.charCodeAt(0),m=mc(r.before.charCodeAt(r.before.length-1),f,a);m.inside&&(d=Uo(f)+d.slice(1));const h=d.charCodeAt(d.length-1),b=mc(r.after.charCodeAt(0),h,a);b.inside&&(d=d.slice(0,-1)+Uo(h));const y=o.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},c+d+y}function uV(e,t,n){return n.options.strong||"*"}function cV(e,t,n,r){return n.safe(e.value,r)}function dV(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function pV(e,t,n){const r=(vR(n)+(n.options.ruleSpaces?" ":"")).repeat(dV(n));return n.options.ruleSpaces?r.slice(0,-1):r}const kR={blockquote:MH,break:KT,code:$H,definition:GH,emphasis:mR,hardBreak:KT,heading:qH,html:hR,image:gR,imageReference:bR,inlineCode:yR,link:ER,linkReference:SR,list:nV,listItem:aV,paragraph:iV,root:oV,strong:wR,text:cV,thematicBreak:pV};function fV(){return{enter:{table:mV,tableData:XT,tableHeader:XT,tableRow:gV},exit:{codeText:bV,table:hV,tableData:Ff,tableHeader:Ff,tableRow:Ff}}}function mV(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function hV(e){this.exit(e),this.data.inTable=void 0}function gV(e){this.enter({type:"tableRow",children:[]},e)}function Ff(e){this.exit(e)}function XT(e){this.enter({type:"tableCell",children:[]},e)}function bV(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,yV));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function yV(e,t){return t==="|"?t:e}function xV(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
373
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:o,tableCell:d,tableRow:c}};function o(y,E,k,w){return f(m(y,k,w),y.align)}function c(y,E,k,w){const v=h(y,k,w),N=f([v]);return N.slice(0,N.indexOf(`
|
|
374
|
-
`))}function d(y,E,k,w){const v=k.enter("tableCell"),N=k.enter("phrasing"),A=k.containerPhrasing(y,{...w,before:s,after:s});return N(),v(),A}function f(y,E){return LH(y,{align:E,alignDelimiters:r,padding:n,stringLength:a})}function m(y,E,k){const w=y.children;let v=-1;const N=[],A=E.enter("table");for(;++v<w.length;)N[v]=h(w[v],E,k);return A(),N}function h(y,E,k){const w=y.children;let v=-1;const N=[],A=E.enter("tableRow");for(;++v<w.length;)N[v]=d(w[v],y,E,k);return A(),N}function b(y,E,k){let w=kR.inlineCode(y,E,k);return k.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function EV(){return{exit:{taskListCheckValueChecked:ZT,taskListCheckValueUnchecked:ZT,paragraph:vV}}}function SV(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:wV}}}function ZT(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function vV(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let s=-1,o;for(;++s<a.length;){const c=a[s];if(c.type==="paragraph"){o=c;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function wV(e,t,n,r){const a=e.children[0],s=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);s&&c.move(o);let d=kR.listItem(e,t,n,{...r,...c.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),d;function f(m){return m+o}}function kV(){return[nH(),wH(),AH(),fV(),EV()]}function TV(e){return{extensions:[rH(),kH(e),IH(),xV(e),SV()]}}const NV={tokenize:OV,partial:!0},TR={tokenize:LV,partial:!0},NR={tokenize:DV,partial:!0},AR={tokenize:MV,partial:!0},AV={tokenize:jV,partial:!0},IR={name:"wwwAutolink",tokenize:RV,previous:RR},CR={name:"protocolAutolink",tokenize:_V,previous:_R},Wr={name:"emailAutolink",tokenize:CV,previous:OR},Or={};function IV(){return{text:Or}}let Wa=48;for(;Wa<123;)Or[Wa]=Wr,Wa++,Wa===58?Wa=65:Wa===91&&(Wa=97);Or[43]=Wr;Or[45]=Wr;Or[46]=Wr;Or[95]=Wr;Or[72]=[Wr,CR];Or[104]=[Wr,CR];Or[87]=[Wr,IR];Or[119]=[Wr,IR];function CV(e,t,n){const r=this;let a,s;return o;function o(h){return!Dm(h)||!OR.call(r,r.previous)||tE(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(h))}function c(h){return Dm(h)?(e.consume(h),c):h===64?(e.consume(h),d):n(h)}function d(h){return h===46?e.check(AV,m,f)(h):h===45||h===95||tn(h)?(s=!0,e.consume(h),d):m(h)}function f(h){return e.consume(h),a=!0,d}function m(h){return s&&a&&ln(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function RV(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!RR.call(r,r.previous)||tE(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(NV,e.attempt(TR,e.attempt(NR,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function _V(e,t,n){const r=this;let a="",s=!1;return o;function o(h){return(h===72||h===104)&&_R.call(r,r.previous)&&!tE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),c):n(h)}function c(h){if(ln(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),c;if(h===58){const b=a.toLowerCase();if(b==="http"||b==="https")return e.consume(h),d}return n(h)}function d(h){return h===47?(e.consume(h),s?f:(s=!0,d)):n(h)}function f(h){return h===null||dc(h)||ut(h)||oi(h)||Fc(h)?n(h):e.attempt(TR,e.attempt(NR,m),n)(h)}function m(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function OV(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function LV(e,t,n){let r,a,s;return o;function o(f){return f===46||f===95?e.check(AR,d,c)(f):f===null||ut(f)||oi(f)||f!==45&&Fc(f)?d(f):(s=!0,e.consume(f),o)}function c(f){return f===95?r=!0:(a=r,r=void 0),e.consume(f),o}function d(f){return a||r||!s?n(f):t(f)}}function DV(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(AR,t,s)(o):o===null||ut(o)||oi(o)?t(o):(e.consume(o),a)}function s(o){return o===41&&r++,e.consume(o),a}}function MV(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),s):c===93?(e.consume(c),a):c===60||c===null||ut(c)||oi(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||ut(c)||oi(c)?t(c):r(c)}function s(c){return ln(c)?o(c):n(c)}function o(c){return c===59?(e.consume(c),r):ln(c)?(e.consume(c),o):n(c)}}function jV(e,t,n){return r;function r(s){return e.consume(s),a}function a(s){return tn(s)?n(s):t(s)}}function RR(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ut(e)}function _R(e){return!ln(e)}function OR(e){return!(e===47||Dm(e))}function Dm(e){return e===43||e===45||e===46||e===95||tn(e)}function tE(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const FV={tokenize:VV,partial:!0};function PV(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:zV,continuation:{tokenize:GV},exit:HV}},text:{91:{name:"gfmFootnoteCall",tokenize:$V},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:BV,resolveTo:UV}}}}function BV(e,t,n){const r=this;let a=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){o=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!o||!o._balanced)return n(d);const f=dr(r.sliceSerialize({start:o.end,end:r.now()}));return f.codePointAt(0)!==94||!s.includes(f.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function UV(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function $V(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return c;function c(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),d}function d(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(h){if(s>999||h===93&&!o||h===null||h===91||ut(h))return n(h);if(h===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return a.includes(dr(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return ut(h)||(o=!0),s++,e.consume(h),h===92?m:f}function m(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function zV(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,c;return d;function d(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(E)}function m(E){if(o>999||E===93&&!c||E===null||E===91||ut(E))return n(E);if(E===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return s=dr(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return ut(E)||(c=!0),o++,e.consume(E),E===92?h:m}function h(E){return E===91||E===92||E===93?(e.consume(E),o++,m):m(E)}function b(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),a.includes(s)||a.push(s),Xe(e,y,"gfmFootnoteDefinitionWhitespace")):n(E)}function y(E){return t(E)}}function GV(e,t,n){return e.check(el,t,e.attempt(FV,t,n))}function HV(e){e.exit("gfmFootnoteDefinition")}function VV(e,t,n){const r=this;return Xe(e,a,"gfmFootnoteDefinitionIndent",5);function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function WV(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,c){let d=-1;for(;++d<o.length;)if(o[d][0]==="enter"&&o[d][1].type==="strikethroughSequenceTemporary"&&o[d][1]._close){let f=d;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[d][1].end.offset-o[d][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[d][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[d][1].end)},h={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[d][1].start)},b=[["enter",m,c],["enter",o[f][1],c],["exit",o[f][1],c],["enter",h,c]],y=c.parser.constructs.insideSpan.null;y&&_n(b,b.length,0,Pc(y,o.slice(f+1,d),c)),_n(b,b.length,0,[["exit",h,c],["enter",o[d][1],c],["exit",o[d][1],c],["exit",m,c]]),_n(o,f-1,d-f+3,b),d=f+b.length-2;break}}for(d=-1;++d<o.length;)o[d][1].type==="strikethroughSequenceTemporary"&&(o[d][1].type="data");return o}function s(o,c,d){const f=this.previous,m=this.events;let h=0;return b;function b(E){return f===126&&m[m.length-1][1].type!=="characterEscape"?d(E):(o.enter("strikethroughSequenceTemporary"),y(E))}function y(E){const k=Ji(f);if(E===126)return h>1?d(E):(o.consume(E),h++,y);if(h<2&&!n)return d(E);const w=o.exit("strikethroughSequenceTemporary"),v=Ji(E);return w._open=!v||v===2&&!!k,w._close=!k||k===2&&!!v,c(E)}}}class qV{constructor(){this.map=[]}add(t,n,r){YV(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const s of a)t.push(s);a=r.pop()}this.map.length=0}}function YV(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function KV(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function XV(){return{flow:{null:{name:"table",tokenize:ZV,resolveAll:QV}}}}function ZV(e,t,n){const r=this;let a=0,s=0,o;return c;function c(O){let $=r.events.length-1;for(;$>-1;){const q=r.events[$][1].type;if(q==="lineEnding"||q==="linePrefix")$--;else break}const H=$>-1?r.events[$][1].type:null,Z=H==="tableHead"||H==="tableRow"?D:d;return Z===D&&r.parser.lazy[r.now().line]?n(O):Z(O)}function d(O){return e.enter("tableHead"),e.enter("tableRow"),f(O)}function f(O){return O===124||(o=!0,s+=1),m(O)}function m(O){return O===null?n(O):Ce(O)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),y):n(O):Ve(O)?Xe(e,m,"whitespace")(O):(s+=1,o&&(o=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),o=!0,m):(e.enter("data"),h(O)))}function h(O){return O===null||O===124||ut(O)?(e.exit("data"),m(O)):(e.consume(O),O===92?b:h)}function b(O){return O===92||O===124?(e.consume(O),h):h(O)}function y(O){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(O):(e.enter("tableDelimiterRow"),o=!1,Ve(O)?Xe(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):E(O))}function E(O){return O===45||O===58?w(O):O===124?(o=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),k):M(O)}function k(O){return Ve(O)?Xe(e,w,"whitespace")(O):w(O)}function w(O){return O===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),v):O===45?(s+=1,v(O)):O===null||Ce(O)?_(O):M(O)}function v(O){return O===45?(e.enter("tableDelimiterFiller"),N(O)):M(O)}function N(O){return O===45?(e.consume(O),N):O===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(O))}function A(O){return Ve(O)?Xe(e,_,"whitespace")(O):_(O)}function _(O){return O===124?E(O):O===null||Ce(O)?!o||a!==s?M(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):M(O)}function M(O){return n(O)}function D(O){return e.enter("tableRow"),R(O)}function R(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),R):O===null||Ce(O)?(e.exit("tableRow"),t(O)):Ve(O)?Xe(e,R,"whitespace")(O):(e.enter("data"),P(O))}function P(O){return O===null||O===124||ut(O)?(e.exit("data"),R(O)):(e.consume(O),O===92?B:P)}function B(O){return O===92||O===124?(e.consume(O),P):P(O)}}function QV(e,t){let n=-1,r=!0,a=0,s=[0,0,0,0],o=[0,0,0,0],c=!1,d=0,f,m,h;const b=new qV;for(;++n<e.length;){const y=e[n],E=y[1];y[0]==="enter"?E.type==="tableHead"?(c=!1,d!==0&&(QT(b,t,d,f,m),m=void 0,d=0),f={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(n,0,[["enter",f,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,h=void 0,s=[0,0,0,0],o=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(n,0,[["enter",m,t]])),a=E.type==="tableDelimiterRow"?2:m?3:1):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],h=Cu(b,t,s,a,void 0,h),s=[0,0,0,0]),o[2]=n)):E.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],h=Cu(b,t,s,a,void 0,h)),s=o,o=[s[1],n,0,0])):E.type==="tableHead"?(c=!0,d=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(d=n,s[1]!==0?(o[0]=o[1],h=Cu(b,t,s,a,n,h)):o[1]!==0&&(h=Cu(b,t,o,a,n,h)),a=0):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(o[3]=n)}for(d!==0&&QT(b,t,d,f,m),b.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=KV(t.events,n))}return e}function Cu(e,t,n,r,a,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(s.end=Object.assign({},Gi(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const d=Gi(t.events,n[1]);if(s={type:o,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const f=Gi(t.events,n[2]),m=Gi(t.events,n[3]),h={type:c,start:Object.assign({},f),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const b=t.events[n[2]],y=t.events[n[3]];if(b[1].end=Object.assign({},y[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,k=n[3]-n[2]-1;e.add(E,k,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return a!==void 0&&(s.end=Object.assign({},Gi(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function QT(e,t,n,r,a){const s=[],o=Gi(t.events,n);a&&(a.end=Object.assign({},o),s.push(["exit",a,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function Gi(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const JV={name:"tasklistCheck",tokenize:t6};function e6(){return{text:{91:JV}}}function t6(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return ut(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),o):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),o):n(d)}function o(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Ce(d)?t(d):Ve(d)?e.check({tokenize:n6},t,n)(d):n(d)}}function n6(e,t,n){return Xe(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function r6(e){return _C([IV(),PV(),WV(e),XV(),e6()])}const a6={};function Ta(e){const t=this,n=e||a6,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(r6(n)),s.push(kV()),o.push(TV(n))}function LR(e){const t=e.toLowerCase();return t==="agent"||t==="subagent"||t==="skill"||t.startsWith("harness:")}function Zc(e,t){const n=t==null?void 0:t.toLowerCase();if(n==="read"||n==="read_file"||n==="bash")return!0;const a=[/^>\s/,/^\$\s/,/^RUN\s/,/^[@\w-]+\/@?[\w-]+/,/\[\d{1,2}m/,/\[\]\s\[\d{2}/,/^(\s*\||\s*\+|-{3,})/,/^(\s*[✔✘ℹ⚠]\s)/,/^\s*\d+\s+import\s+/i,/^\s*\d+\s+export\s+/i,/^\s*\d+\s+\w+/,/import\s+.*\s+from\s+['"]/,/const\s+.*\s+=\s+require\(/],s=e.trim().split(`
|
|
375
|
-
`);if(s.length===0)return!1;const o=s.filter(c=>a.some(d=>d.test(c.trim()))).length;return o/s.length>.1||o>0}function DR(e){return e.includes("todo")}function MR(e){return e.includes("interaction")||e.includes("question")||e.includes("ask")||e.includes("human")}function i6(e){if(e.kind!=="tool_use")return!1;if(LR(e.tool))return!0;const t=e.tool.toLowerCase();return DR(t)||MR(t)}function s6(e,t,n){const r=[];for(let a=n+1;a<e.length;a++){if(t.has(a))continue;const s=e[a];if(i6(s)||s.kind==="text"&&!Zc(s.text))break;r.push(a)}return r}function jR(e,t,n,r,a){const s=[];let o=n;const c=f=>a?a.includes(f):f<e.length;for(;c(o);){if(r.has(o)){o++;continue}const f=e[o];if(f.kind==="tool_use"||f.kind==="thinking")break;if(f.kind==="text")if(Zc(f.text,t.tool))s.push(f.text),r.add(o);else break;else f.kind==="status"&&(s.push(f.text),r.add(o));o++}if(s.length===0)return t;const d=s.join(`
|
|
376
|
-
|
|
377
|
-
`);return{...t,result:t.result?`${d}
|
|
378
|
-
|
|
379
|
-
${t.result}`:d}}function o6(e,t){const n=[],r=new Set;for(const a of t){if(r.has(a))continue;const s=e[a];s.kind==="tool_use"?n.push(jR(e,s,a+1,r,t)):n.push(s)}return n}function l6(e){for(let t=e.length-1;t>=0;t--)if(e[t].kind==="activity"){e[t].isLastGroup=!0;return}}function Qc(e){e.activityGroup.length!==0&&(e.segments.push({kind:"activity",blocks:e.activityGroup,startIndex:e.activityGroupStart,isLastGroup:!1}),e.activityGroup=[])}function Mm(e,t,n){e.activityGroup.length===0&&(e.activityGroupStart=n),e.activityGroup.push(t)}function u6(e,t,n){Qc(e);const r=s6(e.blocks,e.consumedIndices,n);r.forEach(s=>e.consumedIndices.add(s));const a=o6(e.blocks,r);e.segments.push({kind:"agent",block:t,childBlocks:a,childStartIndex:r[0]??n+1,childIsLastGroup:r.length>0&&r[r.length-1]===e.blocks.length-1,index:n})}function c6(e,t,n){Qc(e),e.segments.push({kind:"todo",block:t,index:n})}function d6(e,t,n){Qc(e),e.segments.push({kind:"interaction",block:t,index:n,isPending:e.isStreaming&&n===e.blocks.length-1})}function p6(e,t,n){const r=jR(e.blocks,t,n+1,e.consumedIndices,void 0);Mm(e,r,n)}function f6(e,t,n){const r=t.tool.toLowerCase();if(LR(t.tool))return u6(e,t,n);if(DR(r))return c6(e,t,n);if(MR(r))return d6(e,t,n);p6(e,t,n)}function m6(e,t,n){t.kind==="tool_use"?f6(e,t,n):t.kind==="thinking"||t.kind==="status"||t.kind==="text"&&Zc(t.text)?Mm(e,t,n):(Qc(e),e.segments.push({kind:"text",block:t,index:n}))}function h6(e,t){if(e.length===0)return[];const n={blocks:e,segments:[],consumedIndices:new Set,activityGroup:[],activityGroupStart:0,isStreaming:t};for(let r=0;r<e.length;r++)n.consumedIndices.has(r)||m6(n,e[r],r);return n.activityGroup.length>0?n.segments.push({kind:"activity",blocks:n.activityGroup,startIndex:n.activityGroupStart,isLastGroup:!0}):l6(n.segments),t&&n.segments.push({kind:"streaming"}),n.segments}function g6(e){switch(e.kind){case"agent":return`agent-${e.index}`;case"todo":return`todo-${e.index}`;case"interaction":return`interaction-${e.index}`;case"activity":return`ag-${e.startIndex}`;case"text":return`text-${e.index}`;case"streaming":return"streaming"}}const Ru=["Thinking deeply…","Analyzing the codebase…","Connecting the dots…","Weaving through the code…","Exploring possibilities…","Building a mental model…","Following the thread…","Mapping dependencies…","Tracing the logic…","Piecing it together…","Diving into the details…","Reasoning through options…","Scanning for patterns…","Synthesizing insights…","Crafting a response…","Running the numbers…","Almost there…","Working through it…","Processing your request…","Engineering a solution…"];function b6({index:e,total:t}){const n=1-Math.abs(e-t/2)/(t/2),r=.4+n*.6,a=.1+n*.1,s=1.2+(1-n)*2,o=.3+n*.5;return u.jsx(ee.div,{animate:{scaleY:[a,r,a*1.3,r*.7,a],opacity:[o*.6,o,o*.7,o*.9,o*.6]},transition:{duration:s,repeat:1/0,delay:e*.08,ease:"easeInOut"},className:"w-[1.5px] h-5 rounded-full origin-bottom",style:{background:"linear-gradient(to top, rgba(139,92,246,0.8), rgba(34,211,238,0.6))"}})}function FR(){const[e,t]=T.useState(()=>Math.floor(Math.random()*Ru.length)),[n,r]=T.useState(0),a=T.useRef(Date.now());T.useEffect(()=>{const o=setInterval(()=>{t(c=>{let d;do d=Math.floor(Math.random()*Ru.length);while(d===c&&Ru.length>1);return d})},4500+Math.random()*2e3);return()=>clearInterval(o)},[]),T.useEffect(()=>{const o=setInterval(()=>{r(Math.floor((Date.now()-a.current)/1e3))},1e3);return()=>clearInterval(o)},[]);const s=o=>o<60?`${o}s`:`${Math.floor(o/60)}m ${o%60}s`;return u.jsxs(ee.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8},className:"relative flex items-center gap-4 py-5 px-4",children:[u.jsx(ee.div,{className:"absolute left-0 top-1/2 w-20 h-20 -translate-x-1/4 -translate-y-1/2 rounded-full pointer-events-none",animate:{opacity:[.05,.1,.07,.09,.05],scale:[.95,1.08,.98,1.04,.95]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},style:{background:"radial-gradient(circle, rgba(139,92,246,0.35) 0%, rgba(79,70,229,0.08) 50%, transparent 70%)",filter:"blur(12px)"}}),u.jsx(ee.div,{animate:{y:[0,-2,1,-1.5,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},className:"shrink-0 relative z-10",children:u.jsx(ur,{size:80})}),u.jsxs("div",{className:"relative flex-1 min-w-0 flex items-center h-10",children:[u.jsx("div",{className:"absolute inset-0 flex items-end justify-start gap-[2.5px] opacity-[0.15] pointer-events-none overflow-hidden blur-[0.5px]",children:Array.from({length:20}).map((o,c)=>u.jsx(b6,{index:c,total:20},c))}),u.jsxs("div",{className:"relative z-10 flex flex-col justify-center",children:[u.jsx(xn,{mode:"wait",children:u.jsx(ee.span,{initial:{opacity:0,x:-4,filter:"blur(3px)"},animate:{opacity:.9,x:0,filter:"blur(0px)"},exit:{opacity:0,x:4,filter:"blur(2px)"},transition:{duration:.4},className:"text-[11px] font-semibold tracking-[0.08em] text-neutral-muted uppercase leading-none",children:Ru[e]},e)}),u.jsx("div",{className:"h-3.5 flex items-center mt-1",children:n>2&&u.jsxs(ee.span,{initial:{opacity:0},animate:{opacity:.3},className:"text-[8px] font-mono text-neutral-muted/60 tabular-nums tracking-[0.15em]",children:["T+",s(n)]})})]})]})]})}function JT({block:e}){return u.jsxs("details",{className:"rounded border border-neutral-border/50 bg-neutral-surface/50 backdrop-blur-sm group",children:[u.jsxs("summary",{className:"cursor-pointer px-3 py-1.5 text-xs font-medium text-neutral-muted select-none flex items-center gap-2",children:[u.jsx("div",{className:"h-1 w-1 rounded-full bg-secondary-400 group-open:animate-pulse"}),"Thinking..."]}),u.jsx("div",{className:"border-t border-neutral-border/50 px-3 py-2",children:u.jsx("p",{className:"whitespace-pre-wrap text-xs leading-relaxed text-neutral-muted",children:e.text})})]})}function PR(e,t){if(!t)return"";const n=e.toLowerCase();try{const r=JSON.parse(t);if(n.includes("todo")&&r.todos&&Array.isArray(r.todos))return`Updating ${r.todos.length} tasks`;if(n==="bash"&&(r.command||r.args))return(r.command||r.args).replace(/cd\s+("[^"]+"|'[^']+'|[^\s]+)\s*&&\s*/g,"").slice(0,100);if(n==="agent"||n==="subagent"||r.subagent_type){const a=r.subagent_type||r.type;if(a&&r.description)return`${a}: ${r.description}`.slice(0,100);if(r.description)return r.description.slice(0,100)}return r.path||r.file_path||r.filePath?(r.path||r.file_path||r.filePath).split("/").slice(-2).join("/"):JSON.stringify(r).slice(0,100)}catch{return t.slice(0,100)}}function hc({block:e,forceResult:t,isPending:n=!1,attribution:r}){const[a,s]=T.useState(()=>{const m=e.tool.toLowerCase();return m.includes("interaction")||m.includes("question")||m.includes("ask")||m.includes("human")}),o=e.result||t,c=o!==void 0,d=e.tool.toLowerCase().includes("todo");let f=null;if(d&&e.args)try{const m=JSON.parse(e.args);m.todos&&Array.isArray(m.todos)&&(f=m.todos)}catch{}return u.jsxs("div",{className:"relative overflow-hidden rounded border border-neutral-border/50 bg-neutral-surface/50 backdrop-blur-sm transition-all duration-200",children:[n&&!c&&u.jsx(ee.div,{initial:{top:"-10%"},animate:{top:"110%"},transition:{duration:1.5,repeat:1/0,ease:"linear"},className:"absolute left-0 right-0 h-4 bg-gradient-to-b from-transparent via-secondary-400/20 to-transparent pointer-events-none z-10"}),u.jsxs("div",{className:"flex cursor-pointer items-center gap-2 px-3 py-2 select-none relative z-20 hover:bg-white/5 active:bg-white/10 transition-colors",onClick:()=>s(!a),children:[u.jsx(ee.span,{animate:{rotate:a?90:0},className:"text-[9px] text-secondary-400 font-bold",children:"▶"}),u.jsx("span",{className:"text-[10px] font-black tracking-[0.2em] text-neutral-text capitalize truncate max-w-[300px]",children:(()=>{if(e.tool.toLowerCase()==="bash"&&e.args)try{const m=JSON.parse(e.args);if(m.description)return m.description}catch{}return e.tool.replace(/_/g," ")})()}),e.args&&u.jsx("span",{className:"truncate font-mono text-[9px] text-neutral-muted/60",title:e.args,children:PR(e.tool,e.args)}),r&&u.jsx("span",{className:"ml-2 inline-flex items-center gap-1 rounded bg-secondary-500/10 px-1.5 py-0.5 text-[8px] font-bold uppercase tracking-wider text-secondary-400 border border-secondary-400/20",children:r}),c&&u.jsx("div",{className:"ml-auto flex items-center gap-2",children:u.jsx("span",{className:`text-[9px] font-bold uppercase tracking-wider px-1.5 py-0.5 rounded-sm border ${e.isError?"text-red-400 border-red-400/30 bg-red-400/5":"text-emerald-400 border-emerald-400/30 bg-emerald-400/5"}`,children:e.isError?"ERR":"OK"})})]}),a&&c&&u.jsx(ee.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},className:"border-t border-neutral-border/50 bg-neutral-bg/50 relative z-20 px-3 py-2",children:u.jsxs("div",{className:`max-h-[60vh] overflow-auto prose prose-invert prose-xs selection:bg-secondary-400/20 whitespace-pre-wrap ${e.isError?"text-red-400":""}`,children:[u.jsx(ka,{remarkPlugins:[Ta],children:o}),c&&!n&&e.tool.toLowerCase().includes("emit_interaction")&&u.jsx("div",{className:"mt-4 flex flex-wrap gap-2 border-t border-neutral-border/50 pt-3 not-prose",children:(()=>{var m,h;try{const b=JSON.parse(e.args||"{}"),y=E=>{window.dispatchEvent(new CustomEvent("chat-action-send",{detail:E}))};if(b.type==="question"){const E=[];if((m=b.question)!=null&&m.options&&b.question.options.length>0){const{options:k,recommendation:w}=b.question;w!==void 0&&k[w.optionIndex]&&E.push(u.jsxs("button",{onClick:()=>y(`Approve recommendation: ${k[w.optionIndex].label}`),className:"rounded bg-primary-500 px-3 py-1.5 text-xs font-bold text-white shadow hover:bg-primary-400 transition-colors",children:["Approve Recommendation (",String.fromCharCode(65+w.optionIndex),")"]},"approve-rec")),k.forEach((v,N)=>{if((w==null?void 0:w.optionIndex)===N)return;const A=typeof v=="string"?v:v.label;E.push(u.jsxs("button",{onClick:()=>y(`Approve option ${String.fromCharCode(65+N)}: ${A}`),className:"rounded bg-neutral-surface/60 border border-neutral-border hover:bg-white/5 px-3 py-1.5 text-[10px] font-medium text-neutral-text transition-colors",children:["Option ",String.fromCharCode(65+N)]},`opt-${N}`))})}return E.push(u.jsx("button",{onClick:()=>y("Continue"),className:"rounded bg-emerald-500/20 text-emerald-400 border border-emerald-500/30 px-4 py-1.5 text-[10px] font-bold hover:bg-emerald-500/30 transition-colors",children:"Continue"},"continue-btn")),E}if(b.type==="confirmation")return u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>y("Yes, proceed"),className:"rounded bg-emerald-500/20 text-emerald-400 border border-emerald-500/30 px-4 py-1.5 text-xs font-bold hover:bg-emerald-500/30 transition-colors",children:"Confirm & Proceed"}),u.jsx("button",{onClick:()=>y("No, stop"),className:"rounded bg-red-500/20 text-red-400 border border-red-500/30 px-4 py-1.5 text-xs font-bold hover:bg-red-500/30 transition-colors",children:"Cancel"})]});if(b.type==="transition"&&((h=b.transition)!=null&&h.requiresConfirmation))return u.jsxs(u.Fragment,{children:[u.jsxs("button",{onClick:()=>y(`Yes, proceed to ${b.transition.suggestedNext}`),className:"rounded bg-primary-500 px-4 py-1.5 text-xs font-bold text-white shadow hover:bg-primary-400 transition-colors",children:["Proceed to ",b.transition.suggestedNext]}),u.jsxs("button",{onClick:()=>y("No, stay here"),className:"rounded bg-neutral-surface/60 border border-neutral-border hover:bg-white/5 px-4 py-1.5 text-[10px] font-medium text-neutral-text transition-colors",children:["Stay in ",b.transition.completedPhase]})]});if(b.type==="batch")return u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>y("Approve all decisions"),className:"rounded bg-emerald-500/20 text-emerald-400 border border-emerald-500/30 px-4 py-1.5 text-xs font-bold hover:bg-emerald-500/30 transition-colors",children:"Approve All"}),u.jsx("button",{onClick:()=>y("Reject batch"),className:"rounded bg-red-500/20 text-red-400 border border-red-500/30 px-4 py-1.5 text-xs font-bold hover:bg-red-500/30 transition-colors",children:"Reject"})]})}catch{}return null})()})]})})]})}function y6({block:e,children:t}){let n={};if(e.args)try{n=JSON.parse(e.args)}catch{}const r=e.tool.toLowerCase(),a=r==="skill"||r.startsWith("harness:"),s=a?"border-emerald-400/20 bg-emerald-400/5":"border-secondary-400/20 bg-secondary-400/5",o=a?"border-emerald-400/10 bg-emerald-400/10":"border-secondary-400/10 bg-secondary-400/10",c=a?"text-emerald-400":"text-secondary-400",d=a?"text-emerald-300":"text-secondary-300",f=a?"text-emerald-400":"text-secondary-400",m=a?"border-emerald-400/10":"border-secondary-400/10",h=a?`Skill: ${n.skill||(r.startsWith("harness:")?e.tool.split(":")[1]:"Execution")}`:`Subagent: ${n.subagent_type||n.type||"Execution"}`,b=a?void 0:n.description,y=a?n.args:n.prompt;return u.jsxs("div",{className:`my-3 rounded border ${s} overflow-hidden`,children:[u.jsxs("div",{className:`flex items-center gap-2 px-3 py-2 border-b ${o}`,children:[u.jsx("svg",{className:`w-3 h-3 ${c}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a?u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"}):u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),u.jsx("span",{className:`font-bold tracking-widest uppercase text-[10px] ${d}`,children:h}),!e.result&&!e.isError&&u.jsx("span",{className:`ml-auto text-[10px] ${f} animate-pulse`,children:"Running..."}),e.isError&&u.jsx("span",{className:"ml-auto text-[10px] text-red-400",children:"Error"})]}),u.jsxs("div",{className:"flex flex-col p-3 gap-2",children:[b&&u.jsx("div",{className:"text-[13px] font-bold text-neutral-text",children:b}),y&&u.jsx("div",{className:"text-xs text-neutral-muted bg-neutral-surface/40 p-2 rounded border border-neutral-border/50 whitespace-pre-wrap font-mono leading-relaxed mt-1 overflow-x-auto",children:y}),e.result&&u.jsx("div",{className:`mt-2 pt-2 border-t ${m} text-xs text-neutral-muted prose prose-invert prose-xs max-h-[40vh] overflow-auto whitespace-pre-wrap`,children:u.jsx(ka,{remarkPlugins:[Ta],children:e.result})}),t&&(Array.isArray(t)?t.length>0:!0)&&u.jsxs("div",{className:`mt-2 pt-2 border-t ${m} flex flex-col gap-1`,children:[u.jsx("div",{className:"text-[10px] uppercase tracking-widest font-black text-neutral-muted/50 mb-1",children:"Activity Trace"}),t]})]})]})}function x6({block:e}){let t=null;if(e.args)try{const n=JSON.parse(e.args);n.todos&&Array.isArray(n.todos)&&(t=n.todos)}catch{}return t?u.jsxs("div",{className:"my-3 rounded border border-primary-500/20 bg-primary-500/5 overflow-hidden",children:[u.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-primary-500/10 bg-primary-500/10",children:[u.jsx("svg",{className:"w-3 h-3 text-primary-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})}),u.jsx("span",{className:"font-bold tracking-widest uppercase text-[10px] text-primary-300",children:"Todo Plan"}),e.isError&&u.jsx("span",{className:"ml-auto text-[10px] text-red-400",children:"Error Parsing"})]}),u.jsxs("div",{className:"flex flex-col p-3 gap-2",children:[t.map((n,r)=>{const a=n.status==="completed"||n.status==="done",s=n.status==="in_progress";return u.jsxs("div",{className:"flex items-start gap-3 text-sm",children:[u.jsx("div",{className:"pt-1 shrink-0",children:a?u.jsx("div",{className:"h-3.5 w-3.5 rounded bg-emerald-500/20 border border-emerald-500 flex items-center justify-center",children:u.jsx("svg",{className:"w-2.5 h-2.5 text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}):s?u.jsx("div",{className:"h-3.5 w-3.5 rounded bg-secondary-400/20 border border-secondary-400 flex items-center justify-center",children:u.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-secondary-400 animate-pulse"})}):u.jsx("div",{className:"h-3.5 w-3.5 rounded border border-neutral-border bg-neutral-surface/50"})}),u.jsxs("div",{className:"flex flex-col leading-snug pt-[1px]",children:[u.jsx("span",{className:`text-neutral-text text-[13px] ${a?"line-through text-neutral-muted":""}`,children:n.content}),n.activeForm&&s&&u.jsxs("span",{className:"text-xs text-secondary-400 mt-1 font-mono",children:["▶ ",n.activeForm]})]})]},r)}),e.result&&u.jsx("div",{className:"mt-2 pt-2 border-t border-primary-500/10 text-xs text-neutral-muted prose prose-invert prose-xs whitespace-pre-wrap",children:u.jsx(ka,{remarkPlugins:[Ta],children:e.result})})]})]}):u.jsx(hc,{block:e,isPending:!1})}function E6({text:e}){return u.jsxs("div",{className:"my-2 rounded border border-neutral-border/30 bg-neutral-surface/20 backdrop-blur-sm overflow-hidden",children:[u.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 border-b border-neutral-border/10 bg-neutral-surface/40 select-none",children:[u.jsxs("div",{className:"flex gap-1 mr-1",children:[u.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-neutral-border/30"}),u.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-neutral-border/30"}),u.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-neutral-border/30"})]}),u.jsx("span",{className:"text-[10px] font-black tracking-[0.2em] text-neutral-muted/60 uppercase",children:"Terminal Output"})]}),u.jsx("div",{className:"px-3 py-3 bg-neutral-bg/20",children:u.jsx("div",{className:"prose prose-invert prose-xs selection:bg-secondary-400/20 whitespace-pre-wrap",children:u.jsx(ka,{remarkPlugins:[Ta],children:e})})})]})}function eN({block:e}){return u.jsxs("div",{className:"flex items-center gap-2 px-1 py-0.5",children:[u.jsx("span",{className:"inline-block h-1.5 w-1.5 animate-pulse rounded-full bg-yellow-500 shadow-[0_0_8px_rgba(234,179,8,0.6)]"}),u.jsx("span",{className:"font-mono text-[10px] tracking-widest text-neutral-muted",children:e.text})]})}function BR({block:e}){if(Zc(e.text))return u.jsx(E6,{text:e.text});const t=[...e.text.matchAll(/<?!--\s*packed:\s*(.*?)\s*-->?/g)],n=e.text.replace(/<?!--\s*packed:\s*(.*?)\s*-->?/g,"").replace(/\n{3,}/g,`
|
|
380
|
-
|
|
381
|
-
`).trim();return u.jsxs("div",{className:"flex flex-col gap-2 relative",children:[t.length>0&&u.jsx("div",{className:"flex flex-wrap gap-2",children:t.map((r,a)=>u.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-secondary-500/10 px-2.5 py-0.5 text-[10px] font-medium text-secondary-300 border border-secondary-500/20",title:"Graph context packing applied",children:[u.jsx("svg",{className:"w-3 h-3 text-secondary-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})}),u.jsxs("span",{children:["Packed: ",r[1]]})]},a))}),n.length>0&&u.jsx("div",{className:"prose prose-invert prose-sm max-w-none py-1 selection:bg-primary-500/30",children:u.jsx(ka,{remarkPlugins:[Ta],components:{code(r){const{node:a,className:s,children:o,...c}=r,d=!(s&&/language-(\w+)/.test(s)),f=/language-(\w+)/.exec(s??"");return!d&&f?u.jsxs("div",{className:"relative group my-4",children:[u.jsx("div",{className:"absolute -inset-2 bg-gradient-to-r from-primary-500/10 to-secondary-400/10 rounded-xl blur opacity-0 group-hover:opacity-100 transition-opacity"}),u.jsxs("div",{className:"relative rounded-lg border border-neutral-border overflow-hidden shadow-2xl",children:[u.jsxs("div",{className:"flex items-center justify-between px-4 py-2 bg-neutral-surface/80 border-b border-neutral-border",children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-neutral-muted",children:f[1]}),u.jsxs("div",{className:"flex gap-1",children:[u.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-neutral-border"}),u.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-neutral-border"})]})]}),u.jsx(uR,{...c,style:XG,language:f[1],PreTag:"div",className:"!bg-neutral-surface/40 !m-0 !p-4 !text-[11px] font-mono leading-relaxed",children:(Array.isArray(o)?o.join(""):typeof o=="string"?o:"").replace(/\n$/,"")})]})]}):u.jsx("code",{className:`${s} bg-neutral-surface/60 px-1.5 py-0.5 rounded text-secondary-400 font-mono text-[11px] border border-neutral-border`,...c,children:o})}},children:n})})]})}function tN({blocks:e,startIndex:t,isStreaming:n,isLastGroup:r}){if(e.filter(a=>a.kind==="tool_use").length,e.length===0)return null;if(e.length===1){const a=e[0];if(a.kind!=="tool_use"&&a.kind!=="text"){if(a.kind==="thinking")return u.jsx(ee.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},children:u.jsx(JT,{block:a})});if(a.kind==="status")return u.jsx(ee.div,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},children:u.jsx(eN,{block:a})})}}return u.jsx("div",{className:"relative flex flex-col gap-[2px] my-1",children:(()=>{const a=[];let s=[];const o=()=>{if(s.length!==0){if(s.length>=3){const c=s[s.length-1].block;a.push(u.jsxs("details",{className:"rounded border border-neutral-border/50 bg-neutral-bg/30 my-1",children:[u.jsxs("summary",{className:"cursor-pointer px-3 py-2 text-xs text-neutral-muted select-none flex items-center gap-2",children:[u.jsxs("div",{className:"flex -space-x-1 shrink-0",children:[u.jsx("div",{className:"h-2 w-2 rounded-full bg-secondary-400/50"}),u.jsx("div",{className:"h-2 w-2 rounded-full bg-secondary-400/70"}),u.jsx("div",{className:"h-2 w-2 rounded-full bg-secondary-400"})]}),u.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0 overflow-hidden",children:[u.jsxs("span",{className:"shrink-0",children:["Used ",s.length," tools"]}),u.jsx("span",{className:"shrink-0 opacity-30 text-lg leading-none mt-[-2px]",children:"·"}),u.jsxs("span",{className:"truncate opacity-75 capitalize tracking-widest text-[9px] font-black text-neutral-text",children:[c.tool.replace(/_/g," "),c.args&&u.jsx("span",{className:"font-mono text-[9px] font-normal normal-case tracking-normal ml-2 text-neutral-muted/80",children:PR(c.tool,c.args)})]})]})]}),u.jsx("div",{className:"flex flex-col gap-[2px] border-t border-neutral-border/50 p-2",children:s.map(({block:d,localIndex:f})=>{const m=r&&f===e.length-1;return u.jsx(hc,{block:d,isPending:m&&n},t+f)})})]},`cluster-${a.length}`))}else s.forEach(({block:c,localIndex:d})=>{const f=r&&d===e.length-1;a.push(u.jsx(hc,{block:c,isPending:f&&n},t+d))});s=[]}};for(let c=0;c<e.length;c++){const d=e[c];if(d.kind==="tool_use")s.push({block:d,localIndex:c});else switch(o(),d.kind){case"thinking":a.push(u.jsx(ee.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},children:u.jsx(JT,{block:d})},t+c));break;case"status":a.push(u.jsx(ee.div,{initial:{opacity:0,x:-5},animate:{opacity:1,x:0},children:u.jsx(eN,{block:d})},t+c));break;case"text":a.push(u.jsx(ee.div,{initial:{opacity:0},animate:{opacity:1},children:u.jsx(BR,{block:d})},t+c));break}}return o(),a})()})}function S6({segment:e,isStreaming:t}){switch(e.kind){case"agent":return u.jsx(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:u.jsx(y6,{block:e.block,children:e.childBlocks.length>0&&u.jsx(tN,{blocks:e.childBlocks,startIndex:e.childStartIndex,isStreaming:t,isLastGroup:e.childIsLastGroup})})});case"todo":return u.jsx(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:u.jsx(x6,{block:e.block})});case"interaction":return u.jsx(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:u.jsx(hc,{block:e.block,isPending:e.isPending})});case"activity":return u.jsx(tN,{blocks:e.blocks,startIndex:e.startIndex,isStreaming:t,isLastGroup:e.isLastGroup});case"text":return u.jsx(ee.div,{initial:{opacity:0},animate:{opacity:1},children:u.jsx(BR,{block:e.block})});case"streaming":return u.jsx(ee.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},className:"mt-2 border-t border-white/5",children:u.jsx(FR,{})})}}function UR({blocks:e,isStreaming:t}){if(e.length===0&&t)return u.jsx(FR,{});const n=T.useMemo(()=>h6(e,t),[e,t]);return n.length===0?null:u.jsx("div",{className:"flex flex-col gap-2",children:n.map(r=>u.jsx(S6,{segment:r,isStreaming:t},g6(r)))})}const v6=new Set(["TaskCreate","TaskUpdate","TaskList","TaskGet","TaskOutput","TaskStop","TodoWrite"]);function w6(e){return!(e.kind==="status"||e.kind==="tool_use"&&v6.has(e.tool))}function k6(e){return e.filter(w6)}function T6(e){const t=[],n=new Map;for(const r of e){if(r.kind!=="tool_use")continue;const a=r;if(a.tool==="TaskCreate"&&a.args)try{const s=JSON.parse(a.args),o=`task-${t.length+n.size+1}`;s.subject&&n.set(o,{id:o,text:s.subject,completed:!1})}catch{}if(a.tool==="TaskUpdate"&&a.args)try{const s=JSON.parse(a.args);if(s.taskId&&s.status==="completed"){const o=`task-${s.taskId}`,c=n.get(o);c&&n.set(o,{...c,completed:!0})}}catch{}if(a.tool==="TodoWrite"&&a.args)try{const s=JSON.parse(a.args);if(s.todos)for(const o of s.todos)n.set(o.id,{id:o.id,text:o.content,completed:o.status==="completed"})}catch{}}return[...n.values()]}function nE({messages:e,streaming:t,className:n}){const r=T.useRef(null),[a,s]=T.useState(!0),[o,c]=T.useState(!0),d=T.useRef(0);T.useEffect(()=>(t&&a&&e.length>0&&(cancelAnimationFrame(d.current),d.current=requestAnimationFrame(()=>{var h;(h=r.current)==null||h.scrollToIndex({index:e.length-1,align:"end",behavior:"smooth"})})),()=>cancelAnimationFrame(d.current)),[t,a,e]);const f=T.useCallback(()=>{var h;(h=r.current)==null||h.scrollToIndex({index:0,align:"start",behavior:"smooth"})},[]),m=T.useCallback(()=>{var h;(h=r.current)==null||h.scrollToIndex({index:e.length-1,align:"end",behavior:"smooth"})},[e.length]);return u.jsxs("div",{className:`h-full overflow-hidden rounded-2xl border border-neutral-border bg-neutral-bg/40 backdrop-blur-sm shadow-inner relative ${n}`,children:[u.jsxs(xn,{children:[!o&&u.jsx(ee.button,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},onClick:f,className:"absolute top-4 right-4 z-30 flex h-10 w-10 items-center justify-center rounded-full bg-white/10 backdrop-blur-xl border border-white/20 text-white hover:bg-white/20 transition-all shadow-2xl shadow-black/50",title:"Jump to top",children:u.jsx(FP,{size:20})}),!a&&u.jsx(ee.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},onClick:m,className:"absolute bottom-4 right-4 z-30 flex h-12 w-12 items-center justify-center rounded-full bg-primary-500 hover:bg-primary-400 text-white transition-all shadow-2xl shadow-primary-500/40 border border-white/20",title:"Jump to bottom",children:u.jsx(Rc,{size:24})})]}),e.length===0&&u.jsxs(ee.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1.2,ease:"easeOut"},className:"absolute inset-0 flex flex-col items-center justify-center text-center p-6",children:[u.jsxs("div",{className:"relative mb-6",children:[u.jsx(ee.div,{className:"absolute inset-0 -m-16 rounded-full",animate:{opacity:[.04,.08,.05,.07,.04],scale:[1,1.15,1.05,1.1,1]},transition:{duration:12,repeat:1/0,ease:"easeInOut"},style:{background:"radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(79,70,229,0.1) 40%, transparent 70%)",filter:"blur(20px)"}}),u.jsx(ee.div,{className:"absolute inset-0 -m-10 rounded-full",animate:{opacity:[.06,.12,.08,.1,.06],scale:[1,1.08,1.02,1.06,1]},transition:{duration:8,repeat:1/0,ease:"easeInOut",delay:.5},style:{background:"radial-gradient(circle, rgba(34,211,238,0.15) 0%, transparent 60%)",filter:"blur(12px)"}}),u.jsx(ee.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:1.5,ease:[.16,1,.3,1],delay:.2},children:u.jsx(ur,{size:120})})]}),u.jsx(ee.h2,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:.6,duration:.8},className:"mb-2 text-base font-bold tracking-tight text-neutral-text",children:"Neural Engine Ready"}),u.jsx(ee.p,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:.8,duration:.8},className:"max-w-[280px] text-[11px] leading-relaxed text-neutral-muted",children:"Awaiting prompt sequence. Issue context is pre-loaded into working memory."})]}),u.jsx(pC,{ref:r,style:{height:"100%"},data:e,followOutput:h=>h?"smooth":!1,atBottomStateChange:s,atTopStateChange:c,atBottomThreshold:200,initialTopMostItemIndex:e.length-1,itemContent:(h,b)=>u.jsx("div",{className:"px-6 py-3",children:b.role==="user"?u.jsx(ee.div,{initial:{opacity:0,y:10,scale:.98},animate:{opacity:1,y:0,scale:1},className:"flex justify-end",children:u.jsxs("div",{className:"max-w-[85%] text-right",children:[u.jsxs("div",{className:"mb-1.5 flex items-center justify-end gap-2 text-[9px] font-bold uppercase tracking-widest text-neutral-muted",children:[u.jsx("span",{children:"Operator"}),u.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-neutral-muted/60"})]}),u.jsx("div",{className:"rounded-2xl px-5 py-3 text-sm leading-relaxed bg-primary-500 text-white shadow-[0_4px_24px_-4px_rgba(79,70,229,0.4)]",children:u.jsx("pre",{className:"whitespace-pre-wrap font-sans",children:b.content})})]})}):u.jsx(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:u.jsx("div",{className:"px-1 py-1",children:u.jsx(UR,{blocks:k6(b.blocks),isStreaming:t&&h===e.length-1})})})})})]})}const N6={health:AI,security:RI,performance:Ko,architecture:II,"code-quality":TI,workflow:li},A6={health:"text-emerald-400",security:"text-red-400",performance:"text-amber-400",architecture:"text-blue-400","code-quality":"text-purple-400",workflow:"text-secondary-400"};function I6({filter:e,onSelect:t,onClose:n}){const[r,a]=T.useState(0),s=T.useMemo(()=>{const o=e.toLowerCase().replace(/^\//,"");return o?ii.filter(c=>c.name.toLowerCase().includes(o)||c.id.toLowerCase().includes(o)||c.slashCommand.toLowerCase().includes(o)):ii},[e]);return T.useEffect(()=>{a(0)},[s]),T.useEffect(()=>{const o=c=>{c.key==="ArrowDown"?(c.preventDefault(),a(d=>(d+1)%s.length)):c.key==="ArrowUp"?(c.preventDefault(),a(d=>(d-1+s.length)%s.length)):c.key==="Enter"?s[r]&&(c.preventDefault(),t(s[r])):c.key==="Escape"&&(c.preventDefault(),n())};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[s,r,t,n]),s.length===0?null:u.jsxs(ee.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},className:"absolute bottom-full left-0 right-0 mb-2 overflow-hidden rounded-xl border border-white/10 bg-neutral-bg/80 backdrop-blur-2xl shadow-2xl z-[70]",children:[u.jsx("div",{className:"max-h-60 overflow-y-auto p-1 custom-scrollbar",children:s.map((o,c)=>{const d=N6[o.category],f=A6[o.category],m=c===r;return u.jsxs("button",{onClick:()=>t(o),onMouseEnter:()=>a(c),className:`flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left transition-all ${m?"bg-white/10":"hover:bg-white/5"}`,children:[u.jsx("div",{className:`shrink-0 ${f}`,children:u.jsx(d,{size:14})}),u.jsxs("div",{className:"flex-1 overflow-hidden",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs font-bold text-white truncate",children:o.name}),u.jsx("span",{className:"text-[9px] font-mono text-neutral-muted uppercase tracking-tighter shrink-0 ml-2",children:o.category})]}),u.jsx("div",{className:"text-[10px] text-neutral-muted truncate font-mono",children:o.slashCommand})]}),m&&u.jsx("div",{className:"text-[10px] font-mono text-primary-400 animate-pulse",children:"↵"})]},o.id)})}),u.jsxs("div",{className:"border-t border-white/5 bg-white/5 px-3 py-1.5 flex items-center justify-between",children:[u.jsx("span",{className:"text-[9px] font-bold uppercase tracking-widest text-neutral-muted/50",children:"Command Registry"}),u.jsxs("div",{className:"flex gap-2 text-[9px] font-mono text-neutral-muted/30",children:[u.jsx("span",{children:"↑↓ to navigate"}),u.jsx("span",{children:"↵ to select"})]})]})]})}function jm({value:e,onChange:t,onSend:n,disabled:r,placeholder:a}){const[s,o]=T.useState(!1),c=f=>{if(t(f),f.startsWith("/")){const m=f.toLowerCase().replace(/^\//,""),h=ii.some(b=>b.name.toLowerCase().includes(m)||b.id.toLowerCase().includes(m)||b.slashCommand.toLowerCase().includes(m));o(h)}else o(!1)},d=f=>{t(f.slashCommand+" "),o(!1)};return u.jsxs("div",{className:"relative",children:[s&&u.jsx(I6,{filter:e,onSelect:d,onClose:()=>o(!1)}),u.jsx("textarea",{rows:1,value:e,onChange:f=>c(f.target.value),onKeyDown:f=>{s&&(f.key==="ArrowUp"||f.key==="ArrowDown"||f.key==="Enter"&&e.startsWith("/"))||f.key==="Enter"&&!f.shiftKey&&(f.preventDefault(),n())},placeholder:a??"Execute command or query neural link...",disabled:r,className:"w-full resize-none rounded-2xl border border-neutral-border bg-neutral-surface/60 px-5 py-4 pr-14 text-sm text-neutral-text placeholder-neutral-muted/50 backdrop-blur-xl transition-all focus:border-primary-500 focus:outline-none focus:ring-4 focus:ring-primary-500/10 disabled:opacity-50 shadow-lg"}),u.jsx("button",{onClick:n,disabled:r||!e.trim(),className:"absolute right-3 top-1/2 -translate-y-1/2 rounded-xl bg-primary-500 p-2.5 text-white transition-all hover:scale-105 active:scale-95 disabled:cursor-not-allowed disabled:opacity-30 shadow-[0_0_15px_rgba(79,70,229,0.3)]",children:r?u.jsx("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-white border-t-transparent"}):u.jsx(Nh,{size:18})})]})}function C6(e,t){var r;const n=(r=t["/api/checks"])==null?void 0:r.data;if(!n)return"No specific context data found for this skill.";switch(e.category){case"security":return _6(n.security);case"performance":return L6(n.perf);case"architecture":return M6(n.arch);case"health":return"Analyzing overall project health and implementation artifacts.";default:return e.description}}function R6(e,t){var a;const n=(a=t["/api/checks"])==null?void 0:a.data,r=[`You are launching the harness skill: ${e.name} (${e.id}).`,`Goal: ${e.description}`,""];return n&&(e.category==="security"?r.push("## Security Context",O6(n.security)):e.category==="performance"?r.push("## Performance Context",D6(n.perf)):e.category==="architecture"&&r.push("## Architecture Context",j6(n.arch))),r.push("","## Instructions",`Please proceed with the ${e.name} task. Use the provided context to prioritize your analysis and remediation efforts.`,"If specific files are mentioned in the context, start by examining those files."),r.join(`
|
|
382
|
-
`)}function _6(e){return"error"in e?`Security scan error: ${e.error}`:e.stats.errorCount===0&&e.stats.warningCount===0?"No security issues found in the latest scan.":`Found ${e.stats.errorCount} errors and ${e.stats.warningCount} warnings across ${e.stats.filesScanned} files.`}function O6(e){return"error"in e?`Error: ${e.error}`:e.findings.map(t=>`- [${t.severity}] ${t.ruleId} in ${t.file}:${t.line}: ${t.message}`).join(`
|
|
383
|
-
`)}function L6(e){return"error"in e?`Performance audit error: ${e.error}`:e.stats.violationCount===0?"No performance violations detected.":`Found ${e.stats.violationCount} performance violations in ${e.stats.filesAnalyzed} files.`}function D6(e){return"error"in e?`Error: ${e.error}`:e.violations.map(t=>`- [${t.severity}] ${t.metric} in ${t.file}: ${t.value} (threshold: ${t.threshold})`).join(`
|
|
384
|
-
`)}function M6(e){return"error"in e?`Architecture check error: ${e.error}`:e.totalViolations===0?"No architectural violations found.":`Found ${e.totalViolations} architectural violations across the codebase.`}function j6(e){return"error"in e?`Error: ${e.error}`:e.newViolations.map(t=>`- [${t.severity}] ${t.file}: ${t.detail}`).join(`
|
|
385
|
-
`)}function F6({skill:e,context:t,onExecute:n,onCancel:r}){const a=C6(e,t.data);return u.jsxs(ee.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},className:"flex flex-col gap-6 p-6 h-full overflow-y-auto custom-scrollbar",children:[u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2 text-primary-400",children:[u.jsx(lc,{size:16}),u.jsx("span",{className:"text-[10px] font-black uppercase tracking-[0.2em]",children:"Strategy Briefing"})]}),u.jsx("h2",{className:"text-2xl font-bold text-white",children:e.name}),u.jsx("p",{className:"text-sm text-neutral-muted leading-relaxed",children:e.description})]}),u.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/5 p-5 backdrop-blur-xl flex flex-col gap-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h3",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:"Telemetry Findings"}),t.isLoading&&u.jsx(_c,{size:14,className:"animate-spin text-primary-500"})]}),t.error?u.jsxs("div",{className:"flex gap-3 text-red-400 bg-red-400/10 p-3 rounded-lg border border-red-400/20",children:[u.jsx(vI,{size:16,className:"shrink-0"}),u.jsx("p",{className:"text-xs leading-tight",children:t.error})]}):t.isLoading?u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx("div",{className:"h-4 w-3/4 bg-white/5 animate-pulse rounded"}),u.jsx("div",{className:"h-4 w-1/2 bg-white/5 animate-pulse rounded"})]}):u.jsxs("div",{className:"flex flex-col gap-3",children:[u.jsx("p",{className:"text-sm text-white leading-relaxed font-medium",children:a}),u.jsxs("div",{className:"flex items-center gap-2 text-[10px] font-mono text-neutral-muted",children:[u.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500"}),u.jsx("span",{children:"Context automatically extracted from latest dashboard telemetry"})]})]})]}),u.jsxs("div",{className:"mt-auto pt-6 flex flex-col gap-3",children:[u.jsxs(ee.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:n,disabled:t.isLoading,className:"w-full flex items-center justify-center gap-3 rounded-2xl bg-primary-500 py-4 text-sm font-bold text-white shadow-[0_0_20px_rgba(79,70,229,0.4)] transition-all hover:shadow-[0_0_30px_rgba(79,70,229,0.6)] disabled:opacity-50 disabled:cursor-not-allowed",children:[u.jsx(SB,{size:18,fill:"currentColor"}),"Execute ",e.name]}),r&&u.jsx("button",{onClick:r,className:"w-full py-2 text-[10px] font-bold uppercase tracking-widest text-neutral-muted hover:text-white transition-colors",children:"Change Command"})]}),u.jsx("div",{className:"text-center",children:u.jsx("p",{className:"text-[9px] font-mono text-neutral-muted/30 uppercase tracking-tighter",children:"Verification loop: pre-launch strategy pass active"})})]})}async function $R(e,t,n,r,a){try{const s=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:e,system:t,sessionId:n}),signal:a});if(!s.ok||!s.body){r.onError(`Chat request failed: HTTP ${s.status}`);return}const o=s.body.getReader(),c=new TextDecoder;let d="";for(;;){const{done:f,value:m}=await o.read();if(f)break;d+=c.decode(m,{stream:!0});const h=d.split(`
|
|
386
|
-
`);d=h.pop()??"";for(const b of h){if(!b.startsWith("data: "))continue;const y=b.slice(6).trim();if(y==="[DONE]"){r.onDone();return}try{const E=JSON.parse(y);if(typeof E!="object"||E===null||!("type"in E))continue;const k=E;if(k.type==="session")r.onSession(k.sessionId);else if(k.type==="error"){r.onError(k.error);return}else r.onChunk(k)}catch{}}}r.onDone()}catch(s){s.name!=="AbortError"&&r.onError(s.message??"Stream failed")}}function zR(e,t){if(t.type==="session"||t.type==="error")return;const n=e[e.length-1];switch(t.type){case"text":P6(e,n,t.text);break;case"thinking":B6(e,n,t.text);break;case"tool_use":e.push({kind:"tool_use",tool:t.tool,...t.args!=null?{args:t.args}:{}});break;case"tool_args_delta":U6(e,t.text);break;case"tool_result":$6(e,t.content,t.isError);break;case"status":z6(e,n,t.text);break}}function P6(e,t,n){(t==null?void 0:t.kind)==="text"?e[e.length-1]={kind:"text",text:t.text+n}:((t==null?void 0:t.kind)==="status"&&e.pop(),e.push({kind:"text",text:n}))}function B6(e,t,n){(t==null?void 0:t.kind)==="thinking"?e[e.length-1]={kind:"thinking",text:t.text+n}:e.push({kind:"thinking",text:n})}function U6(e,t){for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.kind==="tool_use"&&r.result===void 0){e[n]={...r,args:(r.args??"")+t};break}}}function $6(e,t,n){for(let r=e.length-1;r>=0;r--){const a=e[r];if(a.kind==="tool_use"&&a.result===void 0){e[r]={...a,result:t,...n!=null?{isError:n}:{}};break}}}function z6(e,t,n){(t==null?void 0:t.kind)==="status"?e[e.length-1]={kind:"status",text:n}:e.push({kind:"status",text:n})}async function G6(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch context from ${e}: ${t.statusText}`);const n=await t.json();return{source:e,data:n}}function H6(e){const t={};for(const{source:n,data:r}of e)t[n]=r;return t}function V6(e){return e instanceof Error?e.message:"Unknown error fetching chat context"}function W6(e){return e?e.split("|"):[]}function q6(e,t,n){e({}),t(!1),n(null)}function Y6(e){const[t,n]=T.useState({}),[r,a]=T.useState(!1),[s,o]=T.useState(null),c=T.useMemo(()=>(e??[]).join("|"),[e]);return T.useEffect(()=>{const d=W6(c);if(d.length===0){q6(n,a,o);return}let f=!0;return a(!0),o(null),Promise.all(d.map(G6)).then(m=>{f&&n(H6(m))}).catch(m=>{f&&o(V6(m))}).finally(()=>{f&&a(!1)}),()=>{f=!1}},[c]),{data:t,isLoading:r,error:s}}const K6=[];function X6(e){fetch("/api/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).catch(t=>console.error("Failed to persist session:",t))}function Z6({thread:e}){const t=e.meta,n=Ge(R=>R.messages.get(e.id)??K6),r=Ge;T.useEffect(()=>{const R=[];for(const B of n)B.role==="assistant"&&R.push(...B.blocks);const P=T6(R);P.length>0&&Ge.getState().updatePanelState(e.id,{todos:P})},[n,e.id]);const[a,s]=T.useState(""),[o,c]=T.useState(!1),[d,f]=T.useState(null),[m,h]=T.useState(),[b,y]=T.useState(null),[E,k]=T.useState(!1),w=T.useRef(new Set),v=T.useRef(null);T.useEffect(()=>{fetch(`/api/sessions/${t.sessionId}`).then(R=>R.ok?R.json():null).then(R=>{R&&(r.getState().setMessages(e.id,R.messages),R.orchestratorSessionId&&h(R.orchestratorSessionId))}).catch(()=>{})},[t.sessionId,e.id]),T.useEffect(()=>{if(t.command&&!b){const R=ii.find(P=>P.id===t.command||P.slashCommand===t.command);R&&(y(R),k(!0))}},[t.command,b]);const N=T.useMemo(()=>b||(t.command?ii.find(R=>R.id===t.command)??null:null),[b,t.command]),A=Y6(N==null?void 0:N.contextSources),_=T.useCallback(async(R,P)=>{const B=(R??a).trim();if(!B||o)return;const O=n.length===0,$={role:"user",content:B},H={role:"assistant",blocks:[]};r.getState().appendMessage(e.id,$),r.getState().appendMessage(e.id,H),s(""),c(!0),f(null);const Z={sessionId:t.sessionId,...m?{orchestratorSessionId:m}:{},command:t.command,interactionId:null,label:e.title,createdAt:new Date(e.createdAt).toISOString(),lastActiveAt:new Date().toISOString(),artifacts:[],status:"active",messages:[...n,$,H],input:""};X6(Z);const q=O?void 0:m,Y=new AbortController;await $R(B,P,q,{onSession:ae=>{h(ae)},onChunk:ae=>{r.getState().updateLastMessage(e.id,J=>{if(J.role!=="assistant")return J;const W=[...J.blocks];return zR(W,ae),{...J,blocks:W}})},onDone:()=>{if(c(!1),e.title==="New Chat"&&B.length>0){const ae=B.length>50?B.slice(0,47)+"...":B;r.getState().updateThread(e.id,{title:ae})}},onError:ae=>{f(ae),r.getState().updateLastMessage(e.id,J=>J.role!=="assistant"?J:{...J,blocks:[...J.blocks,{kind:"text",text:`**Error:** ${ae}`}]}),c(!1)}},Y.signal)},[a,o,n,t,m,e]),M=T.useCallback(()=>{if(!b)return;const R=R6(b,A.data),P=v.current,B=P?`${b.slashCommand} ${P}`:b.slashCommand;v.current=null,k(!1),_(B,R),y(null)},[b,A.data,_]);T.useEffect(()=>{b&&!E&&n.length===0&&!o&&!A.isLoading&&!w.current.has(t.sessionId)&&(w.current.add(t.sessionId),M())},[b,E,n.length,o,A.isLoading,M,t.sessionId]);const D=T.useCallback(R=>{y(R),k(!0),n.length===0&&r.getState().updateThread(e.id,{title:R.id.split(":").pop()||"New Chat"})},[n.length,e.id]);return n.length===0&&!b&&!t.command?u.jsxs("div",{className:"flex flex-1 flex-col",children:[u.jsxs("div",{className:"flex items-center gap-3 border-b border-white/[0.06] px-6 py-4",children:[u.jsx(ur,{size:36,growthDuration:5}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-sm font-bold text-white",children:e.title}),u.jsx("p",{className:"text-[10px] text-neutral-muted",children:"Start a conversation or select a skill"})]})]}),u.jsxs("div",{className:"flex-1 flex flex-col overflow-y-auto",children:[u.jsx("div",{className:"px-4 pt-4",children:u.jsx(jm,{value:a,onChange:s,onSend:()=>void _(),disabled:o,placeholder:"Type a message or select a skill below..."})}),u.jsx("div",{className:"flex-1 px-4 py-4",children:u.jsx(LI,{onSelect:D})})]})]}):E&&b&&n.length===0?u.jsxs("div",{className:"flex flex-1 flex-col",children:[u.jsxs("div",{className:"flex items-center gap-3 border-b border-white/[0.06] px-6 py-4",children:[u.jsx(ur,{size:36,growthDuration:5}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-sm font-bold text-white",children:b.name}),u.jsx("p",{className:"text-[10px] text-neutral-muted",children:b.description})]})]}),u.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:u.jsx(F6,{skill:b,context:A,onExecute:M,onCancel:()=>{y(null),k(!1)}})})]}):u.jsxs("div",{className:"flex flex-1 flex-col min-h-0",children:[u.jsxs("div",{className:"flex items-center gap-3 border-b border-white/[0.06] px-6 py-3 flex-shrink-0",children:[u.jsx(ur,{size:28,growthDuration:5}),u.jsx("h2",{className:"text-sm font-bold text-white truncate",children:e.title}),o&&u.jsx(ee.div,{animate:{opacity:[.4,1,.4]},transition:{duration:1.5,repeat:1/0},className:"text-[9px] font-bold uppercase tracking-widest text-primary-500",children:"Streaming"}),d&&u.jsx("span",{className:"text-[9px] font-bold uppercase tracking-widest text-semantic-error",children:"Error"})]}),u.jsx("div",{className:"flex-1 min-h-0 p-4",children:u.jsx(nE,{messages:n,streaming:o})}),u.jsx("div",{className:"flex-shrink-0 border-t border-white/[0.06] px-4 py-3",children:u.jsx(jm,{value:a,onChange:s,onSend:()=>void _(),disabled:o,placeholder:"Type a message..."})})]})}const nN={low:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",medium:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20",high:"bg-orange-500/10 text-orange-400 border-orange-500/20",critical:"bg-red-500/10 text-red-400 border-red-500/20"};function Q6({spec:e}){return u.jsxs("div",{className:"space-y-3 rounded-lg border border-primary-500/20 bg-primary-500/5 p-3",children:[u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-primary-500",children:"Enriched Spec (SEL)"}),u.jsxs("div",{children:[u.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-neutral-muted",children:"Intent"}),u.jsx("p",{className:"mt-0.5 text-xs text-white",children:e.intent})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-neutral-muted",children:"Summary"}),u.jsx("p",{className:"mt-0.5 text-xs text-neutral-text/80 leading-relaxed",children:e.summary})]}),e.affectedSystems.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-neutral-muted",children:"Affected Systems"}),u.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:e.affectedSystems.map(t=>u.jsxs("span",{className:"rounded-md border border-blue-500/20 bg-blue-500/10 px-1.5 py-0.5 text-[9px] font-medium text-blue-400",title:`Confidence: ${Math.round(t.confidence*100)}% | Tests: ${t.testCoverage} | Deps: ${t.transitiveDeps.length}`,children:[t.name,t.graphNodeId&&u.jsxs("span",{className:"ml-1 text-blue-500/50",children:[Math.round(t.confidence*100),"%"]})]},t.name))})]}),u.jsxs("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-3",children:[e.unknowns.length>0&&u.jsxs("div",{children:[u.jsxs("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-amber-400",children:["Unknowns (",e.unknowns.length,")"]}),u.jsx("ul",{className:"mt-0.5 space-y-0.5",children:e.unknowns.map((t,n)=>u.jsx("li",{className:"text-[11px] text-neutral-text/70",children:t},n))})]}),e.ambiguities.length>0&&u.jsxs("div",{children:[u.jsxs("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-orange-400",children:["Ambiguities (",e.ambiguities.length,")"]}),u.jsx("ul",{className:"mt-0.5 space-y-0.5",children:e.ambiguities.map((t,n)=>u.jsx("li",{className:"text-[11px] text-neutral-text/70",children:t},n))})]}),e.riskSignals.length>0&&u.jsxs("div",{children:[u.jsxs("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-red-400",children:["Risk Signals (",e.riskSignals.length,")"]}),u.jsx("ul",{className:"mt-0.5 space-y-0.5",children:e.riskSignals.map((t,n)=>u.jsx("li",{className:"text-[11px] text-neutral-text/70",children:t},n))})]})]})]})}const J6={local:"text-emerald-400",human:"text-amber-400","simulation-required":"text-purple-400"};function io({value:e,label:t,color:n}){const r=Math.round(e*100);return u.jsxs("div",{className:"space-y-0.5",children:[u.jsxs("div",{className:"flex justify-between text-[10px]",children:[u.jsx("span",{className:"text-neutral-muted",children:t}),u.jsxs("span",{className:n,children:[r,"%"]})]}),u.jsx("div",{className:"h-1 w-full rounded-full bg-white/[0.06]",children:u.jsx("div",{className:`h-full rounded-full ${n.replace("text-","bg-")}`,style:{width:`${r}%`}})})]})}function e8({score:e}){return u.jsxs("div",{className:"space-y-3 rounded-lg border border-secondary-400/20 bg-secondary-400/5 p-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-secondary-400",children:"Complexity (CML)"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:`inline-block rounded-md border px-1.5 py-0.5 text-[9px] font-bold uppercase ${nN[e.riskLevel]??nN.medium}`,children:e.riskLevel}),u.jsx("span",{className:`text-[10px] font-mono font-bold ${J6[e.recommendedRoute]??"text-neutral-muted"}`,children:e.recommendedRoute})]})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(io,{value:e.overall,label:"Overall",color:"text-primary-500"}),u.jsx(io,{value:e.dimensions.structural,label:"Structural",color:"text-blue-400"}),u.jsx(io,{value:e.dimensions.semantic,label:"Semantic",color:"text-purple-400"}),u.jsx(io,{value:e.dimensions.historical,label:"Historical",color:"text-yellow-400"}),u.jsx(io,{value:e.confidence,label:"Confidence",color:"text-emerald-400"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-2 border-t border-white/[0.06] pt-2 md:grid-cols-4",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-sm font-bold text-white",children:e.blastRadius.services}),u.jsx("span",{className:"text-[9px] uppercase tracking-widest text-neutral-muted",children:"Services"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-sm font-bold text-white",children:e.blastRadius.modules}),u.jsx("span",{className:"text-[9px] uppercase tracking-widest text-neutral-muted",children:"Modules"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-sm font-bold text-white",children:e.blastRadius.filesEstimated}),u.jsx("span",{className:"text-[9px] uppercase tracking-widest text-neutral-muted",children:"Files"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-sm font-bold text-white",children:e.blastRadius.testFilesAffected}),u.jsx("span",{className:"text-[9px] uppercase tracking-widest text-neutral-muted",children:"Test Files"})]})]}),e.reasoning.length>0&&u.jsxs("div",{className:"border-t border-white/[0.06] pt-2",children:[u.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.15em] text-neutral-muted",children:"Reasoning"}),u.jsx("ul",{className:"mt-0.5 space-y-0.5",children:e.reasoning.map((t,n)=>u.jsx("li",{className:"text-[11px] text-neutral-text/70",children:t},n))})]})]})}function t8({interaction:e,collapsed:t,onClaim:n,onDismiss:r}){const[a,s]=T.useState(!t),{context:o,reasons:c}=e;return u.jsxs("div",{className:"border-b border-white/[0.06] bg-neutral-surface/20 backdrop-blur-sm",children:[u.jsxs("button",{onClick:()=>s(!a),className:"flex w-full items-center gap-3 px-6 py-3 text-left hover:bg-white/[0.02] transition-colors",children:[u.jsx(_I,{size:16,className:"text-semantic-warning flex-shrink-0"}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h3",{className:"text-sm font-bold text-white truncate",children:o.issueTitle}),t&&u.jsx("p",{className:"text-[10px] text-neutral-muted truncate",children:c[0]||"Needs attention"})]}),!t&&u.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[u.jsxs("button",{onClick:d=>{d.stopPropagation(),n()},className:"flex items-center gap-1 rounded-lg bg-primary-500/10 border border-primary-500/20 px-3 py-1 text-[9px] font-bold uppercase tracking-widest text-primary-500 hover:bg-primary-500/20 transition-colors",children:[u.jsx(wh,{size:10}),"Claim"]}),u.jsxs("button",{onClick:d=>{d.stopPropagation(),r()},className:"flex items-center gap-1 rounded-lg bg-white/[0.04] border border-white/[0.08] px-3 py-1 text-[9px] font-bold uppercase tracking-widest text-neutral-muted hover:text-white hover:bg-white/[0.08] transition-colors",children:[u.jsx(Ah,{size:10}),"Dismiss"]})]}),u.jsx(ee.div,{animate:{rotate:a?0:-90},transition:{duration:.2},children:u.jsx(Rc,{size:14,className:"text-neutral-muted"})})]}),u.jsx(xn,{initial:!1,children:a&&u.jsx(ee.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:u.jsxs("div",{className:"px-6 pb-4 space-y-3",children:[o.issueDescription&&u.jsx("div",{className:"text-xs text-neutral-text/80 leading-relaxed prose prose-invert prose-xs max-w-none",children:u.jsx(ka,{remarkPlugins:[Ta],children:o.issueDescription})}),u.jsxs("div",{className:"space-y-1",children:[u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted",children:"Escalation Reasons"}),c.map((d,f)=>u.jsx("div",{className:"text-xs text-neutral-text/80 leading-relaxed prose prose-invert prose-xs max-w-none",children:u.jsx(ka,{remarkPlugins:[Ta],children:d})},f))]}),o.enrichedSpec&&u.jsx(Q6,{spec:o.enrichedSpec}),o.complexityScore&&u.jsx(e8,{score:o.complexityScore}),o.relatedFiles.length>0&&u.jsxs("div",{children:[u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted mb-1",children:"Related Files"}),u.jsx("div",{className:"flex flex-wrap gap-1",children:o.relatedFiles.map(d=>u.jsx("span",{className:"rounded bg-white/[0.04] px-1.5 py-0.5 text-[10px] font-mono text-neutral-muted",children:d.split("/").pop()},d))})]})]})})})]})}const n8=[];function rN(e){const{context:t,reasons:n}=e,r=["You are helping a human engineer reason through a complex issue that was escalated from the orchestrator.","",`## Issue: ${t.issueTitle}`];return t.issueDescription&&r.push("","## Description",t.issueDescription),n.length>0&&r.push("","## Escalation Reasons",...n.map(a=>`- ${a}`)),t.specPath&&r.push("","## Spec",`Available at: ${t.specPath}`),t.relatedFiles.length>0&&r.push("","## Related Files",...t.relatedFiles.map(a=>`- ${a}`)),r.push("","## Instructions",'Help the human brainstorm and produce a plan. When the human is satisfied with the plan, they will save it using the "Save Plan" button.'),r.join(`
|
|
387
|
-
`)}function r8({thread:e}){const t=e.meta,n=Ge,r=n(N=>N.messages.get(e.id)??n8),[a,s]=T.useState(""),[o,c]=T.useState(!1),[d,f]=T.useState(),[m,h]=T.useState(null),[b,y]=T.useState(e.status==="active"),E=T.useRef(!1);T.useEffect(()=>{fetch("/api/interactions").then(N=>N.json()).then(N=>{const A=N.find(_=>_.id===t.interactionId);A&&(h(A),A.context.issueTitle&&e.title.startsWith("Attention:")&&n.getState().updateThread(e.id,{title:A.context.issueTitle}))}).catch(()=>{})},[t.interactionId,e.id,e.title]);const k=T.useCallback(()=>{n.getState().claimThread(e.id),y(!0),t.interactionId&&fetch(`/api/interactions/${t.interactionId}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:"claimed"})}).catch(()=>{})},[e.id,t.interactionId]),w=T.useCallback(()=>{n.getState().dismissThread(e.id),t.interactionId&&fetch(`/api/interactions/${t.interactionId}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:"resolved"})}).catch(()=>{})},[e.id,t.interactionId]),v=T.useCallback(async(N,A)=>{const _=(N??a).trim();if(!_||o)return;b||k();const M=r.length===0,D={role:"user",content:_},R={role:"assistant",blocks:[]};n.getState().appendMessage(e.id,D),n.getState().appendMessage(e.id,R),s(""),c(!0);let P=A;M&&!P&&m&&(P=rN(m));const B=M?void 0:d,O=new AbortController;await $R(_,P,B,{onSession:$=>f($),onChunk:$=>{n.getState().updateLastMessage(e.id,H=>{if(H.role!=="assistant")return H;const Z=[...H.blocks];return zR(Z,$),{...H,blocks:Z}})},onDone:()=>c(!1),onError:$=>{n.getState().updateLastMessage(e.id,H=>H.role!=="assistant"?H:{...H,blocks:[...H.blocks,{kind:"text",text:`**Error:** ${$}`}]}),c(!1)}},O.signal)},[a,o,b,r.length,m,d,k,e.id]);return T.useEffect(()=>{b&&m&&r.length===0&&!o&&!E.current&&(E.current=!0,v("Analyze this escalated issue and help me brainstorm an implementation approach.",rN(m)))},[b,m,r.length,o,v]),m?u.jsxs("div",{className:"flex flex-1 flex-col min-h-0",children:[u.jsx(t8,{interaction:m,collapsed:b,onClaim:k,onDismiss:w}),r.length>0&&u.jsx("div",{className:"flex-1 min-h-0 p-4",children:u.jsx(nE,{messages:r,streaming:o})}),b&&u.jsx("div",{className:"flex-shrink-0 border-t border-white/[0.06] px-4 py-3",children:u.jsx(jm,{value:a,onChange:s,onSend:()=>void v(),disabled:o,placeholder:"Discuss the escalation..."})})]}):u.jsx("div",{className:"flex flex-1 items-center justify-center",children:u.jsx(ee.div,{animate:{opacity:[.3,1,.3]},transition:{duration:1.5,repeat:1/0},className:"text-xs text-neutral-muted",children:"Loading interaction..."})})}function a8(e){const t=[],n=e.trim().split(`
|
|
388
|
-
`).filter(Boolean);for(const r of n)try{const a=JSON.parse(r);if(a.type==="session_start"||a.type==="session_end")continue;const s=i8(a);yI(t,s)}catch{}return t}function i8(e){const t={type:typeof e.type=="string"?e.type:"",timestamp:typeof e.timestamp=="string"?e.timestamp:""};return typeof e.content=="string"?t.content=e.content:e.content!=null&&(t.content=JSON.stringify(e.content)),typeof e.subtype=="string"&&(t.subtype=e.subtype),typeof e.sessionId=="string"&&(t.sessionId=e.sessionId),t}function s8(e,t){const[n,r]=T.useState(null),[a,s]=T.useState([]),[o,c]=T.useState(!1),[d,f]=T.useState(null),m=T.useRef(null);return T.useEffect(()=>{if(!e){r(null),s([]),f(null),m.current=null;return}const h=`${e}:latest`;if(m.current===h)return;let b=!1;async function y(){c(!0),f(null);try{const E=await o8(e);if(b)return;if(!E){r(null),s([]),c(!1);return}r(E);const k=await l8(e,t);if(b)return;s(k),m.current=h}catch(E){b||f(E instanceof Error?E.message:"Failed to load stream")}finally{b||c(!1)}}return y(),()=>{b=!0}},[e,t]),{manifest:n,recordedBlocks:a,loading:o,error:d}}async function o8(e){const t=await fetch(`/api/streams/${e}/manifest`);if(t.status===404)return null;if(!t.ok)throw new Error(`Manifest fetch failed: ${t.status}`);return await t.json()}async function l8(e,t){const n=`/api/streams/${e}`,r=await fetch(n);if(!r.ok)throw new Error(`Stream fetch failed: ${r.status}`);const a=await r.text();return a8(a)}function u8({thread:e}){const t=e.meta,r=T.useContext(OI)[t.issueId]??[],{recordedBlocks:a,manifest:s,loading:o}=s8(t.issueId),{snapshot:c}=Yo(),d=T.useMemo(()=>{if(!c)return null;const E=c.running.find(([k])=>k===t.issueId);return E?E[1]:null},[c,t.issueId]),f=(d==null?void 0:d.session)??null,m=(s==null?void 0:s.attempts.at(-1))??null,h=T.useMemo(()=>a.length>0&&r.length>0?[...a,...r]:a.length>0?a:r,[a,r]),b=T.useMemo(()=>h.length===0?[]:[{role:"assistant",blocks:h}],[h]),y=e.status==="active";return T.useEffect(()=>{var w,v,N,A;const E=((w=m==null?void 0:m.stats)==null?void 0:w.durationMs)??null,k={identifier:t.identifier,phase:t.phase,backendName:(f==null?void 0:f.backendName)??t.backendName,description:t.issueDescription??null,turnCount:(f==null?void 0:f.turnCount)??((v=m==null?void 0:m.stats)==null?void 0:v.turnCount)??0,inputTokens:(f==null?void 0:f.inputTokens)??((N=m==null?void 0:m.stats)==null?void 0:N.inputTokens)??0,outputTokens:(f==null?void 0:f.outputTokens)??((A=m==null?void 0:m.stats)==null?void 0:A.outputTokens)??0,totalTokens:(f==null?void 0:f.totalTokens)??(m!=null&&m.stats?m.stats.inputTokens+m.stats.outputTokens:0),startedAt:t.startedAt?new Date(t.startedAt).getTime():null,durationMs:E,isRunning:y,pr:s!=null&&s.pr?{number:s.pr.number,status:s.pr.status}:null};Ge.getState().updatePanelState(e.id,{phase:t.phase,skill:t.backendName,startedAt:t.startedAt?new Date(t.startedAt).getTime():null,agentStats:k})},[t,f,m,s,e.id,y]),u.jsxs("div",{className:"flex flex-1 flex-col min-h-0",children:[u.jsxs("div",{className:"flex items-center gap-3 border-b border-white/[0.06] px-6 py-3 flex-shrink-0",children:[u.jsx(ur,{size:32,growthDuration:5}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h2",{className:"text-sm font-bold text-white truncate",children:e.title}),u.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-neutral-muted",children:[u.jsx("span",{className:"font-mono truncate",children:t.identifier}),u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(vh,{size:10}),t.phase]})]})]}),y?u.jsxs(ee.div,{animate:{opacity:[.4,1,.4]},transition:{duration:1.5,repeat:1/0},className:"flex items-center gap-1 text-[9px] font-bold uppercase tracking-widest text-semantic-success",children:[u.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-semantic-success"}),"Running"]}):u.jsx("span",{className:"text-[9px] font-bold uppercase tracking-widest text-neutral-muted",children:"Completed"})]}),t.issueDescription&&u.jsx("div",{className:"border-b border-white/[0.06] px-6 py-3 flex-shrink-0",children:u.jsx("p",{className:"text-xs text-neutral-muted leading-relaxed line-clamp-3",children:t.issueDescription})}),u.jsx("div",{className:"flex-1 min-h-0 p-4",children:o?u.jsx("div",{className:"flex flex-1 items-center justify-center h-full",children:u.jsx(ee.div,{animate:{opacity:[.3,1,.3]},transition:{duration:1.5,repeat:1/0},className:"text-xs text-neutral-muted",children:"Loading stream history..."})}):b.length>0?u.jsx(nE,{messages:b,streaming:y}):u.jsx("div",{className:"flex flex-1 items-center justify-center h-full",children:u.jsxs("div",{className:"text-center",children:[u.jsx(ur,{size:60,growthDuration:10}),u.jsx("p",{className:"mt-4 text-xs text-neutral-muted",children:y?"Agent is working...":"No activity recorded for this session."})]})})})]})}function c8({initialTitle:e,initialDescription:t,initialLabels:n,collapsed:r,onSubmit:a}){const[s,o]=T.useState(!r),[c,d]=T.useState(e),[f,m]=T.useState(t),[h,b]=T.useState(n.join(", ")),y=()=>{if(!c.trim())return;const E=h.split(",").map(k=>k.trim()).filter(Boolean);a({title:c.trim(),description:f.trim(),labels:E})};return u.jsxs("div",{className:"border-b border-white/[0.06] bg-neutral-surface/20 backdrop-blur-sm",children:[u.jsxs("button",{onClick:()=>o(!s),className:"flex w-full items-center gap-3 px-6 py-3 text-left hover:bg-white/[0.02] transition-colors",children:[u.jsx(kh,{size:16,className:"text-accent-500 flex-shrink-0"}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h3",{className:"text-sm font-bold text-white truncate",children:c||"New Analysis"}),r&&u.jsx("p",{className:"text-[10px] text-neutral-muted truncate",children:"Analysis complete — expand to see inputs"})]}),u.jsx(ee.div,{animate:{rotate:s?0:-90},transition:{duration:.2},children:u.jsx(Rc,{size:14,className:"text-neutral-muted"})})]}),u.jsx(xn,{initial:!1,children:s&&u.jsx(ee.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:u.jsxs("div",{className:"px-6 pb-4 space-y-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted block mb-1",children:"Title *"}),u.jsx("input",{type:"text",value:c,onChange:E=>d(E.target.value),disabled:r,placeholder:"Feature or issue title...",className:"w-full rounded-lg border border-white/[0.08] bg-white/[0.04] px-3 py-2 text-sm text-white placeholder:text-neutral-muted/40 focus:border-primary-500/40 focus:outline-none focus:ring-2 focus:ring-primary-500/10 disabled:opacity-50"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted block mb-1",children:"Description"}),u.jsx("textarea",{value:f,onChange:E=>m(E.target.value),disabled:r,rows:3,placeholder:"Optional context...",className:"w-full rounded-lg border border-white/[0.08] bg-white/[0.04] px-3 py-2 text-sm text-white placeholder:text-neutral-muted/40 focus:border-primary-500/40 focus:outline-none focus:ring-2 focus:ring-primary-500/10 resize-none disabled:opacity-50"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-neutral-muted block mb-1",children:"Labels"}),u.jsx("input",{type:"text",value:h,onChange:E=>b(E.target.value),disabled:r,placeholder:"Comma-separated labels...",className:"w-full rounded-lg border border-white/[0.08] bg-white/[0.04] px-3 py-2 text-sm text-white placeholder:text-neutral-muted/40 focus:border-primary-500/40 focus:outline-none focus:ring-2 focus:ring-primary-500/10 disabled:opacity-50"})]}),!r&&u.jsxs("button",{onClick:y,disabled:!c.trim(),className:"flex items-center gap-2 rounded-lg bg-accent-500/10 border border-accent-500/20 px-4 py-2 text-xs font-bold text-accent-500 hover:bg-accent-500/20 transition-colors disabled:opacity-30 disabled:cursor-not-allowed",children:[u.jsx(Nh,{size:12}),"Run Analysis"]})]})})})]})}const d8={low:"text-semantic-success border-semantic-success/20 bg-semantic-success/10",medium:"text-semantic-warning border-semantic-warning/20 bg-semantic-warning/10",high:"text-orange-400 border-orange-500/20 bg-orange-500/10",critical:"text-semantic-error border-semantic-error/20 bg-semantic-error/10"};function p8({thread:e}){const t=e.meta,[n,r]=T.useState(!1),[a,s]=T.useState(!1),[o,c]=T.useState(null),[d,f]=T.useState(null),[m,h]=T.useState(null),[b,y]=T.useState(null),[E,k]=T.useState(null),w=T.useRef(null),v=T.useCallback(async N=>{r(!0),s(!0),c("Starting analysis..."),k(null),f(null),h(null),y(null),Ge.getState().updateThread(e.id,{title:N.title}),w.current=new AbortController;try{const A=await fetch("/api/analyze",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N),signal:w.current.signal});if(!A.ok||!A.body){k(`HTTP ${A.status}`),s(!1);return}const _=A.body.getReader(),M=new TextDecoder;let D="";for(;;){const{done:R,value:P}=await _.read();if(R)break;D+=M.decode(P,{stream:!0});const B=D.split(`
|
|
389
|
-
`);D=B.pop()??"";for(const O of B){if(!O.startsWith("data: "))continue;const $=O.slice(6).trim();if($==="[DONE]"){s(!1),c(null);return}try{const H=JSON.parse($);switch(H.type){case"status":c(H.text);break;case"sel_result":f(H.data);break;case"cml_result":h(H.data);break;case"pesl_result":y(H.data);break;case"error":k(H.error),s(!1);return}}catch{}}}s(!1),c(null)}catch(A){A.name!=="AbortError"&&k(A.message),s(!1)}},[e.id]);return u.jsxs("div",{className:"flex flex-1 flex-col min-h-0",children:[u.jsx(c8,{initialTitle:t.analysisTitle,initialDescription:t.description,initialLabels:t.labels,collapsed:n,onSubmit:N=>void v(N)}),u.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[a&&o&&u.jsxs(ee.div,{animate:{opacity:[.5,1,.5]},transition:{duration:1.5,repeat:1/0},className:"flex items-center gap-2 text-xs text-primary-500",children:[u.jsx("div",{className:"h-2 w-2 rounded-full bg-primary-500 animate-pulse"}),o]}),d&&u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-xl border border-primary-500/20 bg-primary-500/5 p-4 space-y-3",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(lc,{size:14,className:"text-primary-500"}),u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-primary-500",children:"Spec Enrichment (SEL)"})]}),u.jsx("p",{className:"text-sm text-white font-medium",children:d.intent}),u.jsx("p",{className:"text-xs text-neutral-text/80 leading-relaxed",children:d.summary}),d.affectedSystems.length>0&&u.jsx("div",{className:"flex flex-wrap gap-1.5",children:d.affectedSystems.map(N=>u.jsxs("span",{className:"rounded-md border border-blue-500/20 bg-blue-500/10 px-2 py-0.5 text-[10px] text-blue-400",children:[N.name," (",Math.round(N.confidence*100),"%)"]},N.name))})]}),m&&u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-xl border border-secondary-400/20 bg-secondary-400/5 p-4 space-y-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(li,{size:14,className:"text-secondary-400"}),u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-secondary-400",children:"Complexity Model (CML)"})]}),u.jsx("span",{className:`rounded-md border px-2 py-0.5 text-[9px] font-bold uppercase ${d8[m.riskLevel]??""}`,children:m.riskLevel})]}),u.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[u.jsxs("div",{className:"text-center",children:[u.jsxs("span",{className:"block text-lg font-bold text-white",children:[Math.round(m.overall*100),"%"]}),u.jsx("span",{className:"text-[9px] text-neutral-muted uppercase",children:"Overall"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:m.blastRadius.filesEstimated}),u.jsx("span",{className:"text-[9px] text-neutral-muted uppercase",children:"Files"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:m.blastRadius.modules}),u.jsx("span",{className:"text-[9px] text-neutral-muted uppercase",children:"Modules"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:m.recommendedRoute}),u.jsx("span",{className:"text-[9px] text-neutral-muted uppercase",children:"Route"})]})]})]}),b&&u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-xl border border-accent-500/20 bg-accent-500/5 p-4 space-y-3",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(CI,{size:14,className:"text-accent-500"}),u.jsx("h4",{className:"text-[9px] font-black uppercase tracking-[0.2em] text-accent-500",children:"Simulation (PESL)"}),u.jsxs("span",{className:"text-xs text-neutral-muted ml-auto",children:["Confidence: ",Math.round(b.executionConfidence*100),"%"]})]}),b.predictedFailures.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-[9px] font-bold uppercase text-red-400",children:"Predicted Failures"}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:b.predictedFailures.map((N,A)=>u.jsxs("li",{className:"text-xs text-neutral-text/80",children:["- ",N]},A))})]}),b.recommendedChanges.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-[9px] font-bold uppercase text-accent-400",children:"Recommended Changes"}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:b.recommendedChanges.map((N,A)=>u.jsxs("li",{className:"text-xs text-neutral-text/80",children:["- ",N]},A))})]})]}),E&&u.jsx("div",{className:"rounded-xl border border-semantic-error/20 bg-semantic-error/5 p-4",children:u.jsxs("p",{className:"text-xs text-semantic-error",children:["Error: ",E]})}),n&&!a&&(d||m||b)&&u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex items-center gap-2 pt-2",children:[u.jsxs("button",{className:"flex items-center gap-1.5 rounded-lg bg-primary-500/10 border border-primary-500/20 px-3 py-1.5 text-[10px] font-bold text-primary-500 hover:bg-primary-500/20 transition-colors",children:[u.jsx(Th,{size:10}),"Add to Roadmap"]}),u.jsxs("button",{className:"flex items-center gap-1.5 rounded-lg bg-white/[0.04] border border-white/[0.08] px-3 py-1.5 text-[10px] font-bold text-neutral-muted hover:text-white hover:bg-white/[0.08] transition-colors",children:[u.jsx(NI,{size:10}),"Export Spec"]}),u.jsxs("button",{onClick:()=>{r(!1),f(null),h(null),y(null),k(null)},className:"flex items-center gap-1.5 rounded-lg bg-white/[0.04] border border-white/[0.08] px-3 py-1.5 text-[10px] font-bold text-neutral-muted hover:text-white hover:bg-white/[0.08] transition-colors",children:[u.jsx(NB,{size:10}),"Refine"]})]})]})]})}const f8=3e3;function gc(e,t){const[n,r]=T.useState({data:null,lastUpdated:null,stale:!1,error:null}),a=T.useRef(null);return T.useEffect(()=>{let s=null,o=!0;function c(){s=new EventSource(e),s.addEventListener(t,d=>{if(!o)return;const f=d;try{const m=JSON.parse(f.data);r({data:m.data,lastUpdated:m.timestamp,stale:!1,error:null})}catch{}}),s.onerror=()=>{o&&(s==null||s.close(),r(d=>({...d,stale:!0,error:"Connection lost. Reconnecting…"})),a.current=setTimeout(c,f8))}}return c(),()=>{o=!1,s==null||s.close(),a.current&&clearTimeout(a.current)}},[e,t]),n}const m8={default:"text-white",green:"text-emerald-400",yellow:"text-yellow-400",red:"text-red-400"};function Ze({label:e,value:t,sub:n,accent:r="default"}){return u.jsxs("div",{className:"rounded-lg border border-neutral-border bg-neutral-surface p-5",children:[u.jsx("p",{className:"text-xs font-medium uppercase tracking-widest text-neutral-muted",children:e}),u.jsx("p",{className:["mt-2 text-3xl font-bold tabular-nums",m8[r]].join(" "),children:t}),n&&u.jsx("p",{className:"mt-1 text-xs text-neutral-muted",children:n})]})}function rE({lastUpdated:e,stale:t,error:n}){const r=e?new Date(e).toLocaleTimeString():null;return t||n?u.jsxs("div",{className:"flex items-center gap-2 text-xs text-secondary-400",children:[u.jsx("span",{className:"inline-block h-2 w-2 animate-pulse rounded-full bg-secondary-400"}),u.jsx("span",{children:n??"Stale data"}),r&&u.jsxs("span",{className:"text-neutral-muted",children:["· last updated ",r]})]}):u.jsxs("div",{className:"flex items-center gap-2 text-xs text-neutral-muted",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-secondary-400"}),u.jsxs("span",{children:["Live",r?` · updated ${r}`:""]})]})}function GR(e){const[t,n]=T.useState("idle"),[r,a]=T.useState(null),[s,o]=T.useState(null),c=T.useCallback(async d=>{n("loading"),o(null);try{const f=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},...d!==void 0?{body:JSON.stringify(d)}:{}}),m=await f.json();!f.ok||m&&typeof m=="object"&&"error"in m&&m.error?(n("error"),o(m.error??`HTTP ${f.status}`)):(n("success"),a(m))}catch(f){n("error"),o(f instanceof Error?f.message:"Network error")}},[e]);return{state:t,data:r,error:s,run:c}}function h8({url:e,label:t,body:n,loadingLabel:r,onSuccess:a,className:s=""}){const{state:o,error:c,run:d}=GR(e),f=T.useRef(null),m=sc(0),h=sc(0),b={damping:15,stiffness:150},y=oc(m,b),E=oc(h,b);T.useEffect(()=>{o==="success"&&(a==null||a())},[o,a]);const k=_=>{if(!f.current)return;const{left:M,top:D,width:R,height:P}=f.current.getBoundingClientRect(),B=_.clientX-(M+R/2),O=_.clientY-(D+P/2);m.set(B*.3),h.set(O*.3)},w=()=>{m.set(0),h.set(0)},v=o==="loading",N=o==="success",A=o==="error";return u.jsxs("div",{className:`inline-flex flex-col items-center gap-2 ${s}`,children:[u.jsxs(ee.button,{ref:f,style:{x:y,y:E},onMouseMove:k,onMouseLeave:w,whileTap:{scale:.95},onClick:()=>void d(n),disabled:v,className:["group relative flex items-center gap-2 overflow-hidden rounded-xl border px-5 py-2.5 text-xs font-bold uppercase tracking-wider transition-all duration-300 shadow-lg",v?"cursor-not-allowed border-neutral-border bg-neutral-surface/50 text-neutral-muted":"",N?"border-emerald-500/50 bg-emerald-500/10 text-emerald-400 shadow-emerald-500/20":"",A?"border-red-500/50 bg-red-500/10 text-red-400 shadow-red-500/20":"",!v&&!N&&!A?"border-primary-500/50 bg-primary-500/10 text-primary-500 hover:bg-primary-500 hover:text-white shadow-primary-500/20":""].filter(Boolean).join(" "),children:[!v&&!N&&u.jsx(ee.div,{initial:{left:"-100%"},animate:{left:"100%"},transition:{duration:3,repeat:1/0,ease:"linear"},className:"absolute top-0 bottom-0 w-1/2 bg-gradient-to-r from-transparent via-white/5 to-transparent pointer-events-none"}),u.jsxs(xn,{mode:"wait",children:[v&&u.jsx(ee.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:u.jsx(_c,{className:"h-3.5 w-3.5 animate-spin"})},"loading"),N&&u.jsx(ee.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:u.jsx(wh,{className:"h-3.5 w-3.5"})},"success"),A&&u.jsx(ee.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},children:u.jsx(vI,{className:"h-3.5 w-3.5"})},"error")]}),u.jsx("span",{className:"relative z-10",children:v?r??"Syncing...":N?"Verified":t}),u.jsx("div",{className:"absolute inset-0 z-0 bg-gradient-to-r from-transparent via-white/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity"})]}),A&&c&&u.jsx(ee.p,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},className:"text-[10px] font-mono font-bold text-red-400 uppercase tracking-tighter",children:c})]})}const bc="/api/sse";function g8(e){return typeof e=="object"&&e!==null&&"totalFeatures"in e}function b8(e){return typeof e=="object"&&e!==null&&"totalIssues"in e}function y8(e){return typeof e=="object"&&e!==null&&"available"in e&&e.available===!0}function x8(e){return typeof e=="object"&&e!==null&&"findings"in e&&"stats"in e}function E8(e){return typeof e=="object"&&e!==null&&"violations"in e&&"stats"in e}function S8(e){return typeof e=="object"&&e!==null&&"passed"in e&&"totalViolations"in e}function v8(e){return typeof e=="object"&&e!==null&&"sourceNodeId"in e&&"layers"in e}const aE=T.memo(function({title:t,count:n,children:r}){const[a,s]=T.useState(!1);return u.jsxs("div",{className:"space-y-2",children:[u.jsxs("button",{onClick:()=>s(!a),className:"flex items-center gap-2 text-left transition-opacity hover:opacity-80","aria-expanded":a,children:[u.jsx("span",{className:"text-[10px] text-gray-600",children:a?"▼":"▶"}),u.jsxs("p",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-gray-500",children:[t," (",n,")"]})]}),a&&r]})});function HR({command:e}){const t=Ln();return u.jsx("button",{onClick:()=>{const n=Ge.getState().createThread("chat",{sessionId:crypto.randomUUID(),command:e});t(`/t/${n.id}`)},className:"rounded bg-primary-500/10 px-2 py-1 text-[10px] font-bold uppercase tracking-widest text-primary-400 border border-primary-500/20 hover:bg-primary-500 hover:text-white transition-all",children:"Fix It"})}const w8=T.memo(function({data:t}){return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[u.jsx(Ze,{label:"Errors",value:t.stats.errorCount,accent:t.stats.errorCount>0?"red":"green"}),u.jsx(Ze,{label:"Warnings",value:t.stats.warningCount,accent:t.stats.warningCount>0?"yellow":"default"}),u.jsx(Ze,{label:"Info",value:t.stats.infoCount}),u.jsx(Ze,{label:"Files Scanned",value:t.stats.filesScanned})]}),t.findings.length>0&&u.jsx(aE,{title:"Top Findings",count:t.findings.length,children:u.jsx("div",{className:"space-y-2 rounded-lg border border-gray-800 bg-gray-900 p-4",children:t.findings.slice(0,10).map((n,r)=>u.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[u.jsxs("span",{className:n.severity==="error"?"text-red-400":n.severity==="warning"?"text-yellow-400":"text-gray-400",children:["[",n.severity,"]"]}),u.jsxs("span",{className:"text-gray-300",children:[n.file,":",n.line]}),u.jsx("span",{className:"text-gray-500",children:n.message})]},r))})})]})}),k8=T.memo(function({data:t}){return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:[u.jsx(Ze,{label:"Violations",value:t.stats.violationCount,accent:t.stats.violationCount>0?"red":"green"}),u.jsx(Ze,{label:"Files Analyzed",value:t.stats.filesAnalyzed}),u.jsx(Ze,{label:"Status",value:t.valid?"OK":"Failing",accent:t.valid?"green":"red"})]}),t.violations.length>0&&u.jsx(aE,{title:"Violations",count:t.violations.length,children:u.jsx("div",{className:"space-y-2 rounded-lg border border-gray-800 bg-gray-900 p-4",children:t.violations.map((n,r)=>u.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[u.jsxs("span",{className:n.severity==="error"?"text-red-400":"text-yellow-400",children:["[",n.severity,"]"]}),u.jsx("span",{className:"text-gray-300",children:n.file}),u.jsxs("span",{className:"text-gray-500",children:[n.metric,": ",n.value," (threshold: ",n.threshold,")"]})]},r))})})]})}),T8=T.memo(function({data:t}){return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:[u.jsx(Ze,{label:"Status",value:t.passed?"Passed":"Failed",accent:t.passed?"green":"red"}),u.jsx(Ze,{label:"Violations",value:t.totalViolations,accent:t.totalViolations>0?"red":"default"}),u.jsx(Ze,{label:"Regressions",value:t.regressions.length,accent:t.regressions.length>0?"yellow":"default"})]}),t.newViolations.length>0&&u.jsx(aE,{title:"New Violations",count:t.newViolations.length,children:u.jsx("div",{className:"space-y-2 rounded-lg border border-gray-800 bg-gray-900 p-4",children:t.newViolations.map((n,r)=>u.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[u.jsxs("span",{className:n.severity==="error"?"text-red-400":"text-yellow-400",children:["[",n.severity,"]"]}),u.jsx("span",{className:"text-gray-300",children:n.file}),u.jsx("span",{className:"text-gray-500",children:n.detail})]},r))})})]})});function N8({healthData:e}){return u.jsxs("section",{children:[u.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[u.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Entropy Analysis"}),e.totalIssues>0&&u.jsx(HR,{command:"harness:validate"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[u.jsx(Ze,{label:"Total Issues",value:e.totalIssues,accent:e.totalIssues>0?"yellow":"green"}),u.jsx(Ze,{label:"Errors",value:e.errors,accent:e.errors>0?"red":"default"}),u.jsx(Ze,{label:"Warnings",value:e.warnings,accent:e.warnings>0?"yellow":"default"}),u.jsx(Ze,{label:"Auto-fixable",value:e.fixableCount,accent:"default"})]})]})}function A8({healthData:e}){return u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Scan Details"}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:[u.jsx(Ze,{label:"Suggestions",value:e.suggestionCount}),u.jsx(Ze,{label:"Scan Duration",value:`${e.durationMs} ms`}),u.jsx(Ze,{label:"Analysis Errors",value:e.analysisErrors.length,accent:e.analysisErrors.length>0?"red":"default"})]})]})}function I8({healthData:e}){return e.analysisErrors.length===0?null:u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Analysis Errors"}),u.jsx("div",{className:"space-y-2 rounded-lg border border-red-900 bg-gray-900 p-4",children:e.analysisErrors.map((t,n)=>u.jsx("p",{className:"text-xs text-red-400",children:t},n))})]})}function Pf({title:e,raw:t,guard:n,Section:r,fixCommand:a}){const s=t,o=typeof s=="object"&&s!==null&&"stats"in s?s.stats:void 0,d=n(t)&&(o!=null&&(o.errorCount??0)+(o.warningCount??0)>0||s!=null&&"totalViolations"in s&&s.totalViolations>0||o!=null&&(o.violationCount??0)>0)&&a?u.jsx(HR,{command:a}):void 0;return u.jsxs("section",{children:[u.jsxs("div",{className:"mb-3 flex w-full items-center justify-between",children:[u.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-gray-500",children:e}),d]}),t==null?u.jsx("p",{className:"text-sm text-gray-500",children:"Awaiting first scan..."}):n(t)?u.jsx(r,{data:t}):u.jsx("p",{className:"text-sm text-red-400",children:"error"in t?String(t.error):"Unavailable"})]})}function C8({health:e}){const t="error"in e?String(e.error):"Unavailable";return u.jsx("p",{className:"text-sm text-red-400",children:t})}function R8({healthData:e,security:t,perf:n,arch:r}){return u.jsxs("div",{className:"space-y-8",children:[u.jsx(N8,{healthData:e}),u.jsx(A8,{healthData:e}),u.jsx(I8,{healthData:e}),u.jsx(Pf,{title:"Security",raw:t,guard:x8,Section:w8,fixCommand:"harness:security-scan"}),u.jsx(Pf,{title:"Performance",raw:n,guard:E8,Section:k8,fixCommand:"harness:perf"}),u.jsx(Pf,{title:"Architecture",raw:r,guard:S8,Section:T8,fixCommand:"harness:enforce-architecture"})]})}function _8(e){const t=e?e.health:null,n=t&&b8(t)?t:null;return{health:t,healthData:n}}function O8(e){return{security:(e==null?void 0:e.security)??null,perf:(e==null?void 0:e.perf)??null,arch:(e==null?void 0:e.arch)??null}}const L8=["validate","check-deps","check-arch","check-perf","check-security","check-docs","phase-gate"];function D8(e){const t=Date.now()-new Date(e).getTime(),n=Math.floor(t/1e3);if(n<60)return`${n}s ago`;const r=Math.floor(n/60);return r<60?`${r}m ago`:`${Math.floor(r/60)}h ago`}const M8=T.memo(function({name:t,result:n,expanded:r,onToggle:a}){if(!n)return u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"inline-block h-3 w-3 rounded-full bg-gray-600"}),u.jsx("span",{className:"text-sm font-medium text-gray-400",children:t})]}),u.jsx("p",{className:"mt-1 text-xs text-gray-600",children:"Not yet run"})]});const s=n.passed?"border-emerald-800":"border-red-800",o=n.passed?"bg-emerald-400":"bg-red-400",c=n.passed?"text-emerald-400":"text-red-400";return u.jsxs("div",{className:`rounded-lg border ${s} bg-gray-900`,children:[u.jsxs("button",{onClick:a,className:"w-full p-4 text-left","aria-expanded":r,children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:`inline-block h-3 w-3 rounded-full ${o}`}),u.jsx("span",{className:"text-sm font-medium text-gray-200",children:t})]}),u.jsx("span",{className:`text-xs font-medium ${c}`,children:n.passed?"PASS":"FAIL"})]}),!r&&(n.errorCount>0||n.warningCount>0)&&u.jsxs("p",{className:"mt-1 text-xs text-gray-500",children:[n.errorCount>0&&`${n.errorCount} errors`,n.errorCount>0&&n.warningCount>0&&", ",n.warningCount>0&&`${n.warningCount} warnings`]})]}),r&&u.jsx("div",{className:"border-t border-gray-800 px-4 py-3",children:u.jsxs("div",{className:"space-y-1 text-xs",children:[u.jsxs("p",{className:"text-gray-400",children:["Errors:"," ",u.jsx("span",{className:n.errorCount>0?"text-red-400":"text-gray-300",children:n.errorCount})," | ","Warnings:"," ",u.jsx("span",{className:n.warningCount>0?"text-yellow-400":"text-gray-300",children:n.warningCount})]}),n.details&&u.jsx("p",{className:"text-gray-500",children:n.details})]})})]})});function j8(e){const t=new Map;if(!e)return t;for(const n of e.checks)t.set(n.name,n);return t}async function F8(e,t,n){try{const r=await fetch("/api/ci");if(!r.ok){t(`HTTP ${r.status}`);return}const a=await r.json();e(a.data),t(null)}catch(r){t(r instanceof Error?r.message:"Network error")}finally{n(!1)}}function P8(){const[e,t]=T.useState(null),[n,r]=T.useState(!0),[a,s]=T.useState(null),[o,c]=T.useState(new Set),d=T.useCallback(()=>{F8(t,s,r)},[]);T.useEffect(()=>{d()},[d]);const f=h=>{c(b=>{const y=new Set(b);return y.has(h)?y.delete(h):y.add(h),y})},m=T.useMemo(()=>j8(e),[e]);return u.jsxs("section",{children:[u.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[u.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-gray-500",children:"CI Checks"}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(h8,{url:"/api/actions/refresh-checks",label:"Run All Checks",loadingLabel:"Running checks...",onSuccess:d}),(e==null?void 0:e.lastRun)&&u.jsxs("span",{className:"text-xs text-gray-500",children:["Last checked ",D8(e.lastRun)]})]})]}),n&&!e&&u.jsx("p",{className:"text-sm text-gray-500",children:"Loading check results..."}),a&&u.jsx("p",{className:"text-sm text-red-400",children:a}),u.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:L8.map(h=>u.jsx(M8,{name:h,result:m.get(h),expanded:o.has(h),onToggle:()=>f(h)},h))})]})}function B8(){const{data:e,lastUpdated:t,stale:n,error:r}=gc(bc,"overview"),{data:a}=gc(bc,"checks"),{health:s,healthData:o}=_8(e),{security:c,perf:d,arch:f}=O8(a);return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Health"}),u.jsx(rE,{lastUpdated:t,stale:n,error:r})]}),u.jsxs("div",{className:"space-y-8",children:[u.jsx(P8,{}),!e&&!r&&u.jsx("p",{className:"text-sm text-gray-500",children:"Connecting to data stream..."}),s&&!o&&u.jsx(C8,{health:s}),o&&u.jsx(R8,{healthData:o,security:c,perf:d,arch:f})]})]})}function U8({reason:e}){return u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[u.jsx("p",{className:"text-base font-medium text-gray-300",children:"Graph not connected"}),e&&u.jsx("p",{className:"mt-2 text-sm text-gray-500",children:e}),u.jsxs("div",{className:"mt-4 rounded border border-gray-700 bg-gray-950 p-4",children:[u.jsx("p",{className:"text-xs font-semibold text-gray-400",children:"To connect the graph:"}),u.jsxs("ol",{className:"mt-2 list-decimal list-inside space-y-1 text-xs text-gray-500",children:[u.jsxs("li",{children:["Run ",u.jsx("code",{className:"text-gray-300",children:"harness ingest"})," to build the knowledge graph"]}),u.jsx("li",{children:"Ensure the graph database is available in your project"}),u.jsx("li",{children:"Restart the dashboard to reconnect"})]})]})]})}const $8=T.memo(function({type:t,count:n,pct:r}){return u.jsxs("tr",{className:"hover:bg-gray-900",children:[u.jsx("td",{className:"px-4 py-2.5 text-gray-300",children:t}),u.jsx("td",{className:"px-4 py-2.5 text-right tabular-nums text-gray-400",children:n}),u.jsxs("td",{className:"px-4 py-2.5 text-right tabular-nums text-gray-500",children:[r,"%"]})]})}),z8=T.memo(function({nodesByType:t,nodeCount:n}){const r=T.useMemo(()=>[...t].sort((a,s)=>s.count-a.count),[t]);return t.length===0?null:u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Node Type Breakdown"}),u.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{className:"bg-gray-900 text-xs uppercase tracking-wider text-gray-500",children:u.jsxs("tr",{children:[u.jsx("th",{className:"px-4 py-3 text-left",children:"Type"}),u.jsx("th",{className:"px-4 py-3 text-right",children:"Count"}),u.jsx("th",{className:"px-4 py-3 text-right",children:"%"})]})}),u.jsx("tbody",{className:"divide-y divide-gray-800 bg-gray-950",children:r.map(a=>{const s=n>0?(a.count/n*100).toFixed(1):"0";return u.jsx($8,{type:a.type,count:a.count,pct:s},a.type)})})]})})]})}),G8=T.memo(function({graphData:t}){return u.jsxs("div",{className:"space-y-8",children:[u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Graph Metrics"}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:[u.jsx(Ze,{label:"Nodes",value:t.nodeCount}),u.jsx(Ze,{label:"Edges",value:t.edgeCount}),u.jsx(Ze,{label:"Node Types",value:t.nodesByType.length})]})]}),u.jsx(z8,{nodesByType:t.nodesByType,nodeCount:t.nodeCount})]})});function H8(){const{data:e,lastUpdated:t,stale:n,error:r}=gc(bc,"overview"),a=e?e.graph:null,s=a&&y8(a)?a:null;return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Knowledge Graph"}),u.jsx(rE,{lastUpdated:t,stale:n,error:r})]}),!e&&!r&&u.jsx("p",{className:"text-sm text-gray-500",children:"Connecting to data stream…"}),a&&!s&&u.jsx(U8,{reason:a.available?void 0:a.reason}),s&&u.jsx(G8,{graphData:s})]})}const ba=130,Ya=30,VR=180,V8=44,Ja={top:40,right:24,bottom:24,left:24},yc=Ja.left,Ku={high:"#ef4444",medium:"#f59e0b",low:"#71717a"};function W8(e){return e>.7?"high":e>=.3?"medium":"low"}function aN(e){return Math.max(.15,Math.min(1,e))}function q8(e){if(e.layers.length===0)return null;const t=[],n=[],r={nodeId:e.sourceNodeId,name:e.sourceName,type:"source",probability:1,parentId:"",risk:"high",x:yc,y:Ja.top};t.push(r);for(const o of e.layers){const c=yc+o.depth*VR;o.nodes.forEach((d,f)=>{const m={nodeId:d.nodeId,name:d.name,type:d.type,probability:d.probability,parentId:d.parentId,risk:W8(d.probability),x:c,y:Ja.top+f*V8};t.push(m),n.push({fromId:d.parentId,toId:d.nodeId})})}const a=Math.max(...t.map(o=>o.x+ba))+Ja.right,s=Math.max(...t.map(o=>o.y+Ya))+Ja.bottom;return{nodes:t,sourceNode:r,edges:n,width:a,height:s}}function Y8({data:e}){const{summary:t}=e,n=[{label:"Total Affected",count:t.totalAffected,color:"#fafafa"},{label:"High Risk",count:t.highRisk,color:Ku.high},{label:"Medium Risk",count:t.mediumRisk,color:Ku.medium},{label:"Low Risk",count:t.lowRisk,color:Ku.low}];return u.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-4",children:[n.map(r=>u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"inline-block h-2.5 w-2.5 rounded-full",style:{background:r.color}}),u.jsx("span",{className:"text-sm tabular-nums text-neutral-text",children:r.count}),u.jsx("span",{className:"text-xs text-neutral-muted",children:r.label})]},r.label)),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"text-xs text-neutral-muted",children:"Max Depth:"}),u.jsx("span",{className:"text-sm tabular-nums text-neutral-text",children:t.maxDepth})]})]})}function K8({data:e}){const t=q8(e),[n,r]=T.useState(null);if(!t)return u.jsx(ee.div,{initial:{opacity:0},animate:{opacity:1},className:"flex h-32 items-center justify-center rounded-2xl border border-neutral-border bg-neutral-bg/50 backdrop-blur-sm",children:u.jsx("p",{className:"text-sm text-neutral-muted",children:"No affected nodes detected"})});const a=new Map(t.nodes.map(o=>[o.nodeId,o])),s=e.layers.map(o=>o.depth);return u.jsxs("div",{className:"relative group",children:[u.jsx(Y8,{data:e}),u.jsx("div",{className:"overflow-x-auto rounded-2xl border border-neutral-border bg-neutral-bg/30 p-6 backdrop-blur-md",children:u.jsxs("svg",{width:t.width,height:t.height,className:"overflow-visible",children:[u.jsxs("defs",{children:[u.jsxs("filter",{id:"neon-glow",x:"-20%",y:"-20%",width:"140%",height:"140%",children:[u.jsx("feGaussianBlur",{stdDeviation:"2",result:"blur"}),u.jsx("feComposite",{in:"SourceGraphic",in2:"blur",operator:"over"})]}),u.jsx("marker",{id:"blast-arrow",markerWidth:"8",markerHeight:"8",refX:"6",refY:"3",orient:"auto",children:u.jsx("path",{d:"M0,0 L0,6 L8,3 z",fill:"#4f46e5"})})]}),u.jsx(ee.text,{initial:{opacity:0},animate:{opacity:1},x:yc+ba/2,y:Ja.top-14,textAnchor:"middle",className:"text-[10px] font-bold uppercase tracking-widest fill-neutral-muted",children:"Origin"}),s.map(o=>{const c=yc+o*VR;return u.jsxs(ee.text,{initial:{opacity:0},animate:{opacity:1},transition:{delay:o*.1},x:c+ba/2,y:Ja.top-14,textAnchor:"middle",className:"text-[10px] font-bold uppercase tracking-widest fill-neutral-muted",children:["Layer ",o]},o)}),t.edges.map((o,c)=>{const d=a.get(o.fromId),f=a.get(o.toId);if(!d||!f)return null;const m=d.x+ba,h=d.y+Ya/2,b=f.x,y=f.y+Ya/2,E=n===o.fromId||n===o.toId;return u.jsx(ee.line,{initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:E?1:aN(f.probability),stroke:E?"var(--color-primary-500)":"rgba(79, 70, 229, 0.2)",strokeWidth:E?2:1.5},transition:{duration:.4},x1:m,y1:h,x2:b-4,y2:y,markerEnd:"url(#blast-arrow)"},`${o.fromId}-${o.toId}`)}),t.nodes.map((o,c)=>u.jsxs(ee.g,{initial:{opacity:0,scale:.9,x:o.x-10},animate:{opacity:n&&n!==o.nodeId?.3:aN(o.probability),scale:n===o.nodeId?1.05:1,x:o.x},onMouseEnter:()=>r(o.nodeId),onMouseLeave:()=>r(null),transition:{duration:.2},className:"cursor-pointer",children:[u.jsx("rect",{x:0,y:o.y,width:ba,height:Ya,rx:8,className:"fill-neutral-surface/80 stroke-neutral-border",strokeWidth:1}),u.jsx(ee.rect,{x:0,y:o.y,width:ba,height:Ya,rx:8,className:"fill-none",stroke:Ku[o.risk],strokeWidth:1.5,initial:{pathLength:0},animate:{pathLength:1},transition:{duration:1,delay:c*.05}}),u.jsx("text",{x:ba/2,y:o.y+Ya/2,dominantBaseline:"middle",textAnchor:"middle",className:"text-[10px] font-bold tracking-tight fill-neutral-text pointer-events-none",children:o.name.length>16?o.name.slice(0,15)+"…":o.name}),u.jsx("text",{x:ba-6,y:o.y+Ya-6,textAnchor:"end",className:"text-[8px] font-mono fill-neutral-muted pointer-events-none",children:o.type==="source"?"SRC":`${(o.probability*100).toFixed(0)}%`})]},o.nodeId))]})})]})}const X8=[1,2,3,4,5],Z8=3,Q8=T.memo(function({loading:t,fetchError:n,anomalies:r,sortedAPs:a,sortedOutliers:s,selectedNodeId:o,onAnomalyClick:c}){return u.jsxs("div",{className:"lg:col-span-1",children:[t&&!r&&u.jsx("p",{className:"text-sm text-gray-500",children:"Loading anomalies..."}),n&&u.jsx("p",{className:"text-sm text-red-400",children:n}),r&&a.length===0&&s.length===0&&u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[u.jsx("p",{className:"text-base font-medium text-gray-300",children:"No anomalies detected"}),u.jsx("p",{className:"mt-2 text-sm text-gray-500",children:'Run "harness scan" to build the knowledge graph, then restart the dashboard.'})]}),a.length>0&&u.jsxs("section",{className:"mb-6",children:[u.jsx("h2",{className:"mb-2 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Articulation Points"}),u.jsx("div",{className:"space-y-1",children:a.map(d=>u.jsxs("button",{onClick:()=>c(d.nodeId),className:["w-full rounded border px-3 py-2 text-left text-sm transition-colors",o===d.nodeId?"border-blue-700 bg-blue-950":"border-gray-800 bg-gray-900 hover:bg-gray-800"].join(" "),children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"truncate font-medium text-gray-200",children:d.name}),u.jsxs("span",{className:"ml-2 text-xs tabular-nums text-gray-500",children:[d.dependentCount," deps"]})]}),u.jsxs("p",{className:"mt-0.5 text-xs text-gray-500",children:[d.componentsIfRemoved," components if removed"]})]},d.nodeId))})]}),s.length>0&&u.jsxs("section",{children:[u.jsx("h2",{className:"mb-2 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Statistical Outliers"}),u.jsx("div",{className:"space-y-1",children:s.map(d=>u.jsxs("button",{onClick:()=>c(d.nodeId),className:["w-full rounded border px-3 py-2 text-left text-sm transition-colors",o===d.nodeId?"border-blue-700 bg-blue-950":"border-gray-800 bg-gray-900 hover:bg-gray-800"].join(" "),children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"truncate font-medium text-gray-200",children:d.name}),u.jsxs("span",{className:"ml-2 text-xs tabular-nums text-gray-500",children:["z=",d.zScore.toFixed(1)]})]}),u.jsxs("p",{className:"mt-0.5 text-xs text-gray-500",children:[d.metric,": ",d.value," (",d.type,")"]})]},d.nodeId))})]})]})}),J8=T.memo(function({selectedNodeId:t,blastRadiusState:n,blastRadiusError:r,brData:a,brIsData:s}){const o=s?a:null;return u.jsxs("div",{className:"lg:col-span-2",children:[!t&&n==="idle"&&u.jsx("div",{className:"flex h-64 items-center justify-center rounded-lg border border-gray-800 bg-gray-900",children:u.jsx("p",{className:"text-sm text-gray-500",children:"Select a node or search to view blast radius"})}),n==="loading"&&u.jsx("div",{className:"flex h-64 items-center justify-center rounded-lg border border-gray-800 bg-gray-900",children:u.jsx("p",{className:"text-sm text-gray-500",children:"Computing blast radius..."})}),n==="error"&&r&&u.jsx("div",{className:"rounded-lg border border-red-800 bg-gray-900 p-6",children:u.jsx("p",{className:"text-sm text-red-400",children:r})}),n==="success"&&a&&!s&&u.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:u.jsx("p",{className:"text-sm text-gray-400",children:"error"in a?a.error:"No blast radius data"})}),n==="success"&&o&&u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[u.jsxs("h3",{className:"mb-3 text-sm font-semibold text-gray-200",children:["Blast Radius: ",o.sourceName]}),u.jsx(K8,{data:o})]})]})}),eW=T.memo(function({searchText:t,depth:n,onSearchTextChange:r,onDepthChange:a,onSubmit:s}){return u.jsxs("div",{className:"mb-6 flex items-center gap-4",children:[u.jsxs("form",{onSubmit:s,className:"flex flex-1 gap-2",children:[u.jsx("input",{type:"text",value:t,onChange:o=>r(o.target.value),placeholder:"Search node by name or path...",className:"flex-1 rounded border border-gray-700 bg-gray-900 px-3 py-1.5 text-sm text-gray-200 placeholder-gray-500 focus:border-gray-500 focus:outline-none"}),u.jsx("button",{type:"submit",className:"rounded bg-gray-800 px-3 py-1.5 text-xs font-medium text-gray-200 hover:bg-gray-700",children:"Search"})]}),u.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-400",children:["Depth",u.jsx("select",{value:n,onChange:o=>a(Number(o.target.value)),className:"rounded border border-gray-700 bg-gray-900 px-2 py-1.5 text-sm text-gray-200",children:X8.map(o=>u.jsx("option",{value:o,children:o},o))})]})]})});function tW(){const[e,t]=T.useState(null),[n,r]=T.useState(!0),[a,s]=T.useState(null),o=T.useCallback(async()=>{try{const c=await fetch("/api/impact/anomalies");if(!c.ok){s(`HTTP ${c.status}`);return}const d=await c.json();t(d.data),s(null)}catch(c){s(c instanceof Error?c.message:"Network error")}finally{r(!1)}},[]);return T.useEffect(()=>{o()},[o]),{anomalies:e,loading:n,fetchError:a}}function nW(e){const t=e?[...e.articulationPoints].sort((r,a)=>a.dependentCount-r.dependentCount):[],n=e?[...e.outliers].sort((r,a)=>a.zScore-r.zScore):[];return{sortedAPs:t,sortedOutliers:n}}function rW(){var v;const{anomalies:e,loading:t,fetchError:n}=tW(),[r,a]=T.useState(null),[s,o]=T.useState(""),[c,d]=T.useState(Z8),f=GR("/api/impact/blast-radius"),m=T.useCallback(N=>{a(N),f.run({nodeId:N,maxDepth:c})},[f,c]),h=T.useCallback(N=>{N.preventDefault();const A=s.trim();A&&m(A)},[s,m]),b=T.useCallback(N=>{o(""),m(N)},[m]),{sortedAPs:y,sortedOutliers:E}=T.useMemo(()=>nW(e),[e]),k=(v=f.data)==null?void 0:v.data,w=!!k&&v8(k);return{anomalies:e,loading:t,fetchError:n,selectedNodeId:r,searchText:s,depth:c,setSearchText:o,setDepth:d,handleSearch:h,handleAnomalyClick:b,sortedAPs:y,sortedOutliers:E,blastRadius:f,brData:k,brIsData:w}}function aW(){const{anomalies:e,loading:t,fetchError:n,selectedNodeId:r,searchText:a,depth:s,setSearchText:o,setDepth:c,handleSearch:d,handleAnomalyClick:f,sortedAPs:m,sortedOutliers:h,blastRadius:b,brData:y,brIsData:E}=rW();return u.jsxs("div",{children:[u.jsx("h1",{className:"mb-6 text-2xl font-bold",children:"Impact Explorer"}),u.jsx(eW,{searchText:a,depth:s,onSearchTextChange:o,onDepthChange:c,onSubmit:d}),u.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-3",children:[u.jsx(Q8,{loading:t,fetchError:n,anomalies:e,sortedAPs:m,sortedOutliers:h,selectedNodeId:r,onAnomalyClick:f}),u.jsx(J8,{selectedNodeId:r,blastRadiusState:b.state,blastRadiusError:b.error,brData:y,brIsData:E})]})]})}function WR(e){return e==="improving"?"Improving":e==="declining"?"Degrading":"Stable"}function Bf(e){return e==="improving"?"green":e==="declining"?"red":"yellow"}function iW(e){return e==="improving"?"text-emerald-400":e==="declining"?"text-red-400":"text-yellow-400"}function sW(e){return e==="improving"?"↓":e==="declining"?"↑":"→"}function qR(e){return e===0?"0":`${e>0?"+":""}${e.toFixed(1)}`}function oW(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}const lW=T.memo(function({name:t,trend:n}){return u.jsxs("tr",{className:"border-b border-gray-800 hover:bg-gray-800/40",children:[u.jsx("td",{className:"py-2 px-3 font-mono text-xs text-gray-200",children:oW(t)}),u.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-gray-200",children:n.current.toFixed(1)}),u.jsxs("td",{className:`py-2 px-3 text-right tabular-nums ${iW(n.direction)}`,children:[sW(n.direction)," ",WR(n.direction)]}),u.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-gray-400",children:qR(n.delta)}),u.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-gray-500",children:n.previous.toFixed(1)})]})});function uW({categories:e}){const t=T.useMemo(()=>Object.entries(e).sort((n,r)=>Math.abs(r[1].delta)-Math.abs(n[1].delta)),[e]);return t.length===0?u.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:u.jsx("p",{className:"text-sm text-gray-500",children:"No category data yet. Capture architecture snapshots to see trends."})}):u.jsx("div",{className:"overflow-x-auto rounded-lg border border-gray-800 bg-gray-900",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800 bg-gray-900/60",children:[u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Category"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Current"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Trend"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Delta"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Previous"})]})}),u.jsx("tbody",{children:t.map(([n,r])=>u.jsx(lW,{name:n,trend:r},n))})]})})}async function cW(){const e=await fetch("/api/decay-trends");if(!e.ok)throw new Error(`HTTP ${e.status}`);return(await e.json()).data}function dW(){const[e,t]=T.useState(null),[n,r]=T.useState(null),[a,s]=T.useState(!0),o=T.useCallback(async()=>{try{const d=await cW();t(d),r(null)}catch(d){r(d instanceof Error?d.message:"Network error")}finally{s(!1)}},[]);T.useEffect(()=>{o()},[o]);const c=e&&e.snapshotCount===0;return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Decay Trends"}),e&&e.to&&u.jsxs("span",{className:"text-xs text-gray-500",children:[e.snapshotCount," snapshot",e.snapshotCount!==1?"s":""," analyzed",e.from&&` from ${e.from.slice(0,10)} to ${e.to.slice(0,10)}`]})]}),a&&!e&&u.jsx("p",{className:"text-sm text-gray-500",children:"Loading decay trends..."}),n&&u.jsx("p",{className:"text-sm text-red-400",children:n}),c&&u.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:u.jsxs("p",{className:"text-sm text-gray-500",children:["No architecture snapshots found. Run"," ",u.jsx("code",{className:"text-gray-400",children:"harness snapshot capture"})," to create the first snapshot."]})}),e&&!c&&u.jsxs("div",{className:"space-y-8",children:[u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Overview"}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[u.jsx(Ze,{label:"Stability Score",value:e.stability.current,sub:"0-100 (higher is healthier)",accent:Bf(e.stability.direction)}),u.jsx(Ze,{label:"Trend Direction",value:WR(e.stability.direction),accent:Bf(e.stability.direction)}),u.jsx(Ze,{label:"Score Delta",value:qR(e.stability.delta),sub:`Previous: ${e.stability.previous}`,accent:Bf(e.stability.direction)}),u.jsx(Ze,{label:"Snapshots",value:e.snapshotCount})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Category Breakdown"}),u.jsx(uW,{categories:e.categories})]})]})]})}function pW(e){switch(e){case"full":return"Covered";case"code-only":return"Partial (code)";case"test-only":return"Partial (test)";case"none":return"Uncovered"}}function fW(e){switch(e){case"full":return"text-emerald-400";case"code-only":case"test-only":return"text-yellow-400";case"none":return"text-red-400"}}function mW(e){switch(e){case"full":return"bg-emerald-400";case"code-only":case"test-only":return"bg-yellow-400";case"none":return"bg-red-400"}}function _u(e){return e>=80?"green":e>=50?"yellow":"red"}const hW=T.memo(function({req:t}){return u.jsxs("tr",{className:"border-b border-gray-800 hover:bg-gray-800/40",children:[u.jsxs("td",{className:"py-2 px-3",children:[u.jsx("div",{className:"font-mono text-xs text-gray-200",children:t.requirementName||t.requirementId}),t.featureName&&u.jsx("div",{className:"text-[10px] text-gray-500 mt-0.5",children:t.featureName})]}),u.jsx("td",{className:"py-2 px-3",children:u.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[u.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${mW(t.status)}`}),u.jsx("span",{className:`text-xs font-medium ${fW(t.status)}`,children:pW(t.status)})]})}),u.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-gray-200 text-sm",children:t.codeFileCount}),u.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-gray-200 text-sm",children:t.testFileCount})]})});function gW({requirements:e}){return e.length===0?u.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:u.jsxs("p",{className:"text-sm text-gray-500",children:["No requirements found in graph. Run"," ",u.jsx("code",{className:"rounded bg-gray-800 px-1 py-0.5 text-xs font-mono text-gray-300",children:"harness scan"})," ","to ingest spec requirements."]})}):u.jsx("div",{className:"overflow-x-auto rounded-lg border border-gray-800 bg-gray-900",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800 bg-gray-900/60",children:[u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Requirement"}),u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Status"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Implementations"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Tests"})]})}),u.jsx("tbody",{children:e.map(t=>u.jsx(hW,{req:t},t.requirementId))})]})})}async function bW(){const e=await fetch("/api/traceability");if(!e.ok)throw new Error(`HTTP ${e.status}`);return(await e.json()).data}function yW(){const[e,t]=T.useState(null),[n,r]=T.useState(null),[a,s]=T.useState(!0),[o,c]=T.useState(!1),d=T.useCallback(async()=>{try{const b=await bW();b===null?c(!0):t(b),r(null)}catch(b){r(b instanceof Error?b.message:"Network error")}finally{s(!1)}},[]);T.useEffect(()=>{d()},[d]);const f=e?e.totals.fullyTraced:0,m=e?e.totals.withCode+e.totals.withTests-2*e.totals.fullyTraced:0,h=e?e.totals.untraceable:0;return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Traceability"}),e&&u.jsxs("span",{className:"text-xs text-gray-500",children:["Generated ",new Date(e.generatedAt).toLocaleString()]})]}),a&&!e&&u.jsx("p",{className:"text-sm text-gray-500",children:"Loading traceability data..."}),n&&u.jsx("p",{className:"text-sm text-red-400",children:n}),o&&!a&&u.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:u.jsxs("p",{className:"text-sm text-gray-400",children:["No traceability data available. Run"," ",u.jsx("code",{className:"rounded bg-gray-800 px-1.5 py-0.5 text-xs font-mono text-gray-300",children:"harness scan"})," ","to build the knowledge graph with requirement nodes from spec files."]})}),e&&u.jsxs("div",{className:"space-y-8",children:[u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Coverage Summary"}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[u.jsx(Ze,{label:"Total Requirements",value:e.totals.total}),u.jsx(Ze,{label:"Covered",value:f,accent:"green",sub:`${e.overallCoverage}% coverage`}),u.jsx(Ze,{label:"Partial",value:m>0?m:e.totals.total-f-h,accent:"yellow"}),u.jsx(Ze,{label:"Uncovered",value:h,accent:h>0?"red":"green"})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Overall Coverage"}),u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("span",{className:"text-sm text-gray-400",children:"Fully traced"}),u.jsxs("span",{className:`text-sm font-bold ${_u(e.overallCoverage)==="green"?"text-emerald-400":_u(e.overallCoverage)==="yellow"?"text-yellow-400":"text-red-400"}`,children:[e.overallCoverage,"%"]})]}),u.jsx("div",{className:"h-2 rounded-full bg-gray-800 overflow-hidden",children:u.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${_u(e.overallCoverage)==="green"?"bg-emerald-500":_u(e.overallCoverage)==="yellow"?"bg-yellow-500":"bg-red-500"}`,style:{width:`${e.overallCoverage}%`}})})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Requirements"}),u.jsx(gW,{requirements:e.requirements})]})]})]})}function xW(){const[e,t]=T.useState([]),[n,r]=T.useState(!0),[a,s]=T.useState(null);return T.useEffect(()=>{let o=!1;async function c(){try{const f=await fetch("/api/streams");if(!f.ok)throw new Error(`Failed to fetch sessions: ${f.status}`);const m=await f.json();o||(t(m),s(null))}catch(f){o||s(f instanceof Error?f.message:"Failed to load sessions")}finally{o||r(!1)}}c();const d=setInterval(()=>void c(),3e4);return()=>{o=!0,clearInterval(d)}},[]),{sessions:e,loading:n,error:a}}function Gr({title:e}){return u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:e})}function or(e){return e.toLocaleString()}function EW(e){const t=YR(),n=Math.max(0,Math.floor((t-new Date(e).getTime())/1e3));if(n<60)return`${n}s`;const r=Math.floor(n/60),a=n%60;return r<60?`${r}m ${a}s`:`${Math.floor(r/60)}h ${r%60}m`}function YR(){const[e,t]=T.useState(Date.now());return T.useEffect(()=>{const n=setInterval(()=>t(Date.now()),1e3);return()=>clearInterval(n)},[]),e}function SW({phase:e}){const n={PreparingWorkspace:"bg-yellow-900/50 text-yellow-400",BuildingPrompt:"bg-yellow-900/50 text-yellow-400",LaunchingAgent:"bg-blue-900/50 text-blue-400",InitializingSession:"bg-blue-900/50 text-blue-400",StreamingTurn:"bg-emerald-900/50 text-emerald-400",Finishing:"bg-purple-900/50 text-purple-400",Succeeded:"bg-emerald-900/50 text-emerald-300",Failed:"bg-red-900/50 text-red-400",TimedOut:"bg-red-900/50 text-red-400",Stalled:"bg-orange-900/50 text-orange-400",CanceledByReconciliation:"bg-gray-800 text-gray-400"}[e]??"bg-gray-800 text-gray-400";return u.jsx("span",{className:`inline-block rounded px-2 py-0.5 text-xs font-medium ${n}`,children:e})}function vW({startedAt:e}){const t=EW(e);return u.jsx("span",{className:"tabular-nums text-gray-400",children:t})}function wW({snapshot:e}){const t=e.globalCooldownUntilMs!==null&&Date.now()<e.globalCooldownUntilMs,n=Date.now(),r=e.recentRequestTimestamps.filter(o=>n-o<6e4).length,a=e.recentInputTokens.filter(o=>n-o.timestamp<6e4).reduce((o,c)=>o+c.tokens,0),s=e.recentOutputTokens.filter(o=>n-o.timestamp<6e4).reduce((o,c)=>o+c.tokens,0);return u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-5",children:[u.jsx(Gr,{title:"Rate Limits"}),u.jsxs("div",{className:"space-y-2 text-sm",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Status"}),u.jsx("span",{className:t?"font-semibold text-red-400":"text-emerald-400",children:t?"COOLDOWN":"OK"})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Req/Min"}),u.jsxs("span",{className:"text-blue-400",children:[r," / ",e.maxRequestsPerMinute]})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Req/Sec"}),u.jsxs("span",{className:"text-blue-400",children:[e.maxRequestsPerSecond," max"]})]}),e.maxInputTokensPerMinute>0&&u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"ITPM"}),u.jsxs("span",{className:"text-yellow-400",children:[or(a)," / ",or(e.maxInputTokensPerMinute)]})]}),e.maxOutputTokensPerMinute>0&&u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"OTPM"}),u.jsxs("span",{className:"text-yellow-400",children:[or(s)," / ",or(e.maxOutputTokensPerMinute)]})]})]})]})}function kW({snapshot:e}){return u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-5",children:[u.jsx(Gr,{title:"Concurrency"}),u.jsxs("div",{className:"space-y-2 text-sm",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Active"}),u.jsxs("span",{className:e.running.length>0?"text-emerald-400":"text-gray-500",children:[e.running.length," / ",e.maxConcurrentAgents]})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Claimed"}),u.jsx("span",{className:"text-cyan-400",children:e.claimed.length})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Retry Queue"}),u.jsx("span",{className:"text-gray-300",children:e.retryAttempts.length})]})]})]})}function TW({snapshot:e}){return u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-5",children:[u.jsx(Gr,{title:"Token Usage"}),u.jsxs("div",{className:"space-y-2 text-sm",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Input"}),u.jsx("span",{className:"text-yellow-400",children:or(e.tokenTotals.inputTokens)})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Output"}),u.jsx("span",{className:"text-yellow-400",children:or(e.tokenTotals.outputTokens)})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Total"}),u.jsx("span",{className:"text-yellow-400",children:or(e.tokenTotals.totalTokens)})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-400",children:"Time Running"}),u.jsxs("span",{className:"text-blue-400",children:[Math.round(e.tokenTotals.secondsRunning),"s"]})]})]})]})}function NW({activity:e}){if(e.phase==="idle")return null;const t={fetching:"Fetching",analyzing:"Analyzing",dispatching:"Dispatching"},n={fetching:"text-blue-400",analyzing:"text-violet-400",dispatching:"text-emerald-400"};return u.jsxs("div",{className:"mb-6 rounded-lg border border-violet-800/50 bg-violet-950/20 px-4 py-3",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("span",{className:"relative flex h-2.5 w-2.5",children:[u.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-violet-400 opacity-75"}),u.jsx("span",{className:"relative inline-flex h-2.5 w-2.5 rounded-full bg-violet-500"})]}),u.jsx("span",{className:`text-sm font-medium ${n[e.phase]??"text-gray-400"}`,children:t[e.phase]??e.phase}),e.detail&&u.jsx("span",{className:"truncate text-sm text-gray-400",children:e.detail}),e.progress&&u.jsxs("span",{className:"ml-auto text-xs tabular-nums text-gray-500",children:[e.progress.current,"/",e.progress.total]})]}),e.progress&&u.jsx("div",{className:"mt-2 h-1 overflow-hidden rounded-full bg-gray-800",children:u.jsx("div",{className:"h-full rounded-full bg-violet-500 transition-all duration-300",style:{width:`${e.progress.current/e.progress.total*100}%`}})})]})}function AW({agent:e,blocks:t,onViewStream:n}){var o,c,d,f,m,h,b,y,E;const[r,a]=T.useState(!1),s=t.slice(-5);return u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900/60",children:[u.jsxs("button",{type:"button",onClick:()=>a(!r),className:"flex w-full items-start gap-3 px-4 py-3 text-left transition-colors hover:bg-gray-800/40",children:[u.jsx("div",{className:"mt-1 flex-shrink-0",children:e.phase==="StreamingTurn"?u.jsxs("span",{className:"relative flex h-2.5 w-2.5",children:[u.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-75"}),u.jsx("span",{className:"relative inline-flex h-2.5 w-2.5 rounded-full bg-emerald-500"})]}):u.jsx("span",{className:"inline-flex h-2.5 w-2.5 rounded-full bg-yellow-500"})}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"truncate font-medium text-white",children:((o=e.issue)==null?void 0:o.title)??e.identifier}),u.jsx(SW,{phase:e.phase})]}),u.jsxs("div",{className:"mt-1 flex items-center gap-3 text-xs text-gray-500",children:[u.jsx("span",{className:"font-mono",children:e.identifier}),u.jsx("span",{className:"text-gray-600",children:"|"}),u.jsx("span",{className:"text-blue-400",children:((c=e.session)==null?void 0:c.backendName)??"pending"}),u.jsx("span",{className:"text-gray-600",children:"|"}),u.jsx(vW,{startedAt:e.startedAt}),e.session&&u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-gray-600",children:"|"}),u.jsxs("span",{children:["T",e.session.turnCount," · ",or(e.session.totalTokens)," tok"]})]})]}),((d=e.session)==null?void 0:d.lastMessage)&&u.jsx("p",{className:"mt-1.5 truncate text-xs text-gray-400",children:e.session.lastMessage})]}),u.jsx("span",{className:"mt-1 flex-shrink-0 text-gray-600",children:r?"▲":"▼"})]}),r&&u.jsxs("div",{className:"border-t border-gray-800 px-4 py-3 text-sm",children:[(f=e.issue)!=null&&f.description?u.jsxs("div",{className:"mb-3",children:[u.jsx("span",{className:"text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Description"}),u.jsx("p",{className:"mt-1 whitespace-pre-wrap text-gray-300",children:e.issue.description})]}):u.jsx("p",{className:"mb-3 text-xs italic text-gray-600",children:"No description available."}),u.jsxs("div",{className:"grid grid-cols-2 gap-x-6 gap-y-1 text-xs",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-500",children:"Input Tokens"}),u.jsx("span",{className:"text-yellow-400",children:or(((m=e.session)==null?void 0:m.inputTokens)??0)})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-500",children:"Output Tokens"}),u.jsx("span",{className:"text-yellow-400",children:or(((h=e.session)==null?void 0:h.outputTokens)??0)})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-500",children:"Backend"}),u.jsx("span",{className:"text-blue-400",children:((b=e.session)==null?void 0:b.backendName)??"-"})]}),u.jsxs("div",{className:"flex justify-between",children:[u.jsx("span",{className:"text-gray-500",children:"Turns"}),u.jsx("span",{className:"text-gray-300",children:((y=e.session)==null?void 0:y.turnCount)??0})]})]}),s.length>0&&u.jsxs("div",{className:"mt-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Live Activity"}),u.jsx("button",{type:"button",onClick:k=>{k.stopPropagation(),n()},className:"text-xs font-medium text-blue-400 transition-colors hover:text-blue-300",children:"View Full Stream"})]}),u.jsx("div",{className:"mt-2 max-h-48 overflow-hidden rounded-lg border border-gray-800 bg-gray-950/60 px-3 py-2 text-xs",children:u.jsx(UR,{blocks:s,isStreaming:e.phase==="StreamingTurn"})})]}),s.length===0&&((E=e.session)==null?void 0:E.lastMessage)&&u.jsxs("div",{className:"mt-3",children:[u.jsx("span",{className:"text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Latest Activity"}),u.jsx("p",{className:"mt-1 whitespace-pre-wrap text-gray-300",children:e.session.lastMessage})]})]})]})}function IW({agents:e,agentEvents:t,onViewStream:n}){return e.length===0?u.jsx("p",{className:"text-sm italic text-gray-500",children:"No active agents."}):u.jsx("div",{className:"space-y-2",children:e.map(r=>u.jsx(AW,{agent:r,blocks:t[r.issueId]??[],onViewStream:()=>n(r)},r.issueId))})}function CW({snapshot:e}){const t=YR();if(e.retryAttempts.length===0)return null;const n=[...e.retryAttempts].sort((r,a)=>r[1].dueAtMs-a[1].dueAtMs);return u.jsxs("section",{className:"mt-6",children:[u.jsx(Gr,{title:"Retry Queue"}),u.jsx("div",{className:"space-y-1",children:n.map(([,r])=>{const a=Math.max(0,Math.ceil((r.dueAtMs-t)/1e3));return u.jsxs("div",{className:"flex items-center justify-between rounded border border-gray-800 bg-gray-900/40 px-3 py-2 text-sm",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:`inline-flex h-2 w-2 rounded-full ${a>0?"bg-orange-500":"bg-orange-400 animate-pulse"}`}),u.jsx("span",{className:"font-mono text-gray-300",children:r.identifier}),u.jsxs("span",{className:"text-gray-500",children:["attempt ",r.attempt]})]}),u.jsx("span",{className:`text-xs ${a>0?"text-gray-500":"text-orange-400 font-medium"}`,children:a>0?`retries in ${a}s`:"due now"})]},r.issueId)})})]})}function RW(e){const t=Math.floor(e/1e3);if(t<60)return`${t}s`;const n=Math.floor(t/60),r=t%60;return n<60?`${n}m ${r}s`:`${Math.floor(n/60)}h ${n%60}m`}function _W(e){const t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function OW({outcome:e}){if(!e)return u.jsx("span",{className:"text-xs text-gray-600",children:"in progress"});const n={normal:"bg-emerald-900/50 text-emerald-400",error:"bg-red-900/50 text-red-400"}[e]??"bg-gray-800 text-gray-400";return u.jsx("span",{className:`inline-block rounded px-2 py-0.5 text-xs font-medium ${n}`,children:e})}function LW({session:e,onViewStream:t}){const n=e.attempts.at(-1),r=n==null?void 0:n.startedAt,a=(n==null?void 0:n.outcome)??null,s=n==null?void 0:n.stats;return u.jsxs("button",{type:"button",onClick:()=>t(e.issueId),className:"flex w-full items-center gap-3 rounded-lg border border-gray-800 bg-gray-900/60 px-4 py-3 text-left transition-colors hover:bg-gray-800/40",children:[u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"truncate font-medium text-white",children:e.title??e.identifier}),u.jsx(OW,{outcome:a}),e.pr&&u.jsxs("span",{className:"text-xs text-blue-400",children:["PR #",e.pr.number]})]}),u.jsxs("div",{className:"mt-1 flex items-center gap-3 text-xs text-gray-500",children:[r&&u.jsx("span",{children:_W(r)}),s&&s.durationMs>0&&u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-gray-600",children:"|"}),u.jsx("span",{children:RW(s.durationMs)})]}),s&&u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-gray-600",children:"|"}),u.jsxs("span",{children:["T",s.turnCount," · ",or(s.inputTokens+s.outputTokens)," ","tok"]})]}),e.attempts.length>1&&u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-gray-600",children:"|"}),u.jsxs("span",{children:[e.attempts.length," attempts"]})]})]})]}),u.jsx("span",{className:"flex-shrink-0 text-gray-600",children:"›"})]})}function iN({onViewStream:e}){const{sessions:t,loading:n,error:r}=xW();return n?u.jsxs("section",{className:"mt-6",children:[u.jsx(Gr,{title:"Recent Sessions"}),u.jsx("p",{className:"text-sm text-gray-500",children:"Loading sessions..."})]}):r?u.jsxs("section",{className:"mt-6",children:[u.jsx(Gr,{title:"Recent Sessions"}),u.jsx("p",{className:"text-sm text-red-400",children:r})]}):t.length===0?u.jsxs("section",{className:"mt-6",children:[u.jsx(Gr,{title:"Recent Sessions"}),u.jsx("p",{className:"text-sm italic text-gray-500",children:"No recorded sessions yet."})]}):u.jsxs("section",{className:"mt-6",children:[u.jsx(Gr,{title:"Recent Sessions"}),u.jsx("div",{className:"space-y-2",children:t.map(a=>u.jsx(LW,{session:a,onViewStream:e},a.issueId))})]})}function DW(){const{snapshot:e,agentEvents:t,connected:n}=Yo(),r=Ln(),a=T.useCallback(c=>{var m,h,b;const d=Ge.getState();for(const y of d.threads.values())if(y.type==="agent"&&y.meta.issueId===c.issueId){d.setActiveThread(y.id),r(`/t/${y.id}`);return}const f=d.createThread("agent",{issueId:c.issueId,identifier:c.identifier,phase:c.phase,issueTitle:((m=c.issue)==null?void 0:m.title)??c.identifier,issueDescription:((h=c.issue)==null?void 0:h.description)??null,startedAt:c.startedAt,backendName:((b=c.session)==null?void 0:b.backendName)??null});d.setActiveThread(f.id),r(`/t/${f.id}`)},[r]),s=T.useCallback(c=>{const d=Ge.getState();for(const m of d.threads.values())if(m.type==="agent"&&m.meta.issueId===c){d.setActiveThread(m.id),r(`/t/${m.id}`);return}const f=d.createThread("agent",{issueId:c,identifier:c,phase:"completed",issueTitle:c,issueDescription:null,startedAt:new Date().toISOString(),backendName:null});d.updateThread(f.id,{status:"completed"}),d.setActiveThread(f.id),r(`/t/${f.id}`)},[r]);if(!e)return u.jsxs("div",{children:[u.jsx("h1",{className:"mb-6 text-2xl font-bold",children:"Agent Monitor"}),u.jsx("p",{className:"text-sm text-gray-500",children:n?"Waiting for first state update...":"Connecting to orchestrator..."}),u.jsx(iN,{onViewStream:s})]});const o=e.running.map(([,c])=>c);return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Agent Monitor"}),u.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[u.jsx("span",{className:["inline-block h-2 w-2 rounded-full",n?"bg-emerald-500":"bg-yellow-400"].join(" ")}),u.jsx("span",{className:n?"text-gray-500":"text-yellow-400",children:n?"Live":"Reconnecting..."})]})]}),u.jsxs("div",{className:"mb-8 grid grid-cols-1 gap-4 md:grid-cols-3",children:[u.jsx(wW,{snapshot:e}),u.jsx(kW,{snapshot:e}),u.jsx(TW,{snapshot:e})]}),e.tickActivity&&u.jsx(NW,{activity:e.tickActivity}),u.jsxs("section",{children:[u.jsx(Gr,{title:"Active Agents"}),u.jsx(IW,{agents:o,agentEvents:t,onViewStream:a})]}),u.jsx(CW,{snapshot:e}),u.jsx(iN,{onViewStream:s})]})}function MW(e){return e<1e3?`${Math.round(e)}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${(e/6e4).toFixed(1)}m`}function jW(e){return e==="success"?"text-emerald-400":e==="failed"?"text-red-400":"text-yellow-400"}function Fm(e){return e?new Date(e).toLocaleString():"—"}const FW=T.memo(function({entry:t}){return u.jsxs("tr",{className:"border-b border-gray-800 hover:bg-gray-800/40",children:[u.jsx("td",{className:"py-2 px-3 font-mono text-xs text-gray-200",children:t.task}),u.jsx("td",{className:`py-2 px-3 text-xs font-semibold uppercase ${jW(t.status)}`,children:t.status}),u.jsx("td",{className:"py-2 px-3 text-xs text-gray-400",children:Fm(t.startedAt)}),u.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-gray-400",children:MW(t.durationMs)})]})});function PW({entries:e}){return e.length===0?u.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:u.jsx("p",{className:"text-sm text-gray-500",children:"No maintenance history yet. Runs will appear here after the first execution."})}):u.jsx("div",{className:"overflow-x-auto rounded-lg border border-gray-800 bg-gray-900",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800 bg-gray-900/60",children:[u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Task"}),u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Status"}),u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Started At"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Duration"})]})}),u.jsx("tbody",{children:e.map((t,n)=>u.jsx(FW,{entry:t},`${t.task}-${t.startedAt}-${n}`))})]})})}async function BW(){const e=await fetch("/api/maintenance/status");if(!e.ok)throw new Error(`HTTP ${e.status}`);return await e.json()}async function UW(){const e=await fetch("/api/maintenance/history");if(!e.ok)throw new Error(`HTTP ${e.status}`);return await e.json()}async function $W(e){const t=await fetch("/api/maintenance/trigger",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({taskId:e})});if(!t.ok)throw new Error(`HTTP ${t.status}`)}function zW(){const[e,t]=T.useState(null),[n,r]=T.useState(null),[a,s]=T.useState(null),[o,c]=T.useState(!0),[d,f]=T.useState(!1),{maintenanceEvent:m,connected:h}=Yo(),b=T.useCallback(async()=>{try{const[k,w]=await Promise.all([BW(),UW()]);t(k),r(w),s(null)}catch(k){const w=k instanceof Error?k.message:"Network error";w.includes("404")||w.includes("502")?s("Orchestrator not running. Start with: harness orchestrator run"):s(w)}finally{c(!1)}},[]);T.useEffect(()=>{b()},[b]),T.useEffect(()=>{m&&b()},[m,b]);const y=()=>{const k="project-health";f(!0),$W(k).then(()=>b()).catch(w=>{s(w instanceof Error?w.message:"Failed to trigger maintenance run")}).finally(()=>f(!1))},E=(m==null?void 0:m.type)==="maintenance:started"?m.data.taskId:null;return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Maintenance"}),u.jsx("span",{className:`inline-block h-2 w-2 rounded-full ${h?"bg-emerald-400":"bg-gray-600"}`,title:h?"WebSocket connected":"WebSocket disconnected"})]}),u.jsx("button",{onClick:y,disabled:d,className:"rounded-lg border border-white/10 bg-white/5 px-4 py-1.5 text-xs font-semibold uppercase tracking-wider text-gray-200 transition-all hover:bg-white/10 hover:text-white disabled:opacity-50 disabled:cursor-not-allowed",children:d?"Running...":"Trigger Run"})]}),E&&u.jsxs("div",{className:"mb-4 flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-4 py-2",children:[u.jsx("span",{className:"inline-block h-2 w-2 animate-pulse rounded-full bg-blue-400"}),u.jsxs("span",{className:"text-sm text-blue-300",children:["Running task: ",u.jsx("span",{className:"font-mono font-semibold",children:E})]})]}),(m==null?void 0:m.type)==="maintenance:error"&&u.jsx("div",{className:"mb-4 rounded-lg border border-red-500/30 bg-red-500/10 px-4 py-2",children:u.jsxs("span",{className:"text-sm text-red-300",children:["Task ",u.jsx("span",{className:"font-mono font-semibold",children:m.data.taskId})," ","failed",m.data.error?`: ${m.data.error}`:""]})}),o&&!e&&u.jsx("p",{className:"text-sm text-gray-500",children:"Loading maintenance status..."}),a&&u.jsx("p",{className:"text-sm text-red-400",children:a}),e&&n&&u.jsxs("div",{className:"space-y-8",children:[u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Scheduler Status"}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:[u.jsx(Ze,{label:"Scheduled Tasks",value:e.scheduledTasks}),u.jsx(Ze,{label:"Last Run",value:Fm(e.lastRunAt)}),u.jsx(Ze,{label:"Next Run",value:Fm(e.nextRunAt)})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Run History"}),u.jsx(PW,{entries:n})]})]})]})}function GW(e){if(e<1e3)return`${Math.round(e)}ms`;const t=Math.floor(e/1e3);if(t<60)return`${t}s`;const n=Math.floor(t/60),r=t%60;return n<60?`${n}m ${r}s`:`${Math.floor(n/60)}h ${n%60}m`}function HW(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function VW(e){const t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function WW(e){return new Date(e).toLocaleString()}async function qW(){const e=await fetch("/api/streams");if(!e.ok)throw new Error(`HTTP ${e.status}`);return await e.json()}const YW=T.memo(function({outcome:t}){if(!t)return u.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded px-2 py-0.5 text-xs font-medium bg-blue-900/50 text-blue-400",children:[u.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-blue-400 animate-pulse"}),"running"]});const r={normal:"bg-emerald-900/50 text-emerald-400",error:"bg-red-900/50 text-red-400",timeout:"bg-orange-900/50 text-orange-400"}[t]??"bg-gray-800 text-gray-400";return u.jsx("span",{className:`inline-block rounded px-2 py-0.5 text-xs font-medium ${r}`,children:t})});function KW({title:e}){return u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:e})}const XW=T.memo(function({session:t,onSelect:n}){const r=t.attempts.at(-1),a=r==null?void 0:r.startedAt,s=(r==null?void 0:r.outcome)??null,o=r==null?void 0:r.stats,c=o?o.turnCount:0,d=o?o.inputTokens+o.outputTokens:0;return u.jsxs("tr",{onClick:n,className:"border-b border-gray-800 cursor-pointer transition-colors hover:bg-gray-800/40",children:[u.jsx("td",{className:"py-3 px-3 text-sm text-white truncate max-w-[260px]",children:t.title??t.identifier}),u.jsx("td",{className:"py-3 px-3 font-mono text-xs text-gray-400 max-w-[180px] truncate",children:t.identifier}),u.jsx("td",{className:"py-3 px-3",children:u.jsx(YW,{outcome:s})}),u.jsx("td",{className:"py-3 px-3 text-xs text-gray-400",children:a?WW(a):"-"}),u.jsx("td",{className:"py-3 px-3 text-right tabular-nums text-gray-400 text-xs",children:a?VW(a):"-"}),u.jsxs("td",{className:"py-3 px-3 text-right tabular-nums text-gray-300 text-xs",children:[c," turns"]}),u.jsx("td",{className:"py-3 px-3 text-right tabular-nums text-yellow-400 text-xs",children:HW(d)}),u.jsx("td",{className:"py-3 px-3 text-right tabular-nums text-gray-400 text-xs",children:o&&o.durationMs>0?GW(o.durationMs):"-"}),u.jsxs("td",{className:"py-3 px-3 text-right text-gray-500 text-xs",children:[t.attempts.length>1?`${t.attempts.length} attempts`:"",t.pr?u.jsxs("span",{className:"ml-2 text-blue-400",children:["PR #",t.pr.number]}):null]})]})});function ZW(e){const t=Ge.getState();for(const s of t.threads.values())if(s.type==="agent"&&s.meta.issueId===e.issueId)return s.id;const n=e.attempts.at(-1),r=n!=null&&!n.endedAt,a=t.createThread("agent",{issueId:e.issueId,identifier:e.identifier,phase:r?"running":"completed",issueTitle:e.title??e.identifier,issueDescription:null,startedAt:(n==null?void 0:n.startedAt)??new Date().toISOString(),backendName:null});return r||t.updateThread(a.id,{status:"completed"}),a.id}function QW(){const e=Ln(),[t,n]=T.useState([]),[r,a]=T.useState(null),[s,o]=T.useState(!0),c=T.useCallback(async()=>{try{const f=await qW();n(f),a(null)}catch(f){const m=f instanceof Error?f.message:"Network error";m.includes("404")||m.includes("502")?a("Orchestrator not running. Start with: harness orchestrator run"):a(m)}finally{o(!1)}},[]);T.useEffect(()=>{c();const f=setInterval(()=>void c(),3e4);return()=>clearInterval(f)},[c]);const d=T.useCallback(f=>{const m=ZW(f);Ge.getState().setActiveThread(m),e(`/t/${m}`)},[e]);return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Streams"}),u.jsxs("div",{className:"flex items-center gap-4",children:[t.length>0&&u.jsxs("span",{className:"text-xs text-gray-500",children:[t.length," recorded session",t.length!==1?"s":""]}),u.jsx("button",{type:"button",onClick:()=>{o(!0),c()},className:"rounded-lg border border-gray-700 bg-gray-800/60 px-3 py-1.5 text-xs font-medium text-gray-300 transition-colors hover:bg-gray-700 hover:text-white",children:"Refresh"})]})]}),s&&t.length===0&&u.jsx("p",{className:"text-sm text-gray-500",children:"Loading streams..."}),r&&u.jsx("p",{className:"text-sm text-red-400",children:r}),!s&&!r&&t.length===0&&u.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:u.jsx("p",{className:"text-sm text-gray-500",children:"No recorded streams yet. Sessions will appear here after agents run."})}),t.length>0&&u.jsxs("section",{children:[u.jsx(KW,{title:"Recorded Sessions"}),u.jsx("div",{className:"overflow-x-auto rounded-lg border border-gray-800 bg-gray-900",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800 bg-gray-900/60",children:[u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Title"}),u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Identifier"}),u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Status"}),u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Started At"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Age"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Turns"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Tokens"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Duration"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Info"})]})}),u.jsx("tbody",{children:t.map(f=>u.jsx(XW,{session:f,onSelect:()=>d(f)},f.issueId))})]})})]})]})}const xa={done:"#10b981","in-progress":"#3b82f6",planned:"#6b7280",blocked:"#ef4444",backlog:"#374151","needs-human":"#f59e0b"},Bi=20,Uf=8,Ou=140,Ui={top:12,right:24,bottom:12,left:8};function JW({milestones:e}){const t=e.filter(d=>!d.isBacklog);if(t.length===0)return null;const n=Math.max(...t.map(d=>d.total),1),r=480,a=r-Ou,s=Ui.top+t.length*(Bi+Uf)-Uf+Ui.bottom;function o(d){return Ou+d/n*a}function c(d,f){const m=[{value:d.done,color:xa.done},{value:d.inProgress,color:xa["in-progress"]},{value:d.blocked,color:xa.blocked},{value:d.needsHuman,color:xa["needs-human"]},{value:d.planned+d.backlog,color:xa.planned}];let h=0;return m.map(({value:b,color:y},E)=>{if(b===0)return null;const k=o(h),w=b/n*a;return h+=b,u.jsx("rect",{x:k,y:f,width:w,height:Bi,fill:y},E)})}return u.jsxs("div",{children:[u.jsx("p",{className:"mb-2 text-xs text-neutral-muted",children:"Per-milestone progress (done / in-progress / blocked / remaining)"}),u.jsx("svg",{width:r+Ui.left+Ui.right,height:s,className:"overflow-visible",children:u.jsx("g",{transform:`translate(${Ui.left},${Ui.top})`,children:t.map((d,f)=>{const m=f*(Bi+Uf);return u.jsxs("g",{children:[u.jsx("text",{x:Ou-8,y:m+Bi/2,dominantBaseline:"middle",textAnchor:"end",fontSize:11,fill:"#71717a",children:d.name.length>18?d.name.slice(0,17)+"…":d.name}),u.jsx("rect",{x:Ou,y:m,width:a,height:Bi,fill:"#18181b",rx:3}),c(d,m),u.jsxs("text",{x:o(d.total)+4,y:m+Bi/2,dominantBaseline:"middle",fontSize:10,fill:"#71717a",children:[d.done,"/",d.total]})]},d.name)})})}),u.jsx("div",{className:"mt-2 flex flex-wrap gap-4",children:Object.entries(xa).map(([d,f])=>u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"inline-block h-2.5 w-2.5 rounded-sm",style:{background:f}}),u.jsx("span",{className:"text-xs capitalize text-neutral-muted",children:d.replace("-"," ")})]},d))})]})}const so=140,$i=32,e9=180,t9=56,xc=24;function n9(e){const t=[],n=new Set(e.map(b=>b.name)),r=new Map;for(const b of e)r.set(b.name,[]);for(const b of e)for(const y of b.blockedBy)n.has(y)&&(t.push([y,b.name]),r.get(y).push(b.name));const a=new Map;for(const b of e)a.set(b.name,0);for(const[,b]of t)a.set(b,(a.get(b)??0)+1);const s=new Map,o=[];for(const b of e)(a.get(b.name)??0)===0&&(o.push(b.name),s.set(b.name,0));let c=0;for(;c<o.length;){const b=o[c++],y=s.get(b)??0;for(const E of r.get(b)){const k=(a.get(E)??1)-1;a.set(E,k),s.set(E,Math.max(s.get(E)??0,y+1)),k===0&&o.push(E)}}const d=new Set(o),f=e.filter(b=>!d.has(b.name)).map(b=>b.name);if(f.length>0){const b=Math.max(0,...Array.from(s.values()));for(const y of f)s.set(y,b+1)}const m=new Map;return{nodes:e.map(b=>{const y=s.get(b.name)??0,E=m.get(y)??0;return m.set(y,E+1),{id:b.name,x:xc+y*e9,y:xc+E*t9,status:b.status}}),edges:t,cycleNodes:f}}function r9({features:e}){const t=new Set,n=new Set;for(const m of e)for(const h of m.blockedBy)t.add(h),n.add(m.name);const r=e.filter(m=>t.has(m.name)||n.has(m.name));if(r.length===0)return null;const{nodes:a,edges:s,cycleNodes:o}=n9(r),c=new Map(a.map(m=>[m.id,m])),d=Math.max(...a.map(m=>m.x+so))+xc,f=Math.max(...a.map(m=>m.y+$i))+xc;return u.jsxs("div",{className:"relative group",children:[u.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[u.jsx("p",{className:"text-[10px] font-bold uppercase tracking-widest text-neutral-muted",children:"Relationship Topology"}),o.length>0&&u.jsxs("span",{className:"rounded bg-red-500/10 px-2 py-0.5 text-[10px] font-bold text-red-400 border border-red-500/20 animate-pulse",children:["Cycles Detected: ",o.length]})]}),u.jsx("div",{className:"overflow-x-auto rounded-2xl border border-neutral-border bg-neutral-bg/30 p-6 backdrop-blur-md",children:u.jsxs("svg",{width:d,height:f,className:"overflow-visible",children:[u.jsxs("defs",{children:[u.jsxs("filter",{id:"neon-glow-small",x:"-20%",y:"-20%",width:"140%",height:"140%",children:[u.jsx("feGaussianBlur",{stdDeviation:"1.5",result:"blur"}),u.jsx("feComposite",{in:"SourceGraphic",in2:"blur",operator:"over"})]}),u.jsx("marker",{id:"arrow",markerWidth:"8",markerHeight:"8",refX:"6",refY:"3",orient:"auto",children:u.jsx("path",{d:"M0,0 L0,6 L8,3 z",fill:"#4f46e5"})})]}),s.map(([m,h],b)=>{const y=c.get(m),E=c.get(h);if(!y||!E)return null;const k=y.x+so,w=y.y+$i/2,v=E.x,N=E.y+$i/2;return u.jsx(ee.line,{initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1},transition:{duration:1,delay:b*.05},x1:k,y1:w,x2:v-4,y2:N,className:"stroke-primary-500/20",strokeWidth:1.5,markerEnd:"url(#arrow)"},`${m}-${h}`)}),a.map((m,h)=>u.jsxs(ee.g,{initial:{opacity:0,scale:.9,y:m.y+10},animate:{opacity:1,scale:1,y:m.y},transition:{duration:.4,delay:h*.03},whileHover:{scale:1.05,filter:"url(#neon-glow-small)"},className:"cursor-pointer",children:[u.jsx("rect",{x:m.x,y:0,width:so,height:$i,rx:8,className:"fill-neutral-surface/80 stroke-neutral-border",strokeWidth:1}),u.jsx(ee.rect,{x:m.x,y:0,width:so,height:$i,rx:8,className:"fill-none",stroke:xa[m.status]??"#27272a",strokeWidth:1.5,initial:{pathLength:0},animate:{pathLength:1},transition:{duration:1,delay:h*.05}}),u.jsx("text",{x:m.x+so/2,y:$i/2,dominantBaseline:"middle",textAnchor:"middle",className:"text-[10px] font-bold tracking-tight fill-neutral-text pointer-events-none",children:m.id.length>18?m.id.slice(0,17)+"…":m.id})]},m.id))]})})]})}const a9=[{key:"totalFeatures",label:"Total",color:"text-white"},{key:"totalDone",label:"Done",color:"text-emerald-400"},{key:"totalInProgress",label:"In Progress",color:"text-blue-400"},{key:"totalPlanned",label:"Planned",color:"text-gray-400"},{key:"totalBlocked",label:"Blocked",color:"text-red-400"},{key:"totalNeedsHuman",label:"Needs Human",color:"text-amber-400"},{key:"totalBacklog",label:"Backlog",color:"text-gray-500"}];function i9({data:e}){return u.jsx("div",{className:"flex flex-wrap gap-6 rounded-lg border border-gray-800 bg-gray-900/50 px-5 py-3",children:a9.map(({key:t,label:n,color:r})=>u.jsxs("div",{className:"flex items-baseline gap-1.5",children:[u.jsx("span",{className:`text-lg font-bold tabular-nums ${r}`,children:e[t]}),u.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-gray-500",children:n})]},t))})}const ei="—";function KR(e){return(e.status==="planned"||e.status==="backlog")&&(!e.assignee||e.assignee===ei)}function s9(e){return!e.spec||e.spec==="none"||e.spec===ei?"brainstorming":!e.plans||e.plans.length===0||e.plans.length===1&&e.plans[0]===ei?"planning":"execution"}function o9(e){const t=e.match(/^github:(.+?)#(\d+)$/);return t?`https://github.com/${t[1]}/issues/${t[2]}`:null}function l9({status:e}){const t=xa[e]??"#71717a";return u.jsx("span",{className:"inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider",style:{backgroundColor:`${t}20`,color:t},children:e.replace("-"," ")})}function u9({priority:e}){const t={P0:"text-red-400 bg-red-400/10",P1:"text-orange-400 bg-orange-400/10",P2:"text-yellow-400 bg-yellow-400/10",P3:"text-gray-400 bg-gray-400/10"};return u.jsx("span",{className:`inline-flex rounded px-1.5 py-0.5 text-[10px] font-bold ${t[e]??"text-gray-400 bg-gray-400/10"}`,children:e})}function c9({feature:e,identity:t,onClaim:n}){const[r,a]=T.useState(!1),s=KR(e);return u.jsxs("div",{className:"border-t border-gray-800 first:border-t-0",children:[u.jsxs("div",{className:"group flex cursor-pointer items-center gap-3 px-4 py-2.5 hover:bg-gray-800/40 transition-colors",onClick:()=>a(!r),children:[u.jsx("span",{className:"text-[10px] text-gray-600 transition-transform",style:{transform:r?"rotate(90deg)":void 0},children:"▶"}),u.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-200",title:e.name,children:e.name}),u.jsx(l9,{status:e.status}),e.priority&&u.jsx(u9,{priority:e.priority}),e.assignee&&e.assignee!==ei&&u.jsx("span",{className:"text-xs text-gray-500",title:e.assignee,children:e.assignee}),u.jsx("span",{className:"hidden max-w-[200px] truncate text-xs text-gray-600 lg:inline",title:e.summary,children:e.summary}),s&&u.jsx("button",{onClick:o=>{o.stopPropagation(),t&&n(e)},disabled:!t,title:t?void 0:"Could not resolve your identity",className:`ml-auto rounded px-2 py-1 text-[10px] font-bold uppercase tracking-widest border transition-all whitespace-nowrap ${t?"bg-primary-500/10 text-primary-400 border-primary-500/20 hover:bg-primary-500 hover:text-white":"bg-gray-800 text-gray-600 border-gray-700 cursor-not-allowed"}`,children:"Start Working"})]}),r&&u.jsxs("div",{className:"grid grid-cols-2 gap-x-6 gap-y-1.5 bg-gray-900/30 px-10 py-3 text-xs",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-gray-500",children:"Summary: "}),u.jsx("span",{className:"text-gray-300",children:e.summary})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-gray-500",children:"Spec: "}),u.jsx("span",{className:"text-gray-400",children:e.spec??ei})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-gray-500",children:"Plans: "}),u.jsx("span",{className:"text-gray-400",children:e.plans.length>0?e.plans.join(", "):ei})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-gray-500",children:"External ID: "}),e.externalId?(()=>{const o=o9(e.externalId);return o?u.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"text-primary-400 hover:underline",onClick:c=>c.stopPropagation(),children:e.externalId}):u.jsx("span",{className:"text-gray-400",children:e.externalId})})():u.jsx("span",{className:"text-gray-400",children:ei})]}),e.blockedBy.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-gray-500",children:"Blocked by: "}),u.jsx("span",{className:"text-red-400",children:e.blockedBy.join(", ")})]}),e.updatedAt&&u.jsxs("div",{children:[u.jsx("span",{className:"text-gray-500",children:"Updated: "}),u.jsx("span",{className:"text-gray-400",children:new Date(e.updatedAt).toLocaleDateString()})]})]})]})}function d9({name:e,features:t,progress:n,identity:r,onClaim:a}){const[s,o]=T.useState(!1),c=(n==null?void 0:n.done)??0,d=(n==null?void 0:n.total)??t.length;return u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 overflow-hidden",children:[u.jsxs("button",{className:"flex w-full items-center gap-3 px-4 py-3 text-left hover:bg-gray-800/40 transition-colors",onClick:()=>o(!s),children:[u.jsx("span",{className:"text-xs text-gray-500 transition-transform",style:{transform:s?void 0:"rotate(90deg)"},children:"▶"}),u.jsx("span",{className:"text-sm font-semibold text-gray-200",children:e}),u.jsxs("span",{className:"text-xs text-gray-500",children:[c,"/",d]}),u.jsx("div",{className:"ml-auto h-1.5 w-24 overflow-hidden rounded-full bg-gray-800",children:u.jsx("div",{className:"h-full rounded-full bg-emerald-500 transition-all",style:{width:d>0?`${c/d*100}%`:"0%"}})})]}),!s&&u.jsx("div",{children:t.map(f=>u.jsx(c9,{feature:f,identity:r,onClaim:a},f.name))})]})}function p9({features:e,milestones:t,filterMilestone:n,filterStatus:r,workableOnly:a,identity:s,onClaim:o}){const c=e.filter(m=>{if(n&&m.milestone!==n)return!1;if(r){if(m.status!==r)return!1}else if(m.status==="done")return!1;return!(a&&!KR(m))});if(c.length===0)return u.jsx("p",{className:"text-sm text-neutral-muted",children:"No features match the current filters."});const d=new Map;for(const m of c){const h=d.get(m.milestone)??[];h.push(m),d.set(m.milestone,h)}const f=new Map(t.map(m=>[m.name,m]));return u.jsx("div",{className:"space-y-3",children:Array.from(d).map(([m,h])=>u.jsx(d9,{name:m,features:h,progress:f.get(m),identity:s,onClaim:o},m))})}const f9={brainstorming:{label:"Brainstorming",description:"No spec found. You’ll start by exploring the problem space."},planning:{label:"Planning",description:"Spec exists but no plan. You’ll create an implementation plan."},execution:{label:"Execution",description:"Spec and plan exist. You’ll start implementing."}};function m9({feature:e,identity:t,onConfirm:n,onCancel:r}){const[a,s]=T.useState(!1),[o,c]=T.useState(null),d=s9(e),f=f9[d];async function m(){s(!0),c(null);try{const h=await fetch("/api/actions/roadmap/claim",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({feature:e.name,assignee:t})}),b=await h.json();if(!h.ok){c(b.error??"Claim failed"),s(!1);return}n(b)}catch{c("Network error"),s(!1)}}return u.jsxs("div",{className:"absolute right-0 top-full z-50 mt-2 w-80 rounded-lg border border-gray-700 bg-gray-900 p-4 shadow-xl",children:[u.jsx("h3",{className:"mb-1 text-sm font-semibold text-gray-200",children:"Claim Feature"}),u.jsx("p",{className:"mb-3 text-xs text-gray-400 truncate",title:e.name,children:e.name}),u.jsxs("div",{className:"mb-3 rounded border border-gray-800 bg-gray-800/50 px-3 py-2",children:[u.jsx("div",{className:"flex items-center gap-2",children:u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-primary-400",children:f.label})}),u.jsx("p",{className:"mt-1 text-xs text-gray-400",children:f.description})]}),u.jsxs("p",{className:"mb-3 text-xs text-gray-500",children:["Claiming as ",u.jsx("span",{className:"font-medium text-gray-300",children:t})]}),o&&u.jsx("p",{className:"mb-2 text-xs text-red-400",children:o}),u.jsxs("div",{className:"flex justify-end gap-2",children:[u.jsx("button",{onClick:r,disabled:a,className:"rounded px-3 py-1.5 text-[10px] font-bold uppercase tracking-widest text-gray-500 hover:text-gray-300 transition-colors",children:"Cancel"}),u.jsx("button",{onClick:()=>void m(),disabled:a,className:"rounded bg-primary-500 px-3 py-1.5 text-[10px] font-bold uppercase tracking-widest text-white disabled:opacity-40 hover:bg-primary-400 transition-colors",children:a?"Claiming…":"Confirm"})]})]})}const h9={assigned:"text-blue-400",completed:"text-emerald-400",unassigned:"text-gray-400"};function g9({records:e}){return e.length===0?null:u.jsx("div",{className:"overflow-x-auto rounded-lg border border-gray-800 bg-gray-900",children:u.jsxs("table",{className:"w-full text-left text-xs",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800 text-[10px] font-semibold uppercase tracking-widest text-gray-500",children:[u.jsx("th",{className:"px-4 py-2.5",children:"Feature"}),u.jsx("th",{className:"px-4 py-2.5",children:"Assignee"}),u.jsx("th",{className:"px-4 py-2.5",children:"Action"}),u.jsx("th",{className:"px-4 py-2.5",children:"Date"})]})}),u.jsx("tbody",{children:e.map((t,n)=>u.jsxs("tr",{className:"border-t border-gray-800/50 hover:bg-gray-800/30 transition-colors",children:[u.jsx("td",{className:"px-4 py-2 text-gray-300",children:t.feature}),u.jsx("td",{className:"px-4 py-2 text-gray-400",children:t.assignee}),u.jsx("td",{className:`px-4 py-2 capitalize ${h9[t.action]??"text-gray-400"}`,children:t.action}),u.jsx("td",{className:"px-4 py-2 text-gray-500",children:t.date})]},n))})]})})}function b9({milestoneOptions:e,filterMilestone:t,setFilterMilestone:n,filterStatus:r,setFilterStatus:a,workableOnly:s,setWorkableOnly:o}){return u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsxs("select",{value:t,onChange:c=>n(c.target.value),className:"rounded border border-gray-700 bg-gray-900 px-2 py-1 text-xs text-gray-300 focus:outline-none",children:[u.jsx("option",{value:"",children:"All Milestones"}),e.map(c=>u.jsx("option",{value:c,children:c},c))]}),u.jsxs("select",{value:r,onChange:c=>a(c.target.value),className:"rounded border border-gray-700 bg-gray-900 px-2 py-1 text-xs text-gray-300 focus:outline-none",children:[u.jsx("option",{value:"",children:"Non-done"}),u.jsx("option",{value:"in-progress",children:"In Progress"}),u.jsx("option",{value:"planned",children:"Planned"}),u.jsx("option",{value:"blocked",children:"Blocked"}),u.jsx("option",{value:"done",children:"Done"}),u.jsx("option",{value:"backlog",children:"Backlog"}),u.jsx("option",{value:"needs-human",children:"Needs Human"})]}),u.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-gray-400 cursor-pointer select-none",children:[u.jsx("input",{type:"checkbox",checked:s,onChange:c=>o(c.target.checked),className:"rounded border-gray-600 bg-gray-800 text-primary-500 focus:ring-primary-500/30"}),"Workable only"]})]})}const XR="rounded bg-primary-500/10 px-2 py-1 text-[10px] font-bold uppercase tracking-widest text-primary-400 border border-primary-500/20 hover:bg-primary-500 hover:text-white transition-all";function sN({command:e,label:t}){const n=Ln();return u.jsx("button",{onClick:()=>{const r=Ge.getState().createThread("chat",{sessionId:crypto.randomUUID(),command:e});n(`/t/${r.id}`)},className:XR,children:t})}function y9(){const e=Ln(),[t,n]=T.useState(!1),[r,a]=T.useState(""),s=T.useRef(null);T.useEffect(()=>{var c;t&&((c=s.current)==null||c.focus())},[t]);const o=()=>{if(!r.trim())return;const d=Ge.getState().createThread("chat",{sessionId:crypto.randomUUID(),command:"harness:roadmap-add"});e(`/t/${d.id}`),n(!1),a("")};return u.jsxs("div",{className:"relative",children:[u.jsx("button",{onClick:()=>n(!t),className:XR,children:"Add"}),t&&u.jsxs("div",{className:"absolute right-0 top-full z-50 mt-2 w-72 rounded-lg border border-gray-700 bg-gray-900 p-3 shadow-xl",children:[u.jsx("label",{className:"mb-1.5 block text-[10px] font-semibold uppercase tracking-widest text-gray-400",children:"What should be added?"}),u.jsx("input",{ref:s,value:r,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&o(),c.key==="Escape"&&(n(!1),a(""))},placeholder:"e.g. Dark mode support",className:"mb-2 w-full rounded border border-gray-700 bg-gray-800 px-2 py-1.5 text-xs text-gray-200 placeholder-gray-600 focus:border-primary-500 focus:outline-none"}),u.jsxs("div",{className:"flex justify-end gap-2",children:[u.jsx("button",{onClick:()=>{n(!1),a("")},className:"rounded px-2 py-1 text-[10px] font-bold uppercase tracking-widest text-gray-500 hover:text-gray-300 transition-colors",children:"Cancel"}),u.jsx("button",{onClick:o,disabled:!r.trim(),className:"rounded bg-primary-500 px-2 py-1 text-[10px] font-bold uppercase tracking-widest text-white disabled:opacity-40 hover:bg-primary-400 transition-colors",children:"Go"})]})]})]})}const x9={brainstorming:"harness:brainstorming",planning:"harness:planning",execution:"harness:execution"};function E9({milestones:e,features:t,data:n}){const r=Ln(),[a,s]=T.useState(""),[o,c]=T.useState(""),[d,f]=T.useState(!1),[m,h]=T.useState(null),[b,y]=T.useState(null),[E,k]=T.useState(!0),w=e.map(_=>_.name),v=t.some(_=>_.blockedBy.length>0);T.useEffect(()=>{fetch("/api/identity").then(_=>_.ok?_.json():null).then(_=>{_!=null&&_.username&&y(_.username)}).catch(()=>{}).finally(()=>k(!1))},[]);const N=T.useCallback(_=>{h(_)},[]),A=T.useCallback(_=>{h(null);const M=x9[_.workflow]??"harness:execution",D=Ge.getState().createThread("chat",{sessionId:crypto.randomUUID(),command:M});r(`/t/${D.id}`)},[r]);return u.jsxs("div",{className:"space-y-8",children:[u.jsx(i9,{data:n}),u.jsxs("section",{children:[u.jsx("h2",{className:"mb-4 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Progress by Milestone"}),u.jsx(JW,{milestones:e})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"mb-3 flex flex-wrap items-center justify-between gap-3",children:[u.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Features"}),u.jsx(b9,{milestoneOptions:w,filterMilestone:a,setFilterMilestone:s,filterStatus:o,setFilterStatus:c,workableOnly:d,setWorkableOnly:f})]}),u.jsxs("div",{className:"relative",children:[u.jsx(p9,{features:t,milestones:e,filterMilestone:a,filterStatus:o,workableOnly:d,identity:E?null:b,onClaim:N}),m&&b&&u.jsx(m9,{feature:m,identity:b,onConfirm:A,onCancel:()=>h(null)})]})]}),v&&u.jsxs("section",{children:[u.jsx("h2",{className:"mb-4 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Blocker Dependencies"}),u.jsx("div",{className:"overflow-x-auto rounded-lg border border-gray-800 bg-gray-900 p-4",children:u.jsx(r9,{features:t})})]}),n.assignmentHistory.length>0&&u.jsxs("section",{children:[u.jsx("h2",{className:"mb-4 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Assignment History"}),u.jsx(g9,{records:n.assignmentHistory})]})]})}function S9(){const{data:e,lastUpdated:t,stale:n,error:r}=gc(bc,"overview"),a=e?e.roadmap:null,s=a&&g8(a)?a:null;return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Roadmap"}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(sN,{command:"harness:roadmap-pilot",label:"Pilot"}),u.jsx(sN,{command:"harness:roadmap-sync",label:"Sync"}),u.jsx(y9,{}),u.jsx(rE,{lastUpdated:t,stale:n,error:r})]})]}),!e&&!r&&u.jsx("p",{className:"text-sm text-gray-500",children:"Connecting to data stream…"}),a&&!s&&u.jsx("p",{className:"text-sm text-red-400",children:"error"in a?a.error:"Unavailable"}),s&&u.jsx(E9,{milestones:s.milestones,features:s.features,data:s})]})}function v9(e){return e<1e3?`${Math.round(e)}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${(e/6e4).toFixed(1)}m`}function w9(e){return`${Math.round(e*100)}%`}function k9(e){return e>=.8?"text-emerald-400":e>=.5?"text-yellow-400":"text-red-400"}const T9=T.memo(function({skill:t}){return u.jsxs("tr",{className:"border-b border-gray-800 hover:bg-gray-800/40",children:[u.jsx("td",{className:"py-2 px-3 font-mono text-xs text-gray-200",children:t.skill}),u.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-gray-200",children:t.invocations}),u.jsx("td",{className:`py-2 px-3 text-right tabular-nums ${k9(t.successRate)}`,children:w9(t.successRate)}),u.jsx("td",{className:"py-2 px-3 text-right tabular-nums text-gray-400",children:v9(t.avgDuration)}),u.jsx("td",{className:"py-2 px-3 text-right text-xs text-gray-500",children:t.lastUsed.slice(0,10)})]})});function N9({skills:e}){return e.length===0?u.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:u.jsx("p",{className:"text-sm text-gray-500",children:"No adoption data yet. Skills will appear here after your next session."})}):u.jsx("div",{className:"overflow-x-auto rounded-lg border border-gray-800 bg-gray-900",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b border-gray-800 bg-gray-900/60",children:[u.jsx("th",{className:"py-2 px-3 text-left text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Skill"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Invocations"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Success"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Avg Duration"}),u.jsx("th",{className:"py-2 px-3 text-right text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Last Used"})]})}),u.jsx("tbody",{children:e.map(t=>u.jsx(T9,{skill:t},t.skill))})]})})}async function A9(){const e=await fetch("/api/adoption");if(!e.ok)throw new Error(`HTTP ${e.status}`);return(await e.json()).data}function I9(){const[e,t]=T.useState(null),[n,r]=T.useState(null),[a,s]=T.useState(!0),o=T.useCallback(async()=>{try{const c=await A9();t(c),r(null)}catch(c){r(c instanceof Error?c.message:"Network error")}finally{s(!1)}},[]);return T.useEffect(()=>{o()},[o]),u.jsxs("div",{children:[u.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Adoption"}),e&&u.jsxs("span",{className:"text-xs text-gray-500",children:["Generated ",new Date(e.generatedAt).toLocaleString()]})]}),a&&!e&&u.jsx("p",{className:"text-sm text-gray-500",children:"Loading adoption telemetry..."}),n&&u.jsx("p",{className:"text-sm text-red-400",children:n}),e&&u.jsxs("div",{className:"space-y-8",children:[u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Summary"}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:[u.jsx(Ze,{label:"Total Invocations",value:e.totalInvocations}),u.jsx(Ze,{label:"Unique Skills",value:e.uniqueSkills}),u.jsx(Ze,{label:"Period",value:e.period})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"mb-3 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Top Skills"}),u.jsx(N9,{skills:e.topSkills})]})]})]})}function C9(e){const t=T.useRef(new Set),n=T.useRef(!1);T.useEffect(()=>{typeof Notification<"u"&&Notification.permission==="default"&&Notification.requestPermission()},[]),T.useEffect(()=>{if(!n.current){for(const r of e)t.current.add(r.id);n.current=!0;return}if(!(typeof Notification>"u"||Notification.permission!=="granted")&&document.hidden)for(const r of e)t.current.has(r.id)||(t.current.add(r.id),new Notification("Needs Attention",{body:`${r.context.issueTitle}
|
|
390
|
-
${r.reasons.join(", ")}`,tag:r.id}))},[e])}function R9({spec:e}){return u.jsxs("div",{className:"space-y-3 rounded-md border border-primary-500/20 bg-primary-500/5 p-4",children:[u.jsx("h4",{className:"text-xs font-semibold uppercase tracking-widest text-primary-500",children:"Enriched Spec (SEL)"}),u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Intent"}),u.jsx("p",{className:"mt-1 text-sm text-white",children:e.intent})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Summary"}),u.jsx("p",{className:"mt-1 text-sm leading-relaxed text-gray-300",children:e.summary})]}),e.affectedSystems.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Affected Systems"}),u.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:e.affectedSystems.map(t=>u.jsxs("span",{className:"rounded-md border border-blue-500/20 bg-blue-500/10 px-2 py-0.5 text-[10px] font-medium text-blue-400",title:`Confidence: ${Math.round(t.confidence*100)}% | Tests: ${t.testCoverage} | Deps: ${t.transitiveDeps.length}`,children:[t.name,t.graphNodeId&&u.jsxs("span",{className:"ml-1 text-blue-500/50",children:[Math.round(t.confidence*100),"%"]})]},t.name))})]}),u.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-3",children:[e.unknowns.length>0&&u.jsxs("div",{children:[u.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-widest text-amber-500",children:["Unknowns (",e.unknowns.length,")"]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.unknowns.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]}),e.ambiguities.length>0&&u.jsxs("div",{children:[u.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-widest text-orange-500",children:["Ambiguities (",e.ambiguities.length,")"]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.ambiguities.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]}),e.riskSignals.length>0&&u.jsxs("div",{children:[u.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-widest text-red-500",children:["Risk Signals (",e.riskSignals.length,")"]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.riskSignals.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]})]})]})}const Ec={low:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",medium:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20",high:"bg-orange-500/10 text-orange-400 border-orange-500/20",critical:"bg-red-500/10 text-red-400 border-red-500/20"},_9={local:"text-emerald-400",human:"text-amber-400","simulation-required":"text-purple-400"};function oo({value:e,label:t,color:n}){const r=Math.round(e*100);return u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex justify-between text-xs",children:[u.jsx("span",{className:"text-gray-400",children:t}),u.jsxs("span",{className:n,children:[r,"%"]})]}),u.jsx("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:u.jsx("div",{className:`h-full rounded-full ${n.replace("text-","bg-")}`,style:{width:`${r}%`}})})]})}function O9({score:e}){return u.jsxs("div",{className:"space-y-3 rounded-md border border-secondary-400/20 bg-secondary-400/5 p-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h4",{className:"text-xs font-semibold uppercase tracking-widest text-secondary-400",children:"Complexity Model (CML)"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:`inline-block rounded-md border px-2 py-0.5 text-[10px] font-bold uppercase tracking-widest ${Ec[e.riskLevel]??Ec.medium}`,children:e.riskLevel}),u.jsx("span",{className:`text-xs font-mono font-bold ${_9[e.recommendedRoute]??"text-gray-400"}`,children:e.recommendedRoute})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(oo,{value:e.overall,label:"Overall",color:"text-primary-500"}),u.jsx(oo,{value:e.dimensions.structural,label:"Structural",color:"text-blue-400"}),u.jsx(oo,{value:e.dimensions.semantic,label:"Semantic",color:"text-purple-400"}),u.jsx(oo,{value:e.dimensions.historical,label:"Historical",color:"text-yellow-400"}),u.jsx(oo,{value:e.confidence,label:"Confidence",color:"text-emerald-400"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3 border-t border-gray-800 pt-2 md:grid-cols-4",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:e.blastRadius.services}),u.jsx("span",{className:"text-[10px] uppercase tracking-widest text-gray-500",children:"Services"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:e.blastRadius.modules}),u.jsx("span",{className:"text-[10px] uppercase tracking-widest text-gray-500",children:"Modules"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:e.blastRadius.filesEstimated}),u.jsx("span",{className:"text-[10px] uppercase tracking-widest text-gray-500",children:"Files"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:e.blastRadius.testFilesAffected}),u.jsx("span",{className:"text-[10px] uppercase tracking-widest text-gray-500",children:"Test Files"})]})]}),e.reasoning.length>0&&u.jsxs("div",{className:"border-t border-gray-800 pt-2",children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Reasoning"}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.reasoning.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]})]})}function L9({interaction:e,onDismiss:t,onClaim:n}){const{context:r,reasons:a,status:s,createdAt:o}=e,c=s==="pending",d=s==="claimed",f=!!r.enrichedSpec,m=!!r.complexityScore,h=f||m,[b,y]=T.useState(!1);return u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-5",children:[u.jsxs("div",{className:"mb-3 flex items-start justify-between",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("h3",{className:"text-base font-semibold text-white",children:r.issueTitle}),h&&u.jsx("span",{className:"rounded-md border border-primary-500/20 bg-primary-500/10 px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-widest text-primary-500",children:"Analyzed"})]}),u.jsxs("p",{className:"mt-1 text-xs text-gray-500",children:[new Date(o).toLocaleString()," · ",e.issueId]})]}),u.jsx("span",{className:["rounded px-2 py-0.5 text-xs font-medium",c?"bg-yellow-900 text-yellow-300":"",d?"bg-blue-900 text-blue-300":"",s==="resolved"?"bg-gray-700 text-gray-400":""].filter(Boolean).join(" "),children:s})]}),r.issueDescription&&u.jsx("p",{className:"mb-3 text-sm text-gray-300",children:r.issueDescription}),u.jsxs("div",{className:"mb-3",children:[u.jsx("p",{className:"mb-1 text-xs font-medium uppercase tracking-widest text-gray-500",children:"Escalation Reasons"}),u.jsx("div",{className:"space-y-1",children:a.map((E,k)=>u.jsx("div",{className:"text-sm text-yellow-400 [&_p]:m-0 [&_strong]:font-bold [&_strong]:text-yellow-200",children:u.jsx(ka,{remarkPlugins:[Ta],children:E})},k))})]}),h&&u.jsxs("div",{className:"mb-3",children:[u.jsxs("button",{onClick:()=>y(E=>!E),className:["flex w-full items-center justify-between rounded-md border px-3 py-2 text-left text-xs transition-colors",b?"border-primary-500/30 bg-primary-500/10":"border-gray-700 bg-gray-800/50 hover:border-gray-600 hover:bg-gray-800"].join(" "),children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"inline-block text-[10px] text-gray-500 transition-transform",style:{transform:b?"rotate(90deg)":"rotate(0deg)"},children:"▶"}),u.jsxs("span",{className:"font-medium text-gray-300",children:[b?"Hide":"View"," Analysis"]}),f&&u.jsxs("span",{className:"text-gray-500",children:[r.enrichedSpec.affectedSystems.length," system",r.enrichedSpec.affectedSystems.length!==1?"s":""]})]}),m&&u.jsxs("span",{className:`rounded-md border px-2 py-0.5 text-[10px] font-bold uppercase tracking-widest ${Ec[r.complexityScore.riskLevel]??Ec.medium}`,children:[r.complexityScore.riskLevel," risk"]})]}),b&&u.jsxs("div",{className:"mt-2 space-y-3",children:[f&&u.jsx(R9,{spec:r.enrichedSpec}),m&&u.jsx(O9,{score:r.complexityScore})]})]}),r.relatedFiles.length>0&&u.jsxs("div",{className:"mb-3",children:[u.jsx("p",{className:"mb-1 text-xs font-medium uppercase tracking-widest text-gray-500",children:"Related Files"}),u.jsx("ul",{className:"space-y-0.5",children:r.relatedFiles.map(E=>u.jsx("li",{className:"font-mono text-xs text-gray-400",children:E},E))})]}),r.specPath&&u.jsxs("p",{className:"mb-3 text-xs text-gray-500",children:["Spec: ",u.jsx("span",{className:"font-mono text-gray-400",children:r.specPath})]}),(c||d)&&u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>n(e.id),className:"rounded bg-blue-700 px-3 py-1.5 text-xs font-medium text-white hover:bg-blue-600",children:"Claim"}),u.jsx("button",{onClick:()=>t(e.id),className:"rounded bg-gray-700 px-3 py-1.5 text-xs font-medium text-gray-300 hover:bg-gray-600",children:"Dismiss"})]})]})}function D9(){const{interactions:e,removeInteraction:t,setInteractions:n}=Yo(),[r,a]=T.useState(!1),[s,o]=T.useState([]),[c,d]=T.useState(""),f=Ln();C9(s),T.useEffect(()=>{const E=new AbortController;return(async()=>{try{const k=await fetch("/api/interactions",{signal:E.signal});if(k.ok){const w=await k.json();n(w),o(w)}}catch(k){if(k.name==="AbortError")return}finally{a(!0)}})(),()=>E.abort()},[n]),T.useEffect(()=>{e.length>0&&o(E=>{const k=new Set(E.map(v=>v.id)),w=e.filter(v=>!k.has(v.id));return w.length>0?[...E,...w]:E})},[e]);const m=T.useCallback(async E=>{(await fetch(`/api/interactions/${E}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:"resolved"})})).ok&&(t(E),o(w=>w.filter(v=>v.id!==E)))},[t]),h=T.useCallback(E=>{const k=Ge.getState();let w;for(const v of k.threads.values())if(v.type==="attention"&&"interactionId"in v.meta&&v.meta.interactionId===E){w=v.id;break}w&&f(`/t/${w}`)},[f]),y=s.filter(E=>{var _,M;if(E.status==="resolved")return!1;if(!c.trim())return!0;const k=c.toLowerCase(),w=(_=E.context.issueTitle)==null?void 0:_.toLowerCase().includes(k),v=(M=E.context.issueDescription)==null?void 0:M.toLowerCase().includes(k),N=E.reasons.some(D=>D.toLowerCase().includes(k)),A=E.id.toLowerCase().includes(k)||E.issueId.toLowerCase().includes(k);return w||v||N||A}).sort((E,k)=>new Date(k.createdAt).getTime()-new Date(E.createdAt).getTime());return u.jsxs("div",{className:"flex h-full flex-col",children:[u.jsxs("div",{className:"mb-6 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[u.jsx("h1",{className:"text-2xl font-bold",children:"Needs Attention"}),u.jsxs("div",{className:"relative w-full max-w-sm",children:[u.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:u.jsx(fm,{className:"h-4 w-4 text-gray-500"})}),u.jsx("input",{type:"text",className:"block w-full rounded-lg border border-gray-800 bg-gray-900 py-2 pl-10 pr-10 text-sm text-white placeholder-gray-500 transition-all focus:border-primary-500 focus:outline-none focus:ring-1 focus:ring-primary-500",placeholder:"Search escalations...",value:c,onChange:E=>d(E.target.value)}),c&&u.jsx("button",{className:"absolute inset-y-0 right-0 flex items-center pr-3 text-gray-500 hover:text-gray-300",onClick:()=>d(""),children:u.jsx(Ah,{className:"h-4 w-4"})})]})]}),!r&&u.jsx("div",{className:"flex flex-1 items-center justify-center",children:u.jsxs("div",{className:"flex flex-col items-center gap-2 text-gray-500",children:[u.jsx(_c,{className:"h-8 w-8 animate-spin"}),u.jsx("p",{className:"text-sm",children:"Loading interactions..."})]})}),r&&y.length===0&&u.jsx("div",{className:"flex flex-1 items-center justify-center rounded-xl border border-dashed border-gray-800 bg-gray-900/20 p-12 text-center",children:u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-gray-500",children:c?"No interactions match your search.":"No interactions require attention."}),c&&u.jsx("button",{onClick:()=>d(""),className:"mt-2 text-xs font-semibold text-primary-500 hover:text-primary-400",children:"Clear search"})]})}),r&&y.length>0&&u.jsx("div",{className:"flex-1 overflow-hidden",children:u.jsx(pC,{style:{height:"100%"},data:y,itemContent:(E,k)=>u.jsx("div",{className:"pb-4 pr-4",children:u.jsx(L9,{interaction:k,onDismiss:w=>void m(w),onClaim:h})})})})]})}async function M9(e,t,n){var r;try{const a=await fetch("/api/analyze",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:n});if(!a.ok){if((r=a.headers.get("content-type"))!=null&&r.includes("application/json")){const d=await a.json();t.onError(d.error??`HTTP ${a.status}`)}else t.onError(`HTTP ${a.status}`);return}if(!a.body){t.onError("No response stream");return}const s=a.body.getReader(),o=new TextDecoder;let c="";for(;;){const{done:d,value:f}=await s.read();if(d)break;c+=o.decode(f,{stream:!0});const m=c.split(`
|
|
391
|
-
`);c=m.pop()??"";for(const h of m){if(!h.startsWith("data: "))continue;const b=h.slice(6).trim();if(b==="[DONE]"){t.onDone();return}try{const y=JSON.parse(b);if(typeof y!="object"||y===null||!("type"in y))continue;const E=y;switch(E.type){case"status":t.onStatus(E.text);break;case"sel_result":t.onSEL(E.data);break;case"cml_result":t.onCML(E.data);break;case"pesl_result":t.onPESL(E.data);break;case"signals":t.onSignals(E.data);break;case"error":t.onError(E.error);return}}catch{}}}t.onDone()}catch(a){a.name!=="AbortError"&&t.onError(a.message??"Stream failed")}}function lo({value:e,label:t,color:n}){const r=Math.round(e*100),s={"text-primary-500":"bg-primary-500","text-secondary-400":"bg-secondary-400","text-accent-500":"bg-accent-500","text-blue-400":"bg-blue-400","text-purple-400":"bg-purple-400","text-yellow-400":"bg-yellow-400","text-emerald-400":"bg-emerald-400"}[n]||"bg-gray-600";return u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex justify-between text-xs",children:[u.jsx("span",{className:"text-gray-400",children:t}),u.jsxs("span",{className:n,children:[r,"%"]})]}),u.jsx("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:u.jsx(ee.div,{initial:{width:0},animate:{width:`${r}%`},transition:{duration:.6,ease:"easeOut"},className:`h-full rounded-full ${s}`})})]})}const oN={low:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",medium:"bg-yellow-500/10 text-yellow-400 border-yellow-500/20",high:"bg-orange-500/10 text-orange-400 border-orange-500/20",critical:"bg-red-500/10 text-red-400 border-red-500/20"};function j9({level:e}){return u.jsx("span",{className:`inline-block rounded-md border px-2 py-0.5 text-[10px] font-bold uppercase tracking-widest ${oN[e]??oN.medium}`,children:e})}const F9={local:"text-emerald-400",human:"text-amber-400","simulation-required":"text-purple-400"};function P9({data:e}){return u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-lg border border-gray-800 bg-gray-900 p-5 space-y-4",children:[u.jsx("h3",{className:"text-xs font-semibold uppercase tracking-widest text-primary-500",children:"Spec Enrichment (SEL)"}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Intent"}),u.jsx("p",{className:"mt-1 text-sm text-white",children:e.intent})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Summary"}),u.jsx("p",{className:"mt-1 text-sm text-gray-300 leading-relaxed",children:e.summary})]}),e.affectedSystems.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Affected Systems"}),u.jsx("div",{className:"mt-1 flex flex-wrap gap-1.5",children:e.affectedSystems.map(t=>u.jsxs("span",{className:"rounded-md bg-blue-500/10 border border-blue-500/20 px-2 py-0.5 text-[10px] font-medium text-blue-400",title:`Confidence: ${Math.round(t.confidence*100)}% | Tests: ${t.testCoverage} | Deps: ${t.transitiveDeps.length}`,children:[t.name,t.graphNodeId&&u.jsxs("span",{className:"ml-1 text-blue-500/50",children:[Math.round(t.confidence*100),"%"]})]},t.name))})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[e.unknowns.length>0&&u.jsxs("div",{children:[u.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-widest text-amber-500",children:["Unknowns (",e.unknowns.length,")"]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.unknowns.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]}),e.ambiguities.length>0&&u.jsxs("div",{children:[u.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-widest text-orange-500",children:["Ambiguities (",e.ambiguities.length,")"]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.ambiguities.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]}),e.riskSignals.length>0&&u.jsxs("div",{children:[u.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-widest text-red-500",children:["Risk Signals (",e.riskSignals.length,")"]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.riskSignals.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]})]})]})]})}function B9({data:e}){return u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-lg border border-gray-800 bg-gray-900 p-5 space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h3",{className:"text-xs font-semibold uppercase tracking-widest text-secondary-400",children:"Complexity Model (CML)"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(j9,{level:e.riskLevel}),u.jsx("span",{className:`text-xs font-mono font-bold ${F9[e.recommendedRoute]??"text-gray-400"}`,children:e.recommendedRoute})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(lo,{value:e.overall,label:"Overall",color:"text-primary-500"}),u.jsx(lo,{value:e.dimensions.structural,label:"Structural",color:"text-secondary-400"}),u.jsx(lo,{value:e.dimensions.semantic,label:"Semantic",color:"text-accent-500"}),u.jsx(lo,{value:e.dimensions.historical,label:"Historical",color:"text-yellow-400"}),u.jsx(lo,{value:e.confidence,label:"Confidence",color:"text-emerald-400"})]}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 pt-2 border-t border-gray-800",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:e.blastRadius.services}),u.jsx("span",{className:"text-[10px] text-gray-500 uppercase tracking-widest",children:"Services"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:e.blastRadius.modules}),u.jsx("span",{className:"text-[10px] text-gray-500 uppercase tracking-widest",children:"Modules"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:e.blastRadius.filesEstimated}),u.jsx("span",{className:"text-[10px] text-gray-500 uppercase tracking-widest",children:"Files"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("span",{className:"block text-lg font-bold text-white",children:e.blastRadius.testFilesAffected}),u.jsx("span",{className:"text-[10px] text-gray-500 uppercase tracking-widest",children:"Test Files"})]})]}),e.reasoning.length>0&&u.jsxs("div",{className:"pt-2 border-t border-gray-800",children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Reasoning"}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.reasoning.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]})]})}function U9({data:e}){return u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-lg border border-gray-800 bg-gray-900 p-5 space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h3",{className:"text-xs font-semibold uppercase tracking-widest text-amber-400",children:"Simulation (PESL)"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-mono text-[10px] text-gray-500 uppercase",children:e.tier}),e.abort&&u.jsx("span",{className:"rounded-md bg-red-500/10 border border-red-500/20 px-2 py-0.5 text-[10px] font-bold uppercase text-red-400",children:"Abort Recommended"}),u.jsxs("span",{className:`text-sm font-bold ${e.executionConfidence>=.7?"text-emerald-400":e.executionConfidence>=.4?"text-yellow-400":"text-red-400"}`,children:[Math.round(e.executionConfidence*100),"% confidence"]})]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.simulatedPlan.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Simulated Plan"}),u.jsx("ol",{className:"mt-1 space-y-0.5 list-decimal list-inside",children:e.simulatedPlan.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-300",children:t},n))})]}),e.predictedFailures.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-red-500",children:"Predicted Failures"}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.predictedFailures.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]}),e.riskHotspots.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-orange-500",children:"Risk Hotspots"}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.riskHotspots.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]}),e.testGaps.length>0&&u.jsxs("div",{children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-amber-500",children:"Test Gaps"}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.testGaps.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]})]}),e.recommendedChanges.length>0&&u.jsxs("div",{className:"pt-2 border-t border-gray-800",children:[u.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-gray-500",children:"Recommended Changes"}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:e.recommendedChanges.map((t,n)=>u.jsx("li",{className:"text-xs text-gray-400",children:t},n))})]})]})}function $9({signals:e}){return u.jsx(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex flex-wrap gap-2",children:e.map((t,n)=>u.jsx("span",{className:"rounded-md bg-red-500/10 border border-red-500/20 px-3 py-1 text-xs font-medium text-red-400",title:t.reason,children:t.name},n))})}function z9(e,t,n,r){const a=[`# Spec: ${e}`,""];if(a.push(`**Generated:** ${new Date().toISOString()}`),n&&(a.push(`**Route Recommendation:** ${n.recommendedRoute}`),a.push(`**Risk Level:** ${n.riskLevel}`)),a.push(""),t&&(a.push("## Intent","",t.intent,""),a.push("## Summary","",t.summary,""),t.affectedSystems.length>0)){a.push("## Affected Systems","");for(const s of t.affectedSystems)a.push(`- ${s.name}`);a.push("")}if(n&&(a.push("## Complexity Score",""),a.push(`- **Overall:** ${Math.round(n.overall*100)}%`),a.push(`- **Structural:** ${Math.round(n.dimensions.structural*100)}%`),a.push(`- **Semantic:** ${Math.round(n.dimensions.semantic*100)}%`),a.push(`- **Historical:** ${Math.round(n.dimensions.historical*100)}%`),a.push(`- **Blast Radius:** ${n.blastRadius.services} services, ${n.blastRadius.modules} modules, ~${n.blastRadius.filesEstimated} files`),a.push("")),t){if(t.unknowns.length>0){a.push("## Unknowns","");for(const s of t.unknowns)a.push(`- ${s}`);a.push("")}if(t.ambiguities.length>0){a.push("## Ambiguities","");for(const s of t.ambiguities)a.push(`- ${s}`);a.push("")}if(t.riskSignals.length>0){a.push("## Risk Signals","");for(const s of t.riskSignals)a.push(`- ${s}`);a.push("")}}if(r){if(a.push("## Simulation (PESL)",""),a.push(`**Execution Confidence:** ${Math.round(r.executionConfidence*100)}%`),a.push(""),r.simulatedPlan.length>0&&(a.push("### Simulated Plan",""),r.simulatedPlan.forEach((s,o)=>a.push(`${o+1}. ${s}`)),a.push("")),r.predictedFailures.length>0){a.push("### Predicted Failures","");for(const s of r.predictedFailures)a.push(`- ${s}`);a.push("")}if(r.recommendedChanges.length>0){a.push("### Recommended Changes","");for(const s of r.recommendedChanges)a.push(`- ${s}`);a.push("")}}return a.join(`
|
|
392
|
-
`)}function Lu({icon:e,label:t,doneLabel:n,onClick:r,disabled:a,pending:s,done:o,title:c,color:d="border-gray-700 text-gray-400 hover:border-primary-500/50 hover:text-primary-400"}){return u.jsxs(ee.button,{...a?{}:{whileHover:{scale:1.02},whileTap:{scale:.98}},onClick:r,disabled:a||s||o,...c!=null?{title:c}:{},className:`flex items-center gap-2 rounded-lg border px-4 py-2.5 text-xs font-bold uppercase tracking-wider transition-all disabled:cursor-not-allowed disabled:opacity-30 ${o?"border-emerald-500/30 text-emerald-400":d}`,children:[s?u.jsx("div",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}):o?u.jsx(wh,{size:14}):e,o?n:t]})}function G9(){const[e,t]=T.useState(""),[n,r]=T.useState(""),[a,s]=T.useState(""),[o,c]=T.useState(!1),[d,f]=T.useState(null),[m,h]=T.useState(null),[b,y]=T.useState(null),[E,k]=T.useState(null),[w,v]=T.useState(null),[N,A]=T.useState(null),[_,M]=T.useState("idle"),[D,R]=T.useState(null),P=T.useRef(null),B=b||E||w||N,O=!o&&B;T.useEffect(()=>{if(_==="roadmap-done"||_==="dispatch-done"){const J=setTimeout(()=>M("idle"),3e3);return()=>clearTimeout(J)}},[_]);const $=T.useCallback(async()=>{if(!e.trim()||o)return;h(null),y(null),k(null),v(null),A(null),f(null),c(!0);const J=new AbortController;P.current=J;const W=a.split(",").map(C=>C.trim()).filter(Boolean),re={title:e.trim()};n.trim()&&(re.description=n.trim()),W.length>0&&(re.labels=W),await M9(re,{onStatus:f,onSEL:C=>{y(C),f(null)},onCML:C=>{k(C),f(null)},onPESL:C=>{v(C),f(null)},onSignals:C=>{A(C),f(null)},onError:C=>{h(C),c(!1),f(null)},onDone:()=>{c(!1),f(null)}},J.signal)},[e,n,a,o]),H=T.useCallback(()=>{var J;(J=P.current)==null||J.abort(),c(!1),f(null)},[]),Z=T.useCallback(async()=>{M("roadmap-pending"),R(null);try{const J=await fetch("/api/roadmap/append",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e.trim(),summary:b==null?void 0:b.summary,enrichedSpec:b?{intent:b.intent,unknowns:b.unknowns,ambiguities:b.ambiguities,riskSignals:b.riskSignals,affectedSystems:b.affectedSystems.map(W=>({name:W.name}))}:void 0,cmlRecommendedRoute:E==null?void 0:E.recommendedRoute})});if(!J.ok){const W=await J.json();throw new Error(W.error??`HTTP ${J.status}`)}M("roadmap-done")}catch(J){R(J.message),M("idle")}},[e,b,E]),q=T.useCallback(async()=>{M("dispatch-pending"),R(null);try{const J=a.split(",").map(re=>re.trim()).filter(Boolean),W=await fetch("/api/dispatch/adhoc",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e.trim(),description:n.trim()||void 0,labels:J.length>0?J:void 0})});if(!W.ok){const re=await W.json();throw new Error(re.error??`HTTP ${W.status}`)}M("dispatch-done")}catch(J){R(J.message),M("idle")}},[e,n,a]),Y=T.useCallback(()=>{var re;if(!b)return;const J=[];n.trim()&&J.push(n.trim());const W=[];for(const C of b.unknowns)W.push(`- Unknown: ${C}`);for(const C of b.ambiguities)W.push(`- Ambiguity: ${C}`);W.length>0&&J.push("","---","Suggested clarifications from analysis:",...W),r(J.join(`
|
|
393
|
-
`)),y(null),k(null),v(null),A(null),M("idle"),R(null),(re=document.getElementById("analyze-description"))==null||re.focus()},[b,n]),ae=T.useCallback(()=>{const J=z9(e.trim(),b,E,w),W=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").slice(0,40),re=new Date().toISOString().slice(0,10),C=new Blob([J],{type:"text/markdown"}),F=URL.createObjectURL(C),K=document.createElement("a");K.href=F,K.download=`spec-${W}-${re}.md`,K.click(),URL.revokeObjectURL(F)},[e,b,E,w]);return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"rounded-full bg-primary-500/10 p-2 text-primary-500",children:u.jsx(lc,{size:20,className:"drop-shadow-[0_0_10px_var(--color-primary-500)]"})}),u.jsxs("div",{children:[u.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"Analyze"}),u.jsx("p",{className:"text-xs text-gray-500 font-mono uppercase tracking-widest",children:"Intelligence Pipeline"})]})]}),u.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-5 space-y-4",children:[u.jsxs("div",{children:[u.jsxs("label",{htmlFor:"analyze-title",className:"block text-xs font-semibold uppercase tracking-widest text-gray-500 mb-1.5",children:["Title ",u.jsx("span",{className:"text-red-400",children:"*"})]}),u.jsx("input",{id:"analyze-title",type:"text",value:e,onChange:J=>t(J.target.value),onKeyDown:J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),$())},placeholder:"Describe the work item...",disabled:o,className:"w-full rounded-lg border border-gray-700 bg-gray-800 px-4 py-2.5 text-sm text-white placeholder-gray-500 transition-all focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-500/20 disabled:opacity-50"})]}),u.jsxs("div",{children:[u.jsx("label",{htmlFor:"analyze-description",className:"block text-xs font-semibold uppercase tracking-widest text-gray-500 mb-1.5",children:"Description"}),u.jsx("textarea",{id:"analyze-description",rows:8,value:n,onChange:J=>r(J.target.value),placeholder:"Additional context, requirements, constraints...",disabled:o,className:"w-full rounded-lg border border-gray-700 bg-gray-800 px-4 py-2.5 text-sm text-white placeholder-gray-500 transition-all focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-500/20 disabled:opacity-50"})]}),u.jsxs("div",{children:[u.jsx("label",{htmlFor:"analyze-labels",className:"block text-xs font-semibold uppercase tracking-widest text-gray-500 mb-1.5",children:"Labels"}),u.jsx("input",{id:"analyze-labels",type:"text",value:a,onChange:J=>s(J.target.value),placeholder:"Comma-separated labels (e.g. frontend, auth, urgent)",disabled:o,className:"w-full rounded-lg border border-gray-700 bg-gray-800 px-4 py-2.5 text-sm text-white placeholder-gray-500 transition-all focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-500/20 disabled:opacity-50"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs(ee.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>void $(),disabled:o||!e.trim(),className:"flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-xs font-bold uppercase tracking-wider text-white shadow-[0_0_15px_rgba(79,70,229,0.3)] transition-all hover:shadow-[0_0_20px_rgba(79,70,229,0.5)] disabled:cursor-not-allowed disabled:opacity-30",children:[o?u.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white border-t-transparent"}):u.jsx(Nh,{size:14}),o?"Analyzing...":"Analyze"]}),o&&u.jsx("button",{onClick:H,className:"rounded-lg border border-gray-700 px-4 py-2.5 text-xs font-bold uppercase tracking-wider text-gray-400 transition-colors hover:border-red-500/50 hover:text-red-400",children:"Cancel"})]})]}),u.jsx(xn,{children:d&&u.jsxs(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"flex items-center gap-2",children:[u.jsx("span",{className:"inline-block h-2 w-2 animate-pulse rounded-full bg-primary-500 shadow-[0_0_10px_var(--color-primary-500)]"}),u.jsx("span",{className:"font-mono text-xs uppercase tracking-widest text-gray-400",children:d})]})}),m&&u.jsx(ee.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},className:"rounded-lg border border-red-500/20 bg-red-500/5 p-4 text-sm text-red-400",children:m}),B&&u.jsxs("div",{className:"space-y-4",children:[b&&u.jsx(P9,{data:b}),E&&u.jsx(B9,{data:E}),N&&N.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 text-xs font-semibold uppercase tracking-widest text-gray-500",children:"Concern Signals"}),u.jsx($9,{signals:N})]}),w&&u.jsx(U9,{data:w}),O&&u.jsxs(ee.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex flex-wrap items-center gap-3 rounded-lg border border-gray-800 bg-gray-900 p-4",children:[u.jsx(Lu,{icon:u.jsx(CI,{size:14}),label:"Add to Roadmap",doneLabel:"Added",onClick:()=>void Z(),disabled:_!=="idle"&&_!=="roadmap-done"&&_!=="dispatch-done",pending:_==="roadmap-pending",done:_==="roadmap-done"}),u.jsx(Lu,{icon:u.jsx(li,{size:14}),label:"Dispatch Now",doneLabel:"Dispatched",onClick:()=>void q(),disabled:(E==null?void 0:E.recommendedRoute)!=="local"||_!=="idle"&&_!=="roadmap-done"&&_!=="dispatch-done",pending:_==="dispatch-pending",done:_==="dispatch-done",...(E==null?void 0:E.recommendedRoute)!=="local"?{title:"Only available for local-route items"}:{},color:"border-gray-700 text-gray-400 hover:border-emerald-500/50 hover:text-emerald-400"}),u.jsx(Lu,{icon:u.jsx(xB,{size:14}),label:"Refine",doneLabel:"Refine",onClick:Y,disabled:!b||b.unknowns.length===0&&b.ambiguities.length===0,pending:!1,done:!1,title:"Pre-populate description with unknowns and ambiguities for re-analysis",color:"border-gray-700 text-gray-400 hover:border-amber-500/50 hover:text-amber-400"}),u.jsx(Lu,{icon:u.jsx(NI,{size:14}),label:"Export Spec",doneLabel:"Export Spec",onClick:ae,disabled:!b,pending:!1,done:!1,color:"border-gray-700 text-gray-400 hover:border-blue-500/50 hover:text-blue-400"}),D&&u.jsx("span",{className:"text-xs text-red-400",children:D})]})]}),!B&&!o&&!m&&u.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[u.jsx("div",{className:"mb-4 rounded-full bg-primary-500/10 p-4 text-primary-500",children:u.jsx(lc,{size:32,className:"drop-shadow-[0_0_10px_var(--color-primary-500)]"})}),u.jsx("h2",{className:"mb-1 text-lg font-bold",children:"Intelligence Pipeline"}),u.jsx("p",{className:"max-w-sm text-xs text-gray-500",children:"Submit a work item description to run it through the SEL, CML, and PESL analysis layers. Results stream in real-time."})]})]})}const H9={health:B8,graph:H8,impact:aW,decay:dW,traceability:yW,orchestrator:DW,maintenance:zW,streams:QW,roadmap:S9,adoption:I9,attention:D9,analyze:G9};function V9({type:e,title:t}){return u.jsx("div",{className:"flex flex-1 flex-col items-center justify-center text-center",children:u.jsxs("div",{className:"rounded-xl border border-white/[0.06] bg-neutral-surface/30 px-8 py-6 backdrop-blur-sm",children:[u.jsxs("p",{className:"text-[10px] font-black uppercase tracking-[0.2em] text-neutral-muted mb-2",children:[e," thread"]}),u.jsx("h3",{className:"text-lg font-bold text-white",children:t}),u.jsx("p",{className:"text-xs text-neutral-muted mt-2",children:"Thread view will be implemented in upcoming phases."})]})})}function W9(){const{threadId:e}=SN(),t=Ge(r=>e?r.threads.get(e):void 0),n=Ge(r=>r.hydrated);if(T.useEffect(()=>{e&&Ge.getState().setActiveThread(e)},[e]),!t&&!n)return u.jsx("div",{className:"flex flex-1 flex-col items-center justify-center text-center text-neutral-muted",children:u.jsx("p",{className:"text-xs animate-pulse",children:"Loading thread…"})});if(!t)return u.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center text-center text-neutral-muted",children:[u.jsx("p",{className:"text-sm",children:"Thread not found."}),u.jsx("p",{className:"text-xs mt-1",children:"It may have been closed or does not exist yet."})]});switch(t.type){case"chat":return u.jsx(Z6,{thread:t});case"attention":return u.jsx(r8,{thread:t});case"agent":return u.jsx(u8,{thread:t});case"analysis":return u.jsx(p8,{thread:t});default:return u.jsx(V9,{type:t.type,title:t.title})}}function q9(){const{systemPage:e}=SN();if(!e)return u.jsx(DI,{});const t=H9[e];return t?u.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:u.jsx("div",{className:"mx-auto max-w-7xl",children:u.jsx(t,{})})}):u.jsx("div",{className:"flex flex-1 flex-col items-center justify-center text-center text-neutral-muted",children:u.jsxs("p",{className:"text-sm",children:["Unknown system page: ",e]})})}function Y9(){const e=Ge(r=>r.lastThreadId),t=Ge(r=>e?r.threads.get(e):void 0),n=Ln();return T.useEffect(()=>{t&&e&&n(`/t/${e}`,{replace:!0})},[t,e,n]),t?null:u.jsx(DI,{})}const K9=[{from:"/intelligence/health",to:"/s/health"},{from:"/intelligence/graph",to:"/s/graph"},{from:"/intelligence/impact",to:"/s/impact"},{from:"/intelligence/decay",to:"/s/decay"},{from:"/intelligence/traceability",to:"/s/traceability"},{from:"/agents",to:"/s/orchestrator"},{from:"/agents/attention",to:"/s/attention"},{from:"/agents/analyze",to:"/s/analyze"},{from:"/agents/maintenance",to:"/s/maintenance"},{from:"/agents/streams",to:"/s/streams"},{from:"/roadmap",to:"/s/roadmap"},{from:"/roadmap/adoption",to:"/s/adoption"},{from:"/health",to:"/s/health"},{from:"/graph",to:"/s/graph"},{from:"/impact",to:"/s/impact"},{from:"/decay-trends",to:"/s/decay"},{from:"/traceability",to:"/s/traceability"},{from:"/orchestrator",to:"/s/orchestrator"},{from:"/orchestrator/attention",to:"/s/attention"},{from:"/orchestrator/analyze",to:"/s/analyze"},{from:"/orchestrator/chat",to:"/"},{from:"/orchestrator/maintenance",to:"/s/maintenance"},{from:"/orchestrator/streams",to:"/s/streams"},{from:"/adoption",to:"/s/adoption"}],lN=document.getElementById("root");lN&&Q_.createRoot(lN).render(u.jsx(T.StrictMode,{children:u.jsx(oP,{children:u.jsx(EL,{children:u.jsx(dU,{children:u.jsxs(XO,{children:[u.jsx(uo,{path:"/",element:u.jsx(Y9,{})}),u.jsx(uo,{path:"/t/:threadId",element:u.jsx(W9,{})}),u.jsx(uo,{path:"/s/:systemPage",element:u.jsx(q9,{})}),K9.map(({from:e,to:t})=>u.jsx(uo,{path:e,element:u.jsx(YO,{to:t,replace:!0})},e))]})})})})}));
|